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.0009033/0.0009033, allocations: 171.8 kB / 17.4 MB, free: 4.395 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.287/1.287, allocations: 223.3 MB / 241.4 MB, free: 11.67 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.000809/0.000809, allocations: 100.9 kB / 292.6 MB, free: 10.75 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002893/0.0002893, allocations: 12 kB / 352.3 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2052, allocations: 50.4 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1125/0.3178, allocations: 99.89 MB / 0.4909 GB, free: 12.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.318, allocations: 93.83 kB / 0.4909 GB, free: 12.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5392/0.8572, allocations: 164.3 MB / 0.6514 GB, free: 8.258 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.8572, allocations: 0 / 0.6514 GB, free: 8.258 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007158/0.858, allocations: 164 kB / 0.6515 GB, free: 8.098 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.3835/1.241, allocations: 8.976 MB / 0.6603 GB, free: 46.82 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/1.242, allocations: 10.88 kB / 0.6603 GB, free: 46.82 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04326/1.285, allocations: 11.61 MB / 0.6717 GB, free: 46.26 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02186/1.307, allocations: 11.39 MB / 0.6828 GB, free: 45.46 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003354/1.307, allocations: 0.5514 MB / 0.6833 GB, free: 45.45 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002181/1.309, allocations: 0.761 MB / 0.6841 GB, free: 45.43 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02652/1.336, allocations: 16.78 MB / 0.7004 GB, free: 41.82 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004668/1.336, allocations: 115.5 kB / 0.7006 GB, free: 41.8 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001724/1.338, allocations: 352.9 kB / 0.7009 GB, free: 41.8 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001874/1.34, allocations: 1.531 MB / 0.7024 GB, free: 41.79 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02259/1.363, allocations: 13.09 MB / 0.7152 GB, free: 41.73 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07582/1.438, allocations: 75.04 MB / 0.7885 GB, free: 3.52 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0232/1.462, allocations: 8.132 MB / 0.7964 GB, free: 13.94 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005121/1.467, allocations: 4.137 MB / 0.8004 GB, free: 10.23 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02006/1.487, allocations: 11.8 MB / 0.812 GB, free: 132 kB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.87e-05/1.487, allocations: 72.44 kB / 0.812 GB, free: 52 kB / 458.8 MB Notification: Performance of pre-optimization done (n=294): time 6.272e-06/1.487, allocations: 0 / 0.812 GB, free: 52 kB / 458.8 MB Notification: Performance of matching and sorting (n=361): time 0.3985/1.886, allocations: 49.53 MB / 0.8604 GB, free: 89.02 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/1.886, allocations: 410.4 kB / 0.8608 GB, free: 88.58 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01042/1.896, allocations: 7.142 MB / 0.8678 GB, free: 88.05 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007814/1.897, allocations: 81.77 kB / 0.8678 GB, free: 88.02 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003356/1.9, allocations: 5.411 MB / 0.8731 GB, free: 85.8 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001501/1.902, allocations: 1.313 MB / 0.8744 GB, free: 85.02 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004131/1.902, allocations: 173.5 kB / 0.8746 GB, free: 85.02 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0003223/1.903, allocations: 0.6657 MB / 0.8752 GB, free: 84.69 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00486/1.907, allocations: 3.968 MB / 0.8791 GB, free: 84.67 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006449/1.914, allocations: 8.79 MB / 0.8877 GB, free: 78.56 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01292/1.927, allocations: 13.74 MB / 0.9011 GB, free: 72.52 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001344/1.927, allocations: 51.72 kB / 0.9011 GB, free: 72.52 MB / 474.8 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.03145/1.958, allocations: 17.44 MB / 0.9182 GB, free: 67.59 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001186/1.959, allocations: 78.03 kB / 0.9183 GB, free: 67.59 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001629/1.959, allocations: 167.5 kB / 0.9184 GB, free: 67.59 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01569/1.974, allocations: 5.727 MB / 0.924 GB, free: 66.57 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005933/1.98, allocations: 1.849 MB / 0.9258 GB, free: 66.35 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03427/2.015, allocations: 29.25 MB / 0.9544 GB, free: 41.98 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007456/2.022, allocations: 0.5421 MB / 0.9549 GB, free: 41.53 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001411/2.024, allocations: 490.8 kB / 0.9554 GB, free: 41.06 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (982): * Single equations (assignments): 976 * 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%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.006611/2.03, allocations: 3.591 MB / 0.9589 GB, free: 37.93 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001422/2.032, allocations: 0.6771 MB / 0.9595 GB, free: 37.25 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02184/2.054, allocations: 11.59 MB / 0.9709 GB, free: 28.35 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.196e-05/2.054, allocations: 36 kB / 0.9709 GB, free: 28.31 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.132e-05/2.054, allocations: 23.94 kB / 0.9709 GB, free: 28.29 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.874e-05/2.054, allocations: 17.77 kB / 0.9709 GB, free: 28.29 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04313/2.097, allocations: 25.16 MB / 0.9955 GB, free: 7.598 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.076e-05/2.097, allocations: 4 kB / 0.9955 GB, free: 7.594 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002174/2.099, allocations: 466.7 kB / 0.996 GB, free: 7.219 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01477/2.114, allocations: 5.393 MB / 1.001 GB, free: 2.754 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006243/2.115, allocations: 67.94 kB / 1.001 GB, free: 2.688 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2436/2.358, allocations: 28.12 MB / 1.029 GB, free: 78.64 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/2.358, allocations: 6.406 kB / 1.029 GB, free: 78.64 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02795/2.386, allocations: 16.68 MB / 1.045 GB, free: 77.76 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003956/2.39, allocations: 1.309 MB / 1.046 GB, free: 77.66 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001764/2.392, allocations: 68.88 kB / 1.046 GB, free: 77.66 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003426/2.395, allocations: 269.5 kB / 1.047 GB, free: 77.66 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008184/2.396, allocations: 250 kB / 1.047 GB, free: 77.65 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002537/2.396, allocations: 92.97 kB / 1.047 GB, free: 77.65 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.007518/2.404, allocations: 4.562 MB / 1.051 GB, free: 77.15 MB / 474.8 MB Notification: Performance of sort global known variables: time 3.41e-07/2.404, allocations: 0 / 1.051 GB, free: 77.15 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.009151/2.413, allocations: 2.048 MB / 1.053 GB, free: 76.95 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (233): * Single equations (assignments): 227 * 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.0008037/2.414, allocations: 233.8 kB / 1.054 GB, free: 76.81 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01561/2.43, allocations: 10.56 MB / 1.064 GB, free: 73.17 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 9.968e-06/2.43, allocations: 3.5 kB / 1.064 GB, free: 73.17 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00724/2.437, allocations: 4.767 MB / 1.069 GB, free: 71.18 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01254/2.45, allocations: 1.05 MB / 1.07 GB, free: 70.77 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03358/2.483, allocations: 22.53 MB / 1.092 GB, free: 60.04 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006914/2.49, allocations: 5.731 MB / 1.097 GB, free: 56.46 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.007/2.497, allocations: 2.733 MB / 1.1 GB, free: 54.87 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001073/2.498, allocations: 408.7 kB / 1.1 GB, free: 54.48 MB / 474.8 MB Notification: Performance of SimCode: time 7.01e-07/2.498, allocations: 0 / 1.1 GB, free: 54.48 MB / 474.8 MB Notification: Performance of Templates: time 0.3882/2.886, allocations: 88.53 MB / 1.187 GB, free: 86.75 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/jenkins1/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