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.001114/0.001113, allocations: 182.8 kB / 18.04 MB, free: 3.633 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.302/1.302, allocations: 205.4 MB / 224.2 MB, free: 9.016 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.0008838/0.0008841, allocations: 90.34 kB / 272.5 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003089/0.0003091, allocations: 8 kB / 329.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.2101, allocations: 47.58 MB / 377 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1095/0.3197, allocations: 97.99 MB / 475 MB, free: 14.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/0.3201, allocations: 87.95 kB / 475.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5289/0.849, allocations: 162.8 MB / 0.623 GB, free: 8.867 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.849, allocations: 0 / 0.623 GB, free: 8.867 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0007319/0.8498, allocations: 168 kB / 0.6232 GB, free: 8.703 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.02805/0.8778, allocations: 9.061 MB / 0.632 GB, free: 15.54 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.8779, allocations: 8.031 kB / 0.632 GB, free: 15.53 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04663/0.9245, allocations: 11.62 MB / 0.6434 GB, free: 3.883 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2286/1.153, allocations: 12.34 MB / 0.6554 GB, free: 51.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005954/1.154, allocations: 0.5545 MB / 0.6559 GB, free: 51.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003134/1.157, allocations: 0.7625 MB / 0.6567 GB, free: 51.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03381/1.191, allocations: 16.78 MB / 0.6731 GB, free: 47.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004575/1.191, allocations: 114.5 kB / 0.6732 GB, free: 47.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00167/1.193, allocations: 353.5 kB / 0.6735 GB, free: 47.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002226/1.195, allocations: 1.54 MB / 0.675 GB, free: 47.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02542/1.221, allocations: 13.09 MB / 0.6878 GB, free: 47.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08105/1.302, allocations: 74.68 MB / 0.7607 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01775/1.319, allocations: 7.014 MB / 0.7676 GB, free: 10.23 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005787/1.325, allocations: 3.965 MB / 0.7715 GB, free: 7.406 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02324/1.349, allocations: 11.82 MB / 0.783 GB, free: 13.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.124e-05/1.349, allocations: 71.73 kB / 0.7831 GB, free: 13.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 5.77e-06/1.349, allocations: 0 / 0.7831 GB, free: 13.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=366): time 0.3696/1.718, allocations: 42.93 MB / 0.825 GB, free: 94.94 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/1.719, allocations: 402.8 kB / 0.8254 GB, free: 94.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01112/1.73, allocations: 7.278 MB / 0.8325 GB, free: 94.12 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008171/1.731, allocations: 85.78 kB / 0.8326 GB, free: 94.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003879/1.734, allocations: 5.447 MB / 0.8379 GB, free: 93.22 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001732/1.736, allocations: 1.343 MB / 0.8392 GB, free: 92.43 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006145/1.737, allocations: 172.4 kB / 0.8394 GB, free: 92.43 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003885/1.737, allocations: 0.6691 MB / 0.84 GB, free: 92.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005113/1.742, allocations: 3.543 MB / 0.8435 GB, free: 92.08 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008102/1.75, allocations: 8.428 MB / 0.8517 GB, free: 85.86 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01503/1.766, allocations: 13 MB / 0.8644 GB, free: 79.71 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002297/1.766, allocations: 47.97 kB / 0.8644 GB, free: 79.71 MB / 458.7 MB Notification: Performance of matching and sorting (n=1139) (initialization): time 0.03053/1.796, allocations: 14.96 MB / 0.8791 GB, free: 77.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001164/1.796, allocations: 80.44 kB / 0.8791 GB, free: 77.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002063/1.797, allocations: 167.1 kB / 0.8793 GB, free: 77.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01022/1.807, allocations: 3.714 MB / 0.8829 GB, free: 76.69 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005912/1.813, allocations: 1.867 MB / 0.8847 GB, free: 76.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02826/1.841, allocations: 23.88 MB / 0.9081 GB, free: 64.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007579/1.849, allocations: 0.4886 MB / 0.9085 GB, free: 64.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001542/1.85, allocations: 0.4952 MB / 0.909 GB, free: 64.5 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.007866/1.858, allocations: 3.627 MB / 0.9126 GB, free: 62.89 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001445/1.86, allocations: 0.6824 MB / 0.9132 GB, free: 62.52 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01655/1.876, allocations: 8.926 MB / 0.9219 GB, free: 59.19 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.051e-05/1.876, allocations: 39.84 kB / 0.922 GB, free: 59.15 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.5e-05/1.876, allocations: 20 kB / 0.922 GB, free: 59.13 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.389e-05/1.876, allocations: 15.66 kB / 0.922 GB, free: 59.13 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03395/1.91, allocations: 19.51 MB / 0.9411 GB, free: 43.28 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-05/1.911, allocations: 8 kB / 0.9411 GB, free: 43.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002099/1.913, allocations: 450.6 kB / 0.9415 GB, free: 42.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009318/1.922, allocations: 3.482 MB / 0.9449 GB, free: 40.43 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007065/1.923, allocations: 71.52 kB / 0.945 GB, free: 40.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02687/1.95, allocations: 23.14 MB / 0.9676 GB, free: 20.05 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.095e-06/1.95, allocations: 15.88 kB / 0.9676 GB, free: 20.04 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02169/1.971, allocations: 13.49 MB / 0.9808 GB, free: 8.473 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004206/1.976, allocations: 1.224 MB / 0.982 GB, free: 7.324 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001733/1.977, allocations: 71.28 kB / 0.982 GB, free: 7.258 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003625/1.981, allocations: 221.3 kB / 0.9822 GB, free: 7.113 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008415/1.982, allocations: 271 kB / 0.9825 GB, free: 6.93 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002466/1.982, allocations: 95.98 kB / 0.9826 GB, free: 6.84 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.2251/2.207, allocations: 4.854 MB / 0.9873 GB, free: 83.09 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.293e-06/2.207, allocations: 0 / 0.9873 GB, free: 83.09 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008708/2.216, allocations: 2.007 MB / 0.9893 GB, free: 83.09 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.0006192/2.217, allocations: 232.2 kB / 0.9895 GB, free: 83 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0123/2.229, allocations: 9.387 MB / 0.9987 GB, free: 82.49 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.361e-05/2.229, allocations: 2.438 kB / 0.9987 GB, free: 82.49 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006166/2.235, allocations: 4.13 MB / 1.003 GB, free: 82.03 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01474/2.25, allocations: 1.062 MB / 1.004 GB, free: 81.99 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03604/2.286, allocations: 21.55 MB / 1.025 GB, free: 73.96 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01429/2.3, allocations: 5.77 MB / 1.03 GB, free: 73.05 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.009052/2.31, allocations: 2.792 MB / 1.033 GB, free: 72.98 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002061/2.312, allocations: 415 kB / 1.034 GB, free: 72.98 MB / 458.7 MB Notification: Performance of SimCode: time 1.232e-06/2.312, allocations: 0 / 1.034 GB, free: 72.98 MB / 458.7 MB Notification: Performance of Templates: time 0.1499/2.462, allocations: 83.99 MB / 1.116 GB, free: 26.39 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/jenkins1/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