You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a (2.0, ME) FMU that doesn't have any state variables. It seems that FMI.jl is not catching these and calls the ODE solver on an empty array of states which results in a crash.
How to reproduce
mwe.mo
model MweReal x;
Real y;
equation1= x^2+ y*time;
0= x + y^2;
end Mwe;
Create 2.0 ModelExchange FMU with e.g. OpenModelica.
Windows FMU (remove the .zip part): Mwe.fmu.zip
Ubuntu Focal FMU: Mwe.fmu.zip
Didn't know that this is even possible :-D
In this case we should use a custom "simulation" loop without ODE-solver I guess?
So basically a loop over time that only sets FMU inputs and retrieves values of interest?
Best regards!
This is not as trivial as I thought, because events must be handled correctly. Because we have no ODE, we can't use a ODE-solver and therefore we can't use the callbacks from DiffEqCallbacks.jl for event handling...
Description
I have a (2.0, ME) FMU that doesn't have any state variables. It seems that FMI.jl is not catching these and calls the ODE solver on an empty array of states which results in a crash.
How to reproduce
mwe.mo
Create 2.0 ModelExchange FMU with e.g. OpenModelica.
Windows FMU (remove the .zip part): Mwe.fmu.zip
Ubuntu Focal FMU: Mwe.fmu.zip
Versions
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, cascadelake)
The text was updated successfully, but these errors were encountered: