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/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.0008722/0.0008722, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.0009263/0.0009263, allocations: 144.4 kB / 24.89 MB, free: 9.152 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.9118/0.9118, allocations: 173.3 MB / 201.5 MB, free: 9.203 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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,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=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 268.6 MB, free: 6.105 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.734e-05/2.897e-05, allocations: 6.25 kB / 268.6 MB, free: 6.098 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01878/0.0188, allocations: 19.32 MB / 287.9 MB, free: 2.695 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1168/0.1356, allocations: 6.342 MB / 294.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002793/0.1384, allocations: 204.2 kB / 294.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007945/0.1463, allocations: 6.719 MB / 301.1 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006013/0.1523, allocations: 3.712 MB / 304.9 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002566/0.1549, allocations: 1.922 MB / 306.8 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01051/0.1654, allocations: 14.5 MB / 321.3 MB, free: 1.699 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005762/0.1712, allocations: 7.588 MB / 328.9 MB, free: 10.41 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007299/0.1784, allocations: 8.375 MB / 337.2 MB, free: 2.746 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004732/0.1832, allocations: 5.673 MB / 342.9 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007919/0.184, allocations: 0.7852 MB / 343.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002007/0.186, allocations: 1.759 MB / 345.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002747/0.1887, allocations: 4.828 MB / 350.3 MB, free: 6.227 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002554/0.1913, allocations: 2.953 MB / 353.2 MB, free: 3.398 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007212/0.1985, allocations: 9.378 MB / 362.6 MB, free: 10.4 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1985, allocations: 0 / 362.6 MB, free: 10.4 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1985, allocations: 0 / 362.6 MB, free: 10.4 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.562e-05/0.1986, allocations: 0 / 362.6 MB, free: 10.4 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.0092/0.2078, allocations: 9.379 MB / 372 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.2078, allocations: 12.92 kB / 372 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007239/0.215, allocations: 2.279 MB / 374.3 MB, free: 14.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007179/0.2222, allocations: 5.173 MB / 379.5 MB, free: 9.43 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002764/0.2225, allocations: 448 kB / 379.9 MB, free: 8.992 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001178/0.2237, allocations: 0.6132 MB / 380.5 MB, free: 8.379 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01071/0.2344, allocations: 8.727 MB / 389.2 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001896/0.2346, allocations: 91.28 kB / 389.3 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004557/0.235, allocations: 283.8 kB / 389.6 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002043/0.2371, allocations: 2.613 MB / 392.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008295/0.2454, allocations: 4.214 MB / 396.4 MB, free: 7.309 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.1857/0.431, allocations: 52.1 MB / 448.5 MB, free: 81.94 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009669/0.4407, allocations: 3.303 MB / 451.8 MB, free: 81.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001332/0.442, allocations: 0.7619 MB / 452.6 MB, free: 81.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01147/0.4535, allocations: 6.803 MB / 459.4 MB, free: 80.97 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.38e-05/0.4535, allocations: 60.25 kB / 459.5 MB, free: 80.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=261): time 4.779e-06/0.4536, allocations: 3 kB / 459.5 MB, free: 80.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=317): time 0.04513/0.4987, allocations: 15.74 MB / 475.2 MB, free: 79.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.524e-05/0.4988, allocations: 393.9 kB / 475.6 MB, free: 78.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004445/0.5032, allocations: 5.683 MB / 481.3 MB, free: 74.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001567/0.5034, allocations: 77.64 kB / 481.3 MB, free: 74.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001231/0.5046, allocations: 4.786 MB / 486.1 MB, free: 69.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004935/0.5051, allocations: 1.228 MB / 487.4 MB, free: 68.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001137/0.5062, allocations: 1.762 MB / 489.1 MB, free: 66.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.549e-05/0.5063, allocations: 305.1 kB / 489.4 MB, free: 66.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00152/0.5078, allocations: 1.179 MB / 490.6 MB, free: 65.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002344/0.5101, allocations: 6.331 MB / 496.9 MB, free: 56.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003962/0.5141, allocations: 8.11 MB / 0.4932 GB, free: 46.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.801e-05/0.5141, allocations: 48 kB / 0.4933 GB, free: 46.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=1209) (initialization): time 0.00623/0.5203, allocations: 6.694 MB / 0.4998 GB, free: 39.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.352e-05/0.5204, allocations: 82.84 kB / 0.4999 GB, free: 39.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.598e-05/0.5205, allocations: 176 kB / 0.5 GB, free: 39.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002487/0.523, allocations: 1.314 MB / 0.5013 GB, free: 38.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003112/0.5261, allocations: 2.168 MB / 0.5034 GB, free: 35.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004753/0.5308, allocations: 5.635 MB / 0.5089 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003351/0.5342, allocations: 391.7 kB / 0.5093 GB, free: 29.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003265/0.5345, allocations: 444 kB / 0.5097 GB, free: 29.28 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 802 * 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 (1133): * Single equations (assignments): 1126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,46,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001635/0.5361, allocations: 0.8632 MB / 0.5106 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000485/0.5366, allocations: 435.5 kB / 0.511 GB, free: 27.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002765/0.5394, allocations: 2.314 MB / 0.5133 GB, free: 25.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-05/0.5394, allocations: 32 kB / 0.5133 GB, free: 25.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.5394, allocations: 8 kB / 0.5133 GB, free: 25.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.5394, allocations: 11.95 kB / 0.5133 GB, free: 25.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009667/0.5491, allocations: 9.44 MB / 0.5225 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/0.5491, allocations: 20 kB / 0.5225 GB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001351/0.5505, allocations: 0.8118 MB / 0.5233 GB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002317/0.5528, allocations: 1.076 MB / 0.5244 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000132/0.5529, allocations: 79.98 kB / 0.5245 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004267/0.5572, allocations: 5.142 MB / 0.5295 GB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.5572, allocations: 31.88 kB / 0.5295 GB, free: 8.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004277/0.5615, allocations: 4.067 MB / 0.5335 GB, free: 3.781 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/0.5627, allocations: 0.8704 MB / 0.5343 GB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004944/0.5632, allocations: 83.97 kB / 0.5344 GB, free: 2.824 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001229/0.5644, allocations: 87.97 kB / 0.5345 GB, free: 2.738 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003289/0.5648, allocations: 277.1 kB / 0.5348 GB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/0.5649, allocations: 87.98 kB / 0.5348 GB, free: 2.379 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001894/0.5668, allocations: 2.323 MB / 0.5371 GB, free: 76 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5668, allocations: 4.031 kB / 0.5371 GB, free: 72 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.005386/0.5721, allocations: 2.105 MB / 0.5392 GB, free: 13.96 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 90 * 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 (261): * Single equations (assignments): 254 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,42,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004503/0.5726, allocations: 253.8 kB / 0.5394 GB, free: 13.71 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005525/0.5781, allocations: 4.206 MB / 0.5435 GB, free: 9.504 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001985/0.5783, allocations: 132.2 kB / 0.5437 GB, free: 9.363 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001733/0.5801, allocations: 1.338 MB / 0.545 GB, free: 8.004 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004139/0.5842, allocations: 1.36 MB / 0.5463 GB, free: 6.668 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01821/0.6024, allocations: 14.69 MB / 0.5606 GB, free: 7.578 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002343/0.6047, allocations: 2.385 MB / 0.563 GB, free: 5.16 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00234/0.6071, allocations: 0.8734 MB / 0.5638 GB, free: 4.285 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001744/0.6088, allocations: 1.061 MB / 0.5648 GB, free: 3.215 MB / 410.7 MB Notification: Performance of SimCode: time 1.473e-06/0.6088, allocations: 0 / 0.5648 GB, free: 3.215 MB / 410.7 MB Notification: Performance of Templates: time 0.2074/0.8163, allocations: 72.91 MB / 0.6361 GB, free: 121.3 MB / 426.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.742421412374824]