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.0009078/0.0009078, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001083/0.001083, allocations: 172.2 kB / 24.92 MB, free: 9.113 MB / 18.57 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.9288/0.9288, allocations: 177.1 MB / 205.3 MB, free: 5.504 MB / 186.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.383e-06/1.383e-06, allocations: 0 / 273.5 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.305e-05/1.444e-05, allocations: 2.312 kB / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006158/0.006172, allocations: 7.572 MB / 281.1 MB, free: 9.652 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00405/0.01022, allocations: 2.589 MB / 283.7 MB, free: 7.055 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005761/0.0108, allocations: 43.81 kB / 283.7 MB, free: 7.012 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001692/0.01249, allocations: 1.51 MB / 285.2 MB, free: 5.496 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001316/0.01381, allocations: 1.049 MB / 286.3 MB, free: 4.441 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004277/0.01423, allocations: 295.1 kB / 286.5 MB, free: 4.152 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001594/0.01583, allocations: 2.219 MB / 288.8 MB, free: 1.926 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.0171, allocations: 1.438 MB / 290.2 MB, free: 464 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1217/0.1388, allocations: 1.234 MB / 291.4 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001794/0.1406, allocations: 1.165 MB / 292.6 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003722/0.141, allocations: 159.8 kB / 292.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.142, allocations: 0.6284 MB / 293.4 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008597/0.1429, allocations: 1.223 MB / 294.6 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000709/0.1436, allocations: 0.7254 MB / 295.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002554/0.1462, allocations: 2.757 MB / 298.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1462, allocations: 0 / 298.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.1462, allocations: 1.406 kB / 298.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.217e-05/0.1462, allocations: 0 / 298.1 MB, free: 15.04 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.002566/0.1488, allocations: 2.786 MB / 300.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.1488, allocations: 10.31 kB / 300.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002588/0.1514, allocations: 0.9559 MB / 301.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009058/0.1523, allocations: 0.8828 MB / 302.7 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.861e-05/0.1524, allocations: 152.1 kB / 302.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000247/0.1526, allocations: 207.8 kB / 303.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003774/0.1564, allocations: 3.901 MB / 307 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.422e-05/0.1565, allocations: 36.81 kB / 307 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001754/0.1566, allocations: 100.8 kB / 307.1 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001098/0.1577, allocations: 1.392 MB / 308.5 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003004/0.1607, allocations: 2.013 MB / 310.5 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01226/0.173, allocations: 23.58 MB / 334.1 MB, free: 3.52 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003945/0.1769, allocations: 1.734 MB / 335.8 MB, free: 1.77 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005021/0.1774, allocations: 409.5 kB / 336.2 MB, free: 1.355 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002268/0.1797, allocations: 2.305 MB / 338.5 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.1797, allocations: 50.17 kB / 338.6 MB, free: 15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 2.876e-06/0.1798, allocations: 4 kB / 338.6 MB, free: 15 MB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.007212/0.187, allocations: 2.639 MB / 341.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/0.187, allocations: 191.1 kB / 341.4 MB, free: 12.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001383/0.1884, allocations: 2.201 MB / 343.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.772e-05/0.1885, allocations: 41.7 kB / 343.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009904/0.1894, allocations: 2.457 MB / 346.1 MB, free: 8.004 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002423/0.1897, allocations: 0.5074 MB / 346.6 MB, free: 7.523 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007435/0.1904, allocations: 1.021 MB / 347.6 MB, free: 6.609 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.024e-05/0.1905, allocations: 347.2 kB / 348 MB, free: 6.281 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005737/0.1911, allocations: 0.5414 MB / 348.5 MB, free: 5.734 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002026/0.1931, allocations: 3.984 MB / 352.5 MB, free: 68 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003129/0.1962, allocations: 5.211 MB / 357.7 MB, free: 9.074 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.283e-05/0.1963, allocations: 36 kB / 357.8 MB, free: 9.039 MB / 314.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.003233/0.1995, allocations: 3.648 MB / 361.4 MB, free: 5.371 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.304e-05/0.1996, allocations: 56 kB / 361.5 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.257e-05/0.1996, allocations: 128 kB / 361.6 MB, free: 5.191 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.551e-05/0.1997, allocations: 168 kB / 361.7 MB, free: 5.027 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002704/0.2024, allocations: 1.473 MB / 363.2 MB, free: 3.555 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001113/0.2025, allocations: 251.6 kB / 363.5 MB, free: 3.309 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.2041, allocations: 0.7251 MB / 364.2 MB, free: 2.578 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002425/0.2044, allocations: 296 kB / 364.5 MB, free: 2.289 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.0009242/0.2053, allocations: 0.5704 MB / 365.1 MB, free: 1.703 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/0.2055, allocations: 147.8 kB / 365.2 MB, free: 1.559 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002355/0.2057, allocations: 241.1 kB / 365.4 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.2058, allocations: 12 kB / 365.4 MB, free: 1.305 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.2058, allocations: 11.61 kB / 365.5 MB, free: 1.297 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.2058, allocations: 3.984 kB / 365.5 MB, free: 1.293 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002077/0.2079, allocations: 1.626 MB / 367.1 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.2079, allocations: 0 / 367.1 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/0.209, allocations: 394.4 kB / 367.5 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.351e-06/0.209, allocations: 8.031 kB / 367.5 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.634e-05/0.2091, allocations: 39.91 kB / 367.5 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.2091, allocations: 4 kB / 367.5 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2091, allocations: 0 / 367.5 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009561/0.2101, allocations: 1.401 MB / 368.9 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.2102, allocations: 206.2 kB / 369.1 MB, free: 13.58 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.2104, allocations: 39.86 kB / 369.2 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003743/0.2107, allocations: 20 kB / 369.2 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.008e-05/0.2108, allocations: 51.89 kB / 369.2 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.254e-05/0.2109, allocations: 31.97 kB / 369.3 MB, free: 13.44 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008038/0.2117, allocations: 0.8115 MB / 370.1 MB, free: 12.62 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2117, allocations: 0 / 370.1 MB, free: 12.62 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002412/0.2141, allocations: 0.8457 MB / 370.9 MB, free: 11.77 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.0002307/0.2143, allocations: 144.2 kB / 371.1 MB, free: 11.62 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001719/0.216, allocations: 1.978 MB / 373 MB, free: 9.652 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001403/0.2162, allocations: 86.53 kB / 373.1 MB, free: 9.555 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002269/0.2164, allocations: 237.7 kB / 373.4 MB, free: 9.324 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007967/0.2172, allocations: 237.9 kB / 373.6 MB, free: 9.102 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005026/0.2222, allocations: 5.161 MB / 378.7 MB, free: 3.859 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006472/0.2229, allocations: 0.8157 MB / 379.6 MB, free: 3.027 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008188/0.2237, allocations: 397 kB / 380 MB, free: 2.637 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004647/0.2241, allocations: 401.3 kB / 380.3 MB, free: 2.246 MB / 330.7 MB Notification: Performance of SimCode: time 9.62e-07/0.2241, allocations: 0 / 380.3 MB, free: 2.246 MB / 330.7 MB Notification: Performance of Templates: time 0.02708/0.2512, allocations: 17.56 MB / 397.9 MB, free: 0.8789 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 -s gbode -gbm=radauIIA3 -emit_protected -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.2175484192557633]