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.0009843/0.0009843, 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.001088/0.001088, allocations: 148.6 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.9584/0.9584, allocations: 173.4 MB / 201.5 MB, free: 8.727 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.643e-06/1.643e-06, allocations: 3.938 kB / 268.5 MB, free: 5.969 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.815e-05/2.98e-05, allocations: 6.109 kB / 268.5 MB, free: 5.965 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.00967/0.0097, allocations: 7.6 MB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006363/0.01606, allocations: 2.554 MB / 278.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009077/0.01697, allocations: 43.81 kB / 278.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001897/0.01887, allocations: 1.498 MB / 280.2 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001633/0.0205, allocations: 1.061 MB / 281.3 MB, free: 9.141 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004456/0.02095, allocations: 287.2 kB / 281.6 MB, free: 8.859 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00197/0.02292, allocations: 2.25 MB / 283.8 MB, free: 6.605 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001282/0.0242, allocations: 1.454 MB / 285.3 MB, free: 5.117 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001309/0.02551, allocations: 1.247 MB / 286.5 MB, free: 3.867 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001201/0.02671, allocations: 1.165 MB / 287.7 MB, free: 2.699 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002443/0.02695, allocations: 164 kB / 287.8 MB, free: 2.539 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008107/0.02776, allocations: 0.6201 MB / 288.5 MB, free: 1.918 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006917/0.02846, allocations: 1.25 MB / 289.7 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1073/0.1357, allocations: 0.7377 MB / 290.4 MB, free: 18.58 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004013/0.1398, allocations: 2.793 MB / 293.2 MB, free: 18.35 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.625e-06/0.1398, allocations: 3.625 kB / 293.2 MB, free: 18.35 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1398, allocations: 0 / 293.2 MB, free: 18.35 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001566/0.1399, allocations: 1.094 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.00468/0.1446, allocations: 2.806 MB / 296 MB, free: 17.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.1446, allocations: 11.55 kB / 296.1 MB, free: 17.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00314/0.1478, allocations: 0.9547 MB / 297 MB, free: 17.04 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001539/0.1493, allocations: 0.8926 MB / 297.9 MB, free: 16.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9e-05/0.1494, allocations: 154.9 kB / 298.1 MB, free: 16.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002747/0.1497, allocations: 207.1 kB / 298.3 MB, free: 16.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005813/0.1555, allocations: 3.866 MB / 302.1 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.609e-05/0.1556, allocations: 42.45 kB / 302.2 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002007/0.1558, allocations: 103.9 kB / 302.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001397/0.1572, allocations: 1.384 MB / 303.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00411/0.1613, allocations: 2.025 MB / 305.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01795/0.1792, allocations: 23.57 MB / 329.3 MB, free: 11.51 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006594/0.1858, allocations: 1.724 MB / 331 MB, free: 9.762 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006656/0.1865, allocations: 403 kB / 331.4 MB, free: 9.352 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004432/0.1909, allocations: 2.301 MB / 333.7 MB, free: 7.066 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.545e-05/0.191, allocations: 54.94 kB / 333.7 MB, free: 7.008 MB / 282.7 MB Notification: Performance of pre-optimization done (n=111): time 4.708e-06/0.191, allocations: 0 / 333.7 MB, free: 7.008 MB / 282.7 MB Notification: Performance of matching and sorting (n=111): time 0.01176/0.2027, allocations: 2.629 MB / 336.4 MB, free: 4.41 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.834e-05/0.2028, allocations: 199.1 kB / 336.5 MB, free: 4.176 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002121/0.2049, allocations: 2.199 MB / 338.7 MB, free: 2.41 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001002/0.205, allocations: 41.7 kB / 338.8 MB, free: 2.363 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001093/0.2061, allocations: 2.457 MB / 341.2 MB, free: 36 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000646/0.2068, allocations: 0.5131 MB / 341.8 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008472/0.2076, allocations: 1.021 MB / 342.8 MB, free: 14.63 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.089e-05/0.2077, allocations: 351 kB / 343.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006557/0.2084, allocations: 0.5442 MB / 343.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002309/0.2107, allocations: 3.984 MB / 347.6 MB, free: 8.172 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004239/0.2149, allocations: 5.196 MB / 352.8 MB, free: 1.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.991e-05/0.215, allocations: 36 kB / 352.9 MB, free: 1.305 MB / 298.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.004283/0.2193, allocations: 3.641 MB / 356.5 MB, free: 13.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.355e-05/0.2193, allocations: 60 kB / 356.6 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/0.2194, allocations: 128 kB / 356.7 MB, free: 13.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001069/0.2195, allocations: 164 kB / 356.9 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003121/0.2226, allocations: 1.481 MB / 358.3 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001233/0.2228, allocations: 247 kB / 358.6 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002245/0.225, allocations: 0.7206 MB / 359.3 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002923/0.2253, allocations: 298.5 kB / 359.6 MB, free: 10.57 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.001427/0.2267, allocations: 0.5664 MB / 360.2 MB, free: 9.996 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002755/0.227, allocations: 151.8 kB / 360.3 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004711/0.2275, allocations: 407 kB / 360.7 MB, free: 9.438 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.756e-05/0.2275, allocations: 19.97 kB / 360.7 MB, free: 9.418 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.2275, allocations: 8 kB / 360.7 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.2275, allocations: 3.984 kB / 360.7 MB, free: 9.406 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002496/0.23, allocations: 1.616 MB / 362.4 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.23, allocations: 4 kB / 362.4 MB, free: 7.891 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.2313, allocations: 394 kB / 362.7 MB, free: 7.508 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.2313, allocations: 8 kB / 362.8 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-05/0.2313, allocations: 35.91 kB / 362.8 MB, free: 7.465 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/0.2313, allocations: 4 kB / 362.8 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.2314, allocations: 4 kB / 362.8 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.2324, allocations: 1.401 MB / 364.2 MB, free: 6.035 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002443/0.2326, allocations: 210.2 kB / 364.4 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001533/0.2328, allocations: 27.92 kB / 364.4 MB, free: 5.801 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004019/0.2332, allocations: 20 kB / 364.4 MB, free: 5.781 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.432e-05/0.2333, allocations: 55.83 kB / 364.5 MB, free: 5.727 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.961e-05/0.2333, allocations: 35.97 kB / 364.5 MB, free: 5.691 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008262/0.2342, allocations: 0.812 MB / 365.3 MB, free: 4.867 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2342, allocations: 0 / 365.3 MB, free: 4.867 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002583/0.2367, allocations: 0.8613 MB / 366.2 MB, free: 4.008 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.0002911/0.237, allocations: 148.1 kB / 366.4 MB, free: 3.852 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002456/0.2395, allocations: 1.989 MB / 368.3 MB, free: 1.879 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001479/0.2396, allocations: 84.16 kB / 368.4 MB, free: 1.789 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000249/0.2399, allocations: 234.4 kB / 368.7 MB, free: 1.555 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008589/0.2408, allocations: 230 kB / 368.9 MB, free: 1.332 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006085/0.2468, allocations: 5.169 MB / 374 MB, free: 12.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008739/0.2477, allocations: 0.819 MB / 374.9 MB, free: 11.25 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009458/0.2487, allocations: 401.1 kB / 375.3 MB, free: 10.86 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005031/0.2492, allocations: 405 kB / 375.7 MB, free: 10.46 MB / 330.7 MB Notification: Performance of SimCode: time 8.82e-07/0.2492, allocations: 0 / 375.7 MB, free: 10.46 MB / 330.7 MB Notification: Performance of Templates: time 0.02924/0.2784, allocations: 17.6 MB / 393.3 MB, free: 9.039 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 -s gbode -gbm=radauIIA3 -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.235940628219396]