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.00103/0.00103, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001494/0.002524, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0008799/0.0008799, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001002/0.001882, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.8411/0.8411, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1654/1.007, allocations: 52.49 MB / 238.5 MB, free: 7.625 MB / 234.7 MB " [Timeout remaining time 179] 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.[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.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.[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.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 239.7 MB, free: 6.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.172e-05/2.327e-05, allocations: 6.344 kB / 239.7 MB, free: 6.352 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006616/0.006639, allocations: 7.662 MB / 247.4 MB, free: 14.66 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003841/0.01048, allocations: 2.563 MB / 250 MB, free: 12.11 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005845/0.01106, allocations: 43.81 kB / 250 MB, free: 12.07 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001465/0.01253, allocations: 1.458 MB / 251.5 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001393/0.01392, allocations: 1.069 MB / 252.5 MB, free: 9.547 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000436/0.01436, allocations: 275.8 kB / 252.8 MB, free: 9.277 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001896/0.01625, allocations: 2.218 MB / 255 MB, free: 7.055 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001303/0.01756, allocations: 1.357 MB / 256.4 MB, free: 5.668 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001076/0.01863, allocations: 1.297 MB / 257.7 MB, free: 4.367 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009729/0.01961, allocations: 1.149 MB / 258.8 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001638/0.01977, allocations: 160 kB / 259 MB, free: 3.059 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000757/0.02053, allocations: 0.6356 MB / 259.6 MB, free: 2.422 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008448/0.02137, allocations: 1.134 MB / 260.8 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000464/0.02184, allocations: 0.619 MB / 261.4 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001787/0.02362, allocations: 2.634 MB / 264 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.758e-06/0.02363, allocations: 0 / 264 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.02363, allocations: 0 / 264 MB, free: 14.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.764e-05/0.02367, allocations: 0 / 264 MB, free: 14.02 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.00276/0.02643, allocations: 3.373 MB / 267.4 MB, free: 10.6 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.026e-05/0.02646, allocations: 8.031 kB / 267.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002415/0.02888, allocations: 1.032 MB / 268.4 MB, free: 9.539 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008557/0.02973, allocations: 0.902 MB / 269.3 MB, free: 8.605 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.674e-05/0.0298, allocations: 148 kB / 269.5 MB, free: 8.461 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002191/0.03002, allocations: 211.8 kB / 269.7 MB, free: 8.254 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003801/0.03382, allocations: 3.858 MB / 273.5 MB, free: 3.781 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.312e-05/0.03387, allocations: 39.69 kB / 273.6 MB, free: 3.742 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001691/0.03404, allocations: 99.89 kB / 273.7 MB, free: 3.645 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001396/0.03544, allocations: 1.304 MB / 275 MB, free: 2.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003198/0.03863, allocations: 2.019 MB / 277 MB, free: 316 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0137/0.05233, allocations: 23.56 MB / 300.6 MB, free: 7.871 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003775/0.05611, allocations: 1.709 MB / 302.3 MB, free: 6.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000319/0.05643, allocations: 398 kB / 302.6 MB, free: 5.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002381/0.05881, allocations: 2.298 MB / 304.9 MB, free: 3.359 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.05884, allocations: 50.83 kB / 305 MB, free: 3.301 MB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 2.545e-06/0.05884, allocations: 0 / 305 MB, free: 3.301 MB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.007061/0.0659, allocations: 2.595 MB / 307.6 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.365e-05/0.06596, allocations: 191.9 kB / 307.8 MB, free: 484 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001338/0.0673, allocations: 2.199 MB / 310 MB, free: 14.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.849e-05/0.06735, allocations: 41.7 kB / 310 MB, free: 14.2 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001135/0.06849, allocations: 2.465 MB / 312.5 MB, free: 11.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002504/0.06874, allocations: 0.5079 MB / 313 MB, free: 11.2 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007136/0.06945, allocations: 1.017 MB / 314 MB, free: 10.17 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.286e-05/0.06953, allocations: 345.8 kB / 314.3 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005382/0.07007, allocations: 0.5492 MB / 314.9 MB, free: 9.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002151/0.07222, allocations: 3.974 MB / 318.9 MB, free: 3.496 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003689/0.07591, allocations: 5.612 MB / 324.5 MB, free: 12.09 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-05/0.07595, allocations: 36 kB / 324.5 MB, free: 12.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.003174/0.07913, allocations: 3.633 MB / 328.1 MB, free: 8.395 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000295/0.07942, allocations: 60 kB / 328.2 MB, free: 8.336 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.5e-05/0.07951, allocations: 132 kB / 328.3 MB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.88e-05/0.07959, allocations: 168.8 kB / 328.5 MB, free: 8.043 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002597/0.08219, allocations: 1.565 MB / 330.1 MB, free: 6.477 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000116/0.08231, allocations: 262.9 kB / 330.3 MB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/0.08389, allocations: 0.7096 MB / 331 MB, free: 5.504 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002276/0.08411, allocations: 300 kB / 331.3 MB, free: 5.211 MB / 330.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.000634/0.08475, allocations: 0.5665 MB / 331.9 MB, free: 4.629 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001865/0.08493, allocations: 147.8 kB / 332 MB, free: 4.484 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004153/0.08535, allocations: 418.6 kB / 332.4 MB, free: 4.066 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.08536, allocations: 12 kB / 332.5 MB, free: 4.055 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.08537, allocations: 0 / 332.5 MB, free: 4.055 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.08538, allocations: 11.92 kB / 332.5 MB, free: 4.043 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001909/0.08729, allocations: 1.615 MB / 334.1 MB, free: 2.398 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.0873, allocations: 8 kB / 334.1 MB, free: 2.391 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.08847, allocations: 406.2 kB / 334.5 MB, free: 1.996 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.08862, allocations: 210.1 kB / 334.7 MB, free: 1.789 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.08862, allocations: 4 kB / 334.7 MB, free: 1.785 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-05/0.08867, allocations: 35.97 kB / 334.7 MB, free: 1.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.08868, allocations: 8 kB / 334.7 MB, free: 1.742 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.08868, allocations: 7.938 kB / 334.7 MB, free: 1.734 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.08982, allocations: 1.401 MB / 336.1 MB, free: 308 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001245/0.08994, allocations: 27.98 kB / 336.2 MB, free: 280 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000375/0.09032, allocations: 20 kB / 336.2 MB, free: 260 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.451e-05/0.09039, allocations: 51.83 kB / 336.2 MB, free: 208 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.662e-05/0.09043, allocations: 28 kB / 336.3 MB, free: 180 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.09925/0.1897, allocations: 0.8148 MB / 337.1 MB, free: 79.8 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1897, allocations: 3.5 kB / 337.1 MB, free: 79.8 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002667/0.1923, allocations: 0.8574 MB / 337.9 MB, free: 79.8 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.00026/0.1926, allocations: 149.6 kB / 338.1 MB, free: 79.73 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002015/0.1946, allocations: 2.077 MB / 340.2 MB, free: 79.57 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001416/0.1948, allocations: 94.84 kB / 340.3 MB, free: 79.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002903/0.1951, allocations: 287.3 kB / 340.5 MB, free: 79.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.1963, allocations: 1.601 MB / 342.1 MB, free: 78.53 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00538/0.2017, allocations: 5.202 MB / 347.3 MB, free: 76.42 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005852/0.2022, allocations: 0.8337 MB / 348.2 MB, free: 76.3 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007442/0.203, allocations: 397 kB / 348.6 MB, free: 76.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003756/0.2034, allocations: 396 kB / 349 MB, free: 76.13 MB / 330.7 MB Notification: Performance of SimCode: time 6.71e-07/0.2034, allocations: 0 / 349 MB, free: 76.13 MB / 330.7 MB Notification: Performance of Templates: time 0.02228/0.2256, allocations: 15.18 MB / 364.1 MB, free: 65.17 MB / 330.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.830742558464408]