Catalyst tests are failing again, seems to be some new MTK issue related to remake:
using ModelingToolkit, OrdinaryDiffEq
using ModelingToolkit: t_nounits as t, D_nounits as D
# Make system.
@variables X(t) Y(t)
@parameters p d
eqs = [
D(X) ~ p - d*X,
D(Y) ~ p - d*Y
]
@mtkbuild osys = ODESystem(eqs, t)
# Make problem.
u0_vals = [X => 4, Y => 5.0]
tspan = (0.0, 10.0)
p_vals = [p => 1.0, d => 0.1]
oprob = ODEProblem(osys, u0_vals, tspan, p_vals)
# Attempt to `remake`.
rp = remake(oprob; u0 = [Y => 7])
gives
ERROR: Initialization incomplete. Not all of the state variables of the
DAE system can be determined by the initialization. Missing
variables:
Any[X(t)]
Some additional issues related to the latest MTK version have appeared as well, see SciML/Catalyst.jl#1159. But cannot make minimal examples for these until this one is solved.