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.001268/0.001268, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.00117/0.001171, allocations: 187 kB / 18.71 MB, free: 4.344 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.313/1.313, allocations: 222.9 MB / 242.4 MB, free: 15.19 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.2002/0.2002, allocations: 44.19 MB / 336.8 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 71.88 kB / 470.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3286, allocations: 60.82 MB / 0.5184 GB, free: 3.109 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.EngineGasForce): time 0.00324/0.3319, allocations: 2.074 MB / 0.5205 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.3329, allocations: 0.5311 MB / 0.521 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001772/0.3331, allocations: 2.156 kB / 0.521 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000144/0.3333, allocations: 19.28 kB / 0.521 GB, free: 1.277 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001591/0.3335, allocations: 46.38 kB / 0.521 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005174/0.334, allocations: 71.95 kB / 0.5211 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003731/0.3344, allocations: 192.6 kB / 0.5213 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.3346, allocations: 42.31 kB / 0.5213 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002115/0.3348, allocations: 86.72 kB / 0.5214 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.335, allocations: 87.83 kB / 0.5215 GB, free: 1.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.724e-05/0.335, allocations: 12.97 kB / 0.5215 GB, free: 1.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.321e-05/0.3351, allocations: 13.81 kB / 0.5215 GB, free: 1.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.032e-05/0.3351, allocations: 37.58 kB / 0.5216 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.504e-05/0.3352, allocations: 76.2 kB / 0.5216 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002839/0.3355, allocations: 182.1 kB / 0.5218 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3355, allocations: 1.312 kB / 0.5218 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3356, allocations: 0 / 0.5218 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.669e-06/0.3356, allocations: 0.5625 kB / 0.5218 GB, free: 0.8867 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.0008491/0.3364, allocations: 474 kB / 0.5223 GB, free: 464 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.3365, allocations: 10.84 kB / 0.5223 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.916e-05/0.3365, allocations: 45.52 kB / 0.5223 GB, free: 416 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.005e-05/0.3366, allocations: 18.75 kB / 0.5223 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.3369, allocations: 206.6 kB / 0.5225 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.3369, allocations: 9.766 kB / 0.5225 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.524e-05/0.3369, allocations: 19.69 kB / 0.5226 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003714/0.3373, allocations: 161.1 kB / 0.5227 GB, free: 72 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.3373, allocations: 5.031 kB / 0.5227 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.257e-05/0.3374, allocations: 5.062 kB / 0.5227 GB, free: 64 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.3374, allocations: 3.5 kB / 0.5227 GB, free: 64 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000324/0.3377, allocations: 118.7 kB / 0.5228 GB, free: 24 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.3388, allocations: 0.6875 MB / 0.5235 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004331/0.3393, allocations: 162.8 kB / 0.5237 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.3395, allocations: 66.22 kB / 0.5237 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.3395, allocations: 5.578 kB / 0.5237 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.3395, allocations: 32.34 kB / 0.5238 GB, free: 15.28 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 2.414e-06/0.3395, allocations: 1.375 kB / 0.5238 GB, free: 15.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=20): time 0.001502/0.3411, allocations: 423.2 kB / 0.5242 GB, free: 15.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/0.3411, allocations: 53.44 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.3413, allocations: 154.7 kB / 0.5244 GB, free: 14.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.189e-05/0.3413, allocations: 31.08 kB / 0.5244 GB, free: 14.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.23e-05/0.3414, allocations: 123.1 kB / 0.5245 GB, free: 14.78 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.888e-05/0.3415, allocations: 65.67 kB / 0.5246 GB, free: 14.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.602e-05/0.3416, allocations: 37.33 kB / 0.5246 GB, free: 14.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3417, allocations: 330.8 kB / 0.5249 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002239/0.342, allocations: 72.41 kB / 0.525 GB, free: 14.36 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.3422, allocations: 99.91 kB / 0.5251 GB, free: 14.3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004378/0.3427, allocations: 179.1 kB / 0.5253 GB, free: 14.21 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3427, allocations: 1.062 kB / 0.5253 GB, free: 14.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00057/0.3432, allocations: 222 kB / 0.5255 GB, free: 14.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.3433, allocations: 6.656 kB / 0.5255 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.3433, allocations: 1.5 kB / 0.5255 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.3433, allocations: 1.469 kB / 0.5255 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003086/0.3436, allocations: 57.66 kB / 0.5255 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.3436, allocations: 2.562 kB / 0.5255 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001898/0.3438, allocations: 14.48 kB / 0.5256 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.994e-05/0.3439, allocations: 4.312 kB / 0.5256 GB, free: 14.1 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.0001355/0.344, allocations: 133.9 kB / 0.5257 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.112e-05/0.3441, allocations: 12.81 kB / 0.5257 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.662e-05/0.3441, allocations: 21.56 kB / 0.5257 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3441, allocations: 5.344 kB / 0.5257 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.3442, allocations: 2 kB / 0.5257 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3442, allocations: 0.75 kB / 0.5257 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.3453, allocations: 0.6278 MB / 0.5263 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.3454, allocations: 1.375 kB / 0.5263 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.3456, allocations: 53.89 kB / 0.5264 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/0.3457, allocations: 4.594 kB / 0.5264 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.832e-05/0.3457, allocations: 1.938 kB / 0.5264 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.3457, allocations: 1.375 kB / 0.5264 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3457, allocations: 0.6562 kB / 0.5264 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005591/0.3463, allocations: 314.4 kB / 0.5267 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.3464, allocations: 110.4 kB / 0.5268 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.081e-05/0.3464, allocations: 1.984 kB / 0.5268 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.3467, allocations: 14.86 kB / 0.5268 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.286e-05/0.3468, allocations: 20.91 kB / 0.5268 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.3468, allocations: 4.922 kB / 0.5268 GB, free: 13.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001109/0.3469, allocations: 119.7 kB / 0.527 GB, free: 13.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3469, allocations: 1.375 kB / 0.527 GB, free: 13.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000316/0.3472, allocations: 41 kB / 0.527 GB, free: 13.04 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.0009008/0.3481, allocations: 0.8303 MB / 0.5278 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000571/0.3487, allocations: 183.3 kB / 0.528 GB, free: 12.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.3487, allocations: 1.188 kB / 0.528 GB, free: 12.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002354/0.349, allocations: 90.67 kB / 0.5281 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003901/0.3494, allocations: 23.16 kB / 0.5281 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/0.3527, allocations: 2.074 MB / 0.5301 GB, free: 10.67 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.3529, allocations: 0.7167 MB / 0.5308 GB, free: 9.953 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001884/0.3531, allocations: 30.88 kB / 0.5308 GB, free: 9.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.3533, allocations: 44.36 kB / 0.5309 GB, free: 9.895 MB / 398.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3533, allocations: 0 / 0.5309 GB, free: 9.895 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03479/0.3881, allocations: 3.826 MB / 0.5346 GB, free: 7.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.361/8.749, allocations: 10.22 kB / 0.5346 GB, free: 7.922 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.EngineGasForce_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_EngineGasForce_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,gasForce.dens,gasForce.f,gasForce.T,gasForce.V,gasForce.v_rel,gasForce.press Variables in the result:der(der(position.s)),der(gasForce.flange_b.s),der(gasForce.s_rel),der(mass.s),der(mass.v),der(position.s),fixed.flange.f,fixed.flange.s,fixed.s0,gasForce.L,gasForce.T,gasForce.V,gasForce.d,gasForce.dens,gasForce.f,gasForce.flange_a.f,gasForce.flange_a.s,gasForce.flange_b.f,gasForce.flange_b.s,gasForce.k,gasForce.k0,gasForce.k1,gasForce.press,gasForce.s_rel,gasForce.v_rel,gasForce.x,mass.L,mass.a,mass.flange_a.f,mass.flange_a.s,mass.flange_b.f,mass.flange_b.s,mass.m,mass.s,mass.stateSelect,mass.v,position.a,position.exact,position.f_crit,position.flange.f,position.flange.s,position.s,position.s_ref,position.useSupport,position.v,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time