@@ -35,7 +35,7 @@ def worker():
35
35
def test_setParameters (self ):
36
36
omc = OMPython .OMCSessionZMQ ()
37
37
model_path = omc .sendExpression ("getInstallationDirectoryPath()" ) + "/share/doc/omc/testmodels/"
38
- mod = OMPython .ModelicaSystem (model_path + "BouncingBall.mo" , "BouncingBall" , raiseerrors = True )
38
+ mod = OMPython .ModelicaSystem (model_path + "BouncingBall.mo" , "BouncingBall" )
39
39
40
40
# method 1
41
41
mod .setParameters ("e=1.234" )
@@ -59,7 +59,7 @@ def test_setParameters(self):
59
59
def test_setSimulationOptions (self ):
60
60
omc = OMPython .OMCSessionZMQ ()
61
61
model_path = omc .sendExpression ("getInstallationDirectoryPath()" ) + "/share/doc/omc/testmodels/"
62
- mod = OMPython .ModelicaSystem (model_path + "BouncingBall.mo" , "BouncingBall" , raiseerrors = True )
62
+ mod = OMPython .ModelicaSystem (model_path + "BouncingBall.mo" , "BouncingBall" )
63
63
64
64
# method 1
65
65
mod .setSimulationOptions ("stopTime=1.234" )
@@ -89,7 +89,7 @@ def test_relative_path(self):
89
89
model_relative = str (model_file )
90
90
assert "/" not in model_relative
91
91
92
- mod = OMPython .ModelicaSystem (model_relative , "M" , raiseerrors = True )
92
+ mod = OMPython .ModelicaSystem (model_relative , "M" )
93
93
assert float (mod .getParameters ("a" )[0 ]) == - 1
94
94
finally :
95
95
# clean up the temporary file
@@ -99,8 +99,7 @@ def test_customBuildDirectory(self):
99
99
filePath = (self .tmp / "M.mo" ).as_posix ()
100
100
tmpdir = self .tmp / "tmpdir1"
101
101
tmpdir .mkdir ()
102
- m = OMPython .ModelicaSystem (filePath , "M" , raiseerrors = True ,
103
- customBuildDirectory = tmpdir )
102
+ m = OMPython .ModelicaSystem (filePath , "M" , customBuildDirectory = tmpdir )
104
103
assert pathlib .Path (m .getWorkDirectory ()).resolve () == tmpdir .resolve ()
105
104
result_file = tmpdir / "a.mat"
106
105
assert not result_file .exists ()
@@ -109,7 +108,7 @@ def test_customBuildDirectory(self):
109
108
110
109
def test_getSolutions (self ):
111
110
filePath = (self .tmp / "M.mo" ).as_posix ()
112
- mod = OMPython .ModelicaSystem (filePath , "M" , raiseerrors = True )
111
+ mod = OMPython .ModelicaSystem (filePath , "M" )
113
112
x0 = 1
114
113
a = - 1
115
114
tau = - 1 / a
@@ -145,7 +144,7 @@ def test_getters(self):
145
144
y = der(x);
146
145
end M_getters;
147
146
""" )
148
- mod = OMPython .ModelicaSystem (model_file .as_posix (), "M_getters" , raiseerrors = True )
147
+ mod = OMPython .ModelicaSystem (model_file .as_posix (), "M_getters" )
149
148
150
149
q = mod .getQuantities ()
151
150
assert isinstance (q , list )
@@ -323,7 +322,7 @@ def test_simulate_inputs(self):
323
322
y = x;
324
323
end M_input;
325
324
""" )
326
- mod = OMPython .ModelicaSystem (model_file .as_posix (), "M_input" , raiseerrors = True )
325
+ mod = OMPython .ModelicaSystem (model_file .as_posix (), "M_input" )
327
326
328
327
mod .setSimulationOptions ("stopTime=1.0" )
329
328
0 commit comments