Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 75.77 kB / 22.45 MB, free: 2.094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009913/0.0009913, allocations: 158.9 kB / 25.75 MB, free: 8.949 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9918/0.9918, allocations: 158.6 MB / 187.5 MB, free: 2.949 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 251.1 MB, free: 7.801 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.216e-05/1.342e-05, allocations: 2.312 kB / 251.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006095/0.006109, allocations: 7.751 MB / 258.9 MB, free: 4 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003214/0.009322, allocations: 2.509 MB / 261.4 MB, free: 13.49 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000371/0.009693, allocations: 43.81 kB / 261.4 MB, free: 13.45 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001663/0.01136, allocations: 1.522 MB / 262.9 MB, free: 11.92 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001218/0.01257, allocations: 1.049 MB / 264 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000382/0.01296, allocations: 287.2 kB / 264.3 MB, free: 10.58 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001719/0.01467, allocations: 2.241 MB / 266.5 MB, free: 8.336 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001078/0.01575, allocations: 1.403 MB / 267.9 MB, free: 6.902 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009071/0.01666, allocations: 1.247 MB / 269.2 MB, free: 5.652 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.0177, allocations: 1.227 MB / 270.4 MB, free: 4.422 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002346/0.01793, allocations: 160 kB / 270.5 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007759/0.01871, allocations: 0.6045 MB / 271.1 MB, free: 3.66 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007109/0.01942, allocations: 1.243 MB / 272.4 MB, free: 2.414 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005697/0.01999, allocations: 0.7396 MB / 273.1 MB, free: 1.672 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002008/0.022, allocations: 2.797 MB / 275.9 MB, free: 14.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.022, allocations: 0 / 275.9 MB, free: 14.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.022, allocations: 0 / 275.9 MB, free: 14.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.683e-05/0.02203, allocations: 0 / 275.9 MB, free: 14.86 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.002733/0.02476, allocations: 3.246 MB / 279.2 MB, free: 11.56 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.0248, allocations: 11.98 kB / 279.2 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004158/0.02896, allocations: 2.241 MB / 281.4 MB, free: 9.301 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.03003, allocations: 1.057 MB / 282.5 MB, free: 8.215 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.788e-05/0.03011, allocations: 152 kB / 282.6 MB, free: 8.066 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00023/0.03034, allocations: 207.8 kB / 282.8 MB, free: 7.863 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006935/0.03727, allocations: 5.524 MB / 288.4 MB, free: 1.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.817e-05/0.03733, allocations: 39.64 kB / 288.4 MB, free: 1.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001917/0.03752, allocations: 99.89 kB / 288.5 MB, free: 1.383 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001522/0.03904, allocations: 1.565 MB / 290.1 MB, free: 15.82 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006377/0.04542, allocations: 3.251 MB / 293.3 MB, free: 12.56 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02089/0.06631, allocations: 33.88 MB / 327.2 MB, free: 9.57 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009252/0.07557, allocations: 4.014 MB / 331.2 MB, free: 5.465 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004966/0.07606, allocations: 385.7 kB / 331.6 MB, free: 5.059 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002636/0.0787, allocations: 2.655 MB / 334.2 MB, free: 2.371 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.07873, allocations: 49.72 kB / 334.3 MB, free: 2.312 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 3.196e-06/0.07873, allocations: 0 / 334.3 MB, free: 2.312 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.01831/0.09705, allocations: 7.559 MB / 341.8 MB, free: 10.74 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.786e-05/0.09711, allocations: 195.9 kB / 342 MB, free: 10.51 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002411/0.09953, allocations: 2.788 MB / 344.8 MB, free: 7.695 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.338e-05/0.09958, allocations: 41.7 kB / 344.9 MB, free: 7.648 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001212/0.1008, allocations: 2.674 MB / 347.5 MB, free: 4.945 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003044/0.1011, allocations: 0.5237 MB / 348.1 MB, free: 4.418 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008856/0.102, allocations: 1.176 MB / 349.2 MB, free: 3.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1021, allocations: 0.512 MB / 349.8 MB, free: 2.711 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007487/0.1028, allocations: 0.5101 MB / 350.3 MB, free: 2.195 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1285/0.2313, allocations: 5.783 MB / 356 MB, free: 94.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004891/0.2362, allocations: 6.944 MB / 363 MB, free: 87.37 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.055e-05/0.2363, allocations: 41.41 kB / 363 MB, free: 87.37 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007686/0.244, allocations: 4.531 MB / 367.6 MB, free: 86.42 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/0.2441, allocations: 67.22 kB / 367.6 MB, free: 86.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001359/0.2442, allocations: 125 kB / 367.7 MB, free: 86.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001232/0.2444, allocations: 168.2 kB / 367.9 MB, free: 86.42 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003519/0.2479, allocations: 1.453 MB / 369.4 MB, free: 85.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001816/0.2481, allocations: 254 kB / 369.6 MB, free: 85.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004357/0.2524, allocations: 0.7369 MB / 370.3 MB, free: 85.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003748/0.2528, allocations: 341.8 kB / 370.7 MB, free: 85.04 MB / 330.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.001004/0.2538, allocations: 0.6094 MB / 371.3 MB, free: 84.63 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003275/0.2541, allocations: 267.7 kB / 371.6 MB, free: 84.51 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000571/0.2547, allocations: 489.2 kB / 372 MB, free: 84.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/0.2547, allocations: 12.94 kB / 372 MB, free: 84.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/0.2547, allocations: 4 kB / 372 MB, free: 84.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.2547, allocations: 7.547 kB / 372.1 MB, free: 84.23 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003138/0.2579, allocations: 2.502 MB / 374.6 MB, free: 82.31 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.2579, allocations: 0 / 374.6 MB, free: 82.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/0.259, allocations: 407.4 kB / 375 MB, free: 82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.526e-06/0.259, allocations: 4.75 kB / 375 MB, free: 82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.639e-05/0.2591, allocations: 27.84 kB / 375 MB, free: 81.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.688e-06/0.2591, allocations: 16.72 kB / 375 MB, free: 81.96 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2591, allocations: 3.938 kB / 375 MB, free: 81.96 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.2603, allocations: 1.747 MB / 376.8 MB, free: 80.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002789/0.2606, allocations: 213.2 kB / 377 MB, free: 80.06 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000157/0.2608, allocations: 27.7 kB / 377 MB, free: 80.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005452/0.2613, allocations: 51.41 kB / 377 MB, free: 80 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.2614, allocations: 53.73 kB / 377.1 MB, free: 79.97 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.557e-05/0.2615, allocations: 31.75 kB / 377.1 MB, free: 79.95 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001294/0.2628, allocations: 1.118 MB / 378.2 MB, free: 79.01 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2628, allocations: 0 / 378.2 MB, free: 79.01 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003436/0.2662, allocations: 0.8593 MB / 379.1 MB, free: 78.21 MB / 330.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.0003967/0.2666, allocations: 170 kB / 379.3 MB, free: 78.06 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00331/0.2699, allocations: 2.266 MB / 381.5 MB, free: 76.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.2699, allocations: 1.812 kB / 381.5 MB, free: 76.07 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000335/0.2703, allocations: 305.9 kB / 381.8 MB, free: 75.8 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009682/0.2712, allocations: 226.1 kB / 382.1 MB, free: 75.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009023/0.2802, allocations: 5.531 MB / 387.6 MB, free: 70.19 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005368/0.2808, allocations: 0.819 MB / 388.4 MB, free: 69.36 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001855/0.2826, allocations: 1.413 MB / 389.8 MB, free: 67.94 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002949/0.2829, allocations: 168.5 kB / 390 MB, free: 67.77 MB / 330.7 MB Notification: Performance of SimCode: time 2.435e-06/0.2829, allocations: 0 / 390 MB, free: 67.77 MB / 330.7 MB Notification: Performance of Templates: time 0.02597/0.3089, allocations: 15.17 MB / 405.2 MB, free: 52.7 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.6112131089903414]