Simulation setup
To simulate FMU `Pendulum.fmu` with OMSimulator run ```bash $ wine64 /var/lib/jenkins2/ws/Sandbox/Andreas/OMSimulator-FMI-Cross-Check/OMSimulatorBinaries/OMSimulator-mingw64/bin/OMSimulator.exe --workingDir=/var/lib/jenkins2/ws/Sandbox/Andreas/OMSimulator-FMI-Cross-Check/OMSimulator/testsuite/fmi-cross-check/fmi-cross-check/results/2.0/me/win64/OMSimulator/v2.1.1/solidThinking_Activate/2020/Pendulum --stripRoot=true --skipCSVHeader=true --addParametersToCSV=true --suppressPath=true --timeout=60 /var/lib/jenkins2/ws/Sandbox/Andreas/OMSimulator-FMI-Cross-Check/OMSimulator/testsuite/fmi-cross-check/fmi-cross-check/results/2.0/me/win64/OMSimulator/v2.1.1/solidThinking_Activate/2020/Pendulum/Pendulum.lua ``` Lua file: ```lua -- lua file for Pendulum.fmu oms_setTempDirectory('/tmp/cross-check') oms_newModel('model') oms_addSystem('model.root', oms_system_sc) -- instantiate FMU oms_addSubModel('model.root.fmu', 'Pendulum.fmu') -- simulation settings oms_setResultFile('model', 'Pendulum_out.csv') oms_setLoggingInterval('model', 0.05) oms_setStartTime('model', 0.0) oms_setStopTime('model', 5.0) oms_setTolerance('model', 0.0001, 0.0001) oms_setVariableStepSize('model', 1e-12, 1e-12, 0.001) -- instantiate, initialize and simulate oms_instantiate('model') oms_initialize('model') oms_simulate('model') oms_terminate('model') oms_delete('model') ``` See the [OMSimulator documentation](https://openmodelica.org/doc/OMSimulator/master/html/index.html) for more information.
Stdout:
info: maximum step size for 'model.root': 0.001000 info: Result file: Pendulum_out.csv (bufferSize=1) info: Variable model.root.fmu.Solver.Time_Tolerance will not be stored in the result file, because the signal type is not supported info: Variable model.root.fmu.Solver.Absolute_Tolerance will not be stored in the result file, because the signal type is not supported info: Variable model.root.fmu.Solver.Relative_Tolerance will not be stored in the result file, because the signal type is not supported info: Parameter model.root.fmu.FMU_sup_1.fmuresources will not be stored in the result file, because the signal type is not supported info: Variable model.root.fmu.FMU_sup_1.fmulogfilename will not be stored in the result file, because the signal type is not supported info: Parameter model.root.fmu.FMU_sup_1.fmutempdir will not be stored in the result file, because the signal type is not supported info: Parameter model.root.fmu.FMU_sup_1.separator will not be stored in the result file, because the signal type is not supported info: Parameter model.root.fmu.FMU_sup_1.fmuresfilename will not be stored in the result file, because the signal type is not supported info: Variable model.root.fmu.FMU_sup_1.fmufilename will not be stored in the result file, because the signal type is not supported info: Final Statistics for 'model.root': NumSteps = 5007 NumRhsEvals = 5008 NumLinSolvSetups = 257 NumNonlinSolvIters = 5007 NumNonlinSolvConvFails = 0 NumErrTestFails = 0
Stderr:
003d:fixme:msvcrt:MSVCRT__stdio_common_vsprintf options 25 not handled 003d:fixme:msvcrt:MSVCRT__stdio_common_vsprintf options 25 not handled 003d:fixme:msvcrt:MSVCRT__stdio_common_vsprintf options 26 not handled 003d:fixme:msvcrt:MSVCRT__stdio_common_vsprintf options 26 not handled 003d:fixme:msvcrt:MSVCRT__stdio_common_vsprintf options 26 not handled 003d:fixme:msvcrt:MSVCRT__stdio_common_vsprintf options 26 not handled 003d:fixme:msvcrt:MSVCRT__stdio_common_vsprintf options 25 not handled 003d:fixme:msvcrt:MSVCRT__stdio_common_vsprintf options 25 not handled 003d:fixme:msvcrt:MSVCRT__stdio_common_vsprintf options 26 not handled 003d:fixme:msvcrt:MSVCRT__stdio_common_vsprintf options 25 not handled Success. Success.