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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001381/0.001387, allocations: 110.3 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 241.7 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 43.22 kB / 300.6 MB, free: 6.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1013, allocations: 49.45 MB / 350.1 MB, free: 4.809 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1896/0.2909, allocations: 28.94 MB / 379 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01355/0.3045, allocations: 5.948 MB / 385 MB, free: 7.238 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005679/0.3103, allocations: 113.7 kB / 385.1 MB, free: 7.223 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003114/0.3134, allocations: 1.399 MB / 386.5 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002759/0.3162, allocations: 0.9399 MB / 387.4 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007565/0.317, allocations: 233.5 kB / 387.6 MB, free: 6.383 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004241/0.3213, allocations: 3.299 MB / 390.9 MB, free: 5.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00198/0.3233, allocations: 1.541 MB / 392.5 MB, free: 4.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001103/0.3244, allocations: 0.729 MB / 393.2 MB, free: 4.621 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001413/0.3258, allocations: 1.303 MB / 394.5 MB, free: 3.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002684/0.3261, allocations: 113.8 kB / 394.6 MB, free: 3.977 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001152/0.3273, allocations: 0.6564 MB / 395.3 MB, free: 3.684 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008798/0.3282, allocations: 1.142 MB / 396.4 MB, free: 3.082 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001091/0.3293, allocations: 1.346 MB / 397.8 MB, free: 2.082 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002653/0.3319, allocations: 3.321 MB / 401.1 MB, free: 15.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3319, allocations: 0 / 401.1 MB, free: 15.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.332, allocations: 0 / 401.1 MB, free: 15.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.619e-05/0.332, allocations: 0 / 401.1 MB, free: 15.97 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.004429/0.3365, allocations: 2.961 MB / 404 MB, free: 13.87 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.3365, allocations: 11.89 kB / 404.1 MB, free: 13.87 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006624/0.3431, allocations: 1.781 MB / 405.8 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002225/0.3454, allocations: 1.146 MB / 407 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/0.3455, allocations: 154.7 kB / 407.1 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000437/0.346, allocations: 210.4 kB / 407.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01955/0.3655, allocations: 8.598 MB / 415.9 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001068/0.3657, allocations: 39.59 kB / 416 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003128/0.366, allocations: 106.2 kB / 416.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002923/0.3689, allocations: 1.669 MB / 417.8 MB, free: 148 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01956/0.3885, allocations: 7.167 MB / 424.9 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03945/0.428, allocations: 30.18 MB / 455.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02372/0.4518, allocations: 5.047 MB / 460.1 MB, free: 4.824 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001751/0.4536, allocations: 1.244 MB / 461.4 MB, free: 3.559 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005876/0.4595, allocations: 3.749 MB / 465.1 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/0.4596, allocations: 46.89 kB / 465.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.518e-06/0.4596, allocations: 0 / 465.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04866/0.5082, allocations: 9.255 MB / 474.4 MB, free: 6.273 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.5084, allocations: 191.9 kB / 474.6 MB, free: 6.043 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005492/0.5139, allocations: 3.035 MB / 477.7 MB, free: 2.988 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002251/0.5142, allocations: 45.06 kB / 477.7 MB, free: 2.941 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002029/0.5162, allocations: 2.421 MB / 480.1 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007772/0.517, allocations: 0.4938 MB / 480.6 MB, free: 32 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002003/0.519, allocations: 1.089 MB / 481.7 MB, free: 14.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.5191, allocations: 301.1 kB / 482 MB, free: 14.64 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002615/0.5217, allocations: 1.603 MB / 483.6 MB, free: 13.03 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005245/0.527, allocations: 5.165 MB / 488.8 MB, free: 6.059 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007985/0.535, allocations: 7.333 MB / 496.1 MB, free: 12.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001201/0.5352, allocations: 36 kB / 496.1 MB, free: 12.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01175/0.547, allocations: 6.444 MB / 0.4908 GB, free: 6.461 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001265/0.5471, allocations: 60 kB / 0.4909 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001903/0.5473, allocations: 128 kB / 0.491 GB, free: 6.277 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001741/0.5475, allocations: 168 kB / 0.4911 GB, free: 6.113 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005168/0.5527, allocations: 1.45 MB / 0.4926 GB, free: 4.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002196/0.5529, allocations: 243.8 kB / 0.4928 GB, free: 4.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004114/0.557, allocations: 0.7561 MB / 0.4935 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007289/0.5578, allocations: 344 kB / 0.4939 GB, free: 3.324 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.002844/0.5606, allocations: 1.575 MB / 0.4954 GB, free: 1.734 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005511/0.5612, allocations: 244.8 kB / 0.4956 GB, free: 1.492 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001459/0.5627, allocations: 0.8389 MB / 0.4964 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.994e-05/0.5627, allocations: 15.12 kB / 0.4965 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.5627, allocations: 4 kB / 0.4965 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.5628, allocations: 7.922 kB / 0.4965 GB, free: 0.625 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006766/0.5695, allocations: 3.38 MB / 0.4998 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.5696, allocations: 0 / 0.4998 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002484/0.5721, allocations: 411.5 kB / 0.5002 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.889e-05/0.5721, allocations: 12.31 kB / 0.5002 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000132/0.5723, allocations: 31.97 kB / 0.5002 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.612e-05/0.5723, allocations: 11.94 kB / 0.5002 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.5723, allocations: 4 kB / 0.5002 GB, free: 12.74 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003384/0.5757, allocations: 2.784 MB / 0.5029 GB, free: 9.938 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006977/0.5764, allocations: 305.5 kB / 0.5032 GB, free: 9.617 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004923/0.5769, allocations: 31.98 kB / 0.5033 GB, free: 9.586 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001188/0.5781, allocations: 38.84 kB / 0.5033 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.5783, allocations: 55.92 kB / 0.5034 GB, free: 9.496 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.707e-05/0.5784, allocations: 35.97 kB / 0.5034 GB, free: 9.461 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003296/0.5817, allocations: 1.845 MB / 0.5052 GB, free: 7.613 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5817, allocations: 0 / 0.5052 GB, free: 7.613 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004535/0.5862, allocations: 0.8339 MB / 0.506 GB, free: 6.777 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.0005104/0.5868, allocations: 180.7 kB / 0.5062 GB, free: 6.598 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005968/0.5927, allocations: 3.583 MB / 0.5097 GB, free: 3.047 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.116e-06/0.5928, allocations: 4 kB / 0.5097 GB, free: 3.043 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.5938, allocations: 0.7191 MB / 0.5104 GB, free: 2.324 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002522/0.5963, allocations: 262.6 kB / 0.5106 GB, free: 2.066 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01423/0.6106, allocations: 8.763 MB / 0.5192 GB, free: 9.262 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003012/0.6137, allocations: 2.398 MB / 0.5215 GB, free: 6.828 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008046/0.6145, allocations: 239.4 kB / 0.5218 GB, free: 6.594 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6145, allocations: 0 / 0.5218 GB, free: 6.594 MB / 446.1 MB Notification: Performance of Templates: time 0.2275/0.842, allocations: 40.62 MB / 0.5614 GB, free: 132.9 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (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) 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) Reference file matches