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

Posts

Posts

Jun-19-19 13:38:05
Questions about using the scripting API via OMPython

Hi !

I am actually scipting using OM Python, however when I run ModelicaSystem method on a model that I created it generates an empty model with this error one the screen :

model_path = omc.sendExpression("getInstallationDirectoryPath()") + "/share/doc/omc/testmodels/"
mod = ModelicaSystem(model_path + "CircuitRC.mo", "CircuitRC")
....
...
...
loadFile Error: Notification: Automatically loaded package Modelica 3.2.1 due to uses annotation.

Thanks for your help

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