Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001406/0.001406, allocations: 196.7 kB / 18.1 MB, free: 3.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 226.5 MB / 245.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001062/0.001062, allocations: 98.17 kB / 297.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003026/0.0003027, allocations: 8 kB / 358.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2633, allocations: 51.3 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1139/0.3772, allocations: 100.4 MB / 0.4979 GB, free: 7.027 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.3775, allocations: 92.73 kB / 0.4979 GB, free: 6.938 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5592/0.9368, allocations: 169.4 MB / 0.6633 GB, free: 10.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.917e-06/0.9368, allocations: 0 / 0.6633 GB, free: 10.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006554/0.9375, allocations: 167.9 kB / 0.6635 GB, free: 10.06 MB / 442.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.02806/0.9656, allocations: 9.034 MB / 0.6723 GB, free: 0.9336 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.9656, allocations: 8.031 kB / 0.6723 GB, free: 0.9258 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4674/1.433, allocations: 11.61 MB / 0.6837 GB, free: 57.48 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02419/1.457, allocations: 10.83 MB / 0.6943 GB, free: 56.83 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004783/1.458, allocations: 0.547 MB / 0.6948 GB, free: 56.82 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003069/1.461, allocations: 0.7603 MB / 0.6955 GB, free: 56.8 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03665/1.498, allocations: 16.78 MB / 0.7119 GB, free: 53.19 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005317/1.498, allocations: 109.6 kB / 0.712 GB, free: 53.18 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002319/1.5, allocations: 354.6 kB / 0.7124 GB, free: 53.17 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001964/1.502, allocations: 1.53 MB / 0.7139 GB, free: 53.15 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02653/1.529, allocations: 13.1 MB / 0.7266 GB, free: 53.1 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07385/1.603, allocations: 75.03 MB / 0.7999 GB, free: 1.305 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03485/1.638, allocations: 9.086 MB / 0.8088 GB, free: 13.86 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005333/1.643, allocations: 4.132 MB / 0.8128 GB, free: 10.16 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01763/1.661, allocations: 11.8 MB / 0.8244 GB, free: 184 kB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.238e-05/1.661, allocations: 74.72 kB / 0.8244 GB, free: 104 kB / 458.8 MB Notification: Performance of pre-optimization done (n=294): time 4.999e-06/1.661, allocations: 0 / 0.8244 GB, free: 104 kB / 458.8 MB Notification: Performance of matching and sorting (n=361): time 0.4408/2.102, allocations: 49.11 MB / 0.8724 GB, free: 95.98 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/2.102, allocations: 406 kB / 0.8728 GB, free: 95.54 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01155/2.113, allocations: 7.14 MB / 0.8797 GB, free: 95.02 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008025/2.114, allocations: 77.95 kB / 0.8798 GB, free: 94.99 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003598/2.118, allocations: 5.404 MB / 0.8851 GB, free: 92.84 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001555/2.119, allocations: 1.325 MB / 0.8864 GB, free: 92.06 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004816/2.12, allocations: 174.4 kB / 0.8866 GB, free: 92.06 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003508/2.12, allocations: 0.6726 MB / 0.8872 GB, free: 91.73 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005839/2.126, allocations: 3.967 MB / 0.8911 GB, free: 91.71 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007756/2.134, allocations: 8.783 MB / 0.8997 GB, free: 85.6 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01428/2.148, allocations: 13.75 MB / 0.9131 GB, free: 79.56 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001865/2.148, allocations: 47.47 kB / 0.9131 GB, free: 79.56 MB / 490.8 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.03608/2.185, allocations: 17.43 MB / 0.9302 GB, free: 76.34 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003127/2.185, allocations: 74.53 kB / 0.9302 GB, free: 76.34 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003772/2.185, allocations: 164.9 kB / 0.9304 GB, free: 76.34 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01661/2.202, allocations: 5.738 MB / 0.936 GB, free: 75.36 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006628/2.209, allocations: 1.85 MB / 0.9378 GB, free: 75.14 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03684/2.245, allocations: 29.25 MB / 0.9664 GB, free: 61.48 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008963/2.254, allocations: 0.5425 MB / 0.9669 GB, free: 61.32 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002221/2.257, allocations: 492.8 kB / 0.9674 GB, free: 61.05 MB / 490.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.009313/2.266, allocations: 3.592 MB / 0.9709 GB, free: 57.93 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001896/2.268, allocations: 0.6711 MB / 0.9715 GB, free: 57.25 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02446/2.292, allocations: 11.59 MB / 0.9828 GB, free: 48.4 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.528e-05/2.293, allocations: 36 kB / 0.9829 GB, free: 48.36 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.298e-05/2.293, allocations: 23.61 kB / 0.9829 GB, free: 48.34 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.976e-05/2.293, allocations: 14.86 kB / 0.9829 GB, free: 48.34 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04997/2.343, allocations: 25.16 MB / 1.007 GB, free: 27.72 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.655e-05/2.343, allocations: 7.281 kB / 1.008 GB, free: 27.71 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002231/2.345, allocations: 469.3 kB / 1.008 GB, free: 27.34 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01506/2.36, allocations: 5.395 MB / 1.013 GB, free: 23.72 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006173/2.361, allocations: 64 kB / 1.013 GB, free: 23.66 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.304/2.665, allocations: 28.15 MB / 1.041 GB, free: 85.41 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.874e-06/2.665, allocations: 10.31 kB / 1.041 GB, free: 85.41 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02941/2.694, allocations: 16.68 MB / 1.057 GB, free: 84.55 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00381/2.698, allocations: 1.306 MB / 1.058 GB, free: 84.46 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002009/2.7, allocations: 71.58 kB / 1.058 GB, free: 84.46 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004009/2.704, allocations: 270 kB / 1.059 GB, free: 84.46 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009997/2.705, allocations: 249 kB / 1.059 GB, free: 84.45 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003708/2.706, allocations: 102.3 kB / 1.059 GB, free: 84.45 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.008827/2.714, allocations: 4.561 MB / 1.063 GB, free: 84.23 MB / 490.8 MB Notification: Performance of sort global known variables: time 3.71e-07/2.714, allocations: 0 / 1.063 GB, free: 84.23 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.009859/2.724, allocations: 2.05 MB / 1.065 GB, free: 84.23 MB / 490.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.0009146/2.725, allocations: 234.9 kB / 1.066 GB, free: 84.14 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01579/2.741, allocations: 10.56 MB / 1.076 GB, free: 83.62 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/2.741, allocations: 0 / 1.076 GB, free: 83.62 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0076/2.749, allocations: 4.773 MB / 1.081 GB, free: 83.16 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01429/2.763, allocations: 1.047 MB / 1.082 GB, free: 83.12 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03515/2.798, allocations: 22.52 MB / 1.104 GB, free: 73.97 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008583/2.807, allocations: 5.731 MB / 1.109 GB, free: 72.15 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.008466/2.815, allocations: 2.733 MB / 1.112 GB, free: 72.09 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001548/2.817, allocations: 407.5 kB / 1.112 GB, free: 72.08 MB / 490.8 MB Notification: Performance of SimCode: time 6.91e-07/2.817, allocations: 0 / 1.112 GB, free: 72.08 MB / 490.8 MB Notification: Performance of Templates: time 0.139/2.956, allocations: 88.54 MB / 1.199 GB, free: 7.996 MB / 490.8 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches