Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 147.7 kB / 24.98 MB, free: 8.812 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9742/0.9742, allocations: 173.4 MB / 201.5 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 268.1 MB, free: 6.715 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.947e-05/3.146e-05, allocations: 5.688 kB / 268.1 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01429/0.01432, allocations: 18.86 MB / 287 MB, free: 3.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.122/0.1363, allocations: 5.882 MB / 292.8 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002824/0.1391, allocations: 192.4 kB / 293 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006635/0.1458, allocations: 6.314 MB / 299.3 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005798/0.1516, allocations: 3.56 MB / 302.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002224/0.1538, allocations: 1.825 MB / 304.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01067/0.1645, allocations: 14.28 MB / 319 MB, free: 4.094 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00663/0.1711, allocations: 7.727 MB / 326.7 MB, free: 12.72 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007693/0.1788, allocations: 5.577 MB / 332.3 MB, free: 7.461 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006998/0.1858, allocations: 5.766 MB / 338.1 MB, free: 2.105 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002112/0.1879, allocations: 0.7435 MB / 338.8 MB, free: 1.363 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003154/0.1911, allocations: 1.673 MB / 340.5 MB, free: 15.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003775/0.1948, allocations: 4.618 MB / 345.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004854/0.1997, allocations: 2.825 MB / 347.9 MB, free: 8.543 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01034/0.21, allocations: 8.996 MB / 356.9 MB, free: 15.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.21, allocations: 0 / 356.9 MB, free: 15.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.21, allocations: 0 / 356.9 MB, free: 15.91 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003817/0.2104, allocations: 0 / 356.9 MB, free: 15.91 MB / 314.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.01483/0.2252, allocations: 10.64 MB / 367.6 MB, free: 5.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.2253, allocations: 12.92 kB / 367.6 MB, free: 5.309 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02215/0.2474, allocations: 6.188 MB / 373.8 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01121/0.2586, allocations: 6.952 MB / 380.7 MB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002692/0.2589, allocations: 423.8 kB / 381.1 MB, free: 7.848 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00115/0.2601, allocations: 0.5842 MB / 381.7 MB, free: 7.312 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0148/0.2749, allocations: 10.31 MB / 392 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002273/0.2751, allocations: 91.3 kB / 392.1 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005316/0.2756, allocations: 263.5 kB / 392.4 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002791/0.2784, allocations: 2.765 MB / 395.1 MB, free: 8.602 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0117/0.2901, allocations: 5.413 MB / 400.6 MB, free: 3.18 MB / 346.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.258/0.5481, allocations: 70.04 MB / 470.6 MB, free: 68.34 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01076/0.5588, allocations: 4.922 MB / 475.5 MB, free: 68.16 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002034/0.5609, allocations: 1.391 MB / 476.9 MB, free: 68.11 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009672/0.5705, allocations: 7.407 MB / 484.3 MB, free: 65.68 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.079e-05/0.5706, allocations: 65.89 kB / 484.4 MB, free: 65.62 MB / 378.8 MB Notification: Performance of pre-optimization done (n=280): time 6.091e-06/0.5706, allocations: 0 / 484.4 MB, free: 65.62 MB / 378.8 MB Notification: Performance of matching and sorting (n=339): time 0.08601/0.6566, allocations: 39.22 MB / 0.5113 GB, free: 35.17 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.392e-05/0.6567, allocations: 397.6 kB / 0.5117 GB, free: 34.7 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006163/0.6628, allocations: 6.057 MB / 0.5176 GB, free: 28.83 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007552/0.6636, allocations: 77.7 kB / 0.5177 GB, free: 28.75 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002685/0.6663, allocations: 5.457 MB / 0.523 GB, free: 23.77 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0014/0.6677, allocations: 1.341 MB / 0.5243 GB, free: 22.45 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002227/0.6699, allocations: 1.939 MB / 0.5262 GB, free: 20.49 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.4e-05/0.6699, allocations: 476.8 kB / 0.5267 GB, free: 20.02 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002855/0.6728, allocations: 1.525 MB / 0.5282 GB, free: 18.49 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004996/0.6778, allocations: 8.681 MB / 0.5367 GB, free: 6.684 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01108/0.6889, allocations: 10.96 MB / 0.5474 GB, free: 8.625 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001564/0.689, allocations: 48 kB / 0.5474 GB, free: 8.578 MB / 394.8 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.02947/0.7185, allocations: 12.29 MB / 0.5594 GB, free: 12.24 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001143/0.7186, allocations: 78.97 kB / 0.5595 GB, free: 12.17 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002111/0.7188, allocations: 160 kB / 0.5596 GB, free: 12.01 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01388/0.7327, allocations: 5.149 MB / 0.5647 GB, free: 6.848 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004139/0.7368, allocations: 1.922 MB / 0.5665 GB, free: 4.922 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01987/0.7567, allocations: 14.44 MB / 0.5806 GB, free: 6.121 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005652/0.7624, allocations: 0.6866 MB / 0.5813 GB, free: 5.434 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000886/0.7632, allocations: 500 kB / 0.5818 GB, free: 4.945 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1048): * Single equations (assignments): 1042 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,93,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.002256/0.7655, allocations: 0.8556 MB / 0.5826 GB, free: 4.078 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001191/0.7667, allocations: 0.7147 MB / 0.5833 GB, free: 3.359 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1313/0.898, allocations: 7.309 MB / 0.5905 GB, free: 146.6 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.007e-05/0.8981, allocations: 35.44 kB / 0.5905 GB, free: 146.6 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.629e-05/0.8981, allocations: 18.88 kB / 0.5905 GB, free: 146.6 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.449e-05/0.8982, allocations: 16.64 kB / 0.5905 GB, free: 146.6 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02572/0.9239, allocations: 16.89 MB / 0.607 GB, free: 143.9 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/0.9239, allocations: 6.969 kB / 0.607 GB, free: 143.9 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009726/0.9249, allocations: 416.5 kB / 0.6074 GB, free: 143.9 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01048/0.9354, allocations: 4.803 MB / 0.6121 GB, free: 143.1 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002586/0.9356, allocations: 65.22 kB / 0.6122 GB, free: 143 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01561/0.9512, allocations: 13.65 MB / 0.6255 GB, free: 133.2 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.9513, allocations: 7.781 kB / 0.6255 GB, free: 133.2 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01413/0.9654, allocations: 9.033 MB / 0.6343 GB, free: 126 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/0.9668, allocations: 0.6644 MB / 0.635 GB, free: 125.7 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005727/0.9674, allocations: 63.56 kB / 0.6351 GB, free: 125.6 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001861/0.9692, allocations: 401.3 kB / 0.6354 GB, free: 125.2 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000533/0.9698, allocations: 258.4 kB / 0.6357 GB, free: 125 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000177/0.97, allocations: 91.89 kB / 0.6358 GB, free: 124.9 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.002949/0.9729, allocations: 2.833 MB / 0.6385 GB, free: 122.1 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9729, allocations: 0 / 0.6385 GB, free: 122.1 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.005663/0.9786, allocations: 2.435 MB / 0.6409 GB, free: 119.6 MB / 426.8 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 208 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,87,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004832/0.9791, allocations: 234.5 kB / 0.6411 GB, free: 119.4 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.007713/0.9868, allocations: 6.675 MB / 0.6477 GB, free: 112.8 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.9868, allocations: 0 / 0.6477 GB, free: 112.8 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003252/0.99, allocations: 2.956 MB / 0.6505 GB, free: 109.8 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002874/0.9929, allocations: 0.9359 MB / 0.6515 GB, free: 108.9 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01736/1.01, allocations: 15.58 MB / 0.6667 GB, free: 93.18 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001614/1.012, allocations: 2.337 MB / 0.669 GB, free: 90.82 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002855/1.015, allocations: 2.15 MB / 0.6711 GB, free: 88.66 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006738/1.015, allocations: 392.4 kB / 0.6714 GB, free: 88.28 MB / 426.8 MB Notification: Performance of SimCode: time 1.934e-06/1.015, allocations: 0 / 0.6714 GB, free: 88.28 MB / 426.8 MB Notification: Performance of Templates: time 0.2054/1.221, allocations: 95.68 MB / 0.7649 GB, free: 131.8 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.5368944690562785]