Simulation setup
To simulate FMU `DiscreteController.fmu` with OMSimulator run ```bash $ wine64 /var/lib/jenkins/ws/Sandbox/Andreas/OMSimulator-FMI-Cross-Check/OMSimulatorBinaries/OMSimulator-mingw64/bin/OMSimulator.exe --workingDir=/var/lib/jenkins/ws/Sandbox/Andreas/OMSimulator-FMI-Cross-Check/OMSimulator/testsuite/fmi-cross-check/fmi-cross-check/results/2.0/cs/win64/OMSimulator/v2.1.1/solidThinking_Activate/2020/DiscreteController --stripRoot=true --skipCSVHeader=true --addParametersToCSV=true --suppressPath=true --timeout=60 /var/lib/jenkins/ws/Sandbox/Andreas/OMSimulator-FMI-Cross-Check/OMSimulator/testsuite/fmi-cross-check/fmi-cross-check/results/2.0/cs/win64/OMSimulator/v2.1.1/solidThinking_Activate/2020/DiscreteController/DiscreteController.lua ``` Lua file: ```lua -- lua file for DiscreteController.fmu oms_setTempDirectory('/tmp/cross-check') oms_newModel('model') oms_addSystem('model.root', oms_system_wc) -- instantiate FMU oms_addSubModel('model.root.fmu', 'DiscreteController.fmu') oms_addSubModel('model.root.input', '/var/lib/jenkins/ws/Sandbox/Andreas/OMSimulator-FMI-Cross-Check/OMSimulator/testsuite/fmi-cross-check/fmi-cross-check/fmus/2.0/cs/win64/solidThinking_Activate/2020/DiscreteController/DiscreteController_in.csv') -- connect inputs to FMU oms_addConnection('model.root.input.Reference_angle', 'model.root.fmu.Reference_angle') -- simulation settings oms_setResultFile('model', 'DiscreteController_out.csv') oms_setLoggingInterval('model', 0.1) oms_setStartTime('model', 0.0) oms_setStopTime('model', 10.0) oms_setTolerance('model', 0.0001, 0.0001) oms_setFixedStepSize('model', 0.02) -- 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: Result file: DiscreteController_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: Variable model.root.fmu.Solver.Internal.Max_Stepsize will not be stored in the result file, because the signal type is not supported info: Variable model.root.fmu.Solver.Internal.Min_Stepsize will not be stored in the result file, because the signal type is not supported info: Variable model.root.fmu.Solver.Internal.Init_Stepsize will not be stored in the result file, because the signal type is not supported info: Variable model.root.fmu.Solver.Internal.ZeroCrossing_Threshold will not be stored in the result file, because the signal type is not supported info: Variable model.root.fmu.Solver.Internal.ZeroCrossing_Time_Tolerance will not be stored in the result file, because the signal type is not supported info: Variable model.root.fmu.Solver.Internal.Dynamical_Solver_Name will not be stored in the result file, because the signal type is not supported info: Variable model.root.fmu.Solver.Internal.Algebraic_Solver_Name will not be stored in the result file, because the signal type is not supported info: Variable model.root.fmu.Solver.Internal.Jacobian_Method will not be stored in the result file, because the signal type is not supported
Stderr: