Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.0009246/0.0009246, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.000829/0.000829, allocations: 147.1 kB / 24.9 MB, free: 8.727 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 0.9086/0.9086, allocations: 173.4 MB / 201.5 MB, free: 8.734 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.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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 268.5 MB, free: 6.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.032e-05/2.173e-05, allocations: 2.312 kB / 268.5 MB, free: 6.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.005939/0.005961, allocations: 7.565 MB / 276 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003815/0.009775, allocations: 2.554 MB / 278.6 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006194/0.01039, allocations: 39.88 kB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001719/0.01211, allocations: 1.514 MB / 280.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001575/0.01369, allocations: 1.065 MB / 281.2 MB, free: 9.207 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005582/0.01425, allocations: 287.1 kB / 281.5 MB, free: 8.926 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001974/0.01622, allocations: 2.246 MB / 283.7 MB, free: 6.672 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0013/0.01752, allocations: 1.454 MB / 285.2 MB, free: 5.184 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001208/0.01873, allocations: 1.247 MB / 286.4 MB, free: 3.934 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001153/0.01988, allocations: 1.173 MB / 287.6 MB, free: 2.758 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002342/0.02012, allocations: 160 kB / 287.8 MB, free: 2.602 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007309/0.02085, allocations: 0.6006 MB / 288.4 MB, free: 2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006917/0.02154, allocations: 1.246 MB / 289.6 MB, free: 0.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005069/0.02205, allocations: 0.7435 MB / 290.4 MB, free: 4 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1072/0.1293, allocations: 2.796 MB / 293.2 MB, free: 18.35 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.84e-06/0.1293, allocations: 0 / 293.2 MB, free: 18.35 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1293, allocations: 1.094 kB / 293.2 MB, free: 18.35 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001112/0.1294, allocations: 0.6094 kB / 293.2 MB, free: 18.35 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.003267/0.1326, allocations: 2.809 MB / 296 MB, free: 17.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.1327, allocations: 10.95 kB / 296 MB, free: 17.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00264/0.1353, allocations: 0.9526 MB / 296.9 MB, free: 17.04 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.1364, allocations: 0.8948 MB / 297.8 MB, free: 16.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.558e-05/0.1365, allocations: 157.3 kB / 298 MB, free: 16.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000251/0.1368, allocations: 204.6 kB / 298.2 MB, free: 16.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004165/0.1409, allocations: 3.869 MB / 302 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.033e-05/0.141, allocations: 35.08 kB / 302.1 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001831/0.1412, allocations: 107.8 kB / 302.2 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001206/0.1424, allocations: 1.391 MB / 303.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003171/0.1456, allocations: 2.014 MB / 305.6 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01128/0.1568, allocations: 23.57 MB / 329.2 MB, free: 11.63 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003763/0.1606, allocations: 1.722 MB / 330.9 MB, free: 9.887 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003276/0.1609, allocations: 410.2 kB / 331.3 MB, free: 9.473 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002149/0.1631, allocations: 2.294 MB / 333.6 MB, free: 7.188 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.1631, allocations: 57.52 kB / 333.6 MB, free: 7.133 MB / 282.7 MB Notification: Performance of pre-optimization done (n=111): time 2.665e-06/0.1631, allocations: 0 / 333.6 MB, free: 7.133 MB / 282.7 MB Notification: Performance of matching and sorting (n=111): time 0.007048/0.1701, allocations: 2.667 MB / 336.3 MB, free: 4.5 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/0.1702, allocations: 187.9 kB / 336.5 MB, free: 4.273 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/0.1716, allocations: 2.197 MB / 338.7 MB, free: 2.508 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.977e-05/0.1716, allocations: 41.7 kB / 338.7 MB, free: 2.461 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009079/0.1725, allocations: 2.467 MB / 341.2 MB, free: 132 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002669/0.1728, allocations: 0.5075 MB / 341.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007444/0.1735, allocations: 1.021 MB / 342.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.333e-05/0.1736, allocations: 348.9 kB / 343.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00058/0.1742, allocations: 0.5453 MB / 343.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001905/0.1761, allocations: 3.979 MB / 347.6 MB, free: 8.281 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00304/0.1791, allocations: 5.204 MB / 352.8 MB, free: 1.457 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-05/0.1792, allocations: 36 kB / 352.8 MB, free: 1.422 MB / 298.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.003175/0.1823, allocations: 3.635 MB / 356.5 MB, free: 13.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.648e-05/0.1824, allocations: 61 kB / 356.5 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.296e-05/0.1825, allocations: 128 kB / 356.6 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.117e-05/0.1826, allocations: 172 kB / 356.8 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002182/0.1847, allocations: 1.349 MB / 358.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001171/0.1849, allocations: 247 kB / 358.4 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/0.1864, allocations: 0.7208 MB / 359.1 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002424/0.1866, allocations: 292 kB / 359.4 MB, free: 10.83 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.0007691/0.1874, allocations: 0.5742 MB / 360 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001759/0.1876, allocations: 147.8 kB / 360.1 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004028/0.188, allocations: 403.1 kB / 360.5 MB, free: 9.688 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/0.188, allocations: 16 kB / 360.5 MB, free: 9.672 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.188, allocations: 0 / 360.5 MB, free: 9.672 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.188, allocations: 3.984 kB / 360.5 MB, free: 9.668 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/0.1899, allocations: 1.63 MB / 362.2 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.1899, allocations: 3.984 kB / 362.2 MB, free: 8.129 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008981/0.1908, allocations: 303.6 kB / 362.5 MB, free: 7.832 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.1908, allocations: 4 kB / 362.5 MB, free: 7.828 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.191e-05/0.1909, allocations: 35.97 kB / 362.5 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.1909, allocations: 4 kB / 362.5 MB, free: 7.789 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1909, allocations: 7.75 kB / 362.5 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009144/0.1918, allocations: 1.404 MB / 363.9 MB, free: 6.363 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.1919, allocations: 214.2 kB / 364.1 MB, free: 6.152 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/0.1921, allocations: 23.98 kB / 364.2 MB, free: 6.129 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003604/0.1924, allocations: 20 kB / 364.2 MB, free: 6.109 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.152e-05/0.1925, allocations: 55.83 kB / 364.2 MB, free: 6.055 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.72e-05/0.1925, allocations: 24 kB / 364.3 MB, free: 6.031 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006228/0.1932, allocations: 0.8237 MB / 365.1 MB, free: 5.195 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1932, allocations: 0 / 365.1 MB, free: 5.195 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002059/0.1952, allocations: 0.8651 MB / 365.9 MB, free: 4.332 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.0002289/0.1955, allocations: 148.1 kB / 366.1 MB, free: 4.176 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.197, allocations: 1.979 MB / 368.1 MB, free: 2.211 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001344/0.1972, allocations: 88.16 kB / 368.2 MB, free: 2.117 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002224/0.1974, allocations: 235 kB / 368.4 MB, free: 1.883 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007647/0.1981, allocations: 232.5 kB / 368.6 MB, free: 1.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00704/0.2052, allocations: 5.165 MB / 373.8 MB, free: 12.41 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006706/0.2059, allocations: 0.819 MB / 374.6 MB, free: 11.58 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001023/0.2069, allocations: 397 kB / 375 MB, free: 11.19 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004628/0.2073, allocations: 397.3 kB / 375.4 MB, free: 10.8 MB / 330.7 MB Notification: Performance of SimCode: time 1.964e-06/0.2073, allocations: 0 / 375.4 MB, free: 10.8 MB / 330.7 MB Notification: Performance of Templates: time 0.02868/0.236, allocations: 17.44 MB / 392.8 MB, free: 9.531 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.3431998901069164]