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
  • » Johan
  • » Profile

Posts

Posts

Sep-08-17 14:12:57
FMU not generated when calling translateModelFMU

Hello,

I am new to OpenModelica so there is probably a newbie mistake somwhere but here goes.
I am trying to use OMPython to compile a model into an FMU, but I fail.

I have tried some models from MSL, and they succeed but when I try with a model from my library only some files and a folder is generated:
- Folder: model.fmutmp
- model.libs
- model_FMU_libs
- model_FMU.log
- model_FMU.makefile
- model_info.json

Calling getErrorString returns an empty string and the log only contain the following info:
rm -f model.fmutmp/sources/model_init.xml
cp -a C:/OpenModelica1.9.7//include/omc/c/* model.fmutmp/sources/include/
cp -a C:/OpenModelica1.9.7//share/omc/runtime/c/fmi/buildproject/* model.fmutmp/sources
cp -a model_FMU.libs model.fmutmp/sources/
RESULT: 0

I am using OM 1.9.7 since there were bugs in OMPython that prevented me form using using version 1.11.0.

Is this something you recognize?

Best regards,
Johan Ylikiiskilä

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