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.00143/0.00143, allocations: 88.62 kB / 20.96 MB, free: 3.473 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.001446/0.001446, allocations: 149.4 kB / 24.25 MB, free: 184 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 1.428/1.428, allocations: 173.4 MB / 200.8 MB, free: 9.297 MB / 186.7 MB " [Timeout remaining time 178] 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.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.",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.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.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 267.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.733e-05/2.872e-05, allocations: 6.25 kB / 267.3 MB, free: 6.691 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01024/0.01027, allocations: 7.051 MB / 274.4 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005321/0.01559, allocations: 2.415 MB / 276.8 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006249/0.01621, allocations: 43.81 kB / 276.8 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003313/0.01952, allocations: 1.475 MB / 278.3 MB, free: 11.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002536/0.02206, allocations: 1.069 MB / 279.4 MB, free: 10.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007378/0.0228, allocations: 271.2 kB / 279.6 MB, free: 10.31 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003114/0.02591, allocations: 2.238 MB / 281.9 MB, free: 8.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001804/0.02772, allocations: 1.399 MB / 283.3 MB, free: 6.645 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002079/0.0298, allocations: 1.247 MB / 284.5 MB, free: 5.395 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00193/0.03173, allocations: 1.208 MB / 285.7 MB, free: 4.184 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003094/0.03203, allocations: 160 kB / 285.9 MB, free: 4.027 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001263/0.0333, allocations: 0.62 MB / 286.5 MB, free: 3.406 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001283/0.03458, allocations: 1.239 MB / 287.8 MB, free: 2.164 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009807/0.03556, allocations: 0.7318 MB / 288.5 MB, free: 1.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1619/0.1974, allocations: 4.236 MB / 292.7 MB, free: 19.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.766e-06/0.1975, allocations: 1.875 kB / 292.7 MB, free: 19.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1975, allocations: 0 / 292.7 MB, free: 19.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002349/0.1977, allocations: 0 / 292.7 MB, free: 19.16 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.008558/0.2063, allocations: 2.928 MB / 295.6 MB, free: 17.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.2063, allocations: 9.953 kB / 295.7 MB, free: 17.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009061/0.2154, allocations: 2.302 MB / 298 MB, free: 17.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003259/0.2186, allocations: 1.117 MB / 299.1 MB, free: 17.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001788/0.2188, allocations: 151.4 kB / 299.2 MB, free: 17.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008215/0.2196, allocations: 206.4 kB / 299.4 MB, free: 17.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0182/0.2378, allocations: 8.232 MB / 307.7 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001551/0.238, allocations: 45.52 kB / 307.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007003/0.2387, allocations: 101.4 kB / 307.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002399/0.2411, allocations: 1.559 MB / 309.4 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01568/0.2567, allocations: 6.764 MB / 316.1 MB, free: 7.832 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03863/0.2954, allocations: 27.61 MB / 343.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02125/0.3166, allocations: 4.457 MB / 348.2 MB, free: 7.227 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001609/0.3182, allocations: 0.8286 MB / 349 MB, free: 6.383 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005859/0.3241, allocations: 2.615 MB / 351.6 MB, free: 3.762 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.371e-05/0.3242, allocations: 50.17 kB / 351.7 MB, free: 3.707 MB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 3.617e-06/0.3242, allocations: 4 kB / 351.7 MB, free: 3.703 MB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.04267/0.3668, allocations: 8.477 MB / 360.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001701/0.367, allocations: 187.9 kB / 360.4 MB, free: 11 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005949/0.373, allocations: 2.977 MB / 363.3 MB, free: 8.012 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002054/0.3732, allocations: 37.7 kB / 363.4 MB, free: 7.969 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002442/0.3756, allocations: 2.521 MB / 365.9 MB, free: 5.477 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009168/0.3765, allocations: 0.5132 MB / 366.4 MB, free: 4.969 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002489/0.379, allocations: 1.075 MB / 367.5 MB, free: 3.887 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002232/0.3792, allocations: 337.9 kB / 367.8 MB, free: 3.551 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002895/0.3821, allocations: 1.475 MB / 369.3 MB, free: 2.07 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006556/0.3887, allocations: 5.047 MB / 374.3 MB, free: 11.29 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009938/0.3986, allocations: 7.082 MB / 381.4 MB, free: 2.496 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001314/0.3987, allocations: 36 kB / 381.4 MB, free: 2.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01256/0.4113, allocations: 6.465 MB / 387.9 MB, free: 11.99 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000115/0.4114, allocations: 60 kB / 388 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002102/0.4116, allocations: 132.1 kB / 388.1 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002991/0.4119, allocations: 164 kB / 388.3 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005352/0.4173, allocations: 1.45 MB / 389.7 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002787/0.4176, allocations: 243 kB / 389.9 MB, free: 9.953 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003994/0.4216, allocations: 0.7401 MB / 390.7 MB, free: 9.215 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008434/0.4224, allocations: 342.8 kB / 391 MB, free: 8.883 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.003208/0.4256, allocations: 1.575 MB / 392.6 MB, free: 7.297 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006942/0.4263, allocations: 274.3 kB / 392.9 MB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001555/0.4279, allocations: 0.6786 MB / 393.5 MB, free: 6.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.603e-05/0.4279, allocations: 16.03 kB / 393.6 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.612e-05/0.4279, allocations: 7.984 kB / 393.6 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.4279, allocations: 3.984 kB / 393.6 MB, free: 6.312 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006835/0.4348, allocations: 2.47 MB / 396 MB, free: 3.824 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/0.4348, allocations: 8 kB / 396 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002568/0.4373, allocations: 407.5 kB / 396.4 MB, free: 3.418 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.681e-05/0.4374, allocations: 4 kB / 396.4 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001402/0.4375, allocations: 27.98 kB / 396.5 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-05/0.4375, allocations: 4.875 kB / 396.5 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.513e-06/0.4375, allocations: 4 kB / 396.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003808/0.4413, allocations: 2.495 MB / 399 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005768/0.4419, allocations: 210.2 kB / 399.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003981/0.4423, allocations: 31.98 kB / 399.2 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.4433, allocations: 43.95 kB / 399.3 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.4435, allocations: 63.77 kB / 399.3 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.192e-05/0.4436, allocations: 42.78 kB / 399.4 MB, free: 496 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003254/0.4468, allocations: 1.636 MB / 401 MB, free: 14.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.4468, allocations: 0 / 401 MB, free: 14.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004515/0.4513, allocations: 0.8593 MB / 401.9 MB, free: 13.98 MB / 362.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.0004575/0.4518, allocations: 163.8 kB / 402 MB, free: 13.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006207/0.458, allocations: 3.231 MB / 405.2 MB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.458, allocations: 0 / 405.2 MB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009536/0.459, allocations: 0.5502 MB / 405.8 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001966/0.4609, allocations: 231.8 kB / 406 MB, free: 9.848 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01316/0.4741, allocations: 6.656 MB / 412.7 MB, free: 3.129 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003249/0.4773, allocations: 1.823 MB / 414.5 MB, free: 1.277 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004086/0.4814, allocations: 1.607 MB / 416.1 MB, free: 15.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005227/0.4819, allocations: 172.4 kB / 416.3 MB, free: 15.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4819, allocations: 0 / 416.3 MB, free: 15.5 MB / 378.7 MB Notification: Performance of Templates: time 0.04019/0.5221, allocations: 15.3 MB / 431.6 MB, free: 0.6328 MB / 378.7 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.0120243090204895]