# Issue in compiling DifferentialEquations

**URL:** https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638
**Category:** Tooling
**Tags:** question
**Created:** [September 11, 2019, 6:18am UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638 "2019-09-11T06:18:08Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)
#### Post date: [September 11, 2019, 6:18am UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/1 "2019-09-11T06:18:08Z")

</div>

I had some issue in compiling DifferentialEquations after an update so I removed it re-add it. Here is the output. Please see the last couple of lines.

```julia
(v1.1) pkg> st
    Status `C:\Users\Himanshi\.julia\environments\v1.1\Project.toml`
  [c52e3926] Atom v0.10.1
  [6e4b80f9] BenchmarkTools v0.4.3
  [a134a8b2] BlackBoxOptim v0.5.0
  [336ed68f] CSV v0.5.12
  [49dc2e85] Calculus v0.5.0
  [324d7699] CategoricalArrays v0.6.0
  [9961bab8] Cbc v0.6.4
  [944b1d66] CodecZlib v0.6.0
  [a93c6f00] DataFrames v0.19.4
  [1313f7d8] DataFramesMeta v0.5.0
  [864edb3b] DataStructures v0.17.0
  [e7dc6d0d] DataValues v0.4.12
  [7806a523] DecisionTree v0.8.3
  [39dd38d3] Dierckx v0.4.1
  [1130ab10] DiffEqParamEstim v1.8.0
  [0c46a032] DifferentialEquations v6.6.0
  [31c24e10] Distributions v0.21.1
  [f6369f11] ForwardDiff v0.10.3
  [38e38edf] GLM v1.1.1
  [60bf3e95] GLPK v0.11.3
  [28b8d3ca] GR v0.41.0
  [09f84164] HypothesisTests v0.8.0
  [7073ff75] IJulia v1.20.0
  [b6b21f68] Ipopt v0.6.0
  [8c755ed3] JuML v0.0.0 [`C:\Users\Himanshi\.julia\dev\JuML`]
  [4076af6c] JuMP v0.20.0
  [aa1ae85d] JuliaInterpreter v0.7.2
  [e5e0dc1b] Juno v0.7.2
  [5ab0869b] KernelDensity v0.5.1
  [b964fa9f] LaTeXStrings v1.0.3
  [fcefd6c4] LambdaFn v0.3.0
  [50d2b5c4] Lazy v0.14.0
  [093fc24a] LightGraphs v1.3.0
  [2fda8390] LsqFit v0.8.1
  [33e6dc65] MKL v0.0.0 #master (https://github.com/JuliaComputing/MKL.jl)
  [cc2ba9b6] MLDataUtils v0.5.0
  [1914dd2f] MacroTools v0.5.1
  [b8f27783] MathOptInterface v0.9.2
  [961ee093] ModelingToolkit v0.6.4
  [2774e3e8] NLsolve v4.1.0
  [2bd173c7] NodeJS v0.6.0
  [429524aa] Optim v0.19.2
  [9b87118b] PackageCompiler v0.6.4
  [ce6b1742] RDatasets v0.6.1
  [731186ca] RecursiveArrayTools v1.0.2
  [295af30f] Revise v2.1.10
  [3646fa90] ScikitLearn v0.5.1
  [90137ffa] StaticArrays v0.11.0
  [2913bbd2] StatsBase v0.32.0
  [f3b207a7] StatsPlots v0.12.0
  [70df011a] TableReader v0.4.0
  [bd369af6] Tables v0.2.11
  [a759f4b9] TimerOutputs v0.5.0
  [c17dfb99] WinRPM v0.4.2
  [c2297ded] ZMQ v1.0.0
  [ade2ca70] Dates
  [8bb1440f] DelimitedFiles
  [8ba89e20] Distributed
  [de0858da] Printf
  [9a3f8284] Random
  [2f01184e] SparseArrays
  [10745b16] Statistics
  [8dfed614] Test

(v1.1) pkg> rm DifferentialEquations
  Updating `C:\Users\Himanshi\.julia\environments\v1.1\Project.toml`
  [0c46a032] - DifferentialEquations v6.6.0
  Updating `C:\Users\Himanshi\.julia\environments\v1.1\Manifest.toml`
  [764a87c0] - BoundaryValueDiffEq v2.3.0
  [bcd4f6db] - DelayDiffEq v5.14.0
  [5a0ffddc] - DiffEqFinancial v2.1.0
  [c894b116] - DiffEqJump v6.2.1
  [77a26b50] - DiffEqNoiseProcess v3.3.1
  [055956cb] - DiffEqPhysics v3.2.0
  [0c46a032] - DifferentialEquations v6.6.0
  [c619ae07] - DimensionalPlotRecipes v0.2.0
  [f9640e96] - MultiScaleArrays v1.5.0
  [e409e4f3] - PoissonRandom v0.4.0
  [e6cf234a] - RandomNumbers v1.3.0
  [ae5879a3] - ResettableStacks v0.6.0
  [9672c7b4] - SteadyStateDiffEq v1.5.0
  [789caeaf] - StochasticDiffEq v6.9.1
  [c3572dad] - Sundials v3.7.0

(v1.1) pkg> gc
    Active manifests:
        `C:\Users\Himanshi\.julia\environments\v1.1\Manifest.toml`
   Deleted `C:\Users\Himanshi\.julia\packages\BoundaryValueDiffEq\XvS8h` (22.807 KiB)
   Deleted `C:\Users\Himanshi\.julia\packages\DelayDiffEq\nHoER` (148.554 KiB)
   Deleted `C:\Users\Himanshi\.julia\packages\DiffEqFinancial\V11wE` (8.722 KiB)
   Deleted `C:\Users\Himanshi\.julia\packages\DiffEqJump\vTKOd` (127.416 KiB)
   Deleted `C:\Users\Himanshi\.julia\packages\DiffEqNoiseProcess\SCC7m` (54.845 KiB)
   Deleted `C:\Users\Himanshi\.julia\packages\DiffEqPhysics\DppQ4` (29.909 KiB)
   Deleted `C:\Users\Himanshi\.julia\packages\DifferentialEquations\4jSpr` (479.235 KiB)
   Deleted `C:\Users\Himanshi\.julia\packages\DimensionalPlotRecipes\JfuWg` (6.315 KiB)
   Deleted `C:\Users\Himanshi\.julia\packages\MultiScaleArrays\1LixA` (58.805 KiB)
   Deleted `C:\Users\Himanshi\.julia\packages\PoissonRandom\Ohb1g` (12.772 KiB)
   Deleted `C:\Users\Himanshi\.julia\packages\RandomNumbers\URH3g` (251.488 KiB)
   Deleted `C:\Users\Himanshi\.julia\packages\ResettableStacks\esu9D` (7.061 KiB)
   Deleted `C:\Users\Himanshi\.julia\packages\SteadyStateDiffEq\q0UMK` (9.644 KiB)
   Deleted `C:\Users\Himanshi\.julia\packages\StochasticDiffEq\e0qFK` (1.023 MiB)
   Deleted `C:\Users\Himanshi\.julia\packages\Sundials\CRi5j` (25.481 MiB)
   Deleted 15 package installations (27.692 MiB)

(v1.1) pkg> gc
    Active manifests:
        `C:\Users\Himanshi\.julia\environments\v1.1\Manifest.toml`
   Deleted 0 package installations

(v1.1) pkg> add DifferentialEquations
  Updating registry at `C:\Users\Himanshi\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
 Installed SteadyStateDiffEq ────── v1.5.0
 Installed ResettableStacks ─────── v0.6.0
 Installed DimensionalPlotRecipes ─ v0.2.0
 Installed BoundaryValueDiffEq ──── v2.3.0
 Installed Sundials ─────────────── v3.7.0
 Installed DiffEqPhysics ────────── v3.2.0
 Installed DifferentialEquations ── v6.6.0
 Installed OrdinaryDiffEq ───────── v5.16.0
 Installed DiffEqFinancial ──────── v2.2.0
 Installed DiffEqBase ───────────── v6.0.0
 Installed RandomNumbers ────────── v1.3.0
 Installed PoissonRandom ────────── v0.4.0
 Installed DiffEqOperators ──────── v4.1.0
 Installed DiffEqJump ───────────── v6.2.1
 Installed StochasticDiffEq ─────── v6.7.0
 Installed MultiScaleArrays ─────── v1.5.0
 Installed DiffEqNoiseProcess ───── v3.3.1
 Installed DelayDiffEq ──────────── v5.14.0
  Updating `C:\Users\Himanshi\.julia\environments\v1.1\Project.toml`
  [0c46a032] + DifferentialEquations v6.6.0
  Updating `C:\Users\Himanshi\.julia\environments\v1.1\Manifest.toml`
  [764a87c0] + BoundaryValueDiffEq v2.3.0
  [bcd4f6db] + DelayDiffEq v5.14.0
  [2b5f629d] ↑ DiffEqBase v5.20.1 ⇒ v6.0.0
  [5a0ffddc] + DiffEqFinancial v2.2.0
  [c894b116] + DiffEqJump v6.2.1
  [77a26b50] + DiffEqNoiseProcess v3.3.1
  [9fdde737] + DiffEqOperators v4.1.0
  [055956cb] + DiffEqPhysics v3.2.0
  [0c46a032] + DifferentialEquations v6.6.0
  [c619ae07] + DimensionalPlotRecipes v0.2.0
  [f9640e96] + MultiScaleArrays v1.5.0
  [1dea7af3] ↑ OrdinaryDiffEq v5.15.1 ⇒ v5.16.0
  [e409e4f3] + PoissonRandom v0.4.0
  [e6cf234a] + RandomNumbers v1.3.0
  [ae5879a3] + ResettableStacks v0.6.0
  [9672c7b4] + SteadyStateDiffEq v1.5.0
  [789caeaf] + StochasticDiffEq v6.7.0
  [c3572dad] + Sundials v3.7.0
  Building Sundials → `C:\Users\Himanshi\.julia\packages\Sundials\CRi5j\deps\build.log`

julia> using DifferentialEquations
[Info: Precompiling DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa]
┌ Warning: Package DiffEqFinancial does not have Markdown in its dependencies:
│ - If you have DiffEqFinancial checked out for development and have
│ added Markdown as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with DiffEqFinancial
└ Loading Markdown into DiffEqFinancial from project dependency, future warnings for DiffEqFinancial are suppressed.
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa]
│ exception = Required dependency DiffEqFinancial [5a0ffddc-d203-54b0-88ba-2c03c0fc2e67] failed to load from a cache file.
└ @ Base loading.jl:969
[Info: Recompiling stale cache file C:\Users\Himanshi\.julia\compiled\v1.1\DiffEqFinancial\RxltQ.ji for DiffEqFinancial [5a0ffddc-d203-54b0-88ba-2c03c0fc2e67]
┌ Warning: Package DiffEqFinancial does not have Markdown in its dependencies:
│ - If you have DiffEqFinancial checked out for development and have
│ added Markdown as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with DiffEqFinancial
└ Loading Markdown into DiffEqFinancial from project dependency, future warnings for DiffEqFinancial are suppressed.

julia>

```

---

<div class="post-metadata">

### Author: ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)
#### Post date: [September 11, 2019, 6:39am UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/2 "2019-09-11T06:39:05Z")

</div>

**After Effects**

```julia
# using DifferentialEquations,StatsPlots
α=0.04;β=0.2;u₀=1.0
f(u,p,t) = α*u
g(u,p,t) = β*u #*sqrt(dt)
dt = 1//250 # 1/16 in fractional form
tspan = (0.0, 10.0)
prob = SDEProblem(f,g,u₀,tspan)
sol = solve(prob,SRIW1(),dt=dt)

type SDEProblem has no field callback

Stacktrace:
 [1] getproperty(::Any, ::Symbol) at .\sysimg.jl:18
 [2] #__init#40(::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Nothing, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Nothing, ::Bool, ::Bool, ::Rational{Int64}, ::Bool, ::Rational{Int64}, ::Nothing, ::Nothing, ::Rational{Int64}, ::Rational{Int64}, ::Rational{Int64}, ::Bool, ::Int64, ::Rational{Int64}, ::Rational{Int64}, ::Rational{Int64}, ::Int64, ::Float64, ::Float64, ::typeof(DiffEqBase.ODE_DEFAULT_NORM), ::typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN), ::typeof(DiffEqBase.ODE_DEFAULT_UNSTABLE_CHECK), ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Int64, ::String, ::typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE), ::Nothing, ::Bool, ::UInt64, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(DiffEqBase.__init), ::SDEProblem{Float64,Tuple{Float64,Float64},false,DiffEqBase.NullParameters,Nothing,SDEFunction{false,typeof(f),typeof(g),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},typeof(g),Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},Nothing}, ::SRIW1, ::Array{Any,1}, ::Array{Any,1}, ::Type, ::Type{Val{true}}) at C:\Users\Himanshi\.julia\packages\StochasticDiffEq\5GzTk\src\solve.jl:166
 [3] (::getfield(DiffEqBase, Symbol("#kw##__init")))(::NamedTuple{(:dt,),Tuple{Rational{Int64}}}, ::typeof(DiffEqBase.__init), ::SDEProblem{Float64,Tuple{Float64,Float64},false,DiffEqBase.NullParameters,Nothing,SDEFunction{false,typeof(f),typeof(g),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},typeof(g),Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},Nothing}, ::SRIW1, ::Array{Any,1}, ::Array{Any,1}, ::Type, ::Type{Val{true}}) at .\none:0 (repeats 2 times)
 [4] #__solve#39(::Base.Iterators.Pairs{Symbol,Rational{Int64},Tuple{Symbol},NamedTuple{(:dt,),Tuple{Rational{Int64}}}}, ::Function, ::SDEProblem{Float64,Tuple{Float64,Float64},false,DiffEqBase.NullParameters,Nothing,SDEFunction{false,typeof(f),typeof(g),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},typeof(g),Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},Nothing}, ::SRIW1, ::Array{Any,1}, ::Array{Any,1}, ::Nothing, ::Type{Val{true}}) at C:\Users\Himanshi\.julia\packages\StochasticDiffEq\5GzTk\src\solve.jl:6
 [5] (::getfield(DiffEqBase, Symbol("#kw##__solve")))(::NamedTuple{(:dt,),Tuple{Rational{Int64}}}, ::typeof(DiffEqBase.__solve), ::SDEProblem{Float64,Tuple{Float64,Float64},false,DiffEqBase.NullParameters,Nothing,SDEFunction{false,typeof(f),typeof(g),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},typeof(g),Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},Nothing}, ::SRIW1, ::Array{Any,1}, ::Array{Any,1}, ::Nothing, ::Type{Val{true}}) at .\none:0 (repeats 5 times)
 [6] #solve#388(::Base.Iterators.Pairs{Symbol,Rational{Int64},Tuple{Symbol},NamedTuple{(:dt,),Tuple{Rational{Int64}}}}, ::Function, ::SDEProblem{Float64,Tuple{Float64,Float64},false,DiffEqBase.NullParameters,Nothing,SDEFunction{false,typeof(f),typeof(g),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},typeof(g),Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},Nothing}, ::SRIW1) at C:\Users\Himanshi\.julia\packages\DiffEqBase\w3FH5\src\solve.jl:39
 [7] (::getfield(DiffEqBase, Symbol("#kw##solve")))(::NamedTuple{(:dt,),Tuple{Rational{Int64}}}, ::typeof(solve), ::SDEProblem{Float64,Tuple{Float64,Float64},false,DiffEqBase.NullParameters,Nothing,SDEFunction{false,typeof(f),typeof(g),LinearAlgebra.UniformScaling{Bool},Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing,Nothing},typeof(g),Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},Nothing}, ::SRIW1) at .\none:0
 [8] top-level scope at In[2]:8

```

---

<div class="post-metadata">

### Author: ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)
#### Post date: [September 11, 2019, 6:42am UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/3 "2019-09-11T06:42:24Z")

</div>

Why upgrading the packages downgrades certain ones?

```julia

(v1.1) pkg> up
  Updating registry at `C:\Users\Himanshi\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Updating git-repo `https://github.com/JuliaComputing/MKL.jl`
 Resolving package versions...
 Installed DiffEqFinancial ── v2.1.0
 Installed StochasticDiffEq ─ v6.9.1
  Updating `C:\Users\Himanshi\.julia\environments\v1.1\Project.toml`
 [no changes]
  Updating `C:\Users\Himanshi\.julia\environments\v1.1\Manifest.toml`
  [2b5f629d] ↓ DiffEqBase v6.0.0 ⇒ v5.20.1
  [5a0ffddc] ↓ DiffEqFinancial v2.2.0 ⇒ v2.1.0
  [9fdde737] - DiffEqOperators v4.1.0
  [1dea7af3] ↓ OrdinaryDiffEq v5.16.0 ⇒ v5.15.1
  [789caeaf] ↑ StochasticDiffEq v6.7.0 ⇒ v6.9.1

(v1.1) pkg>       

```

---

<div class="post-metadata">

### Author: ![SebastianM-C](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sebastianm-c/32/2480_2.png) [@SebastianM-C](https://discourse.julialang.org/u/SebastianM-C)
#### Post date: [September 11, 2019, 1:21pm UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/4 "2019-09-11T13:21:25Z")

</div>

This happens due to compatibility constraints.

---

<div class="post-metadata">

### Author: ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)
#### Post date: [September 11, 2019, 1:57pm UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/5 "2019-09-11T13:57:12Z")

</div>

Agree. So what is the way out?  
The packages which were functional earlier have started throwing errors after the update.

---

<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: [September 11, 2019, 8:44pm UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/6 "2019-09-11T20:44:43Z")

</div>

Try now. A big update was in the middle of occurring, and now a new DifferentialEquations.jl was just released which is compatible with the very latest of the solvers.

---

<div class="post-metadata">

### Author: ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)
#### Post date: [September 12, 2019, 5:16am UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/7 "2019-09-12T05:16:55Z")

</div>

Thanks I did an update today as suggested by you. Then I tried to precompile DiffEq and got a warning. Susequently I also tried to run some code (which worked fine two days ago), but it threw an error on using Ensemble.

```julia
(v1.1) pkg> up
  Updating registry at `C:\Users\Himanshi\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Updating git-repo `https://github.com/JuliaComputing/MKL.jl`
 Resolving package versions...
 Installed LLVM ────────────────── v1.3.0
 Installed DifferentialEquations ─ v6.7.0
  Updating `C:\Users\Himanshi\.julia\environments\v1.1\Project.toml`
  [0c46a032] ↑ DifferentialEquations v6.6.0 ⇒ v6.7.0
  [7073ff75] ↑ IJulia v1.19.0 ⇒ v1.20.0
  Updating `C:\Users\Himanshi\.julia\environments\v1.1\Manifest.toml`
  [0c46a032] ↑ DifferentialEquations v6.6.0 ⇒ v6.7.0
  [7073ff75] ↑ IJulia v1.19.0 ⇒ v1.20.0
  [929cbde3] ↑ LLVM v1.2.0 ⇒ v1.3.0
  [1dea7af3] ↑ OrdinaryDiffEq v5.16.0 ⇒ v5.17.0

(v1.1) pkg> build DifferentialEquations
  Building SpecialFunctions → `C:\Users\Himanshi\.julia\packages\SpecialFunctions\fvheQ\deps\build.log`
  Building Sundials ────────→ `C:\Users\Himanshi\.julia\packages\Sundials\CRi5j\deps\build.log`

julia> using DifferentialEquations
[Info: Recompiling stale cache file C:\Users\Himanshi\.julia\compiled\v1.1\DifferentialEquations\UQdwS.ji for DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa]
┌ Warning: Package DiffEqFinancial does not have Markdown in its dependencies:
│ - If you have DiffEqFinancial checked out for development and have
│ added Markdown as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with DiffEqFinancial
└ Loading Markdown into DiffEqFinancial from project dependency, future warnings for DiffEqFinancial are suppressed.
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa]
│ exception = Required dependency DiffEqFinancial [5a0ffddc-d203-54b0-88ba-2c03c0fc2e67] failed to load from a cache file.
└ @ Base loading.jl:969
[Info: Recompiling stale cache file C:\Users\Himanshi\.julia\compiled\v1.1\DiffEqFinancial\RxltQ.ji for DiffEqFinancial [5a0ffddc-d203-54b0-88ba-2c03c0fc2e67]
┌ Warning: Package DiffEqFinancial does not have Markdown in its dependencies:
│ - If you have DiffEqFinancial checked out for development and have
│ added Markdown as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with DiffEqFinancial
└ Loading Markdown into DiffEqFinancial from project dependency, future warnings for DiffEqFinancial are suppressed.

```

**JupyterLab**

```julia
using DifferentialEquations, StatsPlots

┌ Info: Recompiling stale cache file C:\Users\Himanshi\.julia\compiled\v1.1\DifferentialEquations\UQdwS.ji for DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa]
└ @ Base loading.jl:1184
┌ Warning: Package DiffEqFinancial does not have Markdown in its dependencies:
│ - If you have DiffEqFinancial checked out for development and have
│ added Markdown as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with DiffEqFinancial
└ Loading Markdown into DiffEqFinancial from project dependency, future warnings for DiffEqFinancial are suppressed.
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa]
│ exception = ErrorException("Required dependency DiffEqFinancial [5a0ffddc-d203-54b0-88ba-2c03c0fc2e67] failed to load from a cache file.")
└ @ Base loading.jl:969
┌ Info: Recompiling stale cache file C:\Users\Himanshi\.julia\compiled\v1.1\DiffEqFinancial\RxltQ.ji for DiffEqFinancial [5a0ffddc-d203-54b0-88ba-2c03c0fc2e67]
└ @ Base loading.jl:1184
┌ Warning: Package DiffEqFinancial does not have Markdown in its dependencies:
│ - If you have DiffEqFinancial checked out for development and have
│ added Markdown as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with DiffEqFinancial
└ Loading Markdown into DiffEqFinancial from project dependency, future warnings for DiffEqFinancial are suppressed.
┌ Info: Recompiling stale cache file C:\Users\Himanshi\.julia\compiled\v1.1\StatsPlots\SiylL.ji for StatsPlots [f3b207a7-027a-5e70-b257-86293d7955fd]
└ @ Base loading.jl:1184

```

**Solving a SDE problem**  
**```**  
using DifferentialEquations,StatsPlots  
α=0.08;β=0.3;u₀=1.0  
f(u,p,t) = α_u  
g(u,p,t) = β_u #\*sqrt(dt)  
dt = 1//250 # 1/16 in fractional form  
tspan = (0.0, 10.0)  
prob = SDEProblem(f,g,u₀,tspan)  
nsembleprob = EnsembleProblem(prob)  
sol = solve(ensembleprob,SRIW1(),EnsembleThreads(),trajectories=100)  
summ = EnsembleSummary(sol,0:0.01:10)  
plot(summ,labels=“Middle 95%”)

Cannot convert Tuple{Array{Float64,1},Array{Float64,1}} to series data for plotting

Stacktrace:  
[1] error(::String) at .\error.jl:33  
[2] prepareSeriesData(::Tuple{Array{Float64,1},Array{Float64,1}}) at C:\Users\Himanshi.julia\packages\Plots\h3o4c\src\series.jl:15  
[3] convertToAnyVector(::Tuple{Array{Float64,1},Array{Float64,1}}, ::Dict{Symbol,Any}) at C:\Users\Himanshi.julia\packages\Plots\h3o4c\src\series.jl:26  
[4] process\_ribbon(::Tuple{Array{Float64,1},Array{Float64,1}}, ::Dict{Symbol,Any}) at C:\Users\Himanshi.julia\packages\Plots\h3o4c\src\series.jl:62  
[5] macro expansion at C:\Users\Himanshi.julia\packages\Plots\h3o4c\src\series.jl:139 [inlined]  
[6] apply\_recipe(::Dict{Symbol,Any}, ::Type{Plots.SliceIt}, ::StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}, ::Array{Float64,1}, ::Nothing) at C:\Users\Himanshi.julia\packages\RecipesBase\zBoFG\src\RecipesBase.jl:275  
[7] \_process\_userrecipes(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Tuple{EnsembleSummary{Float64,2,StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}}}}) at C:\Users\Himanshi.julia\packages\Plots\h3o4c\src\pipeline.jl:83  
[8] \_plot!(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Tuple{EnsembleSummary{Float64,2,StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}}}}) at C:\Users\Himanshi.julia\packages\Plots\h3o4c\src\plot.jl:178  
[9] #plot#133(::Base.Iterators.Pairs{Symbol,String,Tuple{Symbol},NamedTuple{(:labels,),Tuple{String}}}, ::Function, ::EnsembleSummary{Float64,2,StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}}}) at C:\Users\Himanshi.julia\packages\Plots\h3o4c\src\plot.jl:57  
[10] (::getfield(RecipesBase, Symbol(“#kw##plot”)))(::NamedTuple{(:labels,),Tuple{String}}, ::typeof(plot), ::EnsembleSummary{Float64,2,StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},DiffEqArray{Float64,1,Array{Float64,1},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}}}) at .\none:0  
[11] top-level scope at In[3]:4774

```julia
To resolve the warning I updated the Julia Manifiest.toml file and Project.toml file of DiffEqFinancial for the missing dependency of Markdown and LinearLAlgebra and recompiled DiffEq. It completed succesully. The Ensemble error still remains. Not a big issue for me but thought about updating you.
```

---

<div class="post-metadata">

### Author: ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)
#### Post date: [September 12, 2019, 8:34am UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/8 "2019-09-12T08:34:22Z")

</div>

I found the issue with plotting DiffEq ensemble . Reverted StatsPlots pacakge to v0.19.0 from v0.20.0 and it works.

---

<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: [September 12, 2019, 10:14am UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/9 "2019-09-12T10:14:37Z")

</div>

Ooh, umm… StatsPlots’s latest release is v0.12.0

[https://github.com/JuliaPlots/StatsPlots.jl/releases](https://github.com/JuliaPlots/StatsPlots.jl/releases)

so that’s interesting 🙂.

BTW, the DiffEqFinancial warnings should be gone now.

---

<div class="post-metadata">

### Author: ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)
#### Post date: [September 12, 2019, 10:17am UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/10 "2019-09-12T10:17:28Z")

</div>

True. My mistake. Reverted from 0.12.0 to 0.11.0. Got confused with IJulia version.  
After updating Manifest.toml for the missing dependency of “DiffEqFinancial”, the warning is gone.

---

<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: [September 12, 2019, 11:04am UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/11 "2019-09-12T11:04:03Z")

</div>

Alright, great. @asinghvi17 can we look into this StatsPlots issue?

---

<div class="post-metadata">

### Author: ![asinghvi17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asinghvi17/32/8272_2.png) [@asinghvi17](https://discourse.julialang.org/u/asinghvi17)
#### Post date: [September 12, 2019, 11:07am UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/12 "2019-09-12T11:07:22Z")

</div>

Not sure what’s going in here, will dig into it. It looks like @Ajaychat3 is talking about Plots, but its latest release is at least 0.25.

---

<div class="post-metadata">

### Author: ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)
#### Post date: [September 12, 2019, 11:08am UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/13 "2019-09-12T11:08:31Z")

</div>

I am referring to StatsPlots

---

<div class="post-metadata">

### Author: ![asinghvi17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asinghvi17/32/8272_2.png) [@asinghvi17](https://discourse.julialang.org/u/asinghvi17)
#### Post date: [September 12, 2019, 6:43pm UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/14 "2019-09-12T18:43:29Z")

</div>

Sorry, didn’t see your reply to Chris.

I’ve tried your example code, and it has the same error on my machine.

```julia
using DifferentialEquations, Plots
α=0.08;β=0.3;u₀=1.0
f(u,p,t) = α*u
g(u,p,t) = β*u #*sqrt(dt)
dt = 1//250 # 1/16 in fractional form
tspan = (0.0, 10.0)
prob = SDEProblem(f,g,u₀,tspan)
ensembleprob = EnsembleProblem(prob)
sol = solve(ensembleprob,SRIW1(),EnsembleThreads(),trajectories=100)
summ = EnsembleSummary(sol,0:0.01:10)
plot(summ,labels="Middle 95%")

```

Seems to be a problem which occurs when plotting the ribbon.

Relevant versions:

```julia
(v1.4) pkg> st DifferentialEquations StatsPlots
    Status `~/.julia/environments/v1.4/Project.toml`
  [864edb3b] DataStructures v0.17.0
  [bcd4f6db] DelayDiffEq v5.15.0
  [c894b116] DiffEqJump v6.2.1
  [0c46a032] DifferentialEquations v6.6.0
  [31c24e10] Distributions v0.21.1
  [510215fc] Observables v0.2.3
  [1dea7af3] OrdinaryDiffEq v5.16.0
  [91a5bcdd] Plots v0.26.3 [`~/.julia/dev/Plots`]
  [3cdcf5f2] RecipesBase v0.7.0
  [731186ca] RecursiveArrayTools v1.0.2
  [189a3867] Reexport v0.2.0
  [2913bbd2] StatsBase v0.32.0
  [f3b207a7] StatsPlots v0.12.0 [`~/.julia/dev/StatsPlots`]
  [789caeaf] StochasticDiffEq v6.10.0
  [bd369af6] Tables v0.2.11
  [cc8bc4a8] Widgets v0.6.2
  [9a3f8284] Random

```

---

<div class="post-metadata">

### Author: ![asinghvi17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asinghvi17/32/8272_2.png) [@asinghvi17](https://discourse.julialang.org/u/asinghvi17)
#### Post date: [September 12, 2019, 6:50pm UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/15 "2019-09-12T18:50:17Z")

</div>

[https://github.com/JuliaPlots/Plots.jl/pull/2139](https://github.com/JuliaPlots/Plots.jl/pull/2139) is the only (obvious) PR which has touched ribbons in some time.

MWE:

```julia
using Plots
plot([0, 1], [1, 1]; ribbon = ([1, 2], [3, 4]))

ERROR: Cannot convert Tuple{Array{Int64,1},Array{Int64,1}} to series data for plotting
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] prepareSeriesData(::Tuple{Array{Int64,1},Array{Int64,1}}) at /Users/anshul/.julia/dev/Plots/src/series.jl:15
 [3] convertToAnyVector(::Tuple{Array{Int64,1},Array{Int64,1}}, ::Dict{Symbol,Any}) at /Users/anshul/.julia/dev/Plots/src/series.jl:26
 [4] process_ribbon(::Tuple{Array{Int64,1},Array{Int64,1}}, ::Dict{Symbol,Any}) at /Users/anshul/.julia/dev/Plots/src/series.jl:62
 [5] macro expansion at /Users/anshul/.julia/dev/Plots/src/series.jl:139 [inlined]
 [6] apply_recipe(::Dict{Symbol,Any}, ::Type{Plots.SliceIt}, ::Array{Int64,1}, ::Array{Int64,1}, ::Nothing) at /Users/anshul/.julia/packages/RecipesBase/zBoFG/src/RecipesBase.jl:275
 [7] _process_userrecipes(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Tuple{Array{Int64,1},Array{Int64,1}}) at /Users/anshul/.julia/dev/Plots/src/pipeline.jl:83
 [8] _plot!(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Tuple{Array{Int64,1},Array{Int64,1}}) at /Users/anshul/.julia/dev/Plots/src/plot.jl:178
 [9] #plot#133(::Base.Iterators.Pairs{Symbol,Tuple{Array{Int64,1},Array{Int64,1}},Tuple{Symbol},NamedTuple{(:ribbon,),Tuple{Tuple{Array{Int64,1},Array{Int64,1}}}}}, ::typeof(plot), ::Array{Int64,1}, ::Vararg{Array{Int64,1},N} where N) at /Users/anshul/.julia/dev/Plots/src/plot.jl:57
 [10] (::RecipesBase.var"#kw##plot")(::NamedTuple{(:ribbon,),Tuple{Tuple{Array{Int64,1},Array{Int64,1}}}}, ::typeof(plot), ::Array{Int64,1}, ::Array{Int64,1}) at /Users/anshul/.julia/dev/Plots/src/plot.jl:51
 [11] top-level scope at REPL[17]:100:

```

---

<div class="post-metadata">

### Author: ![asinghvi17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asinghvi17/32/8272_2.png) [@asinghvi17](https://discourse.julialang.org/u/asinghvi17)
#### Post date: [September 12, 2019, 7:07pm UTC](https://discourse.julialang.org/t/issue-in-compiling-differentialequations/28638/16 "2019-09-12T19:07:37Z")

</div>

It seems that the ribbons are converted here:  
[https://github.com/JuliaPlots/Plots.jl/blob/236aaed2a30c165e704e2233d08341f2595fc6e1/src/series.jl#L139](https://github.com/JuliaPlots/Plots.jl/blob/236aaed2a30c165e704e2233d08341f2595fc6e1/src/series.jl#L139)  
and plotted here:  
[https://github.com/JuliaPlots/Plots.jl/blob/236aaed2a30c165e704e2233d08341f2595fc6e1/src/series.jl#L159-L160](https://github.com/JuliaPlots/Plots.jl/blob/236aaed2a30c165e704e2233d08341f2595fc6e1/src/series.jl#L159-L160)

Still not sure why that would happen…for what it’s worth, going to Plots v0.26.0 (by `]pin Plots@0.26.2`) seems to resolve the issue.

cc @Ajaychat3

Edit: I’ve opened a PR to fix it here: [https://github.com/JuliaPlots/Plots.jl/pull/2186](https://github.com/JuliaPlots/Plots.jl/pull/2186)

Waiting to merge it till I can figure out how to add some tests.
