Skip to content

Commit 0b7a670

Browse files
committed
f - [ModelicaSystem.buildModel] check if executable exists via ModelicaSystemCmd
1 parent 57b173b commit 0b7a670

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,12 +451,12 @@ def buildModel(self, variableFilter: Optional[str] = None):
451451
modelname=self._model_name,
452452
timeout=5.0,
453453
)
454-
# ... and outputs help for command help
454+
# ... by running it - output help for command help
455455
om_cmd.arg_set(key="help", val="help")
456456
cmd_definition = om_cmd.definition()
457457
returncode = self._getconn.run_model_executable(cmd_run_data=cmd_definition)
458458
if returncode != 0:
459-
raise ModelicaSystemError("Error on model executable test!")
459+
raise ModelicaSystemError("Model executable not working!")
460460

461461
xml_file = self._getconn.omcpath(buildModelResult[0]).parent / buildModelResult[1]
462462
self._xmlparse(xml_file=xml_file)

0 commit comments

Comments
 (0)