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.001648/0.001648, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001738/0.001738, allocations: 186 kB / 23.7 MB, free: 4.191 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.581/1.581, allocations: 225.7 MB / 252.5 MB, free: 12.83 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.001624/0.001624, allocations: 47.94 kB / 370.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.263, allocations: 52.18 MB / 423.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009998/0.273, allocations: 7.055 MB / 430.1 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00581/0.2788, allocations: 2.399 MB / 432.5 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009669/0.2798, allocations: 35.88 kB / 432.6 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002966/0.2828, allocations: 1.409 MB / 434 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002546/0.2853, allocations: 1.027 MB / 435 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007256/0.286, allocations: 271.4 kB / 435.3 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002943/0.289, allocations: 2.18 MB / 437.4 MB, free: 80 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001757/0.2907, allocations: 1.339 MB / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001218/0.292, allocations: 0.8601 MB / 439.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001849/0.2938, allocations: 1.249 MB / 440.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003828/0.2942, allocations: 156 kB / 441 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001242/0.2954, allocations: 0.5733 MB / 441.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001211/0.2967, allocations: 1.192 MB / 442.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001175/0.2978, allocations: 0.9934 MB / 443.8 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005051/0.3029, allocations: 4.333 MB / 448.1 MB, free: 5.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.3029, allocations: 4 kB / 448.1 MB, free: 5.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3029, allocations: 0 / 448.1 MB, free: 5.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.462e-05/0.303, allocations: 8 kB / 448.1 MB, free: 5.312 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.004773/0.3077, allocations: 2.954 MB / 451.1 MB, free: 2.309 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.3078, allocations: 12.03 kB / 451.1 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006872/0.3147, allocations: 1.797 MB / 452.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002964/0.3176, allocations: 1.113 MB / 454 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/0.3178, allocations: 151.8 kB / 454.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004474/0.3182, allocations: 211.8 kB / 454.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02002/0.3382, allocations: 8.617 MB / 463 MB, free: 5.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001106/0.3383, allocations: 43.7 kB / 463 MB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003079/0.3387, allocations: 99.88 kB / 463.1 MB, free: 5.629 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003038/0.3417, allocations: 1.671 MB / 464.8 MB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0191/0.3608, allocations: 7.163 MB / 472 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03768/0.3985, allocations: 28.53 MB / 0.4888 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02289/0.4214, allocations: 4.515 MB / 0.4932 GB, free: 10.8 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001882/0.4232, allocations: 1.193 MB / 0.4943 GB, free: 9.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005978/0.4292, allocations: 3.065 MB / 0.4973 GB, free: 6.492 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.999e-05/0.4293, allocations: 50.83 kB / 0.4974 GB, free: 6.434 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.707e-06/0.4293, allocations: 0 / 0.4974 GB, free: 6.434 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04704/0.4763, allocations: 8.948 MB / 0.5061 GB, free: 13.47 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.4765, allocations: 195.9 kB / 0.5063 GB, free: 13.24 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005721/0.4822, allocations: 2.981 MB / 0.5092 GB, free: 10.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002293/0.4824, allocations: 37.7 kB / 0.5093 GB, free: 10.19 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002405/0.4848, allocations: 2.552 MB / 0.5117 GB, free: 7.613 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008358/0.4857, allocations: 0.508 MB / 0.5122 GB, free: 7.102 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002183/0.4878, allocations: 1.1 MB / 0.5133 GB, free: 5.992 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.488, allocations: 334 kB / 0.5136 GB, free: 5.66 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002776/0.4908, allocations: 1.607 MB / 0.5152 GB, free: 4.047 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006274/0.4971, allocations: 5.169 MB / 0.5203 GB, free: 13.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009574/0.5067, allocations: 7.321 MB / 0.5274 GB, free: 3.973 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001137/0.5068, allocations: 40 kB / 0.5274 GB, free: 3.934 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01077/0.5176, allocations: 6.43 MB / 0.5337 GB, free: 13.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.337e-05/0.5176, allocations: 56 kB / 0.5338 GB, free: 13.44 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001367/0.5178, allocations: 128 kB / 0.5339 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001686/0.5179, allocations: 168 kB / 0.5341 GB, free: 13.15 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004909/0.5229, allocations: 1.447 MB / 0.5355 GB, free: 11.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002151/0.5231, allocations: 255 kB / 0.5357 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003523/0.5266, allocations: 0.7485 MB / 0.5364 GB, free: 10.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004651/0.5271, allocations: 340 kB / 0.5368 GB, free: 10.37 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.002441/0.5295, allocations: 1.567 MB / 0.5383 GB, free: 8.789 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004612/0.53, allocations: 242.4 kB / 0.5385 GB, free: 8.551 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001347/0.5313, allocations: 0.8074 MB / 0.5393 GB, free: 7.73 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.619e-05/0.5313, allocations: 20.38 kB / 0.5393 GB, free: 7.711 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.769e-06/0.5313, allocations: 3.938 kB / 0.5393 GB, free: 7.707 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/0.5314, allocations: 7.969 kB / 0.5393 GB, free: 7.699 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00522/0.5366, allocations: 2.733 MB / 0.542 GB, free: 4.926 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.834e-06/0.5366, allocations: 7.938 kB / 0.542 GB, free: 4.918 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002358/0.5389, allocations: 407.5 kB / 0.5424 GB, free: 4.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.234e-05/0.539, allocations: 7.938 kB / 0.5424 GB, free: 4.512 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.974e-05/0.539, allocations: 35.97 kB / 0.5425 GB, free: 4.477 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.973e-06/0.5391, allocations: 4 kB / 0.5425 GB, free: 4.473 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.5391, allocations: 4 kB / 0.5425 GB, free: 4.469 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003457/0.5425, allocations: 2.767 MB / 0.5452 GB, free: 1.684 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004883/0.543, allocations: 218.1 kB / 0.5454 GB, free: 1.469 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002355/0.5432, allocations: 35.92 kB / 0.5454 GB, free: 1.434 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008531/0.5441, allocations: 35.95 kB / 0.5454 GB, free: 1.398 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.5442, allocations: 63.83 kB / 0.5455 GB, free: 1.336 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.954e-05/0.5443, allocations: 35.97 kB / 0.5455 GB, free: 1.301 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.1946/0.7389, allocations: 1.638 MB / 0.5471 GB, free: 121 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7389, allocations: 0 / 0.5471 GB, free: 121 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004863/0.7438, allocations: 0.8625 MB / 0.548 GB, free: 121 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.0003231/0.7441, allocations: 164.5 kB / 0.5481 GB, free: 120.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004514/0.7486, allocations: 3.481 MB / 0.5515 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.7486, allocations: 0 / 0.5515 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007687/0.7494, allocations: 0.6769 MB / 0.5522 GB, free: 119.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001345/0.7508, allocations: 223.7 kB / 0.5524 GB, free: 119.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008869/0.7596, allocations: 7.122 MB / 0.5594 GB, free: 116.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001786/0.7614, allocations: 1.833 MB / 0.5612 GB, free: 115.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002887/0.7643, allocations: 1.597 MB / 0.5627 GB, free: 115.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003565/0.7647, allocations: 182.3 kB / 0.5629 GB, free: 115 MB / 462.1 MB Notification: Performance of SimCode: time 9.22e-07/0.7647, allocations: 0 / 0.5629 GB, free: 115 MB / 462.1 MB Notification: Performance of Templates: time 0.03424/0.7989, allocations: 18.48 MB / 0.5809 GB, free: 97.89 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/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: 6.2999454364180565]