From 85f1ffc8e95ac58dbf60b6251c9dec4e45d66cf5 Mon Sep 17 00:00:00 2001 From: Adrian Pop Date: Tue, 19 Mar 2024 13:25:52 +0100 Subject: [PATCH] select FMU type ModelExchange, output-interval and solver for FMPy --- testmodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testmodel.py b/testmodel.py index bfb586a..a09bc0c 100755 --- a/testmodel.py +++ b/testmodel.py @@ -460,7 +460,7 @@ def sendExpressionOldOrNew(cmd): fp.write("%s\n" % fmitmpdir) if shared.isFMPy(fmisimulator): fmisimulator = "%s simulate " % fmisimulator - cmd = "%s --start-time %g --stop-time %g --timeout %g --relative-tolerance %g %s.fmu" % (("--output-file %s" % resFile),startTime,stopTime,conf["ulimitExe"],tolerance,conf["fileName"].replace(".","_")) + cmd = "%s --start-time %g --stop-time %g --timeout %g --relative-tolerance %g --interface-type ModelExchange --solver CVode --output-interval %g %s.fmu" % (("--output-file %s" % resFile),startTime,stopTime,conf["ulimitExe"],tolerance,stepSize,conf["fileName"].replace(".","_")) else: # OMSimulator cmd = "%s --tempDir=%s --startTime=%g --stopTime=%g --timeout=%g --tolerance=%g %s.fmu" % (("-r=%s" % resFile) if outputFormat != "empty" else "",fmitmpdir,startTime,stopTime,conf["ulimitExe"],tolerance,conf["fileName"].replace(".","_")) with open(simFile,"w") as fp: