@@ -57,7 +57,7 @@ def test_setParameters():
5757def test_setSimulationOptions ():
5858 omc = OMPython .OMCSessionZMQ ()
5959 model_path = omc .sendExpression ("getInstallationDirectoryPath()" ) + "/share/doc/omc/testmodels/"
60- mod = OMPython .ModelicaSystem (model_path + "BouncingBall.mo" , "BouncingBall" )
60+ mod = OMPython .ModelicaSystem (fileName = model_path + "BouncingBall.mo" , modelName = "BouncingBall" )
6161
6262 # method 1
6363 mod .setSimulationOptions ("stopTime=1.234" )
@@ -88,7 +88,7 @@ def test_relative_path(model_firstorder):
8888 model_relative = str (model_file )
8989 assert "/" not in model_relative
9090
91- mod = OMPython .ModelicaSystem (model_relative , "M" )
91+ mod = OMPython .ModelicaSystem (fileName = model_relative , modelName = "M" )
9292 assert float (mod .getParameters ("a" )[0 ]) == - 1
9393 finally :
9494 model_file .unlink () # clean up the temporary file
@@ -145,7 +145,7 @@ def test_getters(tmp_path):
145145y = der(x);
146146end M_getters;
147147""" )
148- mod = OMPython .ModelicaSystem (model_file .as_posix (), "M_getters" )
148+ mod = OMPython .ModelicaSystem (fileName = model_file .as_posix (), modelName = "M_getters" )
149149
150150 q = mod .getQuantities ()
151151 assert isinstance (q , list )
@@ -324,7 +324,7 @@ def test_simulate_inputs(tmp_path):
324324y = x;
325325end M_input;
326326""" )
327- mod = OMPython .ModelicaSystem (model_file .as_posix (), "M_input" )
327+ mod = OMPython .ModelicaSystem (fileName = model_file .as_posix (), modelName = "M_input" )
328328
329329 mod .setSimulationOptions ("stopTime=1.0" )
330330
0 commit comments