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.0009953/0.0009953, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001893/0.001893, allocations: 169.9 kB / 25.33 MB, free: 9.465 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.9584/0.9584, allocations: 158.6 MB / 187.2 MB, free: 2.52 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.452e-06/1.452e-06, allocations: 0 / 251.1 MB, free: 3.582 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.503e-05/2.648e-05, allocations: 2.312 kB / 251.1 MB, free: 3.578 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.00714/0.007166, allocations: 7.788 MB / 258.8 MB, free: 11.75 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005149/0.01232, allocations: 2.505 MB / 261.3 MB, free: 9.238 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009188/0.01323, allocations: 43.81 kB / 261.4 MB, free: 9.195 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00208/0.01531, allocations: 1.514 MB / 262.9 MB, free: 7.676 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002423/0.01774, allocations: 1.057 MB / 264 MB, free: 6.613 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005819/0.01832, allocations: 279.2 kB / 264.2 MB, free: 6.34 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002631/0.02095, allocations: 2.245 MB / 266.5 MB, free: 4.09 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001825/0.02277, allocations: 1.407 MB / 267.9 MB, free: 2.652 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001929/0.0247, allocations: 1.251 MB / 269.1 MB, free: 1.398 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001678/0.02638, allocations: 1.223 MB / 270.4 MB, free: 176 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004502/0.02683, allocations: 164 kB / 270.5 MB, free: 12 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001348/0.02818, allocations: 0.6006 MB / 271.1 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009926/0.02917, allocations: 1.254 MB / 272.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000967/0.03014, allocations: 0.7434 MB / 273.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003092/0.03323, allocations: 2.797 MB / 275.9 MB, free: 10.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.03324, allocations: 0 / 275.9 MB, free: 10.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.03324, allocations: 0 / 275.9 MB, free: 10.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001031/0.03334, allocations: 0 / 275.9 MB, free: 10.6 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.003658/0.037, allocations: 3.231 MB / 279.1 MB, free: 7.309 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.03705, allocations: 19.98 kB / 279.2 MB, free: 7.289 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004049/0.04109, allocations: 2.234 MB / 281.4 MB, free: 5.051 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001387/0.04248, allocations: 1.106 MB / 282.5 MB, free: 3.914 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.826e-05/0.04257, allocations: 148 kB / 282.7 MB, free: 3.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002462/0.04282, allocations: 211.8 kB / 282.9 MB, free: 3.562 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008231/0.05105, allocations: 5.524 MB / 288.4 MB, free: 13.22 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-05/0.05112, allocations: 39.7 kB / 288.4 MB, free: 13.18 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002095/0.05133, allocations: 95.89 kB / 288.5 MB, free: 13.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001492/0.05282, allocations: 1.562 MB / 290.1 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007439/0.06026, allocations: 3.267 MB / 293.3 MB, free: 8.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1572/0.2175, allocations: 33.85 MB / 327.2 MB, free: 22.29 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01076/0.2282, allocations: 4.016 MB / 331.2 MB, free: 22.02 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007843/0.229, allocations: 393.6 kB / 331.6 MB, free: 21.93 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003626/0.2326, allocations: 2.66 MB / 334.3 MB, free: 20.34 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/0.2327, allocations: 49.41 kB / 334.3 MB, free: 20.29 MB / 282.7 MB Notification: Performance of pre-optimization done (n=111): time 3.858e-06/0.2327, allocations: 0 / 334.3 MB, free: 20.29 MB / 282.7 MB Notification: Performance of matching and sorting (n=111): time 0.0233/0.256, allocations: 7.555 MB / 341.9 MB, free: 16.66 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.256, allocations: 195.4 kB / 342 MB, free: 16.43 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003404/0.2594, allocations: 2.794 MB / 344.8 MB, free: 13.77 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001882/0.2596, allocations: 44.36 kB / 344.9 MB, free: 13.73 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00135/0.261, allocations: 2.666 MB / 347.5 MB, free: 11.26 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005012/0.2615, allocations: 0.5329 MB / 348.1 MB, free: 10.74 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001115/0.2626, allocations: 1.175 MB / 349.3 MB, free: 9.555 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.28e-05/0.2627, allocations: 0.5082 MB / 349.8 MB, free: 9.039 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009941/0.2637, allocations: 0.5024 MB / 350.3 MB, free: 8.531 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002535/0.2662, allocations: 5.796 MB / 356.1 MB, free: 340 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006749/0.2729, allocations: 6.952 MB / 363 MB, free: 7.184 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001218/0.2731, allocations: 36 kB / 363.1 MB, free: 7.148 MB / 298.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007851/0.2809, allocations: 4.549 MB / 367.6 MB, free: 2.594 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.052e-05/0.281, allocations: 60 kB / 367.7 MB, free: 2.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001853/0.2812, allocations: 128.9 kB / 367.8 MB, free: 2.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001466/0.2813, allocations: 164 kB / 367.9 MB, free: 2.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003167/0.2845, allocations: 1.454 MB / 369.4 MB, free: 0.793 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001517/0.2847, allocations: 243.7 kB / 369.6 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002836/0.2875, allocations: 0.7354 MB / 370.4 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003799/0.2879, allocations: 346.6 kB / 370.7 MB, free: 15.48 MB / 314.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.001065/0.2889, allocations: 0.62 MB / 371.3 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000329/0.2893, allocations: 262.4 kB / 371.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006289/0.2899, allocations: 470.7 kB / 372 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.108e-05/0.2899, allocations: 16 kB / 372.1 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.2899, allocations: 0 / 372.1 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.33e-05/0.2899, allocations: 15.91 kB / 372.1 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004172/0.2941, allocations: 2.495 MB / 374.6 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.187e-06/0.2941, allocations: 0 / 374.6 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001391/0.2955, allocations: 415.4 kB / 375 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.504e-05/0.2955, allocations: 4 kB / 375 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.632e-05/0.2956, allocations: 32.8 kB / 375 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.247e-06/0.2956, allocations: 7.797 kB / 375 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2956, allocations: 0 / 375 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.2972, allocations: 1.756 MB / 376.8 MB, free: 9.359 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003657/0.2975, allocations: 210.2 kB / 377 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/0.2977, allocations: 43.75 kB / 377 MB, free: 9.113 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004529/0.2981, allocations: 35.95 kB / 377.1 MB, free: 9.078 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.704e-05/0.2982, allocations: 62.58 kB / 377.1 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.534e-05/0.2983, allocations: 31.98 kB / 377.2 MB, free: 8.988 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001249/0.2995, allocations: 1.119 MB / 378.3 MB, free: 7.859 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2995, allocations: 0 / 378.3 MB, free: 7.859 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002823/0.3024, allocations: 0.8596 MB / 379.1 MB, free: 7 MB / 314.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.0004179/0.3028, allocations: 158.9 kB / 379.3 MB, free: 6.836 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003379/0.3062, allocations: 2.267 MB / 381.6 MB, free: 4.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.3062, allocations: 4 kB / 381.6 MB, free: 4.586 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003642/0.3065, allocations: 301.2 kB / 381.9 MB, free: 4.289 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.3076, allocations: 233.2 kB / 382.1 MB, free: 4.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008015/0.3156, allocations: 5.514 MB / 387.6 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009951/0.3166, allocations: 0.8307 MB / 388.4 MB, free: 13.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.002783/0.3193, allocations: 1.407 MB / 389.8 MB, free: 12.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003966/0.3197, allocations: 172.5 kB / 390 MB, free: 12.08 MB / 330.7 MB Notification: Performance of SimCode: time 2.846e-06/0.3197, allocations: 3.938 kB / 390 MB, free: 12.07 MB / 330.7 MB Notification: Performance of Templates: time 0.02906/0.3488, allocations: 15.95 MB / 406 MB, free: 12.2 MB / 346.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.6136124399490654]