Closed bradcarman closed 3 weeks ago
It appears that you have initialized your system incorrectly. If you tell it to initialize with BrownFullBasicInit()
it works. Specifically, the problem is that your u0 has u0[4]==-30556.685668435468
but for your algebraic equations to be satisfied at t=0, you need it to be 33.736511073364454
julia> sol_ṁ1 = solve(prob_ṁ1, FBDF(), initializealg=BrownFullBasicInit())
retcode: Success
Interpolation: 3rd order Hermite
t: 160-element Vector{Float64}:
Consider any case of initializealg=NoInit()
a user error. If you do not initialize the DAE properly, it will not necessarily be solvable!
The following model worked previously but is now failing to solve with message:
At t=0.0, dt was forced below floating point epsilon 5.0e-324, and step error estimate = 1.5295211089754415e8. Aborting.
Using non-adaptive
ImplicitEuler
gives the correct solution.