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.0008853/0.0008853, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.0009603/0.0009603, allocations: 165.8 kB / 25.7 MB, free: 8.438 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.8342/0.8342, allocations: 158.6 MB / 187.6 MB, free: 2.785 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.302e-06/1.302e-06, allocations: 0 / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.173e-05/1.303e-05, allocations: 6.25 kB / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.005677/0.00569, allocations: 7.547 MB / 259.1 MB, free: 15.66 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003696/0.009386, allocations: 2.586 MB / 261.7 MB, free: 13.07 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004018/0.009788, allocations: 43.81 kB / 261.7 MB, free: 13.03 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001596/0.01138, allocations: 1.518 MB / 263.2 MB, free: 11.51 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001171/0.01255, allocations: 1.069 MB / 264.3 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003222/0.01288, allocations: 275.3 kB / 264.6 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001649/0.01453, allocations: 2.242 MB / 266.8 MB, free: 7.914 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009028/0.01543, allocations: 1.446 MB / 268.3 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007964/0.01623, allocations: 1.259 MB / 269.5 MB, free: 5.172 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008956/0.01712, allocations: 1.169 MB / 270.7 MB, free: 4 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001502/0.01727, allocations: 156 kB / 270.8 MB, free: 3.848 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006002/0.01787, allocations: 0.6044 MB / 271.4 MB, free: 3.242 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008521/0.01872, allocations: 1.25 MB / 272.7 MB, free: 1.988 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004803/0.0192, allocations: 0.7318 MB / 273.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001886/0.02109, allocations: 2.793 MB / 276.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.02109, allocations: 3.938 kB / 276.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.02109, allocations: 4 kB / 276.2 MB, free: 14.44 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.849e-05/0.02112, allocations: 0 / 276.2 MB, free: 14.44 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.002173/0.02329, allocations: 2.811 MB / 279 MB, free: 11.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.02333, allocations: 15.98 kB / 279.1 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002766/0.0261, allocations: 0.9566 MB / 280 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008839/0.02698, allocations: 0.8941 MB / 280.9 MB, free: 9.691 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.309e-05/0.02706, allocations: 159.9 kB / 281.1 MB, free: 9.535 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002284/0.02728, allocations: 203.8 kB / 281.3 MB, free: 9.336 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003897/0.03118, allocations: 3.869 MB / 285.1 MB, free: 4.855 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.232e-05/0.03123, allocations: 35.64 kB / 285.2 MB, free: 4.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001673/0.0314, allocations: 103.9 kB / 285.3 MB, free: 4.719 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001448/0.03285, allocations: 1.39 MB / 286.7 MB, free: 3.324 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003053/0.0359, allocations: 2.018 MB / 288.7 MB, free: 1.293 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01436/0.05026, allocations: 23.57 MB / 312.2 MB, free: 8.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003748/0.05401, allocations: 1.72 MB / 314 MB, free: 7.051 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003153/0.05432, allocations: 405.6 kB / 314.4 MB, free: 6.633 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002321/0.05664, allocations: 2.317 MB / 316.7 MB, free: 4.289 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.659e-05/0.05667, allocations: 46.88 kB / 316.7 MB, free: 4.234 MB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 2.434e-06/0.05667, allocations: 4 kB / 316.7 MB, free: 4.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.006995/0.06367, allocations: 2.646 MB / 319.4 MB, free: 1.582 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/0.06373, allocations: 195.9 kB / 319.6 MB, free: 1.348 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001345/0.06507, allocations: 2.191 MB / 321.8 MB, free: 15.13 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.06512, allocations: 45.7 kB / 321.8 MB, free: 15.08 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001327/0.06645, allocations: 2.461 MB / 324.3 MB, free: 12.59 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002585/0.06671, allocations: 0.5079 MB / 324.8 MB, free: 12.08 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007363/0.06744, allocations: 1.021 MB / 325.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.359e-05/0.06754, allocations: 345.8 kB / 326.1 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005734/0.06811, allocations: 0.5453 MB / 326.7 MB, free: 10.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002198/0.07031, allocations: 3.978 MB / 330.7 MB, free: 4.375 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003242/0.07355, allocations: 5.205 MB / 335.9 MB, free: 13.37 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.345e-05/0.07359, allocations: 36 kB / 335.9 MB, free: 13.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.003089/0.07667, allocations: 3.647 MB / 339.5 MB, free: 9.668 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.472e-05/0.07672, allocations: 56 kB / 339.6 MB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.002e-05/0.07679, allocations: 128 kB / 339.7 MB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.966e-05/0.07688, allocations: 168 kB / 339.9 MB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002442/0.07932, allocations: 1.349 MB / 341.2 MB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000112/0.07943, allocations: 255 kB / 341.5 MB, free: 7.723 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.08095, allocations: 0.7097 MB / 342.2 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002209/0.08117, allocations: 304 kB / 342.5 MB, free: 6.711 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.0006247/0.08179, allocations: 0.5781 MB / 343.1 MB, free: 6.121 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001776/0.08197, allocations: 143.8 kB / 343.2 MB, free: 5.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003933/0.08236, allocations: 410.7 kB / 343.6 MB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/0.08238, allocations: 12 kB / 343.6 MB, free: 5.559 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.08238, allocations: 3.938 kB / 343.6 MB, free: 5.555 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.08239, allocations: 7.984 kB / 343.6 MB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001915/0.08431, allocations: 1.622 MB / 345.3 MB, free: 3.895 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.08431, allocations: 0 / 345.3 MB, free: 3.895 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000916/0.08523, allocations: 311.6 kB / 345.6 MB, free: 3.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.08523, allocations: 4 kB / 345.6 MB, free: 3.586 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.594e-05/0.08528, allocations: 23.98 kB / 345.6 MB, free: 3.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.08528, allocations: 8 kB / 345.6 MB, free: 3.555 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.08528, allocations: 0 / 345.6 MB, free: 3.555 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000911/0.08619, allocations: 1.409 MB / 347 MB, free: 2.121 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/0.08634, allocations: 210.1 kB / 347.2 MB, free: 1.914 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/0.08648, allocations: 31.98 kB / 347.2 MB, free: 1.883 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003592/0.08684, allocations: 16 kB / 347.3 MB, free: 1.867 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.671e-05/0.08691, allocations: 55.83 kB / 347.3 MB, free: 1.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.804e-05/0.08695, allocations: 24 kB / 347.3 MB, free: 1.789 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008287/0.08778, allocations: 0.8237 MB / 348.2 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.08778, allocations: 0 / 348.2 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001893/0.08967, allocations: 0.8613 MB / 349 MB, free: 92 kB / 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.08819/0.1779, allocations: 142.7 kB / 349.2 MB, free: 99.1 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002479/0.1803, allocations: 1.971 MB / 351.1 MB, free: 98.98 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001405/0.1805, allocations: 87.44 kB / 351.2 MB, free: 98.95 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001971/0.1807, allocations: 243 kB / 351.4 MB, free: 98.92 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009611/0.1816, allocations: 224.4 kB / 351.7 MB, free: 98.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004336/0.186, allocations: 5.166 MB / 356.8 MB, free: 96.81 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005247/0.1865, allocations: 0.821 MB / 357.7 MB, free: 96.69 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008069/0.1873, allocations: 402.2 kB / 358 MB, free: 96.56 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004921/0.1878, allocations: 391.9 kB / 358.4 MB, free: 96.51 MB / 330.7 MB Notification: Performance of SimCode: time 1.353e-06/0.1878, allocations: 0 / 358.4 MB, free: 96.51 MB / 330.7 MB Notification: Performance of Templates: time 0.02268/0.2105, allocations: 17.41 MB / 375.8 MB, free: 80.87 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.2254345850087702]