When I run the following script Tethers.jl/src/Tether_06c.jl at main · ufechner7/Tethers.jl · GitHub on Windows with continues callbacks using the FBDF solver I get the following error:
4
┌ Warning: `ODESystem(args...; kwargs...)` is deprecated. Use `System(args...; kwargs...) instead`.
│ caller = ip:0x0
└ @ Core :-1
Tether_06c: Error During Test at D:\a\Tethers.jl\Tethers.jl\test\runtests.jl:5
Got exception outside of a @test
Current interpolant only works between tprev and t
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:44
[2] _change_t_via_interpolation!(integrator::OrdinaryDiffEqCore.ODEIntegrator{FBDF{5, 1, ADTypes.AutoForwardDiff{1, ForwardDiff.Tag{DiffEqBase.OrdinaryDiffEqTag, Float64}}, Nothing, NLNewton{Rational{Int64}, Rational{Int64}, Rational{Int64}, Nothing}, typeof(OrdinaryDiffEqCore.DEFAULT_PRECS), Val{:forward}(), true, nothing, Nothing, Nothing, typeof(OrdinaryDiffEqCore.trivial_limiter!)}, true, Vector{Float64}, Nothing, Float64, MTKParameters{Vector{Float64}, Vector{Float64}, Tuple{}, Tuple{}, Tuple{}, Tuple{}}, Float64, Float64, Float64, Float64, Vector{Vector{Float64}}, ODESolution{Float64, 2, Vector{Vector{Float64}}, Nothing, Nothing, Vector{Float64}, Vector{Vector{Vector{Float64}}}, Nothing, ODEProblem{Vector{Float64}, Tuple{Float64, Float64}, true, MTKParameters{Vector{Float64}, Vector{Float64}, Tuple{}, Tuple{}, Tuple{}, Tuple{}}, ODEFunction{true, SciMLBase.AutoSpecialize, FunctionWrappersWrappers.
...
Is that a bug in the solver or in my code? It works fine on Linux and Mac, it also works fine without the callbacks.
My current workaround: Use the KenCarp4(autodiff=false) solver. But it is much slower.