I am trying to simulate an OpenModelica example model using ModelicaSystem python module. But I am getting the following error in its constructor. As follows:
code:
import numpy as np
from matplotlib import pyplot as plt
import pyfmi
from OMPython import OMCSessionZMQ
from OMPython import ModelicaSystem
omc = OMCSessionZMQ()
model_path = '/usr/lib/omlibrary/Modelica 3.2.3/Electrical/'
omc.sendExpression('loadModel(model_path + Machines.mo)')
mod = ModelicaSystem(model_path + 'Machines.mo','Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter')
error:
loadFile Error: Error: Failed to insert class Machines within Modelica.Electrical;
the available classes were:
Can someone help me?