Opened 6 years ago

Closed 6 years ago

#5218 closed defect (fixed)

Initialization issue with FMUs and C runtime

Reported by: Lennart Ochel Owned by: Lennart Ochel
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 (6)

comment:1 by Lennart Ochel, 6 years ago

Description: modified (diff)
Summary: Initialization of FMUsInitialization issue with FMUs and C runtime

comment:2 by Francesco Casella, 6 years ago

@lochel, do you think you can take care of this in time for the release of 1.13.0?

Thanks!

comment:3 by Lennart Ochel, 6 years ago

Milestone: 1.13.01.14.0

Milestone changed as discussed in today’s meeting.

comment:4 by Lennart Ochel, 6 years ago

Owner: set to Lennart Ochel
Status: newaccepted

comment:5 by Lennart Ochel, 6 years ago

Milestone: 1.14.01.13.1

comment:6 by Lennart Ochel, 6 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in OMCompiler#2856.

Note: See TracTickets for help on using tickets.