Skip to content

Commit fa567a4

Browse files
committed
[ModelicaSystem] remove last call to getErrorString()
this is handled in OMCSessionZMQ.sendExpression()
1 parent 4701c1c commit fa567a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,8 +1099,7 @@ def linearize(self, lintime: Optional[float] = None, simflags: Optional[str] = N
10991099
linearFile = pathlib.Path(f'linear_{self.modelName}.py')
11001100

11011101
if not linearFile.exists():
1102-
errormsg = self.sendExpression("getErrorString()")
1103-
raise ModelicaSystemError(f"Linearization failed: {linearFile} not found: {errormsg}")
1102+
raise ModelicaSystemError(f"Linearization failed: {linearFile} not found!")
11041103

11051104
# this function is called from the generated python code linearized_model.py at runtime,
11061105
# to improve the performance by directly reading the matrices A, B, C and D from the julia code and avoid building the linearized modelica model

0 commit comments

Comments
 (0)