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.001402/0.001402, allocations: 80.8 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.001519/0.001519, allocations: 167 kB / 25.69 MB, free: 8.453 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.9122/0.9122, allocations: 158.6 MB / 187.6 MB, free: 2.805 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.412e-06/1.412e-06, allocations: 0 / 251.6 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.823e-05/1.965e-05, allocations: 6.25 kB / 251.6 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.00604/0.00606, allocations: 7.602 MB / 259.2 MB, free: 15.58 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003969/0.01003, allocations: 2.582 MB / 261.8 MB, free: 13 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000746/0.01077, allocations: 39.88 kB / 261.8 MB, free: 12.96 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.01243, allocations: 1.51 MB / 263.3 MB, free: 11.44 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001769/0.0142, allocations: 1.049 MB / 264.4 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005013/0.0147, allocations: 291.1 kB / 264.6 MB, free: 10.1 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001899/0.0166, allocations: 2.25 MB / 266.9 MB, free: 7.848 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001602/0.0182, allocations: 1.446 MB / 268.3 MB, free: 6.367 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001319/0.01952, allocations: 1.247 MB / 269.6 MB, free: 5.117 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001342/0.02086, allocations: 1.176 MB / 270.8 MB, free: 3.938 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003255/0.02119, allocations: 160 kB / 270.9 MB, free: 3.781 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001087/0.02227, allocations: 0.6123 MB / 271.5 MB, free: 3.168 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007638/0.02304, allocations: 1.246 MB / 272.8 MB, free: 1.918 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007766/0.02381, allocations: 0.7396 MB / 273.5 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002343/0.02616, allocations: 2.797 MB / 276.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.02616, allocations: 0 / 276.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.02616, allocations: 0 / 276.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.935e-05/0.02624, allocations: 0 / 276.3 MB, free: 14.36 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.002765/0.029, allocations: 2.815 MB / 279.1 MB, free: 11.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.02904, allocations: 15.98 kB / 279.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002523/0.03156, allocations: 0.9527 MB / 280.1 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009887/0.03255, allocations: 0.8903 MB / 281 MB, free: 9.617 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.378e-05/0.03262, allocations: 155.9 kB / 281.1 MB, free: 9.465 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002178/0.03284, allocations: 203.8 kB / 281.3 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00439/0.03723, allocations: 3.866 MB / 285.2 MB, free: 4.789 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.932e-05/0.03729, allocations: 43.62 kB / 285.2 MB, free: 4.746 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001641/0.03745, allocations: 103.9 kB / 285.3 MB, free: 4.645 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001173/0.03863, allocations: 1.39 MB / 286.7 MB, free: 3.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003415/0.04204, allocations: 2.007 MB / 288.7 MB, free: 1.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01806/0.0601, allocations: 23.58 MB / 312.3 MB, free: 8.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005622/0.06572, allocations: 1.724 MB / 314 MB, free: 6.977 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004555/0.06618, allocations: 405.6 kB / 314.4 MB, free: 6.559 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003014/0.06919, allocations: 2.298 MB / 316.7 MB, free: 4.234 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.06923, allocations: 58.81 kB / 316.8 MB, free: 4.168 MB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 3.106e-06/0.06923, allocations: 0 / 316.8 MB, free: 4.168 MB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.009943/0.07918, allocations: 2.623 MB / 319.4 MB, free: 1.547 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/0.07925, allocations: 195.9 kB / 319.6 MB, free: 1.312 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002276/0.08153, allocations: 2.198 MB / 321.8 MB, free: 15.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.83e-05/0.08159, allocations: 41.7 kB / 321.9 MB, free: 15.04 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001218/0.08281, allocations: 2.465 MB / 324.3 MB, free: 12.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000367/0.08317, allocations: 0.5118 MB / 324.8 MB, free: 12.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009904/0.08416, allocations: 1.017 MB / 325.8 MB, free: 11.01 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.08427, allocations: 345.8 kB / 326.2 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007941/0.08506, allocations: 0.5453 MB / 326.7 MB, free: 10.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002705/0.08777, allocations: 3.978 MB / 330.7 MB, free: 4.332 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004651/0.09242, allocations: 5.206 MB / 335.9 MB, free: 13.32 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.014e-05/0.0925, allocations: 36 kB / 335.9 MB, free: 13.28 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.005523/0.09802, allocations: 3.642 MB / 339.6 MB, free: 9.621 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.378e-05/0.0981, allocations: 60.22 kB / 339.6 MB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001482/0.09824, allocations: 132 kB / 339.8 MB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000148/0.09839, allocations: 168 kB / 339.9 MB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003863/0.1023, allocations: 1.474 MB / 341.4 MB, free: 7.793 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001982/0.1025, allocations: 255 kB / 341.7 MB, free: 7.543 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002766/0.1052, allocations: 0.7135 MB / 342.4 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003635/0.1056, allocations: 296 kB / 342.7 MB, free: 6.535 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.001008/0.1066, allocations: 0.5704 MB / 343.2 MB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003179/0.1069, allocations: 151.8 kB / 343.4 MB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005789/0.1075, allocations: 410.7 kB / 343.8 MB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/0.1075, allocations: 16 kB / 343.8 MB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1075, allocations: 3.938 kB / 343.8 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.1075, allocations: 7.984 kB / 343.8 MB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002968/0.1105, allocations: 1.615 MB / 345.4 MB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.1105, allocations: 0 / 345.4 MB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001687/0.1122, allocations: 403.3 kB / 345.8 MB, free: 3.332 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.867e-06/0.1122, allocations: 7.938 kB / 345.8 MB, free: 3.324 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.815e-05/0.1123, allocations: 35.97 kB / 345.9 MB, free: 3.289 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.474e-06/0.1123, allocations: 4 kB / 345.9 MB, free: 3.285 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1123, allocations: 0 / 345.9 MB, free: 3.285 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001691/0.114, allocations: 1.402 MB / 347.3 MB, free: 1.859 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003304/0.1143, allocations: 210.1 kB / 347.5 MB, free: 1.652 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001905/0.1145, allocations: 27.98 kB / 347.5 MB, free: 1.625 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005926/0.1151, allocations: 20 kB / 347.5 MB, free: 1.605 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.634e-05/0.1152, allocations: 55.89 kB / 347.6 MB, free: 1.551 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.005e-05/0.1152, allocations: 31.97 kB / 347.6 MB, free: 1.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007618/0.116, allocations: 0.8159 MB / 348.4 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.116, allocations: 0 / 348.4 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.1128/0.2288, allocations: 0.855 MB / 349.3 MB, free: 95.08 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.0004461/0.2292, allocations: 144.8 kB / 349.4 MB, free: 95.01 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003045/0.2323, allocations: 1.971 MB / 351.4 MB, free: 94.89 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001713/0.2325, allocations: 86.97 kB / 351.5 MB, free: 94.86 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002952/0.2327, allocations: 246.6 kB / 351.7 MB, free: 94.83 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.2341, allocations: 233.3 kB / 351.9 MB, free: 94.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006497/0.2405, allocations: 5.162 MB / 357.1 MB, free: 92.72 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007692/0.2413, allocations: 0.8185 MB / 357.9 MB, free: 92.6 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001119/0.2424, allocations: 399.4 kB / 358.3 MB, free: 92.47 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005391/0.243, allocations: 399.2 kB / 358.7 MB, free: 92.42 MB / 330.7 MB Notification: Performance of SimCode: time 1.363e-06/0.243, allocations: 0 / 358.7 MB, free: 92.42 MB / 330.7 MB Notification: Performance of Templates: time 0.03142/0.2744, allocations: 17.58 MB / 376.3 MB, free: 77.88 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 -s gbode -gbm=radauIIA3 -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.491826022043824]