Opened 6 years ago

Last modified 6 years ago

#5218 closed defect

Initialization issue with FMUs and C runtime — at Version 1

Reported by: Lennart Ochel Owned by:
Priority: blocker Milestone: 1.13.1
Component: FMI Version: v1.13.0-dev-nightly
Keywords: Cc: Adrian Pop

Description (last modified by Lennart Ochel)

The following example can be used to reproduce an initialization issue with FMUs:

loadString("
model A
  output Real y = x;
  parameter Real x_start = 1.0;
protected
  Real x(start=x_start, fixed=true);
equation
  der(x) = time;
end A;"); getErrorString();

buildModelFMU(A, version="2.0", fmuType="me", platforms={"static"}); getErrorString();

State x is always initialized with 1.0, even if x_start is changed using the FMI interface.

This problem is only related to the C runtime. Everything works just fine with the Cpp runtime.

Change History (1)

comment:1 by Lennart Ochel, 6 years ago

Description: modified (diff)
Summary: Initialization of FMUsInitialization issue with FMUs and C runtime
Note: See TracTickets for help on using tickets.