Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0007508/0.0007508, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009446/0.001695, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001049/0.001049, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001312/0.002361, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9527/0.9527, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08412/1.037, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.062e-06/1.062e-06, allocations: 0 / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.864e-06/8.926e-06, allocations: 6.312 kB / 244.5 MB, free: 14.3 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.005457/0.005466, allocations: 7.635 MB / 252.2 MB, free: 6.629 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003312/0.008778, allocations: 2.601 MB / 254.8 MB, free: 4.016 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003679/0.009146, allocations: 47.81 kB / 254.8 MB, free: 3.969 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001334/0.01048, allocations: 1.46 MB / 256.3 MB, free: 2.504 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001611/0.01209, allocations: 1.045 MB / 257.3 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006178/0.01271, allocations: 287.2 kB / 257.6 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00232/0.01503, allocations: 2.196 MB / 259.8 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001109/0.01614, allocations: 1.361 MB / 261.2 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001134/0.01727, allocations: 1.285 MB / 262.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001156/0.01843, allocations: 1.153 MB / 263.6 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002102/0.01864, allocations: 156 kB / 263.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007922/0.01943, allocations: 0.6317 MB / 264.4 MB, free: 10.35 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005832/0.02001, allocations: 1.118 MB / 265.5 MB, free: 9.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005519/0.02057, allocations: 0.6073 MB / 266.1 MB, free: 8.621 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002074/0.02264, allocations: 2.599 MB / 268.7 MB, free: 6.012 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.665e-05/0.02266, allocations: 0 / 268.7 MB, free: 6.012 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.02266, allocations: 0 / 268.7 MB, free: 6.012 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001133/0.02277, allocations: 0 / 268.7 MB, free: 6.012 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.003164/0.02594, allocations: 3.323 MB / 272 MB, free: 2.645 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.02597, allocations: 12.02 kB / 272 MB, free: 2.633 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002353/0.02832, allocations: 1.036 MB / 273.1 MB, free: 1.578 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009556/0.02928, allocations: 0.8864 MB / 274 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.024e-05/0.02935, allocations: 159.9 kB / 274.1 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002025/0.02955, allocations: 207.8 kB / 274.3 MB, free: 308 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1085/0.138, allocations: 3.88 MB / 278.2 MB, free: 19.15 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000105/0.1381, allocations: 39.06 kB / 278.2 MB, free: 19.15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001813/0.1383, allocations: 104.3 kB / 278.3 MB, free: 19.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001459/0.1398, allocations: 1.393 MB / 279.7 MB, free: 19.15 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004611/0.1444, allocations: 2.021 MB / 281.8 MB, free: 19.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01389/0.1583, allocations: 23.57 MB / 305.3 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003643/0.1619, allocations: 1.703 MB / 307 MB, free: 36 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003715/0.1623, allocations: 408.8 kB / 307.4 MB, free: 15.62 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002456/0.1647, allocations: 2.295 MB / 309.7 MB, free: 13.34 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.1648, allocations: 54.81 kB / 309.8 MB, free: 13.27 MB / 282.7 MB Notification: Performance of pre-optimization done (n=111): time 2.685e-06/0.1648, allocations: 0 / 309.8 MB, free: 13.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=111): time 0.00702/0.1718, allocations: 2.616 MB / 312.4 MB, free: 10.68 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.927e-05/0.1718, allocations: 195.9 kB / 312.6 MB, free: 10.45 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/0.1735, allocations: 2.191 MB / 314.8 MB, free: 8.363 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.081e-05/0.1735, allocations: 37.7 kB / 314.8 MB, free: 8.32 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001432/0.175, allocations: 2.472 MB / 317.3 MB, free: 5.836 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003067/0.1753, allocations: 0.5041 MB / 317.8 MB, free: 5.328 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007281/0.176, allocations: 1.021 MB / 318.8 MB, free: 4.297 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.33e-05/0.1761, allocations: 341.9 kB / 319.1 MB, free: 3.957 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005863/0.1767, allocations: 0.5491 MB / 319.7 MB, free: 3.402 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002371/0.179, allocations: 3.974 MB / 323.7 MB, free: 13.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003808/0.1829, allocations: 5.202 MB / 328.9 MB, free: 6.652 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.763e-05/0.1829, allocations: 36 kB / 328.9 MB, free: 6.617 MB / 298.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.003708/0.1866, allocations: 3.642 MB / 332.5 MB, free: 2.961 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.618e-05/0.1867, allocations: 60 kB / 332.6 MB, free: 2.902 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001077/0.1868, allocations: 132.8 kB / 332.7 MB, free: 2.773 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001111/0.1869, allocations: 168 kB / 332.9 MB, free: 2.609 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003017/0.1899, allocations: 1.567 MB / 334.5 MB, free: 1.039 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001604/0.1901, allocations: 247.1 kB / 334.7 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002016/0.1921, allocations: 0.7132 MB / 335.4 MB, free: 88 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002403/0.1923, allocations: 296 kB / 335.7 MB, free: 15.79 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.000765/0.1931, allocations: 0.5664 MB / 336.3 MB, free: 15.22 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002199/0.1933, allocations: 155.8 kB / 336.4 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002314/0.1936, allocations: 245.1 kB / 336.7 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/0.1936, allocations: 12 kB / 336.7 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.1936, allocations: 4 kB / 336.7 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.1936, allocations: 8.016 kB / 336.7 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002225/0.1958, allocations: 1.61 MB / 338.3 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.1958, allocations: 4 kB / 338.3 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001167/0.197, allocations: 410 kB / 338.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001895/0.1972, allocations: 206.2 kB / 338.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.1972, allocations: 4 kB / 338.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.811e-05/0.1972, allocations: 39.97 kB / 339 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.1973, allocations: 4 kB / 339 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1973, allocations: 0 / 339 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009779/0.1982, allocations: 1.401 MB / 340.4 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001303/0.1984, allocations: 27.98 kB / 340.4 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003545/0.1987, allocations: 23.98 kB / 340.4 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.734e-05/0.1988, allocations: 59.77 kB / 340.5 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.652e-05/0.1988, allocations: 24 kB / 340.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008661/0.1997, allocations: 0.8232 MB / 341.3 MB, free: 10.12 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1997, allocations: 0 / 341.3 MB, free: 10.12 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002351/0.202, allocations: 0.8378 MB / 342.2 MB, free: 9.281 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.0002664/0.2023, allocations: 152.1 kB / 342.3 MB, free: 9.125 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002045/0.2044, allocations: 1.987 MB / 344.3 MB, free: 7.164 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001379/0.2045, allocations: 92.16 kB / 344.4 MB, free: 7.059 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002283/0.2047, allocations: 231.4 kB / 344.6 MB, free: 6.828 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008477/0.2056, allocations: 389.3 kB / 345 MB, free: 6.453 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007098/0.2127, allocations: 5.19 MB / 350.2 MB, free: 1.188 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006878/0.2134, allocations: 0.8255 MB / 351 MB, free: 352 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001057/0.2144, allocations: 401.1 kB / 351.4 MB, free: 15.95 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004614/0.2149, allocations: 401.3 kB / 351.8 MB, free: 15.56 MB / 330.7 MB Notification: Performance of SimCode: time 1.383e-06/0.2149, allocations: 0 / 351.8 MB, free: 15.56 MB / 330.7 MB Notification: Performance of Templates: time 0.0288/0.2437, allocations: 17.89 MB / 369.7 MB, free: 13.85 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.3225081209093332]