@@ -40,8 +40,8 @@ def worker():
4040 filePath = model_firstorder .as_posix ()
4141 mod = OMPython .ModelicaSystem ()
4242 mod .model (
43- file = filePath ,
44- name = "M" ,
43+ model_file = filePath ,
44+ model_name = "M" ,
4545 )
4646 mod .simulate ()
4747 mod .convertMo2Fmu (fmuType = "me" )
@@ -55,8 +55,8 @@ def test_setParameters():
5555 model_path = omc .omcpath (model_path_str )
5656 mod = OMPython .ModelicaSystem ()
5757 mod .model (
58- file = model_path / "BouncingBall.mo" ,
59- name = "BouncingBall" ,
58+ model_file = model_path / "BouncingBall.mo" ,
59+ model_name = "BouncingBall" ,
6060 )
6161
6262 # method 1 (test depreciated variants)
@@ -90,8 +90,8 @@ def test_setSimulationOptions():
9090 model_path = omc .omcpath (model_path_str )
9191 mod = OMPython .ModelicaSystem ()
9292 mod .model (
93- file = model_path / "BouncingBall.mo" ,
94- name = "BouncingBall" ,
93+ model_file = model_path / "BouncingBall.mo" ,
94+ model_name = "BouncingBall" ,
9595 )
9696
9797 # method 1
@@ -127,8 +127,8 @@ def test_relative_path(model_firstorder):
127127
128128 mod = OMPython .ModelicaSystem ()
129129 mod .model (
130- file = model_relative ,
131- name = "M" ,
130+ model_file = model_relative ,
131+ model_name = "M" ,
132132 )
133133 assert float (mod .getParameters ("a" )[0 ]) == - 1
134134 finally :
@@ -141,8 +141,8 @@ def test_customBuildDirectory(tmp_path, model_firstorder):
141141 tmpdir .mkdir ()
142142 mod = OMPython .ModelicaSystem (customBuildDirectory = tmpdir )
143143 mod .model (
144- file = filePath ,
145- name = "M" ,
144+ model_file = filePath ,
145+ model_name = "M" ,
146146 )
147147 assert pathlib .Path (mod .getWorkDirectory ()).resolve () == tmpdir .resolve ()
148148 result_file = tmpdir / "a.mat"
@@ -161,8 +161,8 @@ def test_getSolutions_docker(model_firstorder):
161161 omc_process = omc .omc_process ,
162162 )
163163 mod .model (
164- name = "M" ,
165- file = model_firstorder . as_posix () ,
164+ model_file = model_firstorder ,
165+ model_name = "M" ,
166166 )
167167
168168 _run_getSolutions (mod )
@@ -171,8 +171,8 @@ def test_getSolutions_docker(model_firstorder):
171171def test_getSolutions (model_firstorder ):
172172 mod = OMPython .ModelicaSystem ()
173173 mod .model (
174- file = model_firstorder . as_posix () ,
175- name = "M" ,
174+ model_file = model_firstorder ,
175+ model_name = "M" ,
176176 )
177177
178178 _run_getSolutions (mod )
@@ -219,8 +219,8 @@ def test_getters(tmp_path):
219219""" )
220220 mod = OMPython .ModelicaSystem ()
221221 mod .model (
222- file = model_file .as_posix (),
223- name = "M_getters" ,
222+ model_file = model_file .as_posix (),
223+ model_name = "M_getters" ,
224224 )
225225
226226 q = mod .getQuantities ()
@@ -415,8 +415,8 @@ def test_simulate_inputs(tmp_path):
415415""" )
416416 mod = OMPython .ModelicaSystem ()
417417 mod .model (
418- file = model_file .as_posix (),
419- name = "M_input" ,
418+ model_file = model_file .as_posix (),
419+ model_name = "M_input" ,
420420 )
421421
422422 simOptions = {"stopTime" : 1.0 }
0 commit comments