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.001617/0.001617, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001719/0.001719, allocations: 168.8 kB / 23.95 MB, free: 4.172 MB / 14.72 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 1.464/1.464, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] 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.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.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.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.514e-05/2.673e-05, allocations: 10.95 kB / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008752/0.008779, allocations: 7.041 MB / 332.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005172/0.01395, allocations: 2.442 MB / 334.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009196/0.01487, allocations: 42.22 kB / 334.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003193/0.01806, allocations: 1.473 MB / 336.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00276/0.02082, allocations: 1.044 MB / 337.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008533/0.02168, allocations: 276.9 kB / 337.4 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003937/0.02561, allocations: 2.215 MB / 339.6 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001928/0.02754, allocations: 1.34 MB / 340.9 MB, free: 5.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001902/0.02944, allocations: 1.231 MB / 342.2 MB, free: 4.016 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001911/0.03135, allocations: 1.208 MB / 343.4 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003103/0.03167, allocations: 163.9 kB / 343.5 MB, free: 2.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001252/0.03292, allocations: 0.6084 MB / 344.2 MB, free: 2.031 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001146/0.03406, allocations: 1.223 MB / 345.4 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000915/0.03498, allocations: 0.7162 MB / 346.1 MB, free: 88 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004639/0.03962, allocations: 4.204 MB / 350.3 MB, free: 11.87 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.03962, allocations: 4 kB / 350.3 MB, free: 11.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.03962, allocations: 0 / 350.3 MB, free: 11.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.049e-05/0.03967, allocations: 0 / 350.3 MB, free: 11.86 MB / 318.1 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.004305/0.04398, allocations: 2.895 MB / 353.2 MB, free: 8.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.04401, allocations: 8.031 kB / 353.2 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00767/0.05168, allocations: 1.949 MB / 355.2 MB, free: 6.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002146/0.05383, allocations: 1.113 MB / 356.3 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.05396, allocations: 156 kB / 356.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003906/0.05435, allocations: 203.8 kB / 356.6 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01749/0.07184, allocations: 8.238 MB / 364.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.203e-05/0.07193, allocations: 43.67 kB / 364.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002809/0.07221, allocations: 107.9 kB / 365 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002794/0.07501, allocations: 1.558 MB / 366.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01694/0.09195, allocations: 6.773 MB / 373.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03342/0.1254, allocations: 27.55 MB / 400.9 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0209/0.1463, allocations: 4.476 MB / 405.4 MB, free: 3.148 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001415/0.1477, allocations: 0.8179 MB / 406.2 MB, free: 2.309 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00499/0.1527, allocations: 2.628 MB / 408.8 MB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.803e-05/0.1527, allocations: 50.83 kB / 408.9 MB, free: 15.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 3.597e-06/0.1527, allocations: 0 / 408.9 MB, free: 15.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04209/0.1948, allocations: 8.461 MB / 417.3 MB, free: 7.117 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/0.1949, allocations: 191.9 kB / 417.5 MB, free: 6.887 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004124/0.1991, allocations: 2.969 MB / 420.5 MB, free: 3.895 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001343/0.1992, allocations: 37.7 kB / 420.5 MB, free: 3.852 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001964/0.2012, allocations: 2.512 MB / 423 MB, free: 1.312 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005851/0.2017, allocations: 0.5119 MB / 423.5 MB, free: 0.7969 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001419/0.2032, allocations: 1.072 MB / 424.6 MB, free: 15.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.2033, allocations: 345.9 kB / 424.9 MB, free: 15.37 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002362/0.2057, allocations: 1.478 MB / 426.4 MB, free: 13.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005584/0.2113, allocations: 5.048 MB / 431.5 MB, free: 7.035 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008784/0.2201, allocations: 7.092 MB / 438.6 MB, free: 14.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.978e-05/0.2201, allocations: 36 kB / 438.6 MB, free: 14.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01025/0.2304, allocations: 6.171 MB / 444.8 MB, free: 7.953 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.436e-05/0.2305, allocations: 60 kB / 444.8 MB, free: 7.895 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001386/0.2306, allocations: 128.1 kB / 444.9 MB, free: 7.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001812/0.2308, allocations: 172 kB / 445.1 MB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005135/0.2359, allocations: 1.45 MB / 446.6 MB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002311/0.2362, allocations: 243 kB / 446.8 MB, free: 5.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003442/0.2396, allocations: 0.745 MB / 447.5 MB, free: 5.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000465/0.2401, allocations: 343.9 kB / 447.9 MB, free: 4.824 MB / 414.1 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.002285/0.2423, allocations: 1.579 MB / 449.5 MB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004182/0.2428, allocations: 238.4 kB / 449.7 MB, free: 3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005187/0.2433, allocations: 297 kB / 450 MB, free: 2.707 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.257e-05/0.2433, allocations: 12 kB / 450 MB, free: 2.695 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.2433, allocations: 4 kB / 450 MB, free: 2.691 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.2433, allocations: 3.984 kB / 450 MB, free: 2.688 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005028/0.2484, allocations: 2.491 MB / 452.5 MB, free: 156 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.2484, allocations: 4 kB / 452.5 MB, free: 152 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002439/0.2508, allocations: 407.4 kB / 452.9 MB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.837e-06/0.2508, allocations: 4 kB / 452.9 MB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.731e-05/0.2509, allocations: 31.98 kB / 452.9 MB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.526e-06/0.2509, allocations: 7.938 kB / 452.9 MB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.2509, allocations: 3.984 kB / 452.9 MB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003289/0.2542, allocations: 2.483 MB / 455.4 MB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003892/0.2546, allocations: 218.1 kB / 455.6 MB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/0.2548, allocations: 27.98 kB / 455.7 MB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008492/0.2557, allocations: 47.89 kB / 455.7 MB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.2558, allocations: 51.89 kB / 455.8 MB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.023e-05/0.2559, allocations: 28 kB / 455.8 MB, free: 12.83 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002372/0.2583, allocations: 1.642 MB / 457.4 MB, free: 11.18 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2583, allocations: 0 / 457.4 MB, free: 11.18 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003824/0.2621, allocations: 0.8496 MB / 458.3 MB, free: 10.33 MB / 430.1 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.0003908/0.2625, allocations: 159 kB / 458.4 MB, free: 10.16 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005588/0.2681, allocations: 3.231 MB / 461.7 MB, free: 6.965 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/0.2681, allocations: 4.188 kB / 461.7 MB, free: 6.961 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009174/0.269, allocations: 0.5632 MB / 462.2 MB, free: 6.398 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/0.2706, allocations: 232.5 kB / 462.5 MB, free: 6.176 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1622/0.4328, allocations: 6.538 MB / 469 MB, free: 124.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003293/0.4361, allocations: 1.824 MB / 470.8 MB, free: 124.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003606/0.4397, allocations: 1.601 MB / 472.4 MB, free: 124.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004608/0.4402, allocations: 171.2 kB / 472.6 MB, free: 124.5 MB / 430.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4402, allocations: 0 / 472.6 MB, free: 124.5 MB / 430.1 MB Notification: Performance of Templates: time 0.03421/0.4744, allocations: 15.12 MB / 487.7 MB, free: 119.6 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 5.840411838144064]