- Index
- » Users
- » Nouidui
- » Profile
Posts
Posts
Hello,
I am trying to test the OMSimulator master algorithm and started by running some of the OM examples.
Could someone please tell me how I could run
C:\OpenModelica1.12.0-32bit\OMTLMSimulator\CompositeModels\OmcOmcSignals.xml
from the command line?
I have tried
tlmmanager.exe OmcOmcSignals.xml
However, the simulation starts up but hangs after showing
Done StartTLMOpenModelica.bat
Done StartTLMOpenModelica.bat
I can run that example in OMEdit without any issues.
The error I also saw in OutputInput.simlog is
"[C:/OpenModelica1.12.0-32bit/OMTLMSimulator/CompositeModels/OmcOmcSignals/OutputInput/OutputInput.mo:2:3-3:113:writable] Error: Class TLM.TLM_Interface_Signal.TLMOutput not found in scope OutputInput.
Error: Error occurred while flattening model OutputInput
I am on a Windows machine and added C:/OpenModelica1.12.0-32bit//OMTLMSimulator/bin to my system path
to avoid having to give the full path of tlmmanager.exe.
Thanks!
Thierry
I am trying to build an FMU on Linux and always get
"Error: Error building simulator. Build log: Simulator_FMU.makefile:5: /usr/include/omc/c//Makefile.objs: No such file or directory
make: *** No rule to make target '/usr/include/omc/c//Makefile.objs'. Stop.
Any clue what this could be?
Thanks!
Thierry
Thank you.
Hi,
I hope I haven't missed a thread discussing the issue I am encountering.
I have a Modelica model which uses an external C function defined as
Code:
external "C" modelicaToSimulator(moduleName,
functionName)
annotation (Library={"SimulatorToFMUPython35"},
LibraryDirectory={"modelica://SimulatorToFMU.Resources/Library"},
IncludeDirectory="modelica://SimulatorToFMU.Resources/C-Sources",
Include="#include \"pythonWrapper.c\"");
The .dll SimulatorToFMUPython35.dll is in the Resources/Library/win32 of the package SimulatorToFMU which contains the model.
When I exported the model as an FMU with the 32 bit of OpenModelica v1.11.0 on Windows, it did not include the dll in the FMU.
Consequently the FMU cannot be used in any tool.
Do you know why OpenModelica fail to include the dll in the FMU?
BTW: I did the same export using Dymola and the .dll was correctly included in the FMU.
Thanks for any help.
Thierry
- Index
- » Users
- » Nouidui
- » Profile