FMU with CVODE without states failes
FMUs simulating with CVODE can't handle systems with zero states:
loadString("
model InputValues
output Real v;
equation
when time >= 0.5 then
v = 1;
end when;
end InputValues;
"); getErrorString();
setCommandLineOptions("--fmiFlags=s:cvode"); getErrorString();
translateModelFMU(InputValues, version="2.0", fmuType="cs"); getErrorString();
system("OMSimulator InputValues.fmu"); getErrorString();
Change History
(4)
Resolution: |
→ fixed
|
Status: |
new → closed
|
Milestone: |
1.16.1 → 1.16.0
|
We need to do the same as in the C runtime. If no states are present just use Euler's method. There is nothing to happen any way.