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.001584/0.001584, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001449/0.001449, allocations: 184.9 kB / 24.45 MB, free: 3.961 MB / 14.72 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 1.452/1.452, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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.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.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.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.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 43.92 kB / 371.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2903, allocations: 52.17 MB / 423.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01005/0.3003, allocations: 7.051 MB / 430.9 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006005/0.3063, allocations: 2.4 MB / 433.3 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001399/0.3077, allocations: 39.88 kB / 433.3 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003209/0.3109, allocations: 1.401 MB / 434.7 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003152/0.3141, allocations: 1.033 MB / 435.8 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008634/0.3149, allocations: 271.4 kB / 436 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003384/0.3183, allocations: 2.18 MB / 438.2 MB, free: 24 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001938/0.3203, allocations: 1.344 MB / 439.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001357/0.3216, allocations: 0.8639 MB / 440.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001776/0.3234, allocations: 1.245 MB / 441.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003593/0.3238, allocations: 164 kB / 441.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00129/0.325, allocations: 0.5656 MB / 442.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00136/0.3264, allocations: 1.196 MB / 443.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001246/0.3276, allocations: 0.9896 MB / 444.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005312/0.333, allocations: 4.336 MB / 448.9 MB, free: 5.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.969e-06/0.333, allocations: 0 / 448.9 MB, free: 5.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.333, allocations: 0 / 448.9 MB, free: 5.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000103/0.3331, allocations: 0 / 448.9 MB, free: 5.262 MB / 350.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.005396/0.3385, allocations: 2.962 MB / 451.9 MB, free: 2.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.3385, allocations: 8.031 kB / 451.9 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006835/0.3454, allocations: 1.797 MB / 453.7 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003026/0.3484, allocations: 1.125 MB / 454.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001454/0.3485, allocations: 155.8 kB / 454.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004848/0.349, allocations: 203.8 kB / 455.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01955/0.3686, allocations: 8.617 MB / 463.8 MB, free: 5.711 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001094/0.3687, allocations: 39.7 kB / 463.8 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003168/0.369, allocations: 103.9 kB / 463.9 MB, free: 5.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003097/0.3721, allocations: 1.663 MB / 465.6 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02031/0.3924, allocations: 7.163 MB / 472.7 MB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04027/0.4327, allocations: 28.54 MB / 0.4895 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02315/0.4558, allocations: 4.507 MB / 0.4939 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001961/0.4578, allocations: 1.192 MB / 0.4951 GB, free: 9.539 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006218/0.464, allocations: 3.068 MB / 0.4981 GB, free: 6.438 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.314e-05/0.464, allocations: 54.83 kB / 0.4981 GB, free: 6.375 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 4.047e-06/0.464, allocations: 0 / 0.4981 GB, free: 6.375 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04657/0.5106, allocations: 8.94 MB / 0.5069 GB, free: 13.42 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.5108, allocations: 195.9 kB / 0.507 GB, free: 13.19 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004537/0.5153, allocations: 2.977 MB / 0.51 GB, free: 10.19 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001838/0.5155, allocations: 37.7 kB / 0.51 GB, free: 10.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002202/0.5177, allocations: 2.558 MB / 0.5125 GB, free: 7.559 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007353/0.5184, allocations: 0.508 MB / 0.513 GB, free: 7.047 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001563/0.52, allocations: 1.096 MB / 0.5141 GB, free: 5.941 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002221/0.5202, allocations: 337.9 kB / 0.5144 GB, free: 5.605 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002536/0.5227, allocations: 1.599 MB / 0.5159 GB, free: 4 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006256/0.529, allocations: 5.17 MB / 0.521 GB, free: 13.03 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009857/0.5389, allocations: 7.328 MB / 0.5281 GB, free: 3.918 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001336/0.539, allocations: 40 kB / 0.5282 GB, free: 3.879 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01263/0.5516, allocations: 6.423 MB / 0.5345 GB, free: 13.45 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.931e-05/0.5517, allocations: 64.03 kB / 0.5345 GB, free: 13.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001663/0.5519, allocations: 128 kB / 0.5346 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001737/0.5521, allocations: 168 kB / 0.5348 GB, free: 13.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005043/0.5571, allocations: 1.45 MB / 0.5362 GB, free: 11.65 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002587/0.5574, allocations: 255 kB / 0.5365 GB, free: 11.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003707/0.5611, allocations: 0.7407 MB / 0.5372 GB, free: 10.65 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006415/0.5617, allocations: 344 kB / 0.5375 GB, free: 10.32 MB / 462.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.002694/0.5644, allocations: 1.571 MB / 0.539 GB, free: 8.734 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005102/0.5649, allocations: 238.4 kB / 0.5393 GB, free: 8.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001369/0.5663, allocations: 0.8074 MB / 0.5401 GB, free: 7.68 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.762e-05/0.5663, allocations: 12 kB / 0.5401 GB, free: 7.668 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.5663, allocations: 7.938 kB / 0.5401 GB, free: 7.66 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.5663, allocations: 7.984 kB / 0.5401 GB, free: 7.652 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005743/0.5721, allocations: 2.733 MB / 0.5428 GB, free: 4.875 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.5721, allocations: 4 kB / 0.5428 GB, free: 4.871 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002322/0.5744, allocations: 411.9 kB / 0.5431 GB, free: 4.469 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.298e-05/0.5744, allocations: 7.938 kB / 0.5432 GB, free: 4.461 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.857e-05/0.5745, allocations: 35.97 kB / 0.5432 GB, free: 4.426 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.144e-05/0.5745, allocations: 7.984 kB / 0.5432 GB, free: 4.418 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.5745, allocations: 7.875 kB / 0.5432 GB, free: 4.41 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003698/0.5782, allocations: 2.762 MB / 0.5459 GB, free: 1.629 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005966/0.5788, allocations: 214.2 kB / 0.5461 GB, free: 1.418 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002449/0.5791, allocations: 31.92 kB / 0.5461 GB, free: 1.387 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008753/0.5799, allocations: 39.95 kB / 0.5462 GB, free: 1.348 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.5801, allocations: 63.81 kB / 0.5462 GB, free: 1.285 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.391e-05/0.5802, allocations: 44.02 kB / 0.5463 GB, free: 1.242 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.2421/0.8223, allocations: 1.633 MB / 0.5479 GB, free: 120.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.8223, allocations: 0 / 0.5479 GB, free: 120.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005719/0.828, allocations: 0.8644 MB / 0.5487 GB, free: 120.8 MB / 462.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.0004203/0.8284, allocations: 160.4 kB / 0.5489 GB, free: 120.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00547/0.8339, allocations: 3.485 MB / 0.5523 GB, free: 119.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/0.8339, allocations: 3.906 kB / 0.5523 GB, free: 119.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009198/0.8348, allocations: 0.6815 MB / 0.5529 GB, free: 119.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001581/0.8364, allocations: 218.1 kB / 0.5532 GB, free: 119.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00985/0.8463, allocations: 7.459 MB / 0.5604 GB, free: 115.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001795/0.8481, allocations: 1.824 MB / 0.5622 GB, free: 115.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005926/0.8487, allocations: 226.5 kB / 0.5624 GB, free: 115.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.8487, allocations: 0 / 0.5624 GB, free: 115.2 MB / 462.1 MB Notification: Performance of Templates: time 0.05048/0.8991, allocations: 41.19 MB / 0.6027 GB, free: 75.97 MB / 462.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 11.00816312013194]