# Differential Equations General Questions

**URL:** <https://discourse.julialang.org/t/differential-equations-general-questions/34949>\
**Category:** Modelling & Simulations\
**Tags:** question\
**Created:** [February 21, 2020, 12:23am UTC](https://discourse.julialang.org/t/differential-equations-general-questions/34949 "2020-02-21T00:23:14Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)\
**Post date:** [February 21, 2020, 12:23am UTC](https://discourse.julialang.org/t/differential-equations-general-questions/34949/1 "2020-02-21T00:23:14Z")

</div>

Hi there -

I had some complete package to work with differential equations montecarlo simulations.  
It seems that differentialequations montecarlo is not longer supported?  
Is differentialequations enesmble a replacement for it?  
Is this just a renaming or will programing needs syntax also change?

Thanks,

Ale

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [February 21, 2020, 1:26am UTC](https://discourse.julialang.org/t/differential-equations-general-questions/34949/2 "2020-02-21T01:26:17Z")

</div>

> [@alewolf](#):
>
> Is differentialequations enesmble a replacement for it?  
> Is this just a renaming or will programing needs syntax also change?

It’s mostly a renaming. There is a slight syntax change for how the choice of parallelism is done though, and it was structurally required to allow dispatching.

---

<div class="post-metadata">

**Author:** ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)\
**Post date:** [February 21, 2020, 5:53pm UTC](https://discourse.julialang.org/t/differential-equations-general-questions/34949/3 "2020-02-21T17:53:01Z")

</div>

Another update related question:

When I worked with DifferentialEquations 6.3.0 and DiffEqParamEstim 1.6.0, DiffEqSensitivity 6.0.1

I could easily do:

```julia
using Distributed
addprocs(8)
@everywhere using DifferentialEquations 
@everywhere using DiffEqSensitivity
@everywhere using DiffEqParamEstim

```

and everything will load in my 8 processes

Now if I do the same with DifferentialEquations 6.9.0 and DiffEqParamEstim 1.12.0 and DiffEqSensitivity 6.0.1, this doesn’t work and I get the following messages below.  
For the time being I am reverting to the old versions, but I’d like to be able to move to the last functions. Am I doing something wrong? or is there something that needs to be fixed? in the new versions?

Thanks,

Ale

```julia
using Distributed
addprocs(8)
@everywhere using DifferentialEquations 
@everywhere using DiffEqParamEstim

```

I get (showing only worker 2)

Info: Precompiling SeagenPKPD [top-level]  
└ @ Base loading.jl:1186

From worker 2: ERROR: LoadError: LoadError: syntax: invalid function name “eFAST \<: GSAMethod”  
From worker 2: Stacktrace:

```
  From worker 2: [1] include at ./boot.jl:317 [inlined]
  From worker 2: [2] include_relative(::Module, ::String) at ./loading.jl:1038
  From worker 2: [3] include at ./sysimg.jl:29 [inlined]
  From worker 2: [4] include(::String) at /opt/julia/packages/DiffEqSensitivity/jlWf7/src/DiffEqSensitivity.jl:1
  From worker 2: [5] top-level scope at none:0
  From worker 2: [6] include at ./boot.jl:317 [inlined]
  From worker 2: [7] include_relative(::Module, ::String) at ./loading.jl:1038
  From worker 2: [8] include(::Module, ::String) at ./sysimg.jl:29
  From worker 2: [9] top-level scope at none:2
  From worker 2: [10] eval at ./boot.jl:319 [inlined]
  From worker 2: [11] eval(::Expr) at ./client.jl:389
  From worker 2: [12] top-level scope at ./none:3
  From worker 2:	in expression starting at /opt/julia/packages/DiffEqSensitivity/jlWf7/src/global_sensitivity/eFAST_sensitivity.jl:1
  From worker 2:	in expression starting at /opt/julia/packages/DiffEqSensitivity/jlWf7/src/DiffEqSensitivity.jl:25

```

On worker 2:  
Failed to precompile DiffEqSensitivity [41bf760c-e81c-5289-8e54-58b1f1f8abe2] to /opt/julia/compiled/v1.0/DiffEqSensitivity/02xYn.ji.  
error at ./error.jl:33  
macro expansion at ./logging.jl:313 [inlined]  
compilecache at ./loading.jl:1184  
macro expansion at ./logging.jl:311 [inlined]  
\_require at ./loading.jl:941  
require at ./loading.jl:852  
macro expansion at ./logging.jl:311 [inlined]  
require at ./loading.jl:834  
eval at ./boot.jl:319  
#116 at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/process\_messages.jl:276  
run\_work\_thunk at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/process\_messages.jl:56  
run\_work\_thunk at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/process\_messages.jl:65  
#102 at ./task.jl:259  
#remotecall\_wait#154(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Function, ::Distributed.Worker, ::Module, ::Vararg{Any,N} where N) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/remotecall.jl:407  
remotecall\_wait(::Function, ::Distributed.Worker, ::Module, ::Vararg{Any,N} where N) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/remotecall.jl:398  
#remotecall\_wait#157(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Function, ::Int64, ::Module, ::Vararg{Any,N} where N) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/remotecall.jl:419  
remotecall\_wait(::Function, ::Int64, ::Module, ::Vararg{Any,N} where N) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/remotecall.jl:419  
(::getfield(Distributed, Symbol(“##163#165”)){Module,Expr})() at ./task.jl:259

…and 8 more exception(s).

Stacktrace:  
[1] sync\_end(::Array{Any,1}) at ./task.jl:226  
[2] remotecall\_eval(::Module, ::Array{Int64,1}, ::Expr) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/macros.jl:207  
[3] top-level scope at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/macros.jl:190  
[4] top-level scope at In[74]:1

Similar results for ParamEstim:

```julia
using Distributed
addprocs(8)
@everywhere using DifferentialEquations 
@everywhere using DiffEqParamEstim

```

Info: Precompiling DiffEqParamEstim [1130ab10-4a5a-5621-a13d-e4788d82bd4c]  
└ @ Base loading.jl:1186  
From worker 2: ERROR: LoadError: LoadError: syntax: invalid function name “eFAST \<: GSAMethod”

| From worker 2: | Stacktrace: |
| --- | --- |
| From worker 2: | [1] include at ./boot.jl:317 [inlined] |
| From worker 2: [2] include\_relative(::Module, ::String) at ./loading.jl:1038 | |
| From worker 2: | [3] include at ./sysimg.jl:29 [inlined] |
| — | — |
| From worker 2: | [4] include(::String) at /opt/julia/packages/DiffEqSensitivity/jlWf7/src/DiffEqSensitivity.jl:1 |
| From worker 2: | [5] top-level scope at none:0 |
| From worker 2: | [6] include at ./boot.jl:317 [inlined] |
| From worker 2: | [7] include\_relative(::Module, ::String) at ./loading.jl:1038 |
| From worker 2: | [8] include(::Module, ::String) at ./sysimg.jl:29 |
| From worker 2: | [9] top-level scope at none:2 |
| From worker 2: | [10] eval at ./boot.jl:319 [inlined] |
| From worker 2: | [11] eval(::Expr) at ./client.jl:389 |
| From worker 2: | [12] top-level scope at ./none:3 |
| From worker 2: | in expression starting at /opt/julia/packages/DiffEqSensitivity/jlWf7/src/global\_sensitivity/eFAST\_sensitivity.jl:1 |
| From worker 2: | in expression starting at /opt/julia/packages/DiffEqSensitivity/jlWf7/src/DiffEqSensitivity.jl:25 |

On worker 2: Failed to precompile DiffEqParamEstim [1130ab10-4a5a-5621-a13d-e4788d82bd4c] to /opt/julia/compiled/v1.0/DiffEqParamEstim/nWq0E.ji. error at ./error.jl:33 macro expansion at ./logging.jl:313 [inlined] compilecache at ./loading.jl:1184 macro expansion at ./logging.jl:311 [inlined] \_require at ./loading.jl:941 require at ./loading.jl:852 macro expansion at ./logging.jl:311 [inlined] require at ./loading.jl:834 eval at ./boot.jl:319 #116 at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/process\_messages.jl:276 run\_work\_thunk at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/process\_messages.jl:56 run\_work\_thunk at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/process\_messages.jl:65 #102 at ./task.jl:259 #remotecall\_wait#154(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Function, ::Distributed.Worker, ::Module, ::Vararg{Any,N} where N) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/remotecall.jl:407 remotecall\_wait(::Function, ::Distributed.Worker, ::Module, ::Vararg{Any,N} where N) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/remotecall.jl:398 #remotecall\_wait#157(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Function, ::Int64, ::Module, ::Vararg{Any,N} where N) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/remotecall.jl:419 remotecall\_wait(::Function, ::Int64, ::Module, ::Vararg{Any,N} where N) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/remotecall.jl:419 (::getfield(Distributed, Symbol(“##163#165”)){Module,Expr})() at ./task.jl:259 …and 8 more exception(s). Stacktrace: [1] sync\_end(::Array{Any,1}) at ./task.jl:226 [2] remotecall\_eval(::Module, ::Array{Int64,1}, ::Expr) at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/macros.jl:207 [3] top-level scope at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Distributed/src/macros.jl:190 [4] top-level scope at In[77]:1

​

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [February 21, 2020, 9:51pm UTC](https://discourse.julialang.org/t/differential-equations-general-questions/34949/4 "2020-02-21T21:51:50Z")

</div>

Try a new REPL session: looks like some processes may have been on the old package?

---

<div class="post-metadata">

**Author:** ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)\
**Post date:** [February 21, 2020, 9:58pm UTC](https://discourse.julialang.org/t/differential-equations-general-questions/34949/5 "2020-02-21T21:58:40Z")

</div>

I’m out of office,

Will do and I’ll let you know as soon as I have the chance.

Thanks

Ale

---

<div class="post-metadata">

**Author:** ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)\
**Post date:** [February 24, 2020, 6:44pm UTC](https://discourse.julialang.org/t/differential-equations-general-questions/34949/6 "2020-02-24T18:44:57Z")

</div>

It did not work, but I am working on a remote computer (where I am only user) where my only interface to Julia is through Jupyter… I restarted the kernel and got the same errors… I wonder if this can be an issue with IJulia.

Thanks,

Ale

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [February 24, 2020, 6:55pm UTC](https://discourse.julialang.org/t/differential-equations-general-questions/34949/7 "2020-02-24T18:55:42Z")

</div>

> [@alewolf](#):
>
> It did not work, but I am working on a remote computer (where I am only user) where my only interface to Julia is through Jupyter… I restarted the kernel and got the same errors… I wonder if this can be an issue with IJulia.

Quite possibly. What version of Julia is this kernel running?

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [February 24, 2020, 6:56pm UTC](https://discourse.julialang.org/t/differential-equations-general-questions/34949/8 "2020-02-24T18:56:50Z")

</div>

Oh, from the error message I see that it’s running v1.0(.5?). I believe the lower bound on the ensemble stuff was probably around Julia v1.2. I assume you’re running this for the LTS?

---

<div class="post-metadata">

**Author:** ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)\
**Post date:** [February 24, 2020, 6:58pm UTC](https://discourse.julialang.org/t/differential-equations-general-questions/34949/9 "2020-02-24T18:58:10Z")

</div>

yes trying to run fro ensemble - I’ll ask admin to update to 1.2 or would you recommend 1.3?

Thanks and take care,

ale

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [February 24, 2020, 7:06pm UTC](https://discourse.julialang.org/t/differential-equations-general-questions/34949/10 "2020-02-24T19:06:07Z")

</div>

I would highly recommend v1.3. Remember that v1.3. is what introduced the new multithreading, so it’s just much better behaved with this stuff. The pre-v1.3 ensembles/MonteCarlo was multithreaded, but was using the very experimental form and had somewhat difficult hard edges because of that (for example, printing would cause segfaults 🤷‍♂️, which was fixed in v1.3 and makes debugging easier!).

---

<div class="post-metadata">

**Author:** ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)\
**Post date:** [February 24, 2020, 7:07pm UTC](https://discourse.julialang.org/t/differential-equations-general-questions/34949/11 "2020-02-24T19:07:19Z")

</div>

will 1,3 also be the better option for Pumas?  
that I run from my computer with 1.2 (PRO)

Thanks,

ale

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [February 24, 2020, 7:14pm UTC](https://discourse.julialang.org/t/differential-equations-general-questions/34949/12 "2020-02-24T19:14:53Z")

</div>

> [@alewolf](#):
>
> will 1,3 also be the better option for Pumas?

The new JuliaPro is Julia v1.3 and the next Pumas release will require v1.3.
