@@ -35,7 +35,7 @@ def worker():
3535 def test_setParameters (self ):
3636 omc = OMPython .OMCSessionZMQ ()
3737 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" )
3939
4040 # method 1
4141 mod .setParameters ("e=1.234" )
@@ -59,7 +59,7 @@ def test_setParameters(self):
5959 def test_setSimulationOptions (self ):
6060 omc = OMPython .OMCSessionZMQ ()
6161 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" )
6363
6464 # method 1
6565 mod .setSimulationOptions ("stopTime=1.234" )
@@ -89,7 +89,7 @@ def test_relative_path(self):
8989 model_relative = str (model_file )
9090 assert "/" not in model_relative
9191
92- mod = OMPython .ModelicaSystem (model_relative , "M" , raiseerrors = True )
92+ mod = OMPython .ModelicaSystem (model_relative , "M" )
9393 assert float (mod .getParameters ("a" )[0 ]) == - 1
9494 finally :
9595 # clean up the temporary file
@@ -99,8 +99,7 @@ def test_customBuildDirectory(self):
9999 filePath = (self .tmp / "M.mo" ).as_posix ()
100100 tmpdir = self .tmp / "tmpdir1"
101101 tmpdir .mkdir ()
102- m = OMPython .ModelicaSystem (filePath , "M" , raiseerrors = True ,
103- customBuildDirectory = tmpdir )
102+ m = OMPython .ModelicaSystem (filePath , "M" , customBuildDirectory = tmpdir )
104103 assert pathlib .Path (m .getWorkDirectory ()).resolve () == tmpdir .resolve ()
105104 result_file = tmpdir / "a.mat"
106105 assert not result_file .exists ()
@@ -109,7 +108,7 @@ def test_customBuildDirectory(self):
109108
110109 def test_getSolutions (self ):
111110 filePath = (self .tmp / "M.mo" ).as_posix ()
112- mod = OMPython .ModelicaSystem (filePath , "M" , raiseerrors = True )
111+ mod = OMPython .ModelicaSystem (filePath , "M" )
113112 x0 = 1
114113 a = - 1
115114 tau = - 1 / a
@@ -145,7 +144,7 @@ def test_getters(self):
145144 y = der(x);
146145end M_getters;
147146""" )
148- mod = OMPython .ModelicaSystem (model_file .as_posix (), "M_getters" , raiseerrors = True )
147+ mod = OMPython .ModelicaSystem (model_file .as_posix (), "M_getters" )
149148
150149 q = mod .getQuantities ()
151150 assert isinstance (q , list )
@@ -323,7 +322,7 @@ def test_simulate_inputs(self):
323322 y = x;
324323end M_input;
325324""" )
326- mod = OMPython .ModelicaSystem (model_file .as_posix (), "M_input" , raiseerrors = True )
325+ mod = OMPython .ModelicaSystem (model_file .as_posix (), "M_input" )
327326
328327 mod .setSimulationOptions ("stopTime=1.0" )
329328
0 commit comments