Skip to content

Commit c44fe78

Browse files
committed
[ModelicaSystem] remove last call to getErrorString()
this is handled in OMCSessionZMQ.sendExpression()
1 parent 924715b commit c44fe78

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

OMPython/ModelicaSystem.py

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

10961096
if not linearFile.exists():
1097-
errormsg = self.sendExpression("getErrorString()")
1098-
raise ModelicaSystemError(f"Linearization failed: {linearFile} not found: {errormsg}")
1097+
raise ModelicaSystemError(f"Linearization failed: {linearFile} not found!")
10991098

11001099
# this function is called from the generated python code linearized_model.py at runtime,
11011100
# 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)