Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.001164/0.001164, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.004427/0.004427, allocations: 166.3 kB / 24.82 MB, free: 9.301 MB / 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.9151/0.9151, allocations: 177 MB / 205.1 MB, free: 5.473 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.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body2.r_0.[0-9,]+.|body2.v_0.[0-9,]+.|body3.r_0.[0-9,]+.|body3.v_0.[0-9,]+.|body4.r_0.[0-9,]+.|body4.v_0.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body2.r_0.[0-9,]+.|body2.v_0.[0-9,]+.|body3.r_0.[0-9,]+.|body3.v_0.[0-9,]+.|body4.r_0.[0-9,]+.|body4.v_0.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 273.3 MB, free: 1.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.175e-05/2.336e-05, allocations: 6.312 kB / 273.3 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006545/0.006568, allocations: 7.528 MB / 280.9 MB, free: 9.637 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004127/0.01069, allocations: 2.485 MB / 283.4 MB, free: 7.141 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007162/0.01141, allocations: 39.81 kB / 283.4 MB, free: 7.102 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001739/0.01315, allocations: 1.51 MB / 284.9 MB, free: 5.586 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001648/0.0148, allocations: 1.061 MB / 286 MB, free: 4.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004673/0.01527, allocations: 275.2 kB / 286.2 MB, free: 4.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001932/0.0172, allocations: 2.223 MB / 288.5 MB, free: 2.023 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.01823, allocations: 1.388 MB / 289.8 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1232/0.1414, allocations: 1.233 MB / 291.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002521/0.144, allocations: 1.229 MB / 292.3 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006143/0.1446, allocations: 160.3 kB / 292.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001353/0.1459, allocations: 0.6083 MB / 293.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001015/0.1469, allocations: 1.228 MB / 294.3 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001386/0.1483, allocations: 0.723 MB / 295 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003647/0.152, allocations: 2.763 MB / 297.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.152, allocations: 0 / 297.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.152, allocations: 0.75 kB / 297.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001384/0.1521, allocations: 1.875 kB / 297.8 MB, free: 14.98 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.00527/0.1574, allocations: 3.236 MB / 301 MB, free: 13.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.1574, allocations: 14.08 kB / 301 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003458/0.1609, allocations: 1.196 MB / 302.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00185/0.1627, allocations: 0.9949 MB / 303.2 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.1629, allocations: 155.1 kB / 303.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002904/0.1632, allocations: 207.4 kB / 303.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00694/0.1701, allocations: 4.647 MB / 308.2 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.565e-05/0.1702, allocations: 41.78 kB / 308.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001951/0.1704, allocations: 102.6 kB / 308.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001277/0.1717, allocations: 1.387 MB / 309.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005632/0.1773, allocations: 2.277 MB / 312 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02176/0.199, allocations: 33.63 MB / 345.7 MB, free: 7.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007687/0.2067, allocations: 2.656 MB / 348.3 MB, free: 4.621 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006297/0.2074, allocations: 335.4 kB / 348.6 MB, free: 4.273 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003474/0.2108, allocations: 2.575 MB / 351.2 MB, free: 1.695 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.2109, allocations: 52.98 kB / 351.3 MB, free: 1.637 MB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 3.597e-06/0.2109, allocations: 0 / 351.3 MB, free: 1.637 MB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.01468/0.2256, allocations: 4.652 MB / 355.9 MB, free: 13 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.09e-05/0.2256, allocations: 191.9 kB / 356.1 MB, free: 12.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003637/0.2293, allocations: 2.795 MB / 358.9 MB, free: 10.4 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001638/0.2294, allocations: 40.33 kB / 358.9 MB, free: 10.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001502/0.2309, allocations: 2.675 MB / 361.6 MB, free: 7.797 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007002/0.2316, allocations: 0.5429 MB / 362.2 MB, free: 7.281 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001074/0.2327, allocations: 1.19 MB / 363.4 MB, free: 6.195 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.2328, allocations: 0.5145 MB / 363.9 MB, free: 5.691 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005447/0.2334, allocations: 406.5 kB / 364.3 MB, free: 5.289 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003328/0.2367, allocations: 5.713 MB / 370 MB, free: 13.16 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004821/0.2415, allocations: 6.837 MB / 376.8 MB, free: 3.891 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.978e-05/0.2416, allocations: 36 kB / 376.9 MB, free: 3.855 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.004909/0.2465, allocations: 4.25 MB / 381.1 MB, free: 15.6 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.383e-05/0.2466, allocations: 63.28 kB / 381.2 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.781e-05/0.2467, allocations: 128 kB / 381.3 MB, free: 15.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003492/0.247, allocations: 168 kB / 381.5 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002476/0.2495, allocations: 1.354 MB / 382.8 MB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001428/0.2496, allocations: 255 kB / 383.1 MB, free: 13.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002141/0.2518, allocations: 0.7134 MB / 383.8 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002542/0.252, allocations: 296 kB / 384.1 MB, free: 12.64 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (681): * Single equations (assignments): 678 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000989/0.253, allocations: 0.6133 MB / 384.7 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002816/0.2533, allocations: 266.4 kB / 384.9 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002457/0.2536, allocations: 245.1 kB / 385.2 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.2536, allocations: 12 kB / 385.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.2536, allocations: 7.938 kB / 385.2 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.2536, allocations: 3.984 kB / 385.2 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002764/0.2564, allocations: 1.83 MB / 387 MB, free: 9.617 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.2564, allocations: 7.984 kB / 387 MB, free: 9.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.2574, allocations: 299.7 kB / 387.3 MB, free: 9.316 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.2574, allocations: 4 kB / 387.3 MB, free: 9.312 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-05/0.2575, allocations: 43.97 kB / 387.4 MB, free: 9.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.2575, allocations: 4 kB / 387.4 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2575, allocations: 0 / 387.4 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.259, allocations: 1.67 MB / 389 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/0.2593, allocations: 210.1 kB / 389.2 MB, free: 7.363 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001289/0.2594, allocations: 27.98 kB / 389.3 MB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003947/0.2598, allocations: 23.94 kB / 389.3 MB, free: 7.312 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.21e-05/0.2599, allocations: 63.77 kB / 389.4 MB, free: 7.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.2e-05/0.2599, allocations: 28 kB / 389.4 MB, free: 7.223 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000915/0.2608, allocations: 1.048 MB / 390.4 MB, free: 6.164 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2608, allocations: 0 / 390.4 MB, free: 6.164 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002919/0.2638, allocations: 0.8341 MB / 391.3 MB, free: 5.328 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3]) * 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 (87): * Single equations (assignments): 84 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002733/0.264, allocations: 167 kB / 391.4 MB, free: 5.152 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002592/0.2666, allocations: 2.122 MB / 393.6 MB, free: 3.051 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.2666, allocations: 4 kB / 393.6 MB, free: 3.047 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002825/0.2669, allocations: 279.7 kB / 393.8 MB, free: 2.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000982/0.2679, allocations: 238.7 kB / 394.1 MB, free: 2.543 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007737/0.2756, allocations: 5.527 MB / 399.6 MB, free: 12.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000726/0.2764, allocations: 0.8267 MB / 400.4 MB, free: 12.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00143/0.2778, allocations: 393 kB / 400.8 MB, free: 11.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007184/0.2785, allocations: 430.1 kB / 401.2 MB, free: 11.28 MB / 362.7 MB Notification: Performance of SimCode: time 1.603e-06/0.2785, allocations: 0 / 401.2 MB, free: 11.28 MB / 362.7 MB Notification: Performance of Templates: time 0.0286/0.3071, allocations: 17.43 MB / 418.7 MB, free: 10.03 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.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: 3.591950685251504]