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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009899/0.0009899, allocations: 95.5 kB / 21.2 MB, free: 3.363 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001002/0.001002, allocations: 156.5 kB / 24.56 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.931/0.931, allocations: 177 MB / 204.8 MB, free: 5.566 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 272.9 MB, free: 1.398 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.546e-05/2.696e-05, allocations: 6.25 kB / 272.9 MB, free: 1.391 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.1264/0.1264, allocations: 18.85 MB / 291.8 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009218/0.1356, allocations: 5.917 MB / 297.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002417/0.138, allocations: 192.9 kB / 297.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006438/0.1445, allocations: 6.297 MB / 304.2 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006197/0.1507, allocations: 3.534 MB / 307.7 MB, free: 9.598 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002347/0.153, allocations: 1.811 MB / 309.5 MB, free: 8.469 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01045/0.1635, allocations: 14.81 MB / 324.4 MB, free: 14.08 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007704/0.1712, allocations: 7.72 MB / 332.1 MB, free: 6.293 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01151/0.1827, allocations: 8.38 MB / 340.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007121/0.1898, allocations: 5.721 MB / 346.2 MB, free: 8.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001844/0.1916, allocations: 0.75 MB / 346.9 MB, free: 7.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002655/0.1943, allocations: 1.658 MB / 348.6 MB, free: 5.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003004/0.1973, allocations: 4.602 MB / 353.2 MB, free: 1.137 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003975/0.2013, allocations: 2.809 MB / 356 MB, free: 14.32 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008695/0.21, allocations: 8.978 MB / 365 MB, free: 5.312 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.21, allocations: 4 kB / 365 MB, free: 5.309 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.21, allocations: 0 / 365 MB, free: 5.309 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003188/0.2103, allocations: 0 / 365 MB, free: 5.309 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.01449/0.2248, allocations: 10.71 MB / 375.7 MB, free: 10.51 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.2248, allocations: 11.98 kB / 375.7 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02121/0.246, allocations: 5.981 MB / 381.7 MB, free: 4.504 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009547/0.2556, allocations: 6.138 MB / 387.8 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000258/0.2558, allocations: 423.4 kB / 388.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001011/0.2569, allocations: 0.5859 MB / 388.8 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0189/0.2758, allocations: 10.36 MB / 399.2 MB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003961/0.2762, allocations: 91.3 kB / 399.3 MB, free: 1.352 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00104/0.2772, allocations: 263.8 kB / 399.5 MB, free: 1.094 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00348/0.2807, allocations: 2.674 MB / 402.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01245/0.2931, allocations: 5.26 MB / 407.5 MB, free: 9.145 MB / 362.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.2608/0.5539, allocations: 70.79 MB / 478.3 MB, free: 58.09 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008293/0.5622, allocations: 3.871 MB / 482.1 MB, free: 57.92 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001315/0.5635, allocations: 1.086 MB / 483.2 MB, free: 57.86 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01291/0.5764, allocations: 7.404 MB / 490.6 MB, free: 55.89 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.002e-05/0.5765, allocations: 65.3 kB / 490.7 MB, free: 55.83 MB / 378.8 MB Notification: Performance of pre-optimization done (n=248): time 5.751e-06/0.5765, allocations: 0 / 490.7 MB, free: 55.83 MB / 378.8 MB Notification: Performance of matching and sorting (n=298): time 0.0494/0.6259, allocations: 24.63 MB / 0.5032 GB, free: 39.5 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.404e-05/0.626, allocations: 401.8 kB / 0.5036 GB, free: 39.02 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004758/0.6307, allocations: 6.201 MB / 0.5097 GB, free: 33.04 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001435/0.6309, allocations: 69.7 kB / 0.5097 GB, free: 32.97 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001857/0.6327, allocations: 5.571 MB / 0.5152 GB, free: 27.96 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005082/0.6332, allocations: 1.202 MB / 0.5163 GB, free: 26.77 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00133/0.6346, allocations: 1.942 MB / 0.5182 GB, free: 24.82 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.059e-05/0.6346, allocations: 484.7 kB / 0.5187 GB, free: 24.34 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00151/0.6361, allocations: 1.037 MB / 0.5197 GB, free: 23.3 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003376/0.6395, allocations: 8.685 MB / 0.5282 GB, free: 11.26 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006378/0.6459, allocations: 10.38 MB / 0.5383 GB, free: 13.93 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.076e-05/0.6459, allocations: 48 kB / 0.5384 GB, free: 13.88 MB / 394.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.0112/0.6571, allocations: 8.493 MB / 0.5467 GB, free: 5.324 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.534e-05/0.6572, allocations: 76 kB / 0.5467 GB, free: 5.25 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000132/0.6573, allocations: 176 kB / 0.5469 GB, free: 5.078 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003355/0.6607, allocations: 1.627 MB / 0.5485 GB, free: 3.434 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003451/0.6641, allocations: 2.063 MB / 0.5505 GB, free: 1.367 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007114/0.6713, allocations: 7.249 MB / 0.5576 GB, free: 9.879 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003512/0.6748, allocations: 0.6202 MB / 0.5582 GB, free: 9.258 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004325/0.6752, allocations: 0.5 MB / 0.5587 GB, free: 8.758 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * 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 (1106): * Single equations (assignments): 1099 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 0 systems * 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,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.001748/0.6769, allocations: 0.879 MB / 0.5596 GB, free: 7.867 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006861/0.6776, allocations: 0.6952 MB / 0.5602 GB, free: 7.168 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004312/0.6819, allocations: 2.988 MB / 0.5631 GB, free: 4.141 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.468e-05/0.682, allocations: 39.92 kB / 0.5632 GB, free: 4.102 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.682, allocations: 8 kB / 0.5632 GB, free: 4.094 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.682, allocations: 15.95 kB / 0.5632 GB, free: 4.078 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01436/0.6964, allocations: 11.38 MB / 0.5743 GB, free: 8.336 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/0.6964, allocations: 20 kB / 0.5743 GB, free: 8.316 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.6974, allocations: 0.4992 MB / 0.5748 GB, free: 7.816 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002997/0.7004, allocations: 1.374 MB / 0.5762 GB, free: 6.43 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001532/0.7006, allocations: 72 kB / 0.5762 GB, free: 6.359 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1256/0.8262, allocations: 6.223 MB / 0.5823 GB, free: 134.8 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-05/0.8262, allocations: 33.25 kB / 0.5824 GB, free: 134.8 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008069/0.8343, allocations: 5.144 MB / 0.5874 GB, free: 132.8 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001532/0.8358, allocations: 0.6864 MB / 0.588 GB, free: 132.8 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006651/0.8365, allocations: 79.14 kB / 0.5881 GB, free: 132.8 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001603/0.8381, allocations: 270.3 kB / 0.5884 GB, free: 132.8 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005142/0.8386, allocations: 271.2 kB / 0.5886 GB, free: 132.8 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000178/0.8388, allocations: 104.8 kB / 0.5887 GB, free: 132.8 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.004487/0.8433, allocations: 2.88 MB / 0.5916 GB, free: 132.6 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.81e-07/0.8433, allocations: 1.5 kB / 0.5916 GB, free: 132.6 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.005553/0.8488, allocations: 2.02 MB / 0.5935 GB, free: 132.6 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 89 * 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 (246): * Single equations (assignments): 239 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 0 systems * 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,38,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004665/0.8493, allocations: 256.9 kB / 0.5938 GB, free: 132.5 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.006235/0.8555, allocations: 5.077 MB / 0.5987 GB, free: 131.8 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/0.8555, allocations: 5.109 kB / 0.5987 GB, free: 131.8 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001897/0.8574, allocations: 1.826 MB / 0.6005 GB, free: 131.3 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002933/0.8604, allocations: 0.9659 MB / 0.6015 GB, free: 131.2 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01614/0.8765, allocations: 14.36 MB / 0.6155 GB, free: 124.9 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001696/0.8782, allocations: 2.294 MB / 0.6177 GB, free: 123.7 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.003216/0.8814, allocations: 2.202 MB / 0.6199 GB, free: 122.5 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006204/0.882, allocations: 393.9 kB / 0.6202 GB, free: 122.2 MB / 426.8 MB Notification: Performance of SimCode: time 1.623e-06/0.882, allocations: 0 / 0.6202 GB, free: 122.2 MB / 426.8 MB Notification: Performance of Templates: time 0.07447/0.9565, allocations: 66.66 MB / 0.6853 GB, free: 58.76 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.000341850798577]