Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » errachidi
  • » Profile

Posts

Posts

Hello, The generation of the fmi for co-simulation 2.0 is successful [1] . But when I try to import a file co-simulation 2.0 to OMEdit I get this error:[2]

[1] 12:09:03 Scripting Notification
The FMU Modelica.Blocks.Logical.Xor.fmu is generated at C:/Users/aer/AppData/Local/Temp/OpenModelica/OMEdit

[2] 13:50:28 Scripting Error
The FMU version is 2.0 and FMU type is CoSimulation. Unsupported FMU type. Only FMI 2.0 ModelExchange is supported.

Besides, I used a simple model (logical block XOR), generated by OMEdit ,with another tool. The importation was perfect but, in the simulation’s beginning, the simulation stops and displays this error:

https://www.openmodelica.org/images/agorapro/attachments/4887/mini_Error-OMEdit.png





Thank you so much ... it finally  works current/smile

Hello adrpo;
I think that I did all what you told me to do in your last message . But I get always the same error: I created the file translateMyFMU.mos . And when I tray to  run omc.exe I get this error :
C:\OpenModelica\build\bin\omc.exe translateMyFMU.mos
Error occurred building AST
Syntax Error
[<interactive>:1:2-1:2:writable] Error: Lexer failed to recognize '\OpenModeli'
The omc.exe is actually located in this directory : C:\OpenModelica1.9.4-dev\bin\omc.exe . I tried this command and I I got :
Error occurred building AST
Syntax Error
[<interactive>:1:4-1:4:writable] Error: Lexer failed to recognize '\OpenModeli'
[<interactive>:1:18-1:20:writable] Warning: Treating .9 as 0.9. This is not standard Modelica and only done for compatibility with old code. Support for this feature may be removed in the future.
[<interactive>:1:20-1:22:writable] Warning: Treating .4 as 0.4. This is not standard Modelica and only done for compatibility with old code. Support for this feature may be removed in the future.

What should I do ?

thank you for your help. I want to use  FMU with a logiciel that accepts only Co-Simulation 1.0 .
I wonder if there is a way to convert the cs2.0 to cs1.0 ?

Hello ; can we export a FMI for co-simulation 1.0 with OMEdit ?
Please It's urgent .
Thank you.

In fact, I need  FMI Co-Simulation 1.0 tool coupling, but I read in OpenModelica Users Guide that it still under development. I want to ensure that it works before starting the modeling of the process .
Thank you for your help.

Hello, does any one use the FMU package in OMEdit with hybrid system? I want to develop a system of control-command with ControlBuild but I have to use another tool to simulate the process, because my system is hybrid and complicated so that ControlBuild can't model it.Thus i wonder if OMEdit could be useful in this case

  • Index
  • » Users
  • » errachidi
  • » Profile
You are here: