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.00158/0.00158, allocations: 114.7 kB / 18.46 MB, free: 4.543 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.001984/0.001984, allocations: 196.2 kB / 21.4 MB, free: 1.605 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.521/1.521, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.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.001757/0.001757, allocations: 47.92 kB / 366.8 MB, free: 340 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1098, allocations: 52.14 MB / 419 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01044/0.1202, allocations: 7.998 MB / 427 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005745/0.126, allocations: 2.532 MB / 429.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.1271, allocations: 35.94 kB / 429.5 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003194/0.1303, allocations: 1.46 MB / 431 MB, free: 20 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002917/0.1332, allocations: 1.015 MB / 432 MB, free: 15 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008943/0.1341, allocations: 263.5 kB / 432.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003499/0.1376, allocations: 2.185 MB / 434.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0024/0.14, allocations: 1.345 MB / 435.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001799/0.1418, allocations: 0.8406 MB / 436.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002349/0.1441, allocations: 1.308 MB / 437.9 MB, free: 9.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000634/0.1448, allocations: 160 kB / 438.1 MB, free: 8.863 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001812/0.1466, allocations: 0.6826 MB / 438.8 MB, free: 8.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001636/0.1482, allocations: 1.199 MB / 440 MB, free: 6.977 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002596/0.1508, allocations: 1.366 MB / 441.3 MB, free: 5.602 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006704/0.1575, allocations: 4.337 MB / 445.7 MB, free: 1.246 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.1575, allocations: 0 / 445.7 MB, free: 1.246 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1575, allocations: 0 / 445.7 MB, free: 1.246 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000174/0.1577, allocations: 4 kB / 445.7 MB, free: 1.242 MB / 366.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.2221/0.3798, allocations: 3.021 MB / 448.7 MB, free: 29.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.3798, allocations: 12.31 kB / 448.7 MB, free: 29.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006344/0.3861, allocations: 1.795 MB / 450.5 MB, free: 28.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002676/0.3888, allocations: 1.167 MB / 451.7 MB, free: 28.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001291/0.389, allocations: 149.5 kB / 451.8 MB, free: 28.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004173/0.3894, allocations: 211.1 kB / 452 MB, free: 28.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01993/0.4093, allocations: 8.601 MB / 460.6 MB, free: 25.53 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001185/0.4094, allocations: 41.92 kB / 460.7 MB, free: 25.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003248/0.4097, allocations: 108.6 kB / 460.8 MB, free: 25.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003059/0.4128, allocations: 1.667 MB / 462.5 MB, free: 25.17 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01822/0.431, allocations: 7.162 MB / 469.6 MB, free: 22.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03222/0.4632, allocations: 30.16 MB / 499.8 MB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02263/0.4859, allocations: 4.974 MB / 0.4929 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002015/0.4879, allocations: 1.196 MB / 0.4941 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007302/0.4952, allocations: 3.753 MB / 0.4977 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.743e-05/0.4952, allocations: 50.08 kB / 0.4978 GB, free: 15.4 MB / 398.1 MB Notification: Performance of pre-optimization done (n=111): time 3.627e-06/0.4952, allocations: 0 / 0.4978 GB, free: 15.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=111): time 0.04479/0.54, allocations: 9.279 MB / 0.5069 GB, free: 6.039 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/0.5402, allocations: 191.9 kB / 0.507 GB, free: 5.809 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006057/0.5462, allocations: 3.048 MB / 0.51 GB, free: 2.742 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002438/0.5465, allocations: 37.7 kB / 0.51 GB, free: 2.699 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002428/0.5489, allocations: 2.531 MB / 0.5125 GB, free: 144 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009292/0.5498, allocations: 0.516 MB / 0.513 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002784/0.5526, allocations: 1.088 MB / 0.5141 GB, free: 14.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.5528, allocations: 305.1 kB / 0.5144 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003158/0.5559, allocations: 1.611 MB / 0.516 GB, free: 12.6 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005991/0.5619, allocations: 5.165 MB / 0.521 GB, free: 5.633 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009077/0.571, allocations: 7.329 MB / 0.5282 GB, free: 12.52 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000129/0.5711, allocations: 36 kB / 0.5282 GB, free: 12.49 MB / 430.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01163/0.5828, allocations: 6.456 MB / 0.5345 GB, free: 6.035 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.5829, allocations: 66.75 kB / 0.5346 GB, free: 5.973 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002199/0.5831, allocations: 128 kB / 0.5347 GB, free: 5.848 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001953/0.5833, allocations: 164 kB / 0.5348 GB, free: 5.688 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004921/0.5882, allocations: 1.454 MB / 0.5363 GB, free: 4.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002721/0.5885, allocations: 245.7 kB / 0.5365 GB, free: 3.992 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00427/0.5928, allocations: 0.7755 MB / 0.5372 GB, free: 3.211 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008447/0.5936, allocations: 340.5 kB / 0.5376 GB, free: 2.879 MB / 430.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.003093/0.5967, allocations: 1.581 MB / 0.5391 GB, free: 1.289 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006482/0.5973, allocations: 262.3 kB / 0.5394 GB, free: 1.031 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001621/0.599, allocations: 0.8252 MB / 0.5402 GB, free: 200 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.548e-05/0.599, allocations: 16 kB / 0.5402 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.599, allocations: 0 / 0.5402 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-05/0.599, allocations: 14.59 kB / 0.5402 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007708/0.6067, allocations: 3.393 MB / 0.5435 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/0.6067, allocations: 0 / 0.5435 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002347/0.6091, allocations: 407.5 kB / 0.5439 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.256e-05/0.6091, allocations: 11.88 kB / 0.5439 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001409/0.6093, allocations: 39.97 kB / 0.544 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.013e-05/0.6093, allocations: 4 kB / 0.544 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.6093, allocations: 0 / 0.544 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003728/0.613, allocations: 2.798 MB / 0.5467 GB, free: 9.449 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008262/0.6138, allocations: 311.1 kB / 0.547 GB, free: 9.125 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005633/0.6144, allocations: 31.92 kB / 0.547 GB, free: 9.094 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.6156, allocations: 46.52 kB / 0.5471 GB, free: 9.051 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.6158, allocations: 55.86 kB / 0.5471 GB, free: 8.996 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.199e-05/0.6159, allocations: 39.97 kB / 0.5472 GB, free: 8.957 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003694/0.6196, allocations: 1.845 MB / 0.549 GB, free: 7.109 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6196, allocations: 0 / 0.549 GB, free: 7.109 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005008/0.6246, allocations: 0.8344 MB / 0.5498 GB, free: 6.273 MB / 446.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.000577/0.6251, allocations: 171.5 kB / 0.5499 GB, free: 6.094 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006355/0.6315, allocations: 3.469 MB / 0.5533 GB, free: 2.652 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.6315, allocations: 0 / 0.5533 GB, free: 2.652 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.6326, allocations: 0.6829 MB / 0.554 GB, free: 1.969 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002448/0.635, allocations: 264.7 kB / 0.5542 GB, free: 1.723 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01555/0.6506, allocations: 7.494 MB / 0.5616 GB, free: 10.19 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003883/0.6544, allocations: 2.391 MB / 0.5639 GB, free: 7.773 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008552/0.6553, allocations: 231.4 kB / 0.5641 GB, free: 7.547 MB / 462.1 MB Notification: Performance of SimCode: time 1.673e-06/0.6553, allocations: 0 / 0.5641 GB, free: 7.547 MB / 462.1 MB Notification: Performance of Templates: time 0.07258/0.7279, allocations: 41.33 MB / 0.6045 GB, free: 14.29 MB / 0.4981 GB " [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.220772710978054]