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.0009944/0.0009944, allocations: 83.89 kB / 21.19 MB, free: 3.383 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.0016/0.0016, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9322/0.9322, allocations: 173.3 MB / 201.1 MB, free: 9.332 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.242e-06/1.242e-06, allocations: 0 / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.625e-05/1.749e-05, allocations: 2.312 kB / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006316/0.006333, allocations: 7.779 MB / 275.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003871/0.0102, allocations: 2.473 MB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003412/0.01055, allocations: 43.81 kB / 278.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001639/0.01218, allocations: 1.526 MB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001198/0.01338, allocations: 1.065 MB / 280.9 MB, free: 9.465 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003291/0.01371, allocations: 283.2 kB / 281.2 MB, free: 9.188 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001427/0.01514, allocations: 2.246 MB / 283.4 MB, free: 6.934 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001184/0.01632, allocations: 1.395 MB / 284.8 MB, free: 5.512 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007884/0.01711, allocations: 1.247 MB / 286.1 MB, free: 4.262 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009103/0.01802, allocations: 1.227 MB / 287.3 MB, free: 3.031 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001583/0.01818, allocations: 160 kB / 287.4 MB, free: 2.875 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006171/0.0188, allocations: 0.6161 MB / 288.1 MB, free: 2.258 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006499/0.01945, allocations: 1.25 MB / 289.3 MB, free: 1.004 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004865/0.01993, allocations: 0.7357 MB / 290 MB, free: 272 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1161/0.1361, allocations: 2.798 MB / 292.8 MB, free: 18.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.1361, allocations: 1.031 kB / 292.8 MB, free: 18.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1361, allocations: 0 / 292.8 MB, free: 18.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001672/0.1362, allocations: 0 / 292.8 MB, free: 18.18 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.006196/0.1424, allocations: 3.234 MB / 296.1 MB, free: 16.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.1425, allocations: 10.64 kB / 296.1 MB, free: 16.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004907/0.1474, allocations: 2.241 MB / 298.3 MB, free: 16.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001949/0.1493, allocations: 1.104 MB / 299.4 MB, free: 16.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.1494, allocations: 156.6 kB / 299.6 MB, free: 16.19 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000319/0.1497, allocations: 206.4 kB / 299.8 MB, free: 16.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009205/0.1589, allocations: 5.517 MB / 305.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.593e-05/0.159, allocations: 40.48 kB / 305.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002172/0.1592, allocations: 107.9 kB / 305.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001438/0.1607, allocations: 1.557 MB / 307 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00667/0.1673, allocations: 3.253 MB / 310.3 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.022/0.1893, allocations: 33.87 MB / 344.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009124/0.1985, allocations: 4.016 MB / 348.1 MB, free: 7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006326/0.1991, allocations: 392.1 kB / 348.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003061/0.2022, allocations: 2.653 MB / 351.2 MB, free: 3.938 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.2022, allocations: 45.72 kB / 351.2 MB, free: 3.883 MB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 3.026e-06/0.2022, allocations: 0 / 351.2 MB, free: 3.883 MB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.01814/0.2203, allocations: 7.562 MB / 358.8 MB, free: 12.33 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/0.2204, allocations: 187.9 kB / 359 MB, free: 12.1 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003223/0.2236, allocations: 2.798 MB / 361.8 MB, free: 9.285 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001652/0.2238, allocations: 37.7 kB / 361.8 MB, free: 9.242 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001364/0.2252, allocations: 2.663 MB / 364.5 MB, free: 6.605 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005274/0.2257, allocations: 0.5313 MB / 365 MB, free: 6.082 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001017/0.2267, allocations: 1.176 MB / 366.2 MB, free: 4.898 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.2269, allocations: 0.5173 MB / 366.7 MB, free: 4.375 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008784/0.2277, allocations: 0.5063 MB / 367.2 MB, free: 3.863 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003257/0.231, allocations: 5.794 MB / 373 MB, free: 11.64 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005385/0.2364, allocations: 6.955 MB / 379.9 MB, free: 2.254 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.216e-05/0.2365, allocations: 36.88 kB / 380 MB, free: 2.219 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.005828/0.2423, allocations: 4.538 MB / 384.5 MB, free: 13.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.207e-05/0.2424, allocations: 60 kB / 384.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/0.2425, allocations: 124.8 kB / 384.7 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001145/0.2426, allocations: 168 kB / 384.9 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002762/0.2453, allocations: 1.454 MB / 386.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001767/0.2455, allocations: 252.2 kB / 386.6 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002463/0.248, allocations: 0.7319 MB / 387.3 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000305/0.2483, allocations: 343.3 kB / 387.6 MB, free: 10.57 MB / 346.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.001015/0.2493, allocations: 0.6202 MB / 388.3 MB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003014/0.2496, allocations: 262.4 kB / 388.5 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005679/0.2502, allocations: 483 kB / 389 MB, free: 9.199 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-05/0.2502, allocations: 12 kB / 389 MB, free: 9.188 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.2502, allocations: 4 kB / 389 MB, free: 9.184 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.116e-06/0.2502, allocations: 7.047 kB / 389 MB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003602/0.2538, allocations: 2.502 MB / 391.5 MB, free: 6.652 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.2538, allocations: 0 / 391.5 MB, free: 6.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/0.2549, allocations: 407.5 kB / 391.9 MB, free: 6.254 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.649e-06/0.255, allocations: 4 kB / 391.9 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.241e-05/0.255, allocations: 31.97 kB / 391.9 MB, free: 6.219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.354e-06/0.255, allocations: 8 kB / 391.9 MB, free: 6.211 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.255, allocations: 3.938 kB / 392 MB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00139/0.2564, allocations: 1.758 MB / 393.7 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002939/0.2567, allocations: 214.1 kB / 393.9 MB, free: 4.211 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001586/0.2569, allocations: 35.05 kB / 394 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004382/0.2573, allocations: 43.95 kB / 394 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003283/0.2576, allocations: 51.84 kB / 394 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.086e-05/0.2577, allocations: 35.98 kB / 394.1 MB, free: 4.051 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001176/0.2589, allocations: 1.119 MB / 395.2 MB, free: 2.922 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2589, allocations: 0 / 395.2 MB, free: 2.922 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002671/0.2615, allocations: 0.8566 MB / 396.1 MB, free: 2.066 MB / 346.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.0003224/0.2619, allocations: 173.1 kB / 396.2 MB, free: 1.895 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003223/0.2651, allocations: 2.255 MB / 398.5 MB, free: 15.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.2651, allocations: 0 / 398.5 MB, free: 15.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004656/0.2656, allocations: 314.5 kB / 398.8 MB, free: 15.35 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.2671, allocations: 232.9 kB / 399 MB, free: 15.13 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008931/0.276, allocations: 5.525 MB / 404.5 MB, free: 9.531 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000962/0.277, allocations: 0.8307 MB / 405.4 MB, free: 8.684 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002891/0.2798, allocations: 1.413 MB / 406.8 MB, free: 7.266 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003833/0.2802, allocations: 168.5 kB / 407 MB, free: 7.102 MB / 362.7 MB Notification: Performance of SimCode: time 1.733e-06/0.2802, allocations: 0 / 407 MB, free: 7.102 MB / 362.7 MB Notification: Performance of Templates: time 0.03335/0.3136, allocations: 15.99 MB / 422.9 MB, free: 7.531 MB / 378.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.6972105666063726]