-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simulation aborts unstable solution #171
Comments
What solver is used? If you don't provide a specific solver, DifferentialEquations is using one based on a heuristic. Can you please check the simulation with a robust solver like e.g. CVODE_BDF from |
That's a good idea. I changed the solver to CVODE: using FMI
using DifferentialEquations
using Sundials
fmu = fmiLoad("ScalableTranslationStatistics.Examples.ScaledNLEquations.NLEquations_5.fmu")
simData = fmiSimulate(fmu, (0.0, 10.0); solver=CVODE_BDF, recordValues=["outputs[1]"]) Now the solver seems to be stuck. Even interrupting the Julia process (Ctrl+C) doesn't stop it 😆 I tried explicit Euler as well, but it got stuck as well. I can't see where the program is stuck. When using OMSimulator the ME FMU simulates in around 15 seconds. It uses CVODE as well.
@ThummeTo I can send you the Linux FMU if you want to investigate more. |
you can try of course you can also send me the FMU for debugging purpose. |
Well, that did something, but I'll send you the FMU via mail. julia> simData = fmiSimulate(fmu, (0.0, 10.0); showProgress=true, recordValues=["outputs[1]"])
ERROR: StackOverflowError:
Stacktrace:
[1] fmi2Simulate(::FMU2, ::Nothing, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Any, Tuple{Symbol, Symbol}, NamedTuple{(:showProgress, :recordValues), Tuple{Bool, Vector{String}}}}) (repeats 4799 times)
@ FMI ~/.julia/packages/FMI/C5VcZ/src/FMI2_comp_wraps.jl:17
[2] #fmiSimulate#158
@ ~/.julia/packages/FMI/C5VcZ/src/FMI.jl:527 [inlined]
[3] top-level scope
@ REPL[4]:1 |
i will approach the issue |
I have a model as a 2.0 ME FMU that I can't share here, but I could provide it via mail.
When simulating it with FMI.jl I'm getting an error from SciMLBase:
and the simulation is aborted, but without throwing an error / warning in FMI.jl.
In the previous version v0.10.2 of FMI.jl this example never finishes (at least I don't have enough patience to wait any longer). Probably the underlying issue just didn't throw an error in the older version of SciMLBase.
OMSimulator can handle this FMU.
Versions 'n stuff
The text was updated successfully, but these errors were encountered: