Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.EngineGasForce,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_EngineGasForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.EngineGasForce,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_EngineGasForce",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 112.7 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 180.1 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2058/0.2058, allocations: 44.19 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 67.91 kB / 470.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3468, allocations: 60.82 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.EngineGasForce): time 0.003313/0.3502, allocations: 2.06 MB / 0.5204 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.3513, allocations: 0.5316 MB / 0.521 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.3514, allocations: 2.375 kB / 0.521 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001374/0.3516, allocations: 22.44 kB / 0.521 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001459/0.3518, allocations: 47.19 kB / 0.521 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004364/0.3522, allocations: 67.41 kB / 0.5211 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002848/0.3525, allocations: 193 kB / 0.5213 GB, free: 1.297 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.3527, allocations: 51.44 kB / 0.5213 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.3529, allocations: 89.44 kB / 0.5214 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001712/0.3531, allocations: 79.09 kB / 0.5215 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.39e-05/0.3531, allocations: 14.19 kB / 0.5215 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.499e-05/0.3532, allocations: 13.5 kB / 0.5215 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.226e-05/0.3532, allocations: 45.28 kB / 0.5216 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.3533, allocations: 76.17 kB / 0.5216 GB, free: 1.121 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003261/0.3537, allocations: 184.4 kB / 0.5218 GB, free: 1.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.3537, allocations: 5.188 kB / 0.5218 GB, free: 1.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3537, allocations: 0 / 0.5218 GB, free: 1.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.3537, allocations: 0 / 0.5218 GB, free: 1.051 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0007882/0.3545, allocations: 465.8 kB / 0.5223 GB, free: 0.625 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.3545, allocations: 10.75 kB / 0.5223 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.085e-05/0.3546, allocations: 48.94 kB / 0.5223 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.417e-05/0.3547, allocations: 17.69 kB / 0.5223 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002442/0.3549, allocations: 215.5 kB / 0.5225 GB, free: 352 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.3549, allocations: 9.094 kB / 0.5225 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.199e-05/0.355, allocations: 16.62 kB / 0.5226 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003614/0.3554, allocations: 163.5 kB / 0.5227 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.3554, allocations: 0.7969 kB / 0.5227 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.3554, allocations: 10.38 kB / 0.5227 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.3554, allocations: 3.281 kB / 0.5227 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003294/0.3558, allocations: 110.3 kB / 0.5228 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.3568, allocations: 0.6998 MB / 0.5235 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005275/0.3573, allocations: 146.3 kB / 0.5237 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001865/0.3575, allocations: 66.69 kB / 0.5237 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.3576, allocations: 1.094 kB / 0.5237 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.941e-05/0.3576, allocations: 41.75 kB / 0.5238 GB, free: 15.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 2.495e-06/0.3576, allocations: 0 / 0.5238 GB, free: 15.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=20): time 0.00162/0.3593, allocations: 423.7 kB / 0.5242 GB, free: 15.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/0.3593, allocations: 55.22 kB / 0.5242 GB, free: 15.22 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.3595, allocations: 153 kB / 0.5244 GB, free: 15.1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/0.3595, allocations: 31.05 kB / 0.5244 GB, free: 15.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.793e-05/0.3596, allocations: 119.8 kB / 0.5245 GB, free: 14.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.421e-05/0.3597, allocations: 77 kB / 0.5246 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.001e-05/0.3598, allocations: 39.06 kB / 0.5246 GB, free: 14.87 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.3599, allocations: 329.7 kB / 0.5249 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002179/0.3602, allocations: 73.53 kB / 0.525 GB, free: 14.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002245/0.3604, allocations: 94.7 kB / 0.5251 GB, free: 14.47 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004373/0.3608, allocations: 183.2 kB / 0.5253 GB, free: 14.38 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3608, allocations: 0 / 0.5253 GB, free: 14.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005827/0.3614, allocations: 223.3 kB / 0.5255 GB, free: 14.28 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.3615, allocations: 10.25 kB / 0.5255 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3615, allocations: 5.594 kB / 0.5255 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.3615, allocations: 7.594 kB / 0.5255 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003102/0.3618, allocations: 50.62 kB / 0.5256 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.3618, allocations: 6.359 kB / 0.5256 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001778/0.362, allocations: 14.31 kB / 0.5256 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.3621, allocations: 10.17 kB / 0.5256 GB, free: 14.25 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00014/0.3622, allocations: 129.7 kB / 0.5257 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.529e-05/0.3623, allocations: 15.3 kB / 0.5257 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.424e-05/0.3623, allocations: 25.44 kB / 0.5257 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.3623, allocations: 2.75 kB / 0.5258 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.3623, allocations: 0.6562 kB / 0.5258 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.3624, allocations: 2.219 kB / 0.5258 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001123/0.3635, allocations: 0.6244 MB / 0.5264 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3635, allocations: 1.375 kB / 0.5264 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002654/0.3638, allocations: 42.28 kB / 0.5264 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/0.3638, allocations: 5.312 kB / 0.5264 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.3638, allocations: 4.797 kB / 0.5264 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.3638, allocations: 1.375 kB / 0.5264 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3638, allocations: 0.7969 kB / 0.5264 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005508/0.3644, allocations: 308.5 kB / 0.5267 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.3645, allocations: 109 kB / 0.5268 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.367e-05/0.3646, allocations: 6.625 kB / 0.5268 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002072/0.3648, allocations: 10.66 kB / 0.5268 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.365e-05/0.3648, allocations: 16.89 kB / 0.5268 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.08e-05/0.3649, allocations: 9.578 kB / 0.5269 GB, free: 13.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.716e-05/0.365, allocations: 120 kB / 0.527 GB, free: 13.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.365, allocations: 0 / 0.527 GB, free: 13.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000304/0.3653, allocations: 37.56 kB / 0.527 GB, free: 13.21 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008924/0.3662, allocations: 0.848 MB / 0.5278 GB, free: 12.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005551/0.3668, allocations: 173.8 kB / 0.528 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3668, allocations: 0 / 0.528 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002387/0.367, allocations: 98.25 kB / 0.5281 GB, free: 12.4 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.3674, allocations: 21.83 kB / 0.5281 GB, free: 12.39 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002877/0.3703, allocations: 2.076 MB / 0.5301 GB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002594/0.3706, allocations: 0.7197 MB / 0.5308 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001751/0.3708, allocations: 27.19 kB / 0.5309 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.3709, allocations: 49.2 kB / 0.5309 GB, free: 10.01 MB / 398.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3709, allocations: 0 / 0.5309 GB, free: 10.01 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02136/0.3923, allocations: 3.776 MB / 0.5346 GB, free: 8.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.299/8.691, allocations: 3.875 kB / 0.5346 GB, free: 8.07 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_EngineGasForce.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/EngineGasForce/EngineGasForce.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches