Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#6082 closed defect (fixed)

FMU with CVODE without states failes

Reported by: Andreas Heuermann Owned by: Andreas Heuermann
Priority: critical Milestone: 1.16.0
Component: FMI Version: v1.16.0-dev
Keywords: fmi, cvode Cc:

Description

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)

comment:1 by Andreas Heuermann, 4 years ago

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.

comment:3 by Andreas Heuermann, 4 years ago

Resolution: fixed
Status: newclosed

comment:4 by Francesco Casella, 4 years ago

Milestone: 1.16.11.16.0
Note: See TracTickets for help on using tickets.