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.001134/0.001134, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001236/0.001236, allocations: 166.9 kB / 25.33 MB, free: 8.586 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.9141/0.9141, allocations: 158.6 MB / 187.2 MB, free: 2.934 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.603e-06/1.603e-06, allocations: 0 / 251.1 MB, free: 7.504 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.623e-05/2.783e-05, allocations: 2.312 kB / 251.1 MB, free: 7.5 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006703/0.006731, allocations: 7.782 MB / 258.8 MB, free: 15.68 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00392/0.01065, allocations: 2.513 MB / 261.3 MB, free: 13.16 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004086/0.01106, allocations: 43.81 kB / 261.4 MB, free: 13.12 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001713/0.01277, allocations: 1.518 MB / 262.9 MB, free: 11.59 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001252/0.01402, allocations: 1.053 MB / 264 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003647/0.01439, allocations: 283.2 kB / 264.2 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001618/0.01601, allocations: 2.246 MB / 266.5 MB, free: 8.004 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001011/0.01702, allocations: 1.407 MB / 267.9 MB, free: 6.566 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008482/0.01787, allocations: 1.243 MB / 269.1 MB, free: 5.32 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/0.01889, allocations: 1.227 MB / 270.4 MB, free: 4.09 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001868/0.01908, allocations: 160 kB / 270.5 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006526/0.01973, allocations: 0.6083 MB / 271.1 MB, free: 3.324 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006496/0.02038, allocations: 1.243 MB / 272.4 MB, free: 2.078 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005308/0.02091, allocations: 0.7396 MB / 273.1 MB, free: 1.336 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002062/0.02298, allocations: 2.797 MB / 275.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.02298, allocations: 0 / 275.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.02298, allocations: 0 / 275.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.482e-05/0.02301, allocations: 0 / 275.9 MB, free: 14.52 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.002761/0.02578, allocations: 3.239 MB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.02581, allocations: 15.98 kB / 279.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003846/0.02966, allocations: 2.238 MB / 281.4 MB, free: 8.969 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001167/0.03083, allocations: 1.057 MB / 282.5 MB, free: 7.883 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.731e-05/0.0309, allocations: 159.9 kB / 282.6 MB, free: 7.727 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002278/0.03113, allocations: 207.8 kB / 282.8 MB, free: 7.523 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006827/0.03796, allocations: 5.528 MB / 288.3 MB, free: 1.176 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.327e-05/0.03801, allocations: 35.7 kB / 288.4 MB, free: 1.141 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001688/0.03818, allocations: 103.9 kB / 288.5 MB, free: 1.039 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001411/0.03959, allocations: 1.558 MB / 290 MB, free: 15.48 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006168/0.04576, allocations: 3.259 MB / 293.3 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02314/0.0689, allocations: 33.87 MB / 327.2 MB, free: 9.234 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009405/0.07831, allocations: 4.011 MB / 331.2 MB, free: 5.133 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006971/0.079, allocations: 389.7 kB / 331.6 MB, free: 4.723 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00321/0.08221, allocations: 2.647 MB / 334.2 MB, free: 2.043 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.013e-05/0.08225, allocations: 57.66 kB / 334.3 MB, free: 1.977 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 4.528e-06/0.08226, allocations: 0 / 334.3 MB, free: 1.977 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.01789/0.1001, allocations: 7.551 MB / 341.8 MB, free: 10.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.954e-05/0.1002, allocations: 195.9 kB / 342 MB, free: 10.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00281/0.103, allocations: 2.788 MB / 344.8 MB, free: 7.367 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.995e-05/0.1031, allocations: 45.69 kB / 344.8 MB, free: 7.316 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00145/0.1046, allocations: 2.678 MB / 347.5 MB, free: 4.609 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005003/0.1051, allocations: 0.5237 MB / 348 MB, free: 4.082 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001106/0.1062, allocations: 1.176 MB / 349.2 MB, free: 2.895 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1063, allocations: 0.5159 MB / 349.7 MB, free: 2.371 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007749/0.1071, allocations: 0.5024 MB / 350.2 MB, free: 1.863 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1271/0.2342, allocations: 5.789 MB / 356 MB, free: 90.43 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004552/0.2388, allocations: 6.939 MB / 363 MB, free: 83.26 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.015e-05/0.2389, allocations: 37.38 kB / 363 MB, free: 83.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.006095/0.245, allocations: 4.542 MB / 367.5 MB, free: 82.3 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.64e-05/0.245, allocations: 59.59 kB / 367.6 MB, free: 82.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.971e-05/0.2451, allocations: 127.7 kB / 367.7 MB, free: 82.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001096/0.2452, allocations: 163.2 kB / 367.9 MB, free: 82.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002625/0.2479, allocations: 1.451 MB / 369.3 MB, free: 82.19 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001502/0.248, allocations: 259 kB / 369.6 MB, free: 82.13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002098/0.2501, allocations: 0.73 MB / 370.3 MB, free: 81.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002621/0.2504, allocations: 345 kB / 370.7 MB, free: 81.69 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.0008272/0.2512, allocations: 0.6068 MB / 371.3 MB, free: 81.28 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002814/0.2515, allocations: 266.2 kB / 371.5 MB, free: 81.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005343/0.252, allocations: 491.8 kB / 372 MB, free: 80.9 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.896e-05/0.252, allocations: 16 kB / 372 MB, free: 80.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.252, allocations: 0 / 372 MB, free: 80.88 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.2521, allocations: 11.72 kB / 372 MB, free: 80.88 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003014/0.2551, allocations: 2.494 MB / 374.5 MB, free: 79.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.211e-06/0.2551, allocations: 7.875 kB / 374.5 MB, free: 79.47 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.2561, allocations: 400.4 kB / 374.9 MB, free: 79.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.2562, allocations: 8 kB / 374.9 MB, free: 79.17 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.567e-05/0.2562, allocations: 34.84 kB / 375 MB, free: 79.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.602e-06/0.2562, allocations: 5.172 kB / 375 MB, free: 79.15 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2562, allocations: 3.938 kB / 375 MB, free: 79.15 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.2574, allocations: 1.751 MB / 376.7 MB, free: 77.6 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001832/0.2575, allocations: 221.8 kB / 376.9 MB, free: 77.4 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.2577, allocations: 27.3 kB / 377 MB, free: 77.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004073/0.2581, allocations: 42.7 kB / 377 MB, free: 77.38 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.252e-05/0.2581, allocations: 57.48 kB / 377.1 MB, free: 77.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.396e-05/0.2582, allocations: 39.62 kB / 377.1 MB, free: 77.32 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008866/0.2591, allocations: 1.118 MB / 378.2 MB, free: 76.46 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2591, allocations: 0 / 378.2 MB, free: 76.46 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002388/0.2615, allocations: 0.8593 MB / 379.1 MB, free: 75.67 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.000258/0.2617, allocations: 168.3 kB / 379.2 MB, free: 75.51 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002476/0.2642, allocations: 2.261 MB / 381.5 MB, free: 73.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2642, allocations: 0 / 381.5 MB, free: 73.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000278/0.2645, allocations: 310.2 kB / 381.8 MB, free: 73.26 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008163/0.2653, allocations: 226.2 kB / 382 MB, free: 73.05 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004963/0.2703, allocations: 5.522 MB / 387.6 MB, free: 67.94 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000634/0.2709, allocations: 0.8218 MB / 388.4 MB, free: 67.34 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001788/0.2727, allocations: 1.417 MB / 389.8 MB, free: 65.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002456/0.2729, allocations: 176.4 kB / 390 MB, free: 65.74 MB / 330.7 MB Notification: Performance of SimCode: time 2.094e-06/0.2729, allocations: 3.719 kB / 390 MB, free: 65.74 MB / 330.7 MB Notification: Performance of Templates: time 0.02418/0.2971, allocations: 15.17 MB / 405.1 MB, free: 50.68 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.7285803770646453]