Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 104.9 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000951/0.0009512, allocations: 43.94 kB / 350 MB, free: 56 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.2301, allocations: 49.45 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.08711/0.3173, allocations: 103.3 MB / 0.491 GB, free: 9.637 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.2545/0.5718, allocations: 19.94 MB / 0.5105 GB, free: 180 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02213/0.594, allocations: 479.1 kB / 0.5109 GB, free: 180 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01076/0.6048, allocations: 5.858 MB / 0.5167 GB, free: 8 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00976/0.6146, allocations: 3.166 MB / 0.5197 GB, free: 15.81 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003955/0.6186, allocations: 1.455 MB / 0.5212 GB, free: 15.78 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.02537/0.644, allocations: 17.36 MB / 0.5381 GB, free: 10.83 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01416/0.6582, allocations: 7.486 MB / 0.5454 GB, free: 6.508 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008806/0.6671, allocations: 3.212 MB / 0.5486 GB, free: 3.945 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009462/0.6766, allocations: 5.065 MB / 0.5535 GB, free: 15.3 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002817/0.6794, allocations: 484 kB / 0.554 GB, free: 14.83 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005546/0.685, allocations: 1.509 MB / 0.5555 GB, free: 13.41 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006309/0.6914, allocations: 4.013 MB / 0.5594 GB, free: 9.434 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009187/0.7006, allocations: 4.214 MB / 0.5635 GB, free: 5.238 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01947/0.7201, allocations: 13.13 MB / 0.5763 GB, free: 8.418 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.115e-05/0.7202, allocations: 4 kB / 0.5763 GB, free: 8.414 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.7202, allocations: 7.938 kB / 0.5763 GB, free: 8.406 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000586/0.7208, allocations: 0 / 0.5763 GB, free: 8.406 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02736/0.7481, allocations: 9.661 MB / 0.5857 GB, free: 14.83 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.7482, allocations: 8.031 kB / 0.5858 GB, free: 14.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04555/0.7938, allocations: 5.239 MB / 0.5909 GB, free: 9.566 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02043/0.8142, allocations: 7.874 MB / 0.5986 GB, free: 1.953 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004952/0.8148, allocations: 425.4 kB / 0.599 GB, free: 1.586 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002699/0.8175, allocations: 0.5836 MB / 0.5995 GB, free: 1.051 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02853/0.846, allocations: 16.56 MB / 0.6157 GB, free: 15.7 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002372/0.8463, allocations: 98.64 kB / 0.6158 GB, free: 15.63 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006607/0.847, allocations: 264.2 kB / 0.6161 GB, free: 15.42 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004188/0.8512, allocations: 2.764 MB / 0.6188 GB, free: 12.69 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02706/0.8783, allocations: 13.62 MB / 0.6321 GB, free: 15.33 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4939/1.372, allocations: 68.05 MB / 0.6985 GB, free: 200.9 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01896/1.391, allocations: 7.89 MB / 0.7062 GB, free: 200.2 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005628/1.397, allocations: 4.518 MB / 0.7106 GB, free: 199.6 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02303/1.42, allocations: 12.42 MB / 0.7228 GB, free: 193.9 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.684e-05/1.42, allocations: 62.03 kB / 0.7228 GB, free: 193.9 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=280): time 5.35e-06/1.42, allocations: 0 / 0.7228 GB, free: 193.9 MB / 0.5262 GB Notification: Performance of matching and sorting (n=339): time 0.1672/1.587, allocations: 50.14 MB / 0.7718 GB, free: 149 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/1.587, allocations: 398.1 kB / 0.7722 GB, free: 148.5 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008598/1.596, allocations: 7.119 MB / 0.7791 GB, free: 141.4 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0008395/1.597, allocations: 80.2 kB / 0.7792 GB, free: 141.4 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.002389/1.599, allocations: 5.019 MB / 0.7841 GB, free: 136.3 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001453/1.601, allocations: 1.259 MB / 0.7853 GB, free: 135.1 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00256/1.603, allocations: 1.856 MB / 0.7871 GB, free: 133.2 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 6.443e-05/1.603, allocations: 301.1 kB / 0.7874 GB, free: 132.9 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005199/1.609, allocations: 4.549 MB / 0.7919 GB, free: 128.4 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007051/1.616, allocations: 9.265 MB / 0.8009 GB, free: 116.9 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01398/1.63, allocations: 14.54 MB / 0.8151 GB, free: 100.4 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001218/1.63, allocations: 44 kB / 0.8152 GB, free: 100.4 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.04006/1.67, allocations: 19.75 MB / 0.8344 GB, free: 80.59 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 8.28e-05/1.67, allocations: 72 kB / 0.8345 GB, free: 80.52 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001466/1.67, allocations: 163.9 kB / 0.8347 GB, free: 80.36 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02017/1.69, allocations: 7.059 MB / 0.8416 GB, free: 73.29 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006378/1.697, allocations: 1.922 MB / 0.8434 GB, free: 71.36 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03907/1.736, allocations: 33.16 MB / 0.8758 GB, free: 37.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00878/1.745, allocations: 0.585 MB / 0.8764 GB, free: 37.21 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002145/1.747, allocations: 496 kB / 0.8769 GB, free: 36.73 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1048): * Single equations (assignments): 1042 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,93,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.007129/1.754, allocations: 3.466 MB / 0.8803 GB, free: 33.25 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001749/1.756, allocations: 0.6326 MB / 0.8809 GB, free: 32.61 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0264/1.782, allocations: 13.32 MB / 0.8939 GB, free: 19.21 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.577e-05/1.782, allocations: 39.91 kB / 0.8939 GB, free: 19.17 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.695e-05/1.782, allocations: 24.06 kB / 0.8939 GB, free: 19.15 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.414e-05/1.783, allocations: 15.94 kB / 0.894 GB, free: 19.13 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2816/2.064, allocations: 26.69 MB / 0.92 GB, free: 216.3 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.278e-05/2.064, allocations: 7.75 kB / 0.92 GB, free: 216.3 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002016/2.066, allocations: 418.2 kB / 0.9204 GB, free: 216.3 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01945/2.086, allocations: 6.67 MB / 0.9269 GB, free: 215.9 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008024/2.087, allocations: 67.45 kB / 0.927 GB, free: 215.9 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03872/2.125, allocations: 31.89 MB / 0.9582 GB, free: 199.1 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/2.125, allocations: 11.78 kB / 0.9582 GB, free: 199.1 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5759/2.701, allocations: 176.7 MB / 1.131 GB, free: 203.8 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002272/2.704, allocations: 0.6885 MB / 1.131 GB, free: 203.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001744/2.705, allocations: 60.98 kB / 1.131 GB, free: 203.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004393/2.71, allocations: 306.1 kB / 1.132 GB, free: 203.7 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001152/2.711, allocations: 245.7 kB / 1.132 GB, free: 203.7 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003159/2.711, allocations: 99.14 kB / 1.132 GB, free: 203.7 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.00718/2.718, allocations: 4.55 MB / 1.137 GB, free: 203.4 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.7e-07/2.718, allocations: 0.7188 kB / 1.137 GB, free: 203.4 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01229/2.731, allocations: 3.036 MB / 1.139 GB, free: 203.4 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (inertia.phi,inertia.w) * 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 (214): * Single equations (assignments): 208 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,87,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009275/2.732, allocations: 211.4 kB / 1.14 GB, free: 203.4 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.02/2.752, allocations: 11.58 MB / 1.151 GB, free: 202.4 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.469e-05/2.752, allocations: 5.281 kB / 1.151 GB, free: 202.4 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.008916/2.761, allocations: 4.999 MB / 1.156 GB, free: 201.3 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007099/2.768, allocations: 0.9197 MB / 1.157 GB, free: 200.9 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05082/2.819, allocations: 26.79 MB / 1.183 GB, free: 184.9 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0107/2.829, allocations: 5.679 MB / 1.188 GB, free: 180.6 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.008265/2.838, allocations: 2.634 MB / 1.191 GB, free: 179 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001551/2.839, allocations: 398.7 kB / 1.191 GB, free: 178.6 MB / 0.5262 GB Notification: Performance of SimCode: time 1.072e-06/2.839, allocations: 0 / 1.191 GB, free: 178.6 MB / 0.5262 GB Notification: Performance of Templates: time 0.1922/3.032, allocations: 135.4 MB / 1.324 GB, free: 46.28 MB / 0.5262 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches