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.001191/0.001191, allocations: 196.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008665/0.0008668, allocations: 90.09 kB / 292.1 MB, free: 5.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.614e-05/2.617e-05, allocations: 0 / 350.5 MB, free: 2.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1018, allocations: 51.48 MB / 402 MB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3504/0.4522, allocations: 100.3 MB / 0.4906 GB, free: 5.477 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/0.4525, allocations: 86.39 kB / 0.4907 GB, free: 5.434 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6816/1.134, allocations: 176.4 MB / 0.6629 GB, free: 68.74 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.944e-06/1.134, allocations: 4 kB / 0.6629 GB, free: 68.74 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007317/1.135, allocations: 166.6 kB / 0.663 GB, free: 68.73 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.02944/1.164, allocations: 8.202 MB / 0.671 GB, free: 63.56 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/1.164, allocations: 7.375 kB / 0.6711 GB, free: 63.56 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06064/1.225, allocations: 16.56 MB / 0.6872 GB, free: 51.98 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03038/1.255, allocations: 11.69 MB / 0.6986 GB, free: 40.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006194/1.256, allocations: 0.5458 MB / 0.6992 GB, free: 39.72 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003823/1.26, allocations: 0.7689 MB / 0.6999 GB, free: 38.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03691/1.297, allocations: 16.82 MB / 0.7164 GB, free: 20.81 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004714/1.297, allocations: 115 kB / 0.7165 GB, free: 20.7 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001879/1.299, allocations: 351.8 kB / 0.7168 GB, free: 20.35 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00187/1.301, allocations: 1.535 MB / 0.7183 GB, free: 18.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02713/1.328, allocations: 13.13 MB / 0.7311 GB, free: 5.668 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.403/1.731, allocations: 75.16 MB / 0.8045 GB, free: 43.61 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01906/1.75, allocations: 7.799 MB / 0.8121 GB, free: 42.9 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005835/1.756, allocations: 4.09 MB / 0.8161 GB, free: 42.86 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0226/1.779, allocations: 11.87 MB / 0.8277 GB, free: 40.84 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.749e-05/1.779, allocations: 68.75 kB / 0.8278 GB, free: 40.8 MB / 474.7 MB Notification: Performance of pre-optimization done (n=294): time 6.472e-06/1.779, allocations: 1.312 kB / 0.8278 GB, free: 40.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=361): time 0.1388/1.918, allocations: 40.43 MB / 0.8673 GB, free: 32.56 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/1.918, allocations: 403.2 kB / 0.8677 GB, free: 32.12 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01254/1.931, allocations: 6.248 MB / 0.8738 GB, free: 30.02 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009538/1.932, allocations: 77.88 kB / 0.8738 GB, free: 29.95 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004127/1.936, allocations: 5.408 MB / 0.8791 GB, free: 25.78 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002182/1.938, allocations: 1.322 MB / 0.8804 GB, free: 24.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000882/1.939, allocations: 174 kB / 0.8806 GB, free: 24.66 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005564/1.939, allocations: 0.6728 MB / 0.8812 GB, free: 24.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005778/1.945, allocations: 3.892 MB / 0.885 GB, free: 22.75 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009103/1.954, allocations: 8.667 MB / 0.8935 GB, free: 14.85 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008458/1.963, allocations: 5.695 MB / 0.8991 GB, free: 12.73 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001441/1.963, allocations: 52 kB / 0.8991 GB, free: 12.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.0401/2.003, allocations: 17.26 MB / 0.916 GB, free: 14.92 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001309/2.003, allocations: 80.06 kB / 0.916 GB, free: 14.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000248/2.004, allocations: 166.8 kB / 0.9162 GB, free: 14.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01851/2.022, allocations: 5.743 MB / 0.9218 GB, free: 10.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007056/2.029, allocations: 1.845 MB / 0.9236 GB, free: 9.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3695/2.399, allocations: 29.18 MB / 0.9521 GB, free: 97.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009284/2.408, allocations: 0.5435 MB / 0.9526 GB, free: 97.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002142/2.41, allocations: 491.5 kB / 0.9531 GB, free: 97.61 MB / 490.7 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 () * 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.002251/2.413, allocations: 0.7588 MB / 0.9538 GB, free: 97.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002002/2.415, allocations: 0.6781 MB / 0.9545 GB, free: 97.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02695/2.442, allocations: 11.51 MB / 0.9657 GB, free: 97.21 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.569e-05/2.442, allocations: 37.34 kB / 0.9658 GB, free: 97.21 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.762e-05/2.442, allocations: 27.39 kB / 0.9658 GB, free: 97.21 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.397e-05/2.442, allocations: 19.41 kB / 0.9658 GB, free: 97.21 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06363/2.505, allocations: 25.06 MB / 0.9903 GB, free: 88.42 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-05/2.506, allocations: 6.562 kB / 0.9903 GB, free: 88.42 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002586/2.508, allocations: 467.2 kB / 0.9908 GB, free: 88.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01709/2.525, allocations: 5.391 MB / 0.996 GB, free: 87.46 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000909/2.526, allocations: 61.89 kB / 0.9961 GB, free: 87.41 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03691/2.563, allocations: 28.04 MB / 1.023 GB, free: 74.54 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.575e-06/2.563, allocations: 8.906 kB / 1.023 GB, free: 74.54 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03053/2.594, allocations: 17.64 MB / 1.041 GB, free: 67.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005324/2.599, allocations: 1.304 MB / 1.042 GB, free: 66.66 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002165/2.601, allocations: 70.38 kB / 1.042 GB, free: 66.62 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004917/2.606, allocations: 268.2 kB / 1.042 GB, free: 66.58 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009935/2.607, allocations: 251.3 kB / 1.043 GB, free: 66.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002891/2.608, allocations: 99.67 kB / 1.043 GB, free: 66.52 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0092/2.617, allocations: 4.487 MB / 1.047 GB, free: 63.13 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.31e-07/2.617, allocations: 4 kB / 1.047 GB, free: 63.12 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01203/2.629, allocations: 2.051 MB / 1.049 GB, free: 61.09 MB / 490.7 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 () * 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.001057/2.63, allocations: 229.5 kB / 1.049 GB, free: 60.91 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01651/2.646, allocations: 10.41 MB / 1.059 GB, free: 51.94 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/2.647, allocations: 2.688 kB / 1.059 GB, free: 51.94 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007831/2.654, allocations: 4.699 MB / 1.064 GB, free: 47.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006823/2.661, allocations: 1.009 MB / 1.065 GB, free: 47 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03338/2.695, allocations: 16.33 MB / 1.081 GB, free: 32.52 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008045/2.703, allocations: 5.907 MB / 1.087 GB, free: 27.14 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01024/2.713, allocations: 2.739 MB / 1.089 GB, free: 24.59 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002081/2.715, allocations: 403.4 kB / 1.09 GB, free: 24.19 MB / 490.7 MB Notification: Performance of SimCode: time 1.924e-06/2.715, allocations: 0 / 1.09 GB, free: 24.19 MB / 490.7 MB Notification: Performance of Templates: time 0.5783/3.293, allocations: 88.12 MB / 1.176 GB, free: 82.8 MB / 490.7 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/jenkins/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