Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008569/0.000857, allocations: 92.27 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.46e-05/1.463e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1176, allocations: 50.42 MB / 387.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3497/0.4674, allocations: 99 MB / 486.5 MB, free: 11.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/0.4677, allocations: 87.95 kB / 486.5 MB, free: 11.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6357/1.103, allocations: 164.8 MB / 0.6361 GB, free: 69.96 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.553e-06/1.103, allocations: 0 / 0.6361 GB, free: 69.96 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008358/1.104, allocations: 164 kB / 0.6362 GB, free: 69.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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.03303/1.137, allocations: 8.154 MB / 0.6442 GB, free: 61.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.824e-05/1.137, allocations: 12.02 kB / 0.6442 GB, free: 61.57 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06148/1.199, allocations: 16.56 MB / 0.6604 GB, free: 44.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03236/1.231, allocations: 12.81 MB / 0.6729 GB, free: 32.21 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004466/1.232, allocations: 244 kB / 0.6731 GB, free: 31.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003879/1.236, allocations: 463.7 kB / 0.6736 GB, free: 31.52 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01873/1.254, allocations: 9.872 MB / 0.6832 GB, free: 21.65 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0325/1.287, allocations: 14.79 MB / 0.6977 GB, free: 5.551 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004807/1.288, allocations: 111 kB / 0.6978 GB, free: 5.441 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001964/1.29, allocations: 40 kB / 0.6978 GB, free: 5.402 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002398/1.292, allocations: 1.533 MB / 0.6993 GB, free: 3.867 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6148/1.907, allocations: 72.98 MB / 0.7706 GB, free: 38.09 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00953/1.916, allocations: 5.613 MB / 0.776 GB, free: 37.42 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004917/1.921, allocations: 3.983 MB / 0.7799 GB, free: 37.38 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009339/1.922, allocations: 0.8362 MB / 0.7808 GB, free: 36.71 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.134e-05/1.922, allocations: 68.75 kB / 0.7808 GB, free: 36.67 MB / 442.8 MB Notification: Performance of pre-optimization done (n=301): time 5.309e-06/1.922, allocations: 2.781 kB / 0.7808 GB, free: 36.67 MB / 442.8 MB Notification: Performance of matching and sorting (n=367): time 0.1065/2.029, allocations: 40.42 MB / 0.8203 GB, free: 26.82 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000169/2.029, allocations: 404.5 kB / 0.8207 GB, free: 26.38 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01336/2.042, allocations: 5.538 MB / 0.8261 GB, free: 24.45 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001049/2.044, allocations: 25.7 kB / 0.8261 GB, free: 24.42 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004188/2.048, allocations: 5.432 MB / 0.8314 GB, free: 20.41 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002004/2.05, allocations: 1.296 MB / 0.8327 GB, free: 19.43 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008479/2.051, allocations: 0 / 0.8327 GB, free: 19.43 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.000454/2.051, allocations: 0.6775 MB / 0.8333 GB, free: 18.96 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004521/2.056, allocations: 3.781 MB / 0.837 GB, free: 15.71 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006903/2.063, allocations: 8.649 MB / 0.8455 GB, free: 5.367 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007766/2.07, allocations: 5.584 MB / 0.8509 GB, free: 0.8359 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001597/2.071, allocations: 48.84 kB / 0.851 GB, free: 0.7891 MB / 442.8 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.04727/2.118, allocations: 16.85 MB / 0.8674 GB, free: 5.184 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001333/2.118, allocations: 80 kB / 0.8675 GB, free: 5.105 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002753/2.118, allocations: 172 kB / 0.8677 GB, free: 4.938 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01772/2.136, allocations: 5.67 MB / 0.8732 GB, free: 1.02 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006883/2.143, allocations: 1.895 MB / 0.8751 GB, free: 15.36 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3464/2.489, allocations: 27.07 MB / 0.9015 GB, free: 99.46 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008472/2.498, allocations: 381.9 kB / 0.9019 GB, free: 99.46 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00206/2.5, allocations: 0.495 MB / 0.9023 GB, free: 99.46 MB / 474.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 780 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1012): * Single equations (assignments): 1006 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,51.6%) 96,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.001817/2.502, allocations: 0.5527 MB / 0.9029 GB, free: 99.35 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001791/2.504, allocations: 0.6408 MB / 0.9035 GB, free: 99.35 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02622/2.53, allocations: 11.17 MB / 0.9144 GB, free: 99.07 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001085/2.53, allocations: 41.17 kB / 0.9145 GB, free: 99.07 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.957e-05/2.53, allocations: 20.44 kB / 0.9145 GB, free: 99.07 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001033/2.53, allocations: 15.61 kB / 0.9145 GB, free: 99.07 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04793/2.578, allocations: 23.8 MB / 0.9377 GB, free: 94.39 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-05/2.578, allocations: 11.38 kB / 0.9377 GB, free: 94.39 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002325/2.58, allocations: 471.4 kB / 0.9382 GB, free: 94.38 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01625/2.597, allocations: 5.321 MB / 0.9434 GB, free: 93.45 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008714/2.598, allocations: 13.94 kB / 0.9434 GB, free: 93.45 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03325/2.631, allocations: 25.85 MB / 0.9687 GB, free: 81.46 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-05/2.631, allocations: 8.781 kB / 0.9687 GB, free: 81.46 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02803/2.659, allocations: 17.32 MB / 0.9856 GB, free: 74.11 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003887/2.663, allocations: 1.272 MB / 0.9868 GB, free: 72.92 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001691/2.665, allocations: 8 kB / 0.9868 GB, free: 72.91 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005259/2.67, allocations: 216.6 kB / 0.987 GB, free: 72.8 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001128/2.671, allocations: 257.8 kB / 0.9873 GB, free: 72.64 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003872/2.672, allocations: 96 kB / 0.9874 GB, free: 72.55 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01006/2.682, allocations: 3.856 MB / 0.9911 GB, free: 69.23 MB / 474.8 MB Notification: Performance of sort global known variables: time 3.61e-07/2.682, allocations: 2.281 kB / 0.9911 GB, free: 69.23 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01507/2.697, allocations: 1.807 MB / 0.9929 GB, free: 67.43 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 2 (inertia.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (239): * Single equations (assignments): 233 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001261/2.698, allocations: 179.5 kB / 0.9931 GB, free: 67.3 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02252/2.721, allocations: 10.02 MB / 1.003 GB, free: 58.68 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/2.721, allocations: 0 / 1.003 GB, free: 58.68 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01166/2.732, allocations: 4.584 MB / 1.007 GB, free: 54.65 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008663/2.741, allocations: 0.8677 MB / 1.008 GB, free: 53.96 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05415/2.795, allocations: 16.16 MB / 1.024 GB, free: 39.66 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01867/2.814, allocations: 5.899 MB / 1.03 GB, free: 34.67 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.01363/2.828, allocations: 2.798 MB / 1.032 GB, free: 32.03 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002147/2.83, allocations: 387.4 kB / 1.033 GB, free: 31.66 MB / 474.8 MB Notification: Performance of SimCode: time 1.223e-06/2.83, allocations: 3.938 kB / 1.033 GB, free: 31.65 MB / 474.8 MB Notification: Performance of Templates: time 0.4337/3.263, allocations: 80.49 MB / 1.111 GB, free: 103.7 MB / 490.8 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches