I get a error when solving a differential equation with the DifferentialEquations
package. The error appear or not depending on the seed i’m specifying. I can’t understand from where this error come from, i’m not sure if it’s related to something i’m doing wrong or related to the package, and where i should post this issue.
ERROR: LoadError: Something went wrong. Integrator stepped past tstops but the algorithm was dtchangeable. Please report this error.
Stacktrace:
[1] handle_tstop!(::OrdinaryDiffEq.ODEIntegrator{OrdinaryDiffEq.Tsit5,Array{Float64,2},Float64,Tuple{Array{Float64,2},Array{Float64,2},Array{Float64,2},Int64,Int64,Array{Any,1},Array{Any,1},Array{Float64,1},Float64,Float64},Float64,Float64,Float64,Array{Array{Float64,2},1},DiffEqBase.ODESolution{Float64,3,Array{Array{Float64,2},1},Void,Void,Array{Float64,1},Array{Array{Array{Float64,2},1},1},DiffEqBase.ODEProblem{Array{Float64,2},Float64,true,Tuple{Array{Float64,2},Array{Float64,2},Array{Float64,2},Int64,Int64,Array{Any,1},Array{Any,1},Array{Float64,1},Float64,Float64},#water_heater_dyn_classique_2layers!,Void,Void,UniformScaling{Int64},DiffEqBase.StandardODEProblem},OrdinaryDiffEq.Tsit5,OrdinaryDiffEq.InterpolationData{#water_heater_dyn_classique_2layers!,Array{Array{Float64,2},1},Array{Float64,1},Array{Array{Array{Float64,2},1},1},OrdinaryDiffEq.Tsit5Cache{Array{Float64,2},Array{Float64,2},Array{Float64,2},Array{Float64,2},OrdinaryDiffEq.Tsit5ConstantCache{Float64,Float64}}}},#water_heater_dyn_classique_2layers!,Void,OrdinaryDiffEq.Tsit5Cache{Array{Float64,2},Array{Float64,2},Array{Float64,2},Array{Float64,2},OrdinaryDiffEq.Tsit5ConstantCache{Float64,Float64}},OrdinaryDiffEq.DEOptions{Float64,Float64,Float64,Float64,DiffEqBase.#ODE_DEFAULT_NORM,DiffEqBase.CallbackSet{Tuple{},Tuple{DiffEqBase.DiscreteCallback{#condition2#59,#affect2!#60{Array{Int64,1}},DiffEqBase.#INITIALIZE_DEFAULT},DiffEqBase.DiscreteCallback{#condition3#61,#affect3!#62,DiffEqBase.#INITIALIZE_DEFAULT},DiffEqBase.DiscreteCallback{#condition4#63{Float64},#affect4!#64,DiffEqBase.#INITIALIZE_DEFAULT},DiffEqBase.DiscreteCallback{#condition5#65{Float64},#affect5!#66,DiffEqBase.#INITIALIZE_DEFAULT},DiffEqBase.DiscreteCallback{#condition6#67{Float64},#affect6!#68,DiffEqBase.#INITIALIZE_DEFAULT},DiffEqBase.DiscreteCallback{#condition7#69{Float64},#affect7!#70,DiffEqBase.#INITIALIZE_DEFAULT},DiffEqBase.DiscreteCallback{DiffEqJump.DirectJumpAggregation{Float64,DiffEqJump.MassActionJump{Array{Float64,1},Array{Array{Pair{Int64,Float64},1},1},Array{Array{Pair{Int64,Float64},1},1}},Tuple{#rate#57{Array{Float64,2},Int64}},Tuple{#affect!#58{Int64}},RandomNumbers.Xorshifts.Xoroshiro128Star},DiffEqJump.DirectJumpAggregation{Float64,DiffEqJump.MassActionJump{Array{Float64,1},Array{Array{Pair{Int64,Float64},1},1},Array{Array{Pair{Int64,Float64},1},1}},Tuple{#rate#57{Array{Float64,2},Int64}},Tuple{#affect!#58{Int64}},RandomNumbers.Xorshifts.Xoroshiro128Star},DiffEqJump.DirectJumpAggregation{Float64,DiffEqJump.MassActionJump{Array{Float64,1},Array{Array{Pair{Int64,Float64},1},1},Array{Array{Pair{Int64,Float64},1},1}},Tuple{#rate#57{Array{Float64,2},Int64}},Tuple{#affect!#58{Int64}},RandomNumbers.Xorshifts.Xoroshiro128Star}}}},DiffEqBase.#ODE_DEFAULT_ISOUTOFDOMAIN,DiffEqBase.#ODE_DEFAULT_PROG_MESSAGE,DiffEqBase.#ODE_DEFAULT_UNSTABLE_CHECK,DataStructures.BinaryHeap{Float64,DataStructures.LessThan},DataStructures.BinaryHeap{Float64,DataStructures.LessThan},Void,Void,Int64,Array{Float64,1},Array{Float64,1},Array{Float64,1}},Array{Float64,2}}) at /home/piedmari/.julia/v0.6/OrdinaryDiffEq/src/integrators/integrator_utils.jl:417
Here is a example of a code where it happen : ERROR: LoadError: Something went wrong. Integrator stepped past tstops but the algorithm was dtchangeable. Please report this error. · GitHub
I’ve tried to kept it as simple as i could.