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.001027/0.001027, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001036/0.001036, allocations: 152.8 kB / 24.81 MB, free: 9.281 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 1.005/1.005, allocations: 173.4 MB / 201.4 MB, free: 9.242 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.503e-06/1.503e-06, allocations: 0 / 268.4 MB, free: 6.199 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.85e-05/2e-05, allocations: 6.25 kB / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01452/0.01454, allocations: 18.25 MB / 286.7 MB, free: 3.859 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1357/0.1503, allocations: 5.855 MB / 292.5 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00237/0.1526, allocations: 197.6 kB / 292.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006546/0.1592, allocations: 6.21 MB / 298.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005362/0.1645, allocations: 3.57 MB / 302.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002221/0.1668, allocations: 1.818 MB / 304.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01003/0.1768, allocations: 14.28 MB / 318.6 MB, free: 4.094 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00659/0.1834, allocations: 7.733 MB / 326.3 MB, free: 12.71 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008374/0.1918, allocations: 8.429 MB / 334.8 MB, free: 5.008 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006032/0.1978, allocations: 5.716 MB / 340.5 MB, free: 15.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001247/0.199, allocations: 0.75 MB / 341.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002313/0.2014, allocations: 1.689 MB / 342.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003085/0.2044, allocations: 4.618 MB / 347.6 MB, free: 8.816 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002864/0.2073, allocations: 2.833 MB / 350.4 MB, free: 6.105 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007156/0.2145, allocations: 9.037 MB / 359.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.2145, allocations: 0 / 359.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2145, allocations: 0 / 359.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001299/0.2146, allocations: 0 / 359.4 MB, free: 13.43 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.01043/0.225, allocations: 9.943 MB / 369.4 MB, free: 3.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.2251, allocations: 16.92 kB / 369.4 MB, free: 3.664 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0191/0.2442, allocations: 5.018 MB / 374.4 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007676/0.2518, allocations: 5.33 MB / 379.7 MB, free: 9.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002693/0.2521, allocations: 423.4 kB / 380.1 MB, free: 8.816 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008891/0.253, allocations: 0.5819 MB / 380.7 MB, free: 8.234 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01001/0.263, allocations: 9.293 MB / 390 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001412/0.2631, allocations: 95.27 kB / 390.1 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004139/0.2636, allocations: 271.8 kB / 390.4 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001927/0.2655, allocations: 2.51 MB / 392.9 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006837/0.2723, allocations: 4.059 MB / 396.9 MB, free: 6.504 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.2723/0.5446, allocations: 69.57 MB / 466.5 MB, free: 64.33 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007489/0.5521, allocations: 3.214 MB / 469.7 MB, free: 64.16 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.5531, allocations: 0.9122 MB / 470.6 MB, free: 64.1 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008804/0.5619, allocations: 6.939 MB / 477.6 MB, free: 63.12 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.412e-05/0.5619, allocations: 70.8 kB / 477.6 MB, free: 63.08 MB / 378.8 MB Notification: Performance of pre-optimization done (n=248): time 4.448e-06/0.5619, allocations: 0 / 477.6 MB, free: 63.08 MB / 378.8 MB Notification: Performance of matching and sorting (n=298): time 0.04136/0.6033, allocations: 17.57 MB / 495.2 MB, free: 57.55 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.536e-05/0.6034, allocations: 393.1 kB / 495.6 MB, free: 57.09 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004405/0.6078, allocations: 6.13 MB / 0.49 GB, free: 51.8 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001197/0.6079, allocations: 73.7 kB / 0.49 GB, free: 51.72 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001881/0.6098, allocations: 5.622 MB / 0.4955 GB, free: 46.57 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005138/0.6103, allocations: 1.213 MB / 0.4967 GB, free: 45.35 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001332/0.6116, allocations: 1.973 MB / 0.4986 GB, free: 43.36 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.677e-05/0.6117, allocations: 480.7 kB / 0.4991 GB, free: 42.89 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.6128, allocations: 0.9268 MB / 0.5 GB, free: 41.96 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002927/0.6158, allocations: 8.617 MB / 0.5084 GB, free: 29.98 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004673/0.6204, allocations: 10.08 MB / 0.5183 GB, free: 17.01 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.362e-05/0.6205, allocations: 52 kB / 0.5183 GB, free: 16.96 MB / 378.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.007151/0.6276, allocations: 7.634 MB / 0.5258 GB, free: 9.266 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.869e-05/0.6277, allocations: 84.25 kB / 0.5258 GB, free: 9.184 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.876e-05/0.6278, allocations: 176 kB / 0.526 GB, free: 9.012 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002563/0.6303, allocations: 1.257 MB / 0.5272 GB, free: 7.738 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002758/0.6331, allocations: 1.985 MB / 0.5292 GB, free: 5.75 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005285/0.6384, allocations: 6.726 MB / 0.5357 GB, free: 14.79 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00365/0.642, allocations: 375.7 kB / 0.5361 GB, free: 14.42 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004037/0.6424, allocations: 436 kB / 0.5365 GB, free: 13.99 MB / 394.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.001717/0.6441, allocations: 0.8905 MB / 0.5374 GB, free: 13.09 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007174/0.6448, allocations: 0.6991 MB / 0.5381 GB, free: 12.39 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003595/0.6484, allocations: 2.486 MB / 0.5405 GB, free: 9.863 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-05/0.6485, allocations: 28.12 kB / 0.5405 GB, free: 9.836 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.151e-05/0.6485, allocations: 12 kB / 0.5405 GB, free: 9.824 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.557e-05/0.6485, allocations: 19.67 kB / 0.5406 GB, free: 9.809 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01478/0.6633, allocations: 10.57 MB / 0.5509 GB, free: 14.8 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.492e-05/0.6633, allocations: 24.03 kB / 0.5509 GB, free: 14.77 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009393/0.6642, allocations: 431.4 kB / 0.5513 GB, free: 14.35 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002477/0.6667, allocations: 1.021 MB / 0.5523 GB, free: 13.31 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001255/0.6668, allocations: 87.91 kB / 0.5524 GB, free: 13.23 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005956/0.6728, allocations: 5.776 MB / 0.558 GB, free: 7.215 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.975e-05/0.6728, allocations: 32 kB / 0.5581 GB, free: 7.184 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006651/0.6795, allocations: 4.574 MB / 0.5625 GB, free: 2.098 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/0.6806, allocations: 0.6596 MB / 0.5632 GB, free: 1.434 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005611/0.6812, allocations: 75.98 kB / 0.5633 GB, free: 1.359 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001731/0.6829, allocations: 79.98 kB / 0.5633 GB, free: 1.281 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003898/0.6833, allocations: 273 kB / 0.5636 GB, free: 1.016 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001619/0.6834, allocations: 87.95 kB / 0.5637 GB, free: 0.9297 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.003133/0.6866, allocations: 2.652 MB / 0.5663 GB, free: 14.29 MB / 426.8 MB Notification: Performance of sort global known variables: time 9e-08/0.6866, allocations: 0 / 0.5663 GB, free: 14.29 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.006607/0.6932, allocations: 2.047 MB / 0.5683 GB, free: 12.25 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.0004548/0.6936, allocations: 266.5 kB / 0.5685 GB, free: 11.97 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.006623/0.7003, allocations: 4.591 MB / 0.573 GB, free: 7.344 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.7003, allocations: 4 kB / 0.573 GB, free: 7.34 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002164/0.7024, allocations: 1.598 MB / 0.5746 GB, free: 5.695 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004019/0.7064, allocations: 0.9712 MB / 0.5755 GB, free: 4.742 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.127/0.8334, allocations: 14.29 MB / 0.5895 GB, free: 142.9 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002562/0.836, allocations: 2.297 MB / 0.5917 GB, free: 142.6 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.0025/0.8385, allocations: 0.8331 MB / 0.5925 GB, free: 142.5 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001553/0.84, allocations: 1.089 MB / 0.5936 GB, free: 142.5 MB / 426.8 MB Notification: Performance of SimCode: time 1.823e-06/0.84, allocations: 0 / 0.5936 GB, free: 142.5 MB / 426.8 MB Notification: Performance of Templates: time 0.08226/0.9223, allocations: 69.73 MB / 0.6617 GB, free: 88.41 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: 4.906217036768794]