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.001072/0.001072, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001814/0.001814, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 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.003/1.003, allocations: 173.3 MB / 201.1 MB, free: 9 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 2.054e-06/2.054e-06, allocations: 0 / 268 MB, free: 6.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.575e-05/2.78e-05, allocations: 5.969 kB / 268 MB, free: 6.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01429/0.01432, allocations: 18.91 MB / 286.9 MB, free: 3.262 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1359/0.1503, allocations: 5.894 MB / 292.8 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003882/0.1541, allocations: 193.5 kB / 293 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00747/0.1616, allocations: 6.335 MB / 299.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006588/0.1682, allocations: 3.558 MB / 302.9 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002515/0.1707, allocations: 1.816 MB / 304.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01183/0.1825, allocations: 14.29 MB / 319 MB, free: 3.855 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008628/0.1912, allocations: 7.73 MB / 326.7 MB, free: 12.47 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0102/0.2014, allocations: 5.57 MB / 332.3 MB, free: 7.223 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007309/0.2087, allocations: 5.765 MB / 338.1 MB, free: 1.871 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001787/0.2105, allocations: 0.7461 MB / 338.8 MB, free: 1.125 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003054/0.2135, allocations: 1.674 MB / 340.5 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004143/0.2177, allocations: 4.614 MB / 345.1 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004829/0.2225, allocations: 2.818 MB / 347.9 MB, free: 8.312 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01559/0.2381, allocations: 9.007 MB / 356.9 MB, free: 15.67 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.2381, allocations: 0 / 356.9 MB, free: 15.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.796e-06/0.2381, allocations: 0 / 356.9 MB, free: 15.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0006214/0.2387, allocations: 0 / 356.9 MB, free: 15.67 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.02002/0.2587, allocations: 10.63 MB / 367.6 MB, free: 5.094 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.802e-05/0.2588, allocations: 12.92 kB / 367.6 MB, free: 5.082 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02399/0.2828, allocations: 6.192 MB / 373.8 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01212/0.2949, allocations: 6.961 MB / 380.7 MB, free: 7.977 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002972/0.2952, allocations: 427.5 kB / 381.2 MB, free: 7.605 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001361/0.2966, allocations: 0.5842 MB / 381.7 MB, free: 7.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01856/0.3151, allocations: 10.31 MB / 392.1 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002887/0.3154, allocations: 87.3 kB / 392.1 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005621/0.316, allocations: 263.8 kB / 392.4 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002628/0.3186, allocations: 2.768 MB / 395.2 MB, free: 8.266 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0135/0.3321, allocations: 5.406 MB / 400.6 MB, free: 2.852 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.3001/0.6322, allocations: 70.05 MB / 470.6 MB, free: 61.9 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01055/0.6427, allocations: 4.921 MB / 475.5 MB, free: 61.72 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002207/0.6449, allocations: 1.394 MB / 476.9 MB, free: 61.66 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01044/0.6554, allocations: 7.402 MB / 484.3 MB, free: 60.4 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.6554, allocations: 73.42 kB / 484.4 MB, free: 60.34 MB / 378.8 MB Notification: Performance of pre-optimization done (n=280): time 5.05e-06/0.6554, allocations: 0 / 484.4 MB, free: 60.34 MB / 378.8 MB Notification: Performance of matching and sorting (n=339): time 0.08036/0.7358, allocations: 39.21 MB / 0.5113 GB, free: 31.51 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.851e-05/0.7359, allocations: 402.1 kB / 0.5117 GB, free: 31.03 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005947/0.7418, allocations: 6.053 MB / 0.5176 GB, free: 25.19 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008057/0.7426, allocations: 77.7 kB / 0.5177 GB, free: 25.11 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002004/0.7446, allocations: 5.452 MB / 0.523 GB, free: 20.2 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001035/0.7457, allocations: 1.342 MB / 0.5243 GB, free: 18.88 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001615/0.7473, allocations: 1.935 MB / 0.5262 GB, free: 16.93 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.239e-05/0.7473, allocations: 488.3 kB / 0.5267 GB, free: 16.45 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001995/0.7493, allocations: 1.521 MB / 0.5282 GB, free: 14.93 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003684/0.753, allocations: 8.68 MB / 0.5367 GB, free: 3.133 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008973/0.762, allocations: 10.97 MB / 0.5474 GB, free: 5.445 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.821e-05/0.7621, allocations: 48 kB / 0.5474 GB, free: 5.398 MB / 394.8 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.0226/0.7847, allocations: 12.28 MB / 0.5594 GB, free: 9.066 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.7848, allocations: 72 kB / 0.5595 GB, free: 8.996 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001738/0.7849, allocations: 160.9 kB / 0.5596 GB, free: 8.84 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01644/0.8014, allocations: 5.17 MB / 0.5647 GB, free: 3.656 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005332/0.8067, allocations: 1.926 MB / 0.5666 GB, free: 1.727 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02466/0.8314, allocations: 14.43 MB / 0.5807 GB, free: 2.941 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006557/0.8379, allocations: 0.6866 MB / 0.5813 GB, free: 2.254 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001013/0.8389, allocations: 500 kB / 0.5818 GB, free: 1.766 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.00227/0.8412, allocations: 0.8622 MB / 0.5826 GB, free: 0.8906 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001218/0.8424, allocations: 0.7146 MB / 0.5833 GB, free: 176 kB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1675/1.01, allocations: 7.301 MB / 0.5905 GB, free: 141.8 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-05/1.01, allocations: 35.06 kB / 0.5905 GB, free: 141.8 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.297e-05/1.01, allocations: 23.28 kB / 0.5905 GB, free: 141.8 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.915e-05/1.01, allocations: 16.2 kB / 0.5905 GB, free: 141.8 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02853/1.039, allocations: 16.88 MB / 0.607 GB, free: 139.1 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.878e-05/1.039, allocations: 3.969 kB / 0.607 GB, free: 139.1 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/1.04, allocations: 433.9 kB / 0.6075 GB, free: 139 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0111/1.051, allocations: 4.794 MB / 0.6121 GB, free: 138.4 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003645/1.051, allocations: 58.34 kB / 0.6122 GB, free: 138.4 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01612/1.067, allocations: 13.64 MB / 0.6255 GB, free: 128.6 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/1.067, allocations: 11.66 kB / 0.6255 GB, free: 128.6 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01505/1.082, allocations: 9.033 MB / 0.6343 GB, free: 119.9 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001898/1.084, allocations: 0.6673 MB / 0.635 GB, free: 119.6 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007023/1.085, allocations: 59.94 kB / 0.6351 GB, free: 119.6 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002061/1.087, allocations: 405.3 kB / 0.6354 GB, free: 119.2 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006373/1.088, allocations: 253.9 kB / 0.6357 GB, free: 118.9 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000185/1.088, allocations: 95.55 kB / 0.6358 GB, free: 118.8 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.003455/1.091, allocations: 2.833 MB / 0.6385 GB, free: 116 MB / 426.8 MB Notification: Performance of sort global known variables: time 2.71e-07/1.091, allocations: 0 / 0.6385 GB, free: 116 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.007042/1.098, allocations: 2.434 MB / 0.6409 GB, free: 113.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.000591/1.099, allocations: 240.6 kB / 0.6411 GB, free: 113.4 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.008819/1.108, allocations: 6.675 MB / 0.6477 GB, free: 106.8 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/1.108, allocations: 0 / 0.6477 GB, free: 106.8 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003637/1.111, allocations: 2.949 MB / 0.6505 GB, free: 103.8 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003771/1.115, allocations: 0.9548 MB / 0.6515 GB, free: 102.9 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02131/1.136, allocations: 15.57 MB / 0.6667 GB, free: 87.18 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00244/1.139, allocations: 2.339 MB / 0.669 GB, free: 84.81 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.003775/1.143, allocations: 2.15 MB / 0.6711 GB, free: 82.65 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001168/1.144, allocations: 392.4 kB / 0.6714 GB, free: 82.27 MB / 426.8 MB Notification: Performance of SimCode: time 3.757e-06/1.144, allocations: 0 / 0.6714 GB, free: 82.27 MB / 426.8 MB Notification: Performance of Templates: time 0.2388/1.383, allocations: 95.68 MB / 0.7649 GB, free: 126.2 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.913335205987096]