Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009716/0.0009713, allocations: 194.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009347/0.0009347, allocations: 98.38 kB / 286.7 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.548e-05/1.55e-05, allocations: 4 kB / 343.7 MB, free: 8.262 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1061, allocations: 51.48 MB / 395.2 MB, free: 4.738 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3578/0.464, allocations: 98.06 MB / 493.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/0.4642, allocations: 84.58 kB / 493.3 MB, free: 11.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6837/1.148, allocations: 168.6 MB / 0.6464 GB, free: 70.44 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.344e-06/1.148, allocations: 0 / 0.6464 GB, free: 70.44 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007977/1.149, allocations: 159.2 kB / 0.6465 GB, free: 70.44 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02729/1.176, allocations: 7.903 MB / 0.6543 GB, free: 66.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/1.176, allocations: 11.66 kB / 0.6543 GB, free: 66.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06011/1.236, allocations: 16.48 MB / 0.6704 GB, free: 62.59 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0301/1.266, allocations: 11.39 MB / 0.6815 GB, free: 56.33 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007272/1.267, allocations: 239.6 kB / 0.6817 GB, free: 56.32 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005344/1.273, allocations: 446.5 kB / 0.6821 GB, free: 56.29 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02169/1.294, allocations: 9.485 MB / 0.6914 GB, free: 48.23 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03594/1.33, allocations: 14.27 MB / 0.7053 GB, free: 32.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008356/1.331, allocations: 103 kB / 0.7054 GB, free: 32.54 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003221/1.334, allocations: 40 kB / 0.7055 GB, free: 32.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002257/1.337, allocations: 1.495 MB / 0.7069 GB, free: 31.01 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3849/1.722, allocations: 71.17 MB / 0.7764 GB, free: 43.42 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006719/1.728, allocations: 5.394 MB / 0.7817 GB, free: 42.75 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004647/1.733, allocations: 3.862 MB / 0.7855 GB, free: 42.71 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009118/1.734, allocations: 0.8315 MB / 0.7863 GB, free: 42.06 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.003e-05/1.734, allocations: 71.42 kB / 0.7864 GB, free: 42.02 MB / 458.7 MB Notification: Performance of pre-optimization done (n=287): time 4.869e-06/1.734, allocations: 0 / 0.7864 GB, free: 42.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=347): time 0.09506/1.829, allocations: 40.01 MB / 0.8254 GB, free: 33.87 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/1.829, allocations: 406.1 kB / 0.8258 GB, free: 33.42 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009739/1.839, allocations: 5.394 MB / 0.8311 GB, free: 31.54 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008859/1.84, allocations: 25.7 kB / 0.8311 GB, free: 31.51 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003838/1.844, allocations: 5.25 MB / 0.8362 GB, free: 27.59 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001787/1.846, allocations: 1.24 MB / 0.8374 GB, free: 26.66 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004948/1.846, allocations: 0 / 0.8374 GB, free: 26.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000491/1.847, allocations: 0.6618 MB / 0.8381 GB, free: 26.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004402/1.851, allocations: 3.634 MB / 0.8416 GB, free: 24.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006979/1.858, allocations: 8.398 MB / 0.8498 GB, free: 16.99 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007367/1.866, allocations: 5.4 MB / 0.8551 GB, free: 15.05 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001463/1.866, allocations: 51.84 kB / 0.8552 GB, free: 15.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=1115) (initialization): time 0.03552/1.901, allocations: 15.64 MB / 0.8704 GB, free: 9.191 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002383/1.902, allocations: 76 kB / 0.8705 GB, free: 9.117 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00032/1.902, allocations: 168 kB / 0.8707 GB, free: 8.953 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01638/1.918, allocations: 5.357 MB / 0.8759 GB, free: 5.262 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00737/1.926, allocations: 1.855 MB / 0.8777 GB, free: 3.648 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04526/1.971, allocations: 26.22 MB / 0.9033 GB, free: 13.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009086/1.98, allocations: 366.6 kB / 0.9037 GB, free: 13.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002546/1.983, allocations: 495.2 kB / 0.9041 GB, free: 12.91 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 764 * Number of states: 0 () * Number of discrete variables: 66 (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 (979): * Single equations (assignments): 973 * 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%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.004146/1.987, allocations: 0.5406 MB / 0.9047 GB, free: 12.38 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002597/1.989, allocations: 0.6229 MB / 0.9053 GB, free: 11.75 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02717/2.017, allocations: 10.6 MB / 0.9156 GB, free: 3.652 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.081e-05/2.017, allocations: 40 kB / 0.9157 GB, free: 3.613 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.225e-05/2.017, allocations: 20 kB / 0.9157 GB, free: 3.594 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.984e-05/2.017, allocations: 17.44 kB / 0.9157 GB, free: 3.594 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3574/2.374, allocations: 22.78 MB / 0.9379 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.198e-05/2.374, allocations: 6.562 kB / 0.938 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002535/2.377, allocations: 454.3 kB / 0.9384 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01553/2.392, allocations: 5.016 MB / 0.9433 GB, free: 100.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000793/2.393, allocations: 17.12 kB / 0.9433 GB, free: 100.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03611/2.429, allocations: 24.68 MB / 0.9674 GB, free: 93.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.632e-05/2.43, allocations: 11.78 kB / 0.9674 GB, free: 93.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02962/2.459, allocations: 16.51 MB / 0.9835 GB, free: 87.26 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002457/2.462, allocations: 0.6182 MB / 0.9841 GB, free: 87.15 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001377/2.463, allocations: 11.75 kB / 0.9842 GB, free: 87.15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003063/2.466, allocations: 205.3 kB / 0.9844 GB, free: 87.14 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007298/2.467, allocations: 244.9 kB / 0.9846 GB, free: 87.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002388/2.467, allocations: 89.59 kB / 0.9847 GB, free: 87.09 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006872/2.474, allocations: 3.765 MB / 0.9883 GB, free: 85.75 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.01e-07/2.474, allocations: 0.6562 kB / 0.9883 GB, free: 85.75 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009593/2.484, allocations: 1.736 MB / 0.99 GB, free: 85.75 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (222): * Single equations (assignments): 216 * 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%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006872/2.484, allocations: 177.7 kB / 0.9902 GB, free: 85.66 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01394/2.498, allocations: 9.612 MB / 0.9996 GB, free: 82.27 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/2.498, allocations: 0 / 0.9996 GB, free: 82.27 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006521/2.505, allocations: 4.342 MB / 1.004 GB, free: 80.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006173/2.511, allocations: 0.8454 MB / 1.005 GB, free: 80.11 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03212/2.543, allocations: 15.5 MB / 1.02 GB, free: 74.67 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008309/2.552, allocations: 5.7 MB / 1.025 GB, free: 72.64 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007375/2.559, allocations: 2.708 MB / 1.028 GB, free: 71.04 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001276/2.56, allocations: 374.7 kB / 1.028 GB, free: 70.68 MB / 490.7 MB Notification: Performance of SimCode: time 1.133e-06/2.56, allocations: 0 / 1.028 GB, free: 70.68 MB / 490.7 MB Notification: Performance of Templates: time 0.4542/3.014, allocations: 76.33 MB / 1.103 GB, free: 93.52 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches