Opened 6 years ago
Closed 6 years ago
#5228 closed defect (fixed)
OMSimulator cannot simulate two connected FMUs exported from OMEdit
Reported by: | Owned by: | Lennart Ochel | |
---|---|---|---|
Priority: | high | Milestone: | 1.14.0 |
Component: | Backend | Version: | v1.13.0-dev-nightly |
Keywords: | Cc: |
Description
OMEdit v1.13.0-dev-253-g8f7c38ac (64-bit)
OMSimulator v2.0.0-dev-860-gf06327c-mingw
Steps to reproduce:
- Open OMEdit.
- Load
OneDirection.mo
- Export model Source
- Export model Target
- Put the generated
OneDirection.Source.fmu
andOneDirection.Target.fmu
into a folder withone-direction.lua
- Run OMSimulator on
one-direction.lua
Result:
C:\Users\nboldi\Desktop\teszt>C:\OpenModelica1.13.0-dev-64bit\bin\OMSimulator.exe one-direction.lua error: [addConnection] [oms2::FMICompositeModel::addConnection] failed for Source:h -> Target:d # FMI composite model "model" ## FMI sub model "Source" type: FMU ## FMI sub model "Target" type: FMU ## Connections warning: No solver instance is assigned to FMU "Source"; A default solver will be selected: euler warning: No solver instance is assigned to FMU "Target"; A default solver will be selected: euler
Attachments (2)
Change History (5)
by , 6 years ago
Attachment: | one-direction.lua added |
---|
by , 6 years ago
Attachment: | OneDirection.mo added |
---|
comment:1 by , 6 years ago
Component: | OMSimulator → Backend |
---|
comment:2 by , 6 years ago
Milestone: | Future → 1.14.0 |
---|---|
Status: | new → accepted |
comment:3 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Outputs will no longer be renamed; see OMCompiler#2899.
Note:
See TracTickets
for help on using tickets.
The issue is introduced by the OpenModelica backend which renames outputs if they are also continuous states: The output appears as
_D_outputStateAlias_h
.So this works from the Lua script: