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.001093/0.001093, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001103/0.001103, allocations: 165.8 kB / 24.82 MB, free: 9.266 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.9544/0.9544, allocations: 177.1 MB / 205.3 MB, free: 5.465 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 2.104e-06/2.104e-06, allocations: 0 / 273.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.737e-05/2.948e-05, allocations: 2.312 kB / 273.4 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008737/0.008766, allocations: 7.513 MB / 280.9 MB, free: 9.699 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005115/0.01388, allocations: 2.493 MB / 283.4 MB, free: 7.199 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006847/0.01457, allocations: 43.81 kB / 283.5 MB, free: 7.156 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001771/0.01634, allocations: 1.518 MB / 285 MB, free: 5.633 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001595/0.01793, allocations: 1.049 MB / 286 MB, free: 4.578 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004507/0.01838, allocations: 279.2 kB / 286.3 MB, free: 4.305 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001956/0.02034, allocations: 2.211 MB / 288.5 MB, free: 2.086 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001373/0.02171, allocations: 1.407 MB / 289.9 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1637/0.1854, allocations: 1.23 MB / 291.1 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001909/0.1873, allocations: 1.222 MB / 292.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005633/0.1878, allocations: 162.3 kB / 292.5 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001208/0.1891, allocations: 0.6144 MB / 293.1 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001094/0.1901, allocations: 1.224 MB / 294.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001283/0.1914, allocations: 0.7251 MB / 295.1 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003297/0.1947, allocations: 2.761 MB / 297.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1947, allocations: 0.625 kB / 297.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1947, allocations: 0 / 297.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001527/0.1949, allocations: 0.6875 kB / 297.9 MB, free: 15.5 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.004773/0.1997, allocations: 3.228 MB / 301.1 MB, free: 14.06 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.1997, allocations: 10.12 kB / 301.1 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002891/0.2026, allocations: 1.206 MB / 302.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.2039, allocations: 0.9945 MB / 303.3 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.504e-05/0.2039, allocations: 155.5 kB / 303.4 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002563/0.2042, allocations: 204.4 kB / 303.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006011/0.2102, allocations: 4.653 MB / 308.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.731e-05/0.2103, allocations: 40.58 kB / 308.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001787/0.2104, allocations: 106.8 kB / 308.4 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001135/0.2116, allocations: 1.38 MB / 309.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005189/0.2168, allocations: 2.281 MB / 312.1 MB, free: 9.359 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02144/0.2382, allocations: 33.62 MB / 345.7 MB, free: 7.566 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007115/0.2453, allocations: 2.656 MB / 348.4 MB, free: 4.871 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005058/0.2458, allocations: 333.1 kB / 348.7 MB, free: 4.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003013/0.2488, allocations: 2.584 MB / 351.3 MB, free: 1.938 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.2489, allocations: 53.19 kB / 351.3 MB, free: 1.879 MB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 2.926e-06/0.2489, allocations: 0 / 351.3 MB, free: 1.879 MB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.01325/0.2621, allocations: 4.646 MB / 356 MB, free: 13.24 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.841e-05/0.2622, allocations: 194.7 kB / 356.2 MB, free: 13.01 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002706/0.2649, allocations: 2.788 MB / 359 MB, free: 10.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.795e-05/0.265, allocations: 41.7 kB / 359 MB, free: 10.6 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001316/0.2663, allocations: 2.681 MB / 361.7 MB, free: 8.035 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004197/0.2667, allocations: 0.5391 MB / 362.2 MB, free: 7.523 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00102/0.2677, allocations: 1.191 MB / 363.4 MB, free: 6.438 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.2678, allocations: 0.5085 MB / 363.9 MB, free: 5.938 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005317/0.2684, allocations: 410.5 kB / 364.3 MB, free: 5.531 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002694/0.2711, allocations: 5.722 MB / 370 MB, free: 13.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004599/0.2757, allocations: 6.837 MB / 376.9 MB, free: 4.125 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.485e-05/0.2758, allocations: 40 kB / 376.9 MB, free: 4.086 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.005779/0.2815, allocations: 4.244 MB / 381.2 MB, free: 15.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.112e-05/0.2816, allocations: 60 kB / 381.2 MB, free: 15.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001022/0.2817, allocations: 124 kB / 381.3 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001113/0.2818, allocations: 168.7 kB / 381.5 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0026/0.2844, allocations: 1.353 MB / 382.9 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001635/0.2846, allocations: 247 kB / 383.1 MB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002226/0.2868, allocations: 0.7243 MB / 383.8 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003035/0.2871, allocations: 300.9 kB / 384.1 MB, free: 12.88 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.001041/0.2882, allocations: 0.6094 MB / 384.7 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002605/0.2884, allocations: 266.4 kB / 385 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002502/0.2887, allocations: 245.1 kB / 385.2 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.827e-05/0.2887, allocations: 16.03 kB / 385.2 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.2887, allocations: 4 kB / 385.3 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.2887, allocations: 3.984 kB / 385.3 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002671/0.2914, allocations: 1.83 MB / 387.1 MB, free: 9.859 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.2914, allocations: 0 / 387.1 MB, free: 9.859 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009291/0.2923, allocations: 307.7 kB / 387.4 MB, free: 9.559 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.2923, allocations: 4 kB / 387.4 MB, free: 9.555 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.717e-05/0.2924, allocations: 31.97 kB / 387.4 MB, free: 9.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.2924, allocations: 4 kB / 387.4 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.2924, allocations: 4 kB / 387.4 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001212/0.2936, allocations: 1.669 MB / 389.1 MB, free: 7.824 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002979/0.2939, allocations: 218.1 kB / 389.3 MB, free: 7.609 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.294, allocations: 27.97 kB / 389.3 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003764/0.2944, allocations: 24 kB / 389.4 MB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.148e-05/0.2945, allocations: 63.77 kB / 389.4 MB, free: 7.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.986e-05/0.2945, allocations: 24 kB / 389.4 MB, free: 7.473 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009107/0.2954, allocations: 1.048 MB / 390.5 MB, free: 6.414 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2954, allocations: 0 / 390.5 MB, free: 6.414 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00261/0.298, allocations: 0.8419 MB / 391.3 MB, free: 5.57 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.0002741/0.2983, allocations: 163 kB / 391.5 MB, free: 5.398 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002376/0.3007, allocations: 2.124 MB / 393.6 MB, free: 3.289 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3007, allocations: 5.875 kB / 393.6 MB, free: 3.285 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002756/0.301, allocations: 282.2 kB / 393.9 MB, free: 3.008 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009093/0.3019, allocations: 233.1 kB / 394.1 MB, free: 2.785 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007147/0.309, allocations: 5.531 MB / 399.7 MB, free: 13.17 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008/0.3098, allocations: 0.8266 MB / 400.5 MB, free: 12.33 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001109/0.3109, allocations: 400.9 kB / 400.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004939/0.3114, allocations: 430.1 kB / 401.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of SimCode: time 1.533e-06/0.3114, allocations: 0 / 401.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of Templates: time 0.03067/0.3421, allocations: 17.43 MB / 418.7 MB, free: 10.27 MB / 378.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 -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.5560978851281106]