Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00117/0.00117, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.532/1.532, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008177/0.0008176, allocations: 100.1 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002799/0.0002799, allocations: 12 kB / 328.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2706, allocations: 47.56 MB / 375.8 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1291/0.3997, allocations: 97.82 MB / 473.6 MB, free: 14.81 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003549/0.4001, allocations: 91.95 kB / 473.7 MB, free: 14.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5887/0.9888, allocations: 166.5 MB / 0.6252 GB, free: 5.582 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.9889, allocations: 0 / 0.6252 GB, free: 5.582 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0008885/0.9898, allocations: 168 kB / 0.6254 GB, free: 5.418 MB / 394.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.03397/1.024, allocations: 9.315 MB / 0.6345 GB, free: 12.01 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/1.024, allocations: 15.95 kB / 0.6345 GB, free: 11.99 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3099/1.334, allocations: 16.55 MB / 0.6507 GB, free: 51.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03358/1.367, allocations: 13.83 MB / 0.6642 GB, free: 50.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006008/1.368, allocations: 0.5514 MB / 0.6647 GB, free: 50.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003984/1.372, allocations: 0.7575 MB / 0.6655 GB, free: 50.94 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04066/1.413, allocations: 16.97 MB / 0.682 GB, free: 47.33 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006083/1.413, allocations: 113.5 kB / 0.6821 GB, free: 47.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002378/1.416, allocations: 350.4 kB / 0.6825 GB, free: 47.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002245/1.418, allocations: 1.54 MB / 0.684 GB, free: 47.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02834/1.446, allocations: 13.34 MB / 0.697 GB, free: 47.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08765/1.534, allocations: 74.81 MB / 0.7701 GB, free: 9.695 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01809/1.552, allocations: 7.088 MB / 0.777 GB, free: 3.789 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02352/1.576, allocations: 11.92 MB / 0.7886 GB, free: 9.547 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.537e-05/1.576, allocations: 69.72 kB / 0.7887 GB, free: 9.477 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 6.022e-06/1.576, allocations: 0 / 0.7887 GB, free: 9.477 MB / 442.7 MB Notification: Performance of matching and sorting (n=366): time 0.3902/1.966, allocations: 42.8 MB / 0.8305 GB, free: 91.24 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/1.966, allocations: 414.1 kB / 0.8309 GB, free: 90.79 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01182/1.978, allocations: 6.434 MB / 0.8372 GB, free: 90.31 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000973/1.979, allocations: 86.7 kB / 0.8372 GB, free: 90.28 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005041/1.984, allocations: 5.446 MB / 0.8426 GB, free: 88.13 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002425/1.987, allocations: 1.341 MB / 0.8439 GB, free: 87.34 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009199/1.988, allocations: 174.5 kB / 0.844 GB, free: 87.34 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004568/1.988, allocations: 0.6727 MB / 0.8447 GB, free: 87.01 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00523/1.993, allocations: 3.538 MB / 0.8482 GB, free: 86.99 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009029/2.002, allocations: 8.401 MB / 0.8564 GB, free: 80.77 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008875/2.011, allocations: 5.315 MB / 0.8616 GB, free: 80.72 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002309/2.011, allocations: 48.84 kB / 0.8616 GB, free: 80.72 MB / 458.7 MB Notification: Performance of matching and sorting (n=1139) (initialization): time 0.0316/2.043, allocations: 14.97 MB / 0.8762 GB, free: 79.75 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003662/2.044, allocations: 76.03 kB / 0.8763 GB, free: 79.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003418/2.044, allocations: 171.3 kB / 0.8765 GB, free: 79.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01103/2.055, allocations: 3.731 MB / 0.8801 GB, free: 79.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006928/2.062, allocations: 1.863 MB / 0.8819 GB, free: 78.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0332/2.095, allocations: 24.73 MB / 0.9061 GB, free: 66.83 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008979/2.104, allocations: 0.4954 MB / 0.9066 GB, free: 66.67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002513/2.107, allocations: 0.4953 MB / 0.907 GB, free: 66.61 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 770 * 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],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1003): * Single equations (assignments): 997 * 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 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.01185/2.119, allocations: 3.624 MB / 0.9106 GB, free: 65 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002411/2.121, allocations: 0.687 MB / 0.9112 GB, free: 64.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02056/2.142, allocations: 8.913 MB / 0.92 GB, free: 61.44 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-05/2.142, allocations: 39.3 kB / 0.92 GB, free: 61.44 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.726e-05/2.142, allocations: 18.75 kB / 0.92 GB, free: 61.44 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.412e-05/2.142, allocations: 19.73 kB / 0.92 GB, free: 61.44 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04457/2.186, allocations: 19.49 MB / 0.9391 GB, free: 46.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.659e-05/2.187, allocations: 11.95 kB / 0.9391 GB, free: 46.08 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002147/2.189, allocations: 453.2 kB / 0.9395 GB, free: 45.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009787/2.199, allocations: 3.483 MB / 0.9429 GB, free: 43.23 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006798/2.199, allocations: 66.73 kB / 0.943 GB, free: 43.17 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02869/2.228, allocations: 24 MB / 0.9664 GB, free: 22.17 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/2.228, allocations: 23.19 kB / 0.9664 GB, free: 22.16 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02226/2.25, allocations: 15.04 MB / 0.9811 GB, free: 8.926 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004517/2.255, allocations: 1.225 MB / 0.9823 GB, free: 7.773 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001854/2.257, allocations: 69.41 kB / 0.9824 GB, free: 7.707 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003659/2.26, allocations: 217.8 kB / 0.9826 GB, free: 7.566 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007713/2.261, allocations: 269 kB / 0.9828 GB, free: 7.391 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002495/2.261, allocations: 99.42 kB / 0.9829 GB, free: 7.297 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.2588/2.52, allocations: 4.676 MB / 0.9875 GB, free: 82.15 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.81e-07/2.52, allocations: 0 / 0.9875 GB, free: 82.15 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01306/2.533, allocations: 2.007 MB / 0.9895 GB, free: 82.15 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (243): * Single equations (assignments): 237 * 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,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001209/2.535, allocations: 229.7 kB / 0.9897 GB, free: 82.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01763/2.552, allocations: 9.389 MB / 0.9988 GB, free: 81.56 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.029e-05/2.552, allocations: 2.094 kB / 0.9988 GB, free: 81.56 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00735/2.56, allocations: 4.132 MB / 1.003 GB, free: 81.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008502/2.568, allocations: 1.015 MB / 1.004 GB, free: 81.06 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04165/2.61, allocations: 21.5 MB / 1.025 GB, free: 73.02 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009817/2.62, allocations: 5.94 MB / 1.031 GB, free: 72.11 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.009431/2.629, allocations: 2.789 MB / 1.033 GB, free: 72.05 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002076/2.631, allocations: 415.2 kB / 1.034 GB, free: 72.05 MB / 458.7 MB Notification: Performance of SimCode: time 1.753e-06/2.631, allocations: 6.953 kB / 1.034 GB, free: 72.05 MB / 458.7 MB Notification: Performance of Templates: time 0.1467/2.778, allocations: 83.56 MB / 1.115 GB, free: 24.92 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches