There is an old PR that can help with that https://github.com/JuliaDynamics/ConcurrentSim.jl/pull/71
There is an old PR that can help with that #71