Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#6082 closed defect (fixed)

FMU with CVODE without states failes

Reported by: AnHeuermann Owned by: AnHeuermann
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 Changed 4 years ago by AnHeuermann

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 Changed 4 years ago by AnHeuermann

  • Resolution set to fixed
  • Status changed from new to closed

comment:4 Changed 3 years ago by casella

  • Milestone changed from 1.16.1 to 1.16.0
Note: See TracTickets for help on using tickets.