Opened 5 years ago
Last modified 4 years ago
#5581 new defect
FMU - ME accuracy — at Version 2
Reported by: | massimo ceraolo | Owned by: | Lennart Ochel |
---|---|---|---|
Priority: | blocker | Milestone: | 2.0.0 |
Component: | FMI | Version: | v1.14.0-dev-nightly |
Keywords: | Cc: | Andreas Heuermann |
Description (last modified by )
I'm not aware of possible reasons for which a simulation containing a FMU-ME created form a Modelica source should behave differently from a full-modelica simulation. Indeed I expect, at least in the simplest cases, perfect matching.
Consider the enclosed package fbSystemTest.mo. It contains:
- fbSystem, a simple modelica model of a system to regulate the speed of the rotating inertia inertia1
- fbSybSysDX, a part of fbSystem, with is used to create the enclosed fbSystemPkg.fbSubSysDX.fmu
- fbSystemFMU, which corresponds to fbSystem, but contains the created fmu.
In principle the rotational speed of inertia1 should be the same when simulating fbSystem and fbSystemFMU. However, when everything is done with OpenModelica, significant differences are shown.
Note that if I use the same package fbSystemTest.mo to compare the two simulations, but do everything (including the fmu creation) with Dymola, no difference between the two simulations is shown. The values appear to be exactly the same, up to the last digit shown with numerical cursor.
These two behaviours can be checked looking at the enclosed "FMU issue.pdf", which compares plots from Dymola and from OM.
So I suppose there is a bug that causes the OM simulations not to have exactly the same values.
Change History (5)
by , 5 years ago
Attachment: | FMU issue.pdf added |
---|
by , 5 years ago
Attachment: | fbSystemTest.mo added |
---|
by , 5 years ago
Attachment: | fbSystemPkg.fbSubSysDX.fmu added |
---|
comment:1 by , 5 years ago
Priority: | high → blocker |
---|
comment:2 by , 5 years ago
Description: | modified (diff) |
---|