Describe the bug π
Interpolation from DataInterpolations.jl inside ODE errors, causing gradient call to fail.
Expected behavior
The interpolation is successful and the ODE gradient is returned as expected.
Minimal Reproducible Example π
Without MRE, we would only be able to help you to a limited extent, and attention to the issue would be limited. to know more about MRE refer to wikipedia and stackoverflow.
using OrdinaryDiffEq, DataInterpolations, Reactant, SciMLSensitivity, Zygote
interp = LinearInterpolation([0.0, 1.0], [0.0, 1.0])
function myode!(du, u, p, t)
#not sure why allowscalar is needed here since it's not in my bigger code
#but I've added it here to obtain the same error.
@allowscalar du[1] = p[1]*interp(t) - u[1]
end
prob = ODEProblem(myode!, [0.0], (0.0,1.0), [1.0]);
sol = solve(prob,TRBDF2(), sensealg=GaussAdjoint(autojacvec=ReactantVJP()), saveat=0.1);
function loss(params)
newprob = remake(prob, p=params)
newsol = solve(newprob, TRBDF2(), sensealg=GaussAdjoint(autojacvec=ReactantVJP()), saveat=0.1)
sum(Array(newsol))
end
@time loss([1.0]) #works fine
@time Zygote.gradient(loss, [1.0]) #gives error
Error & Stacktrace β οΈ
ERROR: TypeError: non-boolean (Reactant.TracedRNumber{Bool}) used in boolean context
Stacktrace:
[1] _interpolate
@ C:\Users\johnb\.julia\packages\DataInterpolations\j0nfa\src\interpolation_methods.jl:2
[2] call_with_reactant(::Reactant.EnsureReturnType{β¦}, ::typeof(DataInterpolations._interpolate), ::LinearInterpolation{β¦}, ::Reactant.TracedRNumber{β¦})
@ Reactant C:\Users\johnb\.julia\packages\Reactant\H58gu\src\utils.jl:1195
--- the above 1 lines are repeated 1 more time ---
[4] macro expansion
@ C:\Users\johnb\.julia\packages\GPUArraysCore\aNaXo\src\GPUArraysCore.jl:206 [inlined]
[5] myode!
@ .\Untitled-3:7
[6] call_with_reactant(::Reactant.EnsureReturnType{β¦}, ::typeof(myode!), ::Reactant.TracedRArray{β¦}, ::Reactant.TracedRArray{β¦}, ::Reactant.TracedRArray{β¦}, ::Reactant.TracedRNumber{β¦})
@ Reactant C:\Users\johnb\.julia\packages\Reactant\H58gu\src\utils.jl:1195
--- the above 1 lines are repeated 4 more times ---
[11] make_mlir_fn(f::typeof(Reactant.apply), args::Tuple{β¦}, kwargs::Tuple{}, name::String, concretein::Bool; toscalar::Bool, return_dialect::Symbol, args_in_result::Symbol, construct_function_without_args::Bool, do_transpose::Bool, within_autodiff::Bool, input_shardings::Nothing, output_shardings::Nothing, runtime::Nothing, verify_arg_names::Nothing, argprefix::Symbol, resprefix::Symbol, resargprefix::Symbol, num_replicas::Int64, optimize_then_pad::Bool)
@ Reactant.TracedUtils C:\Users\johnb\.julia\packages\Reactant\H58gu\src\TracedUtils.jl:370
[12] make_mlir_fn
@ C:\Users\johnb\.julia\packages\Reactant\H58gu\src\TracedUtils.jl:299 [inlined]
[13] #make_mlir_fn#7
@ C:\Users\johnb\.julia\packages\Reactant\H58gu\src\TracedUtils.jl:322 [inlined]
[14] make_mlir_fn
@ C:\Users\johnb\.julia\packages\Reactant\H58gu\src\TracedUtils.jl:299 [inlined]
[15] overload_autodiff
@ C:\Users\johnb\.julia\packages\Reactant\H58gu\src\Enzyme.jl:332
[16] call_with_reactant(::Reactant.EnsureReturnType{β¦}, ::typeof(Reactant.overload_autodiff), ::EnzymeCore.ReverseMode{β¦}, ::EnzymeCore.Duplicated{β¦}, ::Type{β¦}, ::EnzymeCore.Duplicated{β¦}, ::EnzymeCore.Duplicated{β¦}, ::EnzymeCore.Duplicated{β¦}, ::EnzymeCore.Const{β¦})
@ Reactant C:\Users\johnb\.julia\packages\Reactant\H58gu\src\utils.jl:1195
[17] #autodiff
@ C:\Users\johnb\.julia\packages\Reactant\H58gu\src\Overlay.jl:74
[18] #1
@ C:\Users\johnb\.julia\packages\SciMLSensitivity\8ysVK\ext\SciMLSensitivityReactantExt.jl:44
[19] call_with_reactant(::Reactant.EnsureReturnType{β¦}, ::SciMLSensitivityReactantExt.var"#1#3"{β¦}, ::Reactant.TracedRArray{β¦}, ::Reactant.TracedRArray{β¦}, ::Reactant.TracedRArray{β¦}, ::Reactant.TracedRNumber{β¦}, ::Reactant.TracedRArray{β¦})
@ Reactant C:\Users\johnb\.julia\packages\Reactant\H58gu\src\utils.jl:1195
--- the above 1 lines are repeated 2 more times ---
[22] make_mlir_fn(f::typeof(Reactant.apply), args::Tuple{β¦}, kwargs::Tuple{}, name::String, concretein::Bool; toscalar::Bool, return_dialect::Symbol, args_in_result::Symbol, construct_function_without_args::Bool, do_transpose::Bool, within_autodiff::Bool, input_shardings::Nothing, output_shardings::Nothing, runtime::Val{β¦}, verify_arg_names::Nothing, argprefix::Symbol, resprefix::Symbol, resargprefix::Symbol, num_replicas::Int64, optimize_then_pad::Bool)
@ Reactant.TracedUtils C:\Users\johnb\.julia\packages\Reactant\H58gu\src\TracedUtils.jl:370
[23] make_mlir_fn
@ C:\Users\johnb\.julia\packages\Reactant\H58gu\src\TracedUtils.jl:299 [inlined]
[24] #make_mlir_fn#7
@ C:\Users\johnb\.julia\packages\Reactant\H58gu\src\TracedUtils.jl:322 [inlined]
[25] make_mlir_fn
@ C:\Users\johnb\.julia\packages\Reactant\H58gu\src\TracedUtils.jl:299 [inlined]
[26] compile_mlir!(mod::Reactant.MLIR.IR.Module, f::SciMLSensitivityReactantExt.var"#1#3"{β¦}, args::Tuple{β¦}, compile_options::CompileOptions, debugcache::Vector{β¦}, callcache::Dict{β¦}, sdycache::Dict{β¦}, sdygroupidcache::Tuple{β¦}; fn_kwargs::Tuple{}, backend::String, runtime::Val{β¦}, legalize_stablehlo_to_mhlo::Bool, client::Reactant.XLA.PJRT.Client, kwargs::@Kwargs{})
@ Reactant.Compiler C:\Users\johnb\.julia\packages\Reactant\H58gu\src\Compiler.jl:1256
[27] compile_mlir!
@ C:\Users\johnb\.julia\packages\Reactant\H58gu\src\Compiler.jl:1215 [inlined]
[28] compile_xla(ctx::Reactant.MLIR.IR.Context, f::Function, args::Tuple{β¦}; before_xla_optimizations::Bool, client::Nothing, serializable::Bool, kwargs::@Kwargs{β¦})
@ Reactant.Compiler C:\Users\johnb\.julia\packages\Reactant\H58gu\src\Compiler.jl:3470
[29] compile_xla
@ C:\Users\johnb\.julia\packages\Reactant\H58gu\src\Compiler.jl:3445 [inlined]
[30] compile(ctx::Reactant.MLIR.IR.Context, f::Function, args::Tuple{β¦}; kwargs::@Kwargs{})
@ Reactant.Compiler C:\Users\johnb\.julia\packages\Reactant\H58gu\src\Compiler.jl:3566
[31] compile
@ C:\Users\johnb\.julia\packages\Reactant\H58gu\src\Compiler.jl:3563 [inlined]
[32] macro expansion
@ C:\Users\johnb\.julia\packages\Reactant\H58gu\src\Compiler.jl:3559 [inlined]
[33] macro expansion
@ C:\Users\johnb\.julia\packages\LLVM\fEIbx\src\base.jl:97 [inlined]
[34] compile(f::Function, args::Tuple{β¦}; kwargs::@Kwargs{})
@ Reactant.Compiler C:\Users\johnb\.julia\packages\Reactant\H58gu\src\Compiler.jl:3558
[35] compile
@ C:\Users\johnb\.julia\packages\Reactant\H58gu\src\Compiler.jl:3557 [inlined]
[36] _reactant_compile(kernel::Function, args::Tuple{β¦}, allow_scalar::Bool)
@ SciMLSensitivityReactantExt C:\Users\johnb\.julia\packages\SciMLSensitivity\8ysVK\ext\SciMLSensitivityReactantExt.jl:21
[37] _compile_float_kernel(raw_f::ODEFunction{β¦}, iip::Bool, vjp::ReactantVJP, y::Vector{β¦}, p::Vector{β¦}, t_val::Float64)
@ SciMLSensitivityReactantExt C:\Users\johnb\.julia\packages\SciMLSensitivity\8ysVK\ext\SciMLSensitivityReactantExt.jl:150
[38] get_paramjac_config(::SciMLSensitivity.ReactantLoaded, vjp::ReactantVJP, pf::Function, p::Vector{β¦}, f::ODEFunction{β¦}, y::Vector{β¦}, _t::Float64; numindvar::Nothing, alg::Nothing)
@ SciMLSensitivityReactantExt C:\Users\johnb\.julia\packages\SciMLSensitivity\8ysVK\ext\SciMLSensitivityReactantExt.jl:187
[39] get_paramjac_config
@ C:\Users\johnb\.julia\packages\SciMLSensitivity\8ysVK\ext\SciMLSensitivityReactantExt.jl:173 [inlined]
[40] SciMLSensitivity.GaussIntegrand(sol::ODESolution{β¦}, sensealg::GaussAdjoint{β¦}, checkpoints::Vector{β¦}, dgdp::Nothing)
@ SciMLSensitivity C:\Users\johnb\.julia\packages\SciMLSensitivity\8ysVK\src\gauss_adjoint.jl:541
[41] _adjoint_sensitivities(sol::ODESolution{β¦}, sensealg::GaussAdjoint{β¦}, alg::TRBDF2{β¦}; t::StepRangeLen{β¦}, dgdu_discrete::Function, dgdp_discrete::Nothing, dgdu_continuous::Nothing, dgdp_continuous::Nothing, g::Nothing, abstol::Float64, reltol::Float64, checkpoints::Vector{β¦}, corfunc_analytical::Bool, callback::Nothing, no_start::Bool, kwargs::@Kwargs{β¦})
@ SciMLSensitivity C:\Users\johnb\.julia\packages\SciMLSensitivity\8ysVK\src\gauss_adjoint.jl:730
[42] _adjoint_sensitivities
@ C:\Users\johnb\.julia\packages\SciMLSensitivity\8ysVK\src\gauss_adjoint.jl:690 [inlined]
[43] #adjoint_sensitivities#69
@ C:\Users\johnb\.julia\packages\SciMLSensitivity\8ysVK\src\sensitivity_interface.jl:420 [inlined]
[44] (::SciMLSensitivity.var"#adjoint_sensitivity_backpass#333"{β¦})(Ξ::ODESolution{β¦})
@ SciMLSensitivity C:\Users\johnb\.julia\packages\SciMLSensitivity\8ysVK\src\concrete_solve.jl:968
[45] ZBack
@ C:\Users\johnb\.julia\packages\Zygote\55SqB\src\compiler\chainrules.jl:222 [inlined]
[46] (::Zygote.var"#kw_zpullback#58"{β¦})(dy::ODESolution{β¦})
@ Zygote C:\Users\johnb\.julia\packages\Zygote\55SqB\src\compiler\chainrules.jl:248
[47] #305
@ C:\Users\johnb\.julia\packages\Zygote\55SqB\src\lib\lib.jl:214 [inlined]
[48] (::Zygote.var"#2189#back#307"{β¦})(Ξ::ODESolution{β¦})
@ Zygote C:\Users\johnb\.julia\packages\ZygoteRules\CkVIK\src\adjoint.jl:72
[49] #solve#37
@ C:\Users\johnb\.julia\packages\DiffEqBase\3Bxly\src\solve.jl:603 [inlined]
[50] (::Zygote.Pullback{β¦})(Ξ::ODESolution{β¦})
@ Zygote C:\Users\johnb\.julia\packages\Zygote\55SqB\src\compiler\interface2.jl:0
[51] #305
@ C:\Users\johnb\.julia\packages\Zygote\55SqB\src\lib\lib.jl:214 [inlined]
[52] (::Zygote.var"#2189#back#307"{β¦})(Ξ::ODESolution{β¦})
@ Zygote C:\Users\johnb\.julia\packages\ZygoteRules\CkVIK\src\adjoint.jl:72
[53] solve
@ C:\Users\johnb\.julia\packages\DiffEqBase\3Bxly\src\solve.jl:591 [inlined]
[54] (::Zygote.Pullback{β¦})(Ξ::ODESolution{β¦})
@ Zygote C:\Users\johnb\.julia\packages\Zygote\55SqB\src\compiler\interface2.jl:0
[55] loss
@ .\Untitled-3:15 [inlined]
[56] (::Zygote.Pullback{Tuple{β¦}, Tuple{β¦}})(Ξ::Float64)
@ Zygote C:\Users\johnb\.julia\packages\Zygote\55SqB\src\compiler\interface2.jl:0
[57] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{β¦}, Tuple{β¦}}})(Ξ::Float64)
@ Zygote C:\Users\johnb\.julia\packages\Zygote\55SqB\src\compiler\interface.jl:97
[58] gradient(f::Function, args::Vector{Float64})
@ Zygote C:\Users\johnb\.julia\packages\Zygote\55SqB\src\compiler\interface.jl:154
[59] macro expansion
@ .\timing.jl:581 [inlined]
Some type information was truncated. Use `show(err)` to see complete types.
Environment (please complete the following information):
- Output of
using Pkg; Pkg.status()
[82cc6244] DataInterpolations v8.10.0
[1dea7af3] OrdinaryDiffEq v6.111.0
[3c362404] Reactant v0.2.252
[1ed8b502] SciMLSensitivity v7.104.0
[e88e6eb3] Zygote v0.7.10
- Output of
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
[47edcb42] ADTypes v1.21.0
[621f4979] AbstractFFTs v1.5.0
[7d9f7c33] Accessors v0.1.44
[79e6a3ab] Adapt v4.5.2
[66dad0bd] AliasTables v1.1.3
[4fba245c] ArrayInterface v7.23.0
[a9b6321e] Atomix v1.1.3
[ab4f0b2a] BFloat16s v0.6.1
[d1d4a3ce] BitFlags v0.1.9
[62783981] BitTwiddlingConvenienceFunctions v0.1.6
[70df07ce] BracketingNonlinearSolve v1.12.1
[e1450e63] BufferedStreams v1.2.2
[fa961155] CEnum v0.5.0
[2a0fbf3d] CPUSummary v0.2.7
[7057c7e9] Cassette v0.3.14
[082447d4] ChainRules v1.73.0
[d360d2e6] ChainRulesCore v1.26.1
[fb6a15b2] CloseOpenIntervals v0.1.13
[944b1d66] CodecZlib v0.7.8
[38540f10] CommonSolve v0.2.6
[bbf7d656] CommonSubexpressions v0.3.1
[f70d9fcc] CommonWorldInvalidations v1.0.0
[34da2185] Compat v4.18.1
[a33af91c] CompositionsBase v0.1.2
[2569d6c7] ConcreteStructs v0.2.3
[f0e56b4a] ConcurrentUtilities v2.5.1
[187b0558] ConstructionBase v1.6.0
[adafc99b] CpuId v0.3.1
[a8cc5b0e] Crayons v4.1.1
[9a962f9c] DataAPI v1.16.0
[82cc6244] DataInterpolations v8.10.0
[864edb3b] DataStructures v0.19.4
[e2d170a0] DataValueInterfaces v1.0.0
[2b5f629d] DiffEqBase v6.216.0
[459566f4] DiffEqCallbacks v4.14.0
[77a26b50] DiffEqNoiseProcess v5.29.0
[163ba53b] DiffResults v1.1.0
[b552c78f] DiffRules v1.15.1
[a0c0ee7d] DifferentiationInterface v0.7.16
[31c24e10] Distributions v0.25.124
[ffbed154] DocStringExtensions v0.9.5
[4e289a0a] EnumX v1.0.7
[7da242da] Enzyme v0.13.138
[f151be2c] EnzymeCore v0.8.19
[460bff9d] ExceptionUnwrapping v0.1.11
[d4d017d3] ExponentialUtilities v1.30.0
[e2ba6199] ExprTools v0.1.10
[21656369] ExpressionExplorer v1.1.4
[55351af7] ExproniconLite v0.10.14
[7034ab61] FastBroadcast v1.3.1
[9aa1b823] FastClosures v0.3.2
[442a2c76] FastGaussQuadrature v1.1.0
[a4df4552] FastPower v1.3.1
[1a297f60] FillArrays v1.16.0
[64ca27bc] FindFirstFunctions v1.8.0
[6a86dc24] FiniteDiff v2.29.0
[f6369f11] ForwardDiff v1.3.3
[f62d2435] FunctionProperties v0.1.2
[069b7b12] FunctionWrappers v1.1.3
[77dc65aa] FunctionWrappersWrappers v1.4.0
[d9f16b24] Functors v0.5.2
[46192b85] GPUArraysCore v0.2.0
[61eb1bfa] GPUCompiler v1.9.1
[c145ed77] GenericSchur v0.5.6
[cd3eb016] HTTP v1.11.0
[076d061b] HashArrayMappedTries v0.2.0
[34004b35] HypergeometricFunctions v0.3.28
[7869d1d1] IRTools v0.4.15
[615f187c] IfElse v0.1.1
[3587e190] InverseFunctions v0.1.17
[92d709cd] IrrationalConstants v0.2.6
[82899510] IteratorInterfaceExtensions v1.0.0
[692b3bcd] JLLWrappers v1.7.1
[682c06a0] JSON v1.5.0
[ae98c720] Jieko v0.2.1
[63c18a36] KernelAbstractions v0.9.41
[ba0b0d4f] Krylov v0.10.6
[929cbde3] LLVM v9.4.6
[b964fa9f] LaTeXStrings v1.4.0
[10f19ff3] LayoutPointers v0.1.17
[87fe0de2] LineSearch v0.1.7
[d3d80556] LineSearches v7.6.1
[7ed4a6bd] LinearSolve v3.75.0
[2ab3a3ac] LogExpFunctions v0.3.29
[e6f89c97] LoggingExtras v1.2.0
[1914dd2f] MacroTools v0.5.16
[d125e4d3] ManualMemory v0.1.8
[bb5d69b7] MaybeInplace v0.1.4
[739be429] MbedTLS v1.1.10
[e1d29d7a] Missings v1.2.0
[2e0e35c7] Moshi v0.3.7
[46d2c3a1] MuladdMacro v0.2.4
[d41bc354] NLSolversBase v8.0.0
[872c559c] NNlib v0.9.34
[77ba4419] NaNMath v1.1.3
[8913a72c] NonlinearSolve v4.17.1
[be0214bd] NonlinearSolveBase v2.24.0
[5959db7a] NonlinearSolveFirstOrder v2.1.1
[9a2c21bd] NonlinearSolveQuasiNewton v1.13.1
[26075421] NonlinearSolveSpectralMethods v1.7.1
[d8793406] ObjectFile v0.5.0
[4d8831e6] OpenSSL v1.6.1
[3bd65402] Optimisers v0.4.7
[bac558e1] OrderedCollections v1.8.1
[1dea7af3] OrdinaryDiffEq v6.111.0
[89bda076] OrdinaryDiffEqAdamsBashforthMoulton v1.11.0
[6ad6398a] OrdinaryDiffEqBDF v1.26.0
[bbf590c4] OrdinaryDiffEqCore v3.31.0
[50262376] OrdinaryDiffEqDefault v1.14.0
[4302a76b] OrdinaryDiffEqDifferentiation v2.9.0
[9286f039] OrdinaryDiffEqExplicitRK v1.12.0
[e0540318] OrdinaryDiffEqExponentialRK v1.15.0
[becaefa8] OrdinaryDiffEqExtrapolation v1.18.0
[5960d6e9] OrdinaryDiffEqFIRK v1.26.0
[101fe9f7] OrdinaryDiffEqFeagin v1.10.0
[d3585ca7] OrdinaryDiffEqFunctionMap v1.11.0
[d28bc4f8] OrdinaryDiffEqHighOrderRK v1.12.0
[9f002381] OrdinaryDiffEqIMEXMultistep v1.14.0
[521117fe] OrdinaryDiffEqLinear v1.12.0
[1344f307] OrdinaryDiffEqLowOrderRK v1.13.0
[b0944070] OrdinaryDiffEqLowStorageRK v1.15.0
[127b3ac7] OrdinaryDiffEqNonlinearSolve v1.28.0
[c9986a66] OrdinaryDiffEqNordsieck v1.11.0
[5dd0a6cf] OrdinaryDiffEqPDIRK v1.14.0
[5b33eab2] OrdinaryDiffEqPRK v1.10.0
[04162be5] OrdinaryDiffEqQPRK v1.10.0
[af6ede74] OrdinaryDiffEqRKN v1.12.0
[43230ef6] OrdinaryDiffEqRosenbrock v1.31.0
[2d112036] OrdinaryDiffEqSDIRK v1.14.0
[669c94d9] OrdinaryDiffEqSSPRK v1.14.0
[e3e12d00] OrdinaryDiffEqStabilizedIRK v1.14.0
[358294b1] OrdinaryDiffEqStabilizedRK v1.11.0
[fa646aed] OrdinaryDiffEqSymplecticRK v1.13.0
[b1df2697] OrdinaryDiffEqTsit5 v1.12.0
[79d7bb75] OrdinaryDiffEqVerner v1.14.0
[90014a1f] PDMats v0.11.37
[69de0a69] Parsers v2.8.3
[e409e4f3] PoissonRandom v0.4.7
[f517fe37] Polyester v0.7.19
[1d0040c9] PolyesterWeave v0.2.2
[d236fae5] PreallocationTools v1.2.0
β
[aea7be01] PrecompileTools v1.2.1
[21216c6a] Preferences v1.5.2
[08abe8d2] PrettyTables v3.3.2
[3349acd9] ProtoBuf v1.3.0
[43287f4e] PtrArrays v1.4.0
[1fd47b50] QuadGK v2.11.3
[e6cf234a] RandomNumbers v1.6.0
[3c362404] Reactant v0.2.252
[a3311ec8] ReactantCore v0.1.19
[c1ae055f] RealDot v0.1.0
[3cdcf5f2] RecipesBase v1.3.4
β
[731186ca] RecursiveArrayTools v3.54.0
[189a3867] Reexport v1.2.2
[ae029012] Requires v1.3.1
[ae5879a3] ResettableStacks v1.2.0
[37e2e3b7] ReverseDiff v1.16.2
[79098fc4] Rmath v0.9.0
[7e49a35a] RuntimeGeneratedFunctions v0.5.18
[94e857df] SIMDTypes v0.1.0
β
[0bca4576] SciMLBase v2.155.0
[19f34311] SciMLJacobianOperators v0.1.13
[a6db7da4] SciMLLogging v1.9.1
[c0aeaf25] SciMLOperators v1.16.0
[431bcebd] SciMLPublic v1.0.1
[1ed8b502] SciMLSensitivity v7.104.0
[53ae85a6] SciMLStructures v1.10.0
[7e506255] ScopedValues v1.6.0
[6c6a2e73] Scratch v1.3.0
[efcf1570] Setfield v1.1.2
[777ac1f9] SimpleBufferStream v1.2.0
[727e6d20] SimpleNonlinearSolve v2.11.1
[a2af1166] SortingAlgorithms v1.2.2
[dc90abb0] SparseInverseSubset v0.1.2
[0a514795] SparseMatrixColorings v0.4.26
[276daf66] SpecialFunctions v2.7.2
[860ef19b] StableRNGs v1.0.4
[aedffcd0] Static v1.3.1
[0d7ed370] StaticArrayInterface v1.9.0
[90137ffa] StaticArrays v1.9.18
[1e83bf80] StaticArraysCore v1.4.4
[10745b16] Statistics v1.11.1
[82ae8749] StatsAPI v1.8.0
[2913bbd2] StatsBase v0.34.10
[4c63d2b9] StatsFuns v1.5.2
[7792a7ef] StrideArraysCore v0.5.8
[892a3eda] StringManipulation v0.4.4
[09ab397b] StructArrays v0.7.3
[53d494c1] StructIO v0.3.1
[ec057cc2] StructUtils v2.7.2
[2efcf032] SymbolicIndexingInterface v0.3.46
[3783bdb8] TableTraits v1.0.1
[bd369af6] Tables v1.12.1
[8290d209] ThreadingUtilities v0.5.5
[a759f4b9] TimerOutputs v0.5.29
[9f7883ad] Tracker v0.2.38
[e689c965] Tracy v0.1.6
[3bb67fe8] TranscodingStreams v0.11.3
[781d530d] TruncatedStacktraces v1.4.0
[5c2747f8] URIs v1.6.1
[013be700] UnsafeAtomics v0.3.1
[e88e6eb3] Zygote v0.7.10
[700de1a5] ZygoteRules v0.2.7
[7cc45869] Enzyme_jll v0.0.256+0
[1d5cc7b8] IntelOpenMP_jll v2025.2.0+0
[dad2f222] LLVMExtra_jll v0.0.38+0
[1d63c593] LLVMOpenMP_jll v18.1.8+0
[ad6e5548] LibTracyClient_jll v0.13.1+0
[856f044c] MKL_jll v2025.2.0+0
[458c3c95] OpenSSL_jll v3.5.6+0
[efe28fd5] OpenSpecFun_jll v0.5.6+0
β
[0192cb87] Reactant_jll v0.0.371+0
[f50d1b31] Rmath_jll v0.5.1+0
[1317d2d5] oneTBB_jll v2022.0.0+1
[0dad84c5] ArgTools v1.1.2
[56f22d72] Artifacts v1.11.0
[2a0f44e3] Base64 v1.11.0
[ade2ca70] Dates v1.11.0
[8ba89e20] Distributed v1.11.0
[f43a241f] Downloads v1.6.0
[7b1f6079] FileWatching v1.11.0
[9fa8497b] Future v1.11.0
[b77e0a4c] InteractiveUtils v1.11.0
[4af54fe1] LazyArtifacts v1.11.0
[b27032c2] LibCURL v0.6.4
[76f85450] LibGit2 v1.11.0
[8f399da3] Libdl v1.11.0
[37e2e46d] LinearAlgebra v1.11.0
[56ddb016] Logging v1.11.0
[d6f4376e] Markdown v1.11.0
[ca575930] NetworkOptions v1.2.0
[44cfe95a] Pkg v1.11.0
[de0858da] Printf v1.11.0
[3fa0cd96] REPL v1.11.0
[9a3f8284] Random v1.11.0
[ea8e919c] SHA v0.7.0
[9e88b42a] Serialization v1.11.0
[6462fe0b] Sockets v1.11.0
[2f01184e] SparseArrays v1.11.0
[f489334b] StyledStrings v1.11.0
[4607b0f0] SuiteSparse
[fa267f1f] TOML v1.0.3
[a4e569a6] Tar v1.10.0
[8dfed614] Test v1.11.0
[cf7118a7] UUIDs v1.11.0
[4ec0a83e] Unicode v1.11.0
[e66e0078] CompilerSupportLibraries_jll v1.1.1+0
[deac9b47] LibCURL_jll v8.6.0+0
[e37daf67] LibGit2_jll v1.7.2+0
[29816b5a] LibSSH2_jll v1.11.0+1
[c8ffd9c3] MbedTLS_jll v2.28.6+0
[14a3606d] MozillaCACerts_jll v2023.12.12
[4536629a] OpenBLAS_jll v0.3.27+1
[05823500] OpenLibm_jll v0.8.5+0
[bea87d4a] SuiteSparse_jll v7.7.0+0
[83775a58] Zlib_jll v1.2.13+1
[8e850b90] libblastrampoline_jll v5.11.0+0
[8e850ede] nghttp2_jll v1.59.0+0
[3f19e933] p7zip_jll v17.4.0+2
Julia Version 1.11.9
Commit 53a02c0720 (2026-02-06 00:27 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 24 Γ AMD Ryzen 9 9900X 12-Core Processor
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, generic)
Threads: 24 default, 0 interactive, 6 GC (on 24 virtual cores)
Environment:
JULIA_EDITOR = code
JULIA_VSCODE_REPL = 1
Additional context
Add any other context about the problem here.
Describe the bug π
Interpolation from DataInterpolations.jl inside ODE errors, causing gradient call to fail.
Expected behavior
The interpolation is successful and the ODE gradient is returned as expected.
Minimal Reproducible Example π
Without MRE, we would only be able to help you to a limited extent, and attention to the issue would be limited. to know more about MRE refer to wikipedia and stackoverflow.
Error & Stacktraceβ οΈ
Environment (please complete the following information):
using Pkg; Pkg.status()using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)versioninfo()Additional context
Add any other context about the problem here.