Opened 4 years ago
Closed 4 years ago
#6258 closed defect (fixed)
Workflow for FMU import in SSP not working
Reported by: | Andreas Heuermann | Owned by: | Lennart Ochel |
---|---|---|---|
Priority: | blocker | Milestone: | 1.17.0 |
Component: | FMI | Version: | 1.16.0 |
Keywords: | OMEdit, FMI, SSP | Cc: | Adeel Asghar |
Description (last modified by )
I'm trying to export a model to FMU and import it back again in OMEdit by using SSP. When trying to simulate I will get multiple errors and the simulation is failing.
How to reproduce:
- Export a FMU for
Modelica.Electrical.Analog.Examples.CauerLowPassAnalog
[3] 12:50:14 Scripting Notification The FMU is generated at /tmp/OpenModelica_andreas/OMEdit/Modelica.Electrical.Analog.Examples.CauerLowPassAnalog/Modelica.Electrical.Analog.Examples.CauerLowPassAnalog.fmu.
- Create a new SSP model with:
SSP->New SSP model
. In the following dialog enter name:importMEFMU
, Root System Name: Root, Root System Type: Strongly Coupled and confirm with ok. - Enter the root model via the libraries browser with a double click.
- Click
Add SubModlue
(the icon with FMU and the green arrow on it), browse to your created FMU open it. - Confirm the Path and Name in the next dialog and click ok.
- Click
Instantiates the current SSP model
(the icon with the blue cube with a small green arrow on it). The view will change a bit and it is not possible to change anything any more. - Click
Simulate
(the icon with the big green arrow).
[3] 13:03:55 Scripting Error [fmi2logger] Modelica_Electrical_Analog_Examples_CauerLowPassAnalog (logStatusError): fmi2Terminate: Illegal call sequence. fmi2Terminate is not allowed in Initialization Mode state. [4] 13:03:55 Scripting Error [terminate] Termination of system "Modelica_Electrical_Analog_Examples_CauerLowPassAnalog" failed [5] 13:03:55 Scripting Error [terminate] Termination of system "importMEFMU.Root" failed [6] 13:03:55 Scripting Error [fmi2logger] Modelica_Electrical_Analog_Examples_CauerLowPassAnalog (logStatusError): fmi2ExitInitializationMode: Illegal call sequence. fmi2ExitInitializationMode is not allowed in Error state. [7] 13:03:55 Scripting Error [initialize] fmi2_import_exit_initialization_mode failed for FMU "importMEFMU.Root.Modelica_Electrical_Analog_Examples_CauerLowPassAnalog" [8] 13:03:55 Scripting Error [fmi2logger] Modelica_Electrical_Analog_Examples_CauerLowPassAnalog (logStatusError): fmi2Terminate: Illegal call sequence. fmi2Terminate is not allowed in Error state. [9] 13:03:55 Scripting Error [terminate] Termination of system "Modelica_Electrical_Analog_Examples_CauerLowPassAnalog" failed [10] 13:03:55 Scripting Error [terminate] Termination of system "importMEFMU.Root" failed [11] 13:03:55 Scripting Error [initialize] Initialization of system "importMEFMU.Root" failed [12] 13:03:55 Scripting Error [fmi2logger] Modelica_Electrical_Analog_Examples_CauerLowPassAnalog (logStatusError): fmi2Terminate: Illegal call sequence. fmi2Terminate is not allowed in Error state. [13] 13:03:55 Scripting Error [terminate] Termination of system "Modelica_Electrical_Analog_Examples_CauerLowPassAnalog" failed [14] 13:03:55 Scripting Error [terminate] Termination of system "importMEFMU.Root" failed
Note that I didn't hit Ctrl+S
yet and the model is not saved. Also I can't save it now.
So maybe I'm just missing one setting in the simulation setup, but now it isn't possible to change anything. I can't write in the SSP model, it's read-only.
Also I can't terminate the model initialization because this is failing as well. So my only option is to close OMEdit and lose all my work progress.
My OS: Ubuntu 20.04 in WSL2 on Windows 10. I'm using VcXsrv as an X-server to open OMEdit.
OpenModelica version: OMCompiler v1.17.0-dev.224+g780a680592
Change History (7)
comment:1 by , 4 years ago
comment:2 by , 4 years ago
Milestone: | NeedsInput → 1.17.0 |
---|---|
Priority: | high → blocker |
Using SSP shouldn't be frustrating...
comment:3 by , 4 years ago
I tried this again today and my error is apparently the step:
- Click Instantiates the current SSP model (the icon with the blue cube with a small green error on it). The view will change a bit and it is not possible to change anything any more.
If I don't press it it works.
comment:4 by , 4 years ago
Description: | modified (diff) |
---|
comment:5 by , 4 years ago
Description: | modified (diff) |
---|
comment:6 by , 4 years ago
Cc: | added |
---|
comment:7 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This is fixed; thanks @AnHeuermann and @adeas31!
The ssp file (copied to the clipboard because I can't save).