Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009535/0.0009535, allocations: 175.7 kB / 17.4 MB, free: 4.422 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.288/1.288, allocations: 223.3 MB / 241.4 MB, free: 11.59 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.000881/0.0008811, allocations: 98.88 kB / 292.6 MB, free: 10.76 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003744/0.0003744, allocations: 15.94 kB / 352.3 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2332, allocations: 50.39 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1243/0.3575, allocations: 112 MB / 0.5027 GB, free: 292 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.3578, allocations: 95.95 kB / 0.5028 GB, free: 196 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8756/1.233, allocations: 181.7 MB / 0.6802 GB, free: 43.81 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.985e-06/1.233, allocations: 0 / 0.6802 GB, free: 43.81 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001176/1.235, allocations: 184.3 kB / 0.6803 GB, free: 43.8 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: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.04116/1.276, allocations: 9.956 MB / 0.6901 GB, free: 40.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/1.276, allocations: 9.781 kB / 0.6901 GB, free: 40.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07186/1.348, allocations: 11.71 MB / 0.7015 GB, free: 39.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02543/1.373, allocations: 12.23 MB / 0.7135 GB, free: 37.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005253/1.374, allocations: 0.6253 MB / 0.7141 GB, free: 37.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003419/1.377, allocations: 0.8592 MB / 0.7149 GB, free: 37.92 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04238/1.42, allocations: 19.18 MB / 0.7336 GB, free: 34.26 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005858/1.42, allocations: 111.8 kB / 0.7337 GB, free: 34.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001883/1.422, allocations: 388.9 kB / 0.7341 GB, free: 34.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001835/1.424, allocations: 1.604 MB / 0.7357 GB, free: 34.22 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02808/1.452, allocations: 15.28 MB / 0.7506 GB, free: 31.13 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09119/1.543, allocations: 80.28 MB / 0.829 GB, free: 6.871 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02037/1.564, allocations: 7.909 MB / 0.8367 GB, free: 372 kB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2503/1.814, allocations: 4.965 MB / 0.8416 GB, free: 84.08 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01895/1.833, allocations: 13.95 MB / 0.8552 GB, free: 80.64 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/1.833, allocations: 68.33 kB / 0.8553 GB, free: 80.59 MB / 474.7 MB Notification: Performance of pre-optimization done (n=310): time 5.811e-06/1.833, allocations: 0 / 0.8553 GB, free: 80.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=417): time 0.1622/1.995, allocations: 51.31 MB / 0.9054 GB, free: 75.31 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/1.995, allocations: 410.6 kB / 0.9058 GB, free: 74.87 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01051/2.006, allocations: 7.422 MB / 0.913 GB, free: 74.29 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000897/2.007, allocations: 95.59 kB / 0.9131 GB, free: 74.26 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003251/2.01, allocations: 5.804 MB / 0.9188 GB, free: 71.84 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001531/2.012, allocations: 1.517 MB / 0.9203 GB, free: 70.93 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004618/2.012, allocations: 187.5 kB / 0.9204 GB, free: 70.93 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003793/2.013, allocations: 0.7013 MB / 0.9211 GB, free: 70.61 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006216/2.019, allocations: 4.284 MB / 0.9253 GB, free: 69.01 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007699/2.026, allocations: 9.312 MB / 0.9344 GB, free: 60.75 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01385/2.04, allocations: 14.68 MB / 0.9487 GB, free: 49.14 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000146/2.041, allocations: 55.66 kB / 0.9488 GB, free: 49.09 MB / 474.7 MB Notification: Performance of matching and sorting (n=1218) (initialization): time 0.03486/2.075, allocations: 17.66 MB / 0.966 GB, free: 34.49 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002421/2.076, allocations: 80.22 kB / 0.9661 GB, free: 34.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000318/2.076, allocations: 176 kB / 0.9663 GB, free: 34.24 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01426/2.09, allocations: 4.903 MB / 0.9711 GB, free: 30.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006331/2.097, allocations: 1.978 MB / 0.973 GB, free: 28.97 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03553/2.132, allocations: 26.57 MB / 0.9989 GB, free: 6.254 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007829/2.14, allocations: 0.5455 MB / 0.9995 GB, free: 5.793 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001667/2.142, allocations: 0.5196 MB / 1 GB, free: 5.285 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1061): * Single equations (assignments): 1056 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008887/2.151, allocations: 4.087 MB / 1.004 GB, free: 1.703 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001802/2.153, allocations: 0.7058 MB / 1.005 GB, free: 0.9883 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2529/2.405, allocations: 11.68 MB / 1.016 GB, free: 87.89 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.995e-05/2.406, allocations: 44.56 kB / 1.016 GB, free: 87.89 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.161e-05/2.406, allocations: 21.72 kB / 1.016 GB, free: 87.89 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.94e-05/2.406, allocations: 17.25 kB / 1.016 GB, free: 87.89 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04518/2.451, allocations: 24.81 MB / 1.04 GB, free: 86.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.435e-05/2.451, allocations: 6.406 kB / 1.04 GB, free: 86.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002883/2.454, allocations: 0.5713 MB / 1.041 GB, free: 86.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01373/2.468, allocations: 4.502 MB / 1.045 GB, free: 86.35 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007036/2.468, allocations: 75 kB / 1.045 GB, free: 86.35 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03091/2.499, allocations: 23.45 MB / 1.068 GB, free: 82.43 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/2.499, allocations: 16.28 kB / 1.068 GB, free: 82.43 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.028/2.527, allocations: 17.05 MB / 1.085 GB, free: 75.76 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003924/2.531, allocations: 1.397 MB / 1.086 GB, free: 75.33 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001928/2.533, allocations: 78.53 kB / 1.086 GB, free: 75.28 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004468/2.538, allocations: 265 kB / 1.087 GB, free: 75.23 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001176/2.539, allocations: 294.7 kB / 1.087 GB, free: 75.18 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004468/2.539, allocations: 107.8 kB / 1.087 GB, free: 75.16 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01111/2.55, allocations: 4.744 MB / 1.092 GB, free: 73.59 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.82e-07/2.551, allocations: 0 / 1.092 GB, free: 73.59 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01303/2.564, allocations: 2.222 MB / 1.094 GB, free: 73.36 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (288): * Single equations (assignments): 284 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 113} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001483/2.565, allocations: 273.1 kB / 1.094 GB, free: 73.22 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0167/2.582, allocations: 10.92 MB / 1.105 GB, free: 69.37 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.247e-05/2.582, allocations: 0 / 1.105 GB, free: 69.37 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00689/2.589, allocations: 4.669 MB / 1.109 GB, free: 67.39 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01524/2.604, allocations: 1.108 MB / 1.11 GB, free: 66.96 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04289/2.647, allocations: 24.8 MB / 1.135 GB, free: 47.16 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01091/2.658, allocations: 6.379 MB / 1.141 GB, free: 42.4 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008652/2.667, allocations: 2.941 MB / 1.144 GB, free: 40.67 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001535/2.668, allocations: 434.9 kB / 1.144 GB, free: 40.25 MB / 490.7 MB Notification: Performance of SimCode: time 9.82e-07/2.668, allocations: 0 / 1.144 GB, free: 40.25 MB / 490.7 MB Notification: Performance of Templates: time 0.3772/3.045, allocations: 95.1 MB / 1.237 GB, free: 77.07 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches