@@ -23,7 +23,7 @@ def test_ModelicaSystem_loop(model_firstorder):
2323 def worker ():
2424 filePath = model_firstorder .as_posix ()
2525 mod = OMPython .ModelicaSystem ()
26- mod .model_definition (
26+ mod .definition (
2727 file = filePath ,
2828 model = "M" ,
2929 )
@@ -37,7 +37,7 @@ def test_setParameters():
3737 omc = OMPython .OMCSessionZMQ ()
3838 model_path = omc .sendExpression ("getInstallationDirectoryPath()" ) + "/share/doc/omc/testmodels/"
3939 mod = OMPython .ModelicaSystem ()
40- mod .model_definition (
40+ mod .definition (
4141 file = model_path + "BouncingBall.mo" ,
4242 model = "BouncingBall" ,
4343 )
@@ -70,7 +70,7 @@ def test_setSimulationOptions():
7070 omc = OMPython .OMCSessionZMQ ()
7171 model_path = omc .sendExpression ("getInstallationDirectoryPath()" ) + "/share/doc/omc/testmodels/"
7272 mod = OMPython .ModelicaSystem ()
73- mod .model_definition (
73+ mod .definition (
7474 file = model_path + "BouncingBall.mo" ,
7575 model = "BouncingBall" ,
7676 )
@@ -107,7 +107,7 @@ def test_relative_path(model_firstorder):
107107 assert "/" not in model_relative
108108
109109 mod = OMPython .ModelicaSystem ()
110- mod .model_definition (
110+ mod .definition (
111111 file = model_relative ,
112112 model = "M" ,
113113 )
@@ -121,7 +121,7 @@ def test_customBuildDirectory(tmp_path, model_firstorder):
121121 tmpdir = tmp_path / "tmpdir1"
122122 tmpdir .mkdir ()
123123 mod = OMPython .ModelicaSystem (customBuildDirectory = tmpdir )
124- mod .model_definition (
124+ mod .definition (
125125 file = filePath ,
126126 model = "M" ,
127127 )
@@ -135,7 +135,7 @@ def test_customBuildDirectory(tmp_path, model_firstorder):
135135def test_getSolutions (model_firstorder ):
136136 filePath = model_firstorder .as_posix ()
137137 mod = OMPython .ModelicaSystem ()
138- mod .model_definition (
138+ mod .definition (
139139 file = filePath ,
140140 model = "M" ,
141141 )
@@ -176,7 +176,7 @@ def test_getters(tmp_path):
176176end M_getters;
177177""" )
178178 mod = OMPython .ModelicaSystem ()
179- mod .model_definition (
179+ mod .definition (
180180 file = model_file .as_posix (),
181181 model = "M_getters" ,
182182 )
@@ -372,7 +372,7 @@ def test_simulate_inputs(tmp_path):
372372end M_input;
373373""" )
374374 mod = OMPython .ModelicaSystem ()
375- mod .model_definition (
375+ mod .definition (
376376 file = model_file .as_posix (),
377377 model = "M_input" ,
378378 )
0 commit comments