Opened 4 years ago

Last modified 4 years ago

#6258 closed defect

Workflow for FMU import in SSP not working — at Initial Version

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

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 qube with a small green error 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 (0)

Note: See TracTickets for help on using tickets.