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.00113/0.00113, allocations: 179.5 kB / 16.39 MB, free: 5.766 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.32/1.32, allocations: 223.2 MB / 240.3 MB, free: 10.12 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.0009347/0.0009349, allocations: 92.67 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002439/0.0002439, allocations: 8 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.2293, allocations: 50.4 MB / 401.5 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1306/0.3599, allocations: 111.8 MB / 0.5012 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.3602, allocations: 99.89 kB / 0.5013 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8083/1.169, allocations: 185.4 MB / 0.6824 GB, free: 42.43 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.585e-06/1.169, allocations: 0 / 0.6824 GB, free: 42.43 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000787/1.169, allocations: 181.9 kB / 0.6825 GB, free: 42.43 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.03239/1.202, allocations: 10.24 MB / 0.6925 GB, free: 38.69 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/1.202, allocations: 11.28 kB / 0.6925 GB, free: 38.69 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05813/1.26, allocations: 16.63 MB / 0.7088 GB, free: 38.08 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03365/1.294, allocations: 13.72 MB / 0.7222 GB, free: 36.79 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006148/1.294, allocations: 0.6311 MB / 0.7228 GB, free: 36.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003585/1.298, allocations: 0.8589 MB / 0.7236 GB, free: 36.76 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04244/1.34, allocations: 19.42 MB / 0.7426 GB, free: 33.06 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007004/1.341, allocations: 110.8 kB / 0.7427 GB, free: 33.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003286/1.344, allocations: 392.6 kB / 0.7431 GB, free: 33.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002441/1.347, allocations: 1.594 MB / 0.7446 GB, free: 33.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03346/1.38, allocations: 15.6 MB / 0.7599 GB, free: 24.77 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3826/1.763, allocations: 80.48 MB / 0.8384 GB, free: 76.37 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01977/1.783, allocations: 7.93 MB / 0.8462 GB, free: 75.68 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02055/1.803, allocations: 14.04 MB / 0.8599 GB, free: 72.22 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.339e-05/1.804, allocations: 73.7 kB / 0.86 GB, free: 72.18 MB / 474.7 MB Notification: Performance of pre-optimization done (n=310): time 5.531e-06/1.804, allocations: 0 / 0.86 GB, free: 72.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=417): time 0.1772/1.981, allocations: 51.48 MB / 0.9102 GB, free: 66.35 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/1.981, allocations: 404.5 kB / 0.9106 GB, free: 65.91 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01416/1.995, allocations: 6.566 MB / 0.917 GB, free: 65.37 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001041/1.996, allocations: 88.83 kB / 0.9171 GB, free: 65.34 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004834/2.001, allocations: 5.813 MB / 0.9228 GB, free: 62.89 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002043/2.003, allocations: 1.515 MB / 0.9243 GB, free: 61.99 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00131/2.004, allocations: 182 kB / 0.9245 GB, free: 61.99 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008542/2.005, allocations: 0.699 MB / 0.9251 GB, free: 61.66 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006841/2.012, allocations: 4.284 MB / 0.9293 GB, free: 60.66 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009348/2.022, allocations: 9.28 MB / 0.9384 GB, free: 52.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009783/2.031, allocations: 6.196 MB / 0.9444 GB, free: 48.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002255/2.032, allocations: 48 kB / 0.9445 GB, free: 48.75 MB / 474.7 MB Notification: Performance of matching and sorting (n=1218) (initialization): time 0.03781/2.069, allocations: 17.67 MB / 0.9617 GB, free: 34.57 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002475/2.07, allocations: 80 kB / 0.9618 GB, free: 34.49 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003112/2.07, allocations: 176 kB / 0.962 GB, free: 34.32 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01547/2.086, allocations: 4.928 MB / 0.9668 GB, free: 30.76 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007324/2.093, allocations: 1.968 MB / 0.9687 GB, free: 29.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03867/2.132, allocations: 27.61 MB / 0.9957 GB, free: 5.41 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008606/2.14, allocations: 0.5388 MB / 0.9962 GB, free: 4.953 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002118/2.142, allocations: 0.5145 MB / 0.9967 GB, free: 4.445 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.01051/2.153, allocations: 4.092 MB / 1.001 GB, free: 0.8672 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002405/2.155, allocations: 0.7058 MB / 1.001 GB, free: 156 kB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2647/2.42, allocations: 11.69 MB / 1.013 GB, free: 89.41 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-05/2.42, allocations: 40.59 kB / 1.013 GB, free: 89.41 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-05/2.42, allocations: 25.62 kB / 1.013 GB, free: 89.41 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001004/2.42, allocations: 23.5 kB / 1.013 GB, free: 89.41 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05475/2.475, allocations: 24.8 MB / 1.037 GB, free: 87.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-05/2.475, allocations: 7.875 kB / 1.037 GB, free: 87.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002846/2.478, allocations: 0.5694 MB / 1.038 GB, free: 87.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01463/2.493, allocations: 4.502 MB / 1.042 GB, free: 87.87 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000924/2.494, allocations: 81.06 kB / 1.042 GB, free: 87.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03599/2.53, allocations: 24.46 MB / 1.066 GB, free: 83.57 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.164e-05/2.53, allocations: 16.48 kB / 1.066 GB, free: 83.56 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03627/2.566, allocations: 18.52 MB / 1.084 GB, free: 75.18 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005763/2.572, allocations: 1.4 MB / 1.086 GB, free: 74.75 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002906/2.575, allocations: 72.22 kB / 1.086 GB, free: 74.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006025/2.581, allocations: 259.9 kB / 1.086 GB, free: 74.65 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001652/2.583, allocations: 293.5 kB / 1.086 GB, free: 74.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008235/2.583, allocations: 124.6 kB / 1.086 GB, free: 74.57 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01104/2.595, allocations: 4.738 MB / 1.091 GB, free: 73 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.21e-07/2.595, allocations: 0 / 1.091 GB, free: 73 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01369/2.608, allocations: 2.228 MB / 1.093 GB, free: 72.78 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.001681/2.61, allocations: 277.9 kB / 1.093 GB, free: 72.64 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01801/2.628, allocations: 10.92 MB / 1.104 GB, free: 68.79 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.575e-05/2.628, allocations: 1.938 kB / 1.104 GB, free: 68.79 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008271/2.636, allocations: 4.668 MB / 1.109 GB, free: 66.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007122/2.644, allocations: 1.05 MB / 1.11 GB, free: 66.41 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05178/2.695, allocations: 24.74 MB / 1.134 GB, free: 46.45 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01711/2.713, allocations: 6.558 MB / 1.14 GB, free: 41.7 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01266/2.725, allocations: 2.942 MB / 1.143 GB, free: 39.96 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002292/2.728, allocations: 438.4 kB / 1.143 GB, free: 39.54 MB / 490.7 MB Notification: Performance of SimCode: time 1.432e-06/2.728, allocations: 0 / 1.143 GB, free: 39.54 MB / 490.7 MB Notification: Performance of Templates: time 0.4283/3.156, allocations: 94.68 MB / 1.236 GB, free: 79.39 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/jenkins/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