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.0012/0.0012, allocations: 93.61 kB / 16.3 MB, free: 6.133 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.001414/0.001414, allocations: 180.6 kB / 17.2 MB, free: 6.016 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.284/1.284, allocations: 223.2 MB / 241.1 MB, free: 388 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002376/0.0002377, allocations: 8.625 kB / 300.7 MB, free: 6.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1094, allocations: 50.41 MB / 351.1 MB, free: 4.043 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.2313/0.3408, allocations: 24.76 MB / 375.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0142/0.355, allocations: 5.879 MB / 381.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005688/0.3608, allocations: 113.3 kB / 381.9 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004877/0.3657, allocations: 1.203 MB / 383.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0133/0.379, allocations: 3.53 MB / 386.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.3805, allocations: 182.2 kB / 386.8 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003139/0.3837, allocations: 1.281 MB / 388.1 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002726/0.3864, allocations: 1.86 MB / 389.9 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009992/0.3875, allocations: 0.6063 MB / 390.6 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.3885, allocations: 0.8395 MB / 391.4 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002461/0.3887, allocations: 85.97 kB / 391.5 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001085/0.3898, allocations: 0.523 MB / 392 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008442/0.3907, allocations: 1.01 MB / 393 MB, free: 5.867 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000441/0.3911, allocations: 0.5628 MB / 393.6 MB, free: 5.461 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002889/0.394, allocations: 3.243 MB / 396.8 MB, free: 3.422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.394, allocations: 1.438 kB / 396.8 MB, free: 3.422 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3941, allocations: 0 / 396.8 MB, free: 3.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001342/0.3942, allocations: 0 / 396.8 MB, free: 3.422 MB / 302.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.004123/0.3983, allocations: 2.44 MB / 399.3 MB, free: 1.629 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.3984, allocations: 9.062 kB / 399.3 MB, free: 1.629 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007326/0.4057, allocations: 2.12 MB / 401.4 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003286/0.409, allocations: 1.144 MB / 402.5 MB, free: 15.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.4092, allocations: 147.4 kB / 402.7 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006154/0.4098, allocations: 211.1 kB / 402.9 MB, free: 15.67 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01896/0.4288, allocations: 8.656 MB / 411.5 MB, free: 6.969 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.966e-05/0.4289, allocations: 43.59 kB / 411.6 MB, free: 6.926 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002746/0.4292, allocations: 108.8 kB / 411.7 MB, free: 6.848 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002793/0.432, allocations: 1.664 MB / 413.3 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01796/0.45, allocations: 7.235 MB / 420.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04086/0.4909, allocations: 30.2 MB / 450.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02334/0.5143, allocations: 5.123 MB / 455.9 MB, free: 9.688 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006139/0.5204, allocations: 3.754 MB / 459.7 MB, free: 5.785 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.4e-05/0.5205, allocations: 50.83 kB / 459.7 MB, free: 5.727 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 3.577e-06/0.5205, allocations: 3.938 kB / 459.7 MB, free: 5.723 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.04588/0.5664, allocations: 9.643 MB / 469.4 MB, free: 11.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.696e-05/0.5666, allocations: 199.9 kB / 469.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004128/0.5707, allocations: 3.019 MB / 472.6 MB, free: 8.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000192/0.5709, allocations: 41.7 kB / 472.6 MB, free: 8.613 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00162/0.5725, allocations: 2.429 MB / 475 MB, free: 6.145 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005711/0.5731, allocations: 498 kB / 475.5 MB, free: 5.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001815/0.5733, allocations: 108 kB / 475.6 MB, free: 5.547 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003168/0.5736, allocations: 0.5333 MB / 476.2 MB, free: 5.008 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002254/0.5759, allocations: 1.576 MB / 477.7 MB, free: 3.426 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005/0.5809, allocations: 5.13 MB / 482.9 MB, free: 12.49 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004019/0.585, allocations: 2.804 MB / 485.7 MB, free: 9.688 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.728e-05/0.585, allocations: 36 kB / 485.7 MB, free: 9.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.011/0.596, allocations: 6.397 MB / 492.1 MB, free: 3.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.333e-05/0.5962, allocations: 60 kB / 492.2 MB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001752/0.5964, allocations: 128 kB / 492.3 MB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001863/0.5966, allocations: 184 kB / 492.5 MB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005067/0.6016, allocations: 1.462 MB / 493.9 MB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002861/0.6019, allocations: 243.1 kB / 494.2 MB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004498/0.6064, allocations: 0.7464 MB / 494.9 MB, free: 440 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001031/0.6075, allocations: 348 kB / 495.3 MB, free: 92 kB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003239/0.6108, allocations: 1.571 MB / 496.8 MB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006158/0.6114, allocations: 260.6 kB / 497.1 MB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001587/0.613, allocations: 0.8291 MB / 497.9 MB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.348e-05/0.613, allocations: 16 kB / 497.9 MB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.6131, allocations: 4 kB / 497.9 MB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.6131, allocations: 3.984 kB / 497.9 MB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007535/0.6206, allocations: 3.383 MB / 0.4896 GB, free: 9.945 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.436e-05/0.6207, allocations: 0 / 0.4896 GB, free: 9.945 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002304/0.623, allocations: 411.4 kB / 0.49 GB, free: 9.543 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.966e-05/0.623, allocations: 8 kB / 0.49 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001466/0.6232, allocations: 39.97 kB / 0.49 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.091e-05/0.6232, allocations: 11.94 kB / 0.49 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6232, allocations: 0 / 0.49 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003386/0.6266, allocations: 2.883 MB / 0.4928 GB, free: 6.535 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007829/0.6274, allocations: 305.6 kB / 0.4931 GB, free: 6.215 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000553/0.628, allocations: 31.98 kB / 0.4932 GB, free: 6.184 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.6291, allocations: 35.95 kB / 0.4932 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.6293, allocations: 59.92 kB / 0.4932 GB, free: 6.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.582e-05/0.6294, allocations: 35.97 kB / 0.4933 GB, free: 6.055 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003408/0.6328, allocations: 1.825 MB / 0.4951 GB, free: 4.227 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6328, allocations: 0 / 0.4951 GB, free: 4.227 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004481/0.6373, allocations: 0.838 MB / 0.4959 GB, free: 3.387 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004574/0.6378, allocations: 175.7 kB / 0.496 GB, free: 3.203 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006015/0.6438, allocations: 3.578 MB / 0.4995 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.6438, allocations: 0 / 0.4995 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009464/0.6448, allocations: 0.7071 MB / 0.5002 GB, free: 14.95 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001477/0.6463, allocations: 250.2 kB / 0.5005 GB, free: 14.71 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01359/0.6599, allocations: 8.461 MB / 0.5087 GB, free: 6.195 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003721/0.6636, allocations: 2.453 MB / 0.5111 GB, free: 3.715 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004384/0.668, allocations: 1.645 MB / 0.5127 GB, free: 2.062 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005715/0.6686, allocations: 187.4 kB / 0.5129 GB, free: 1.879 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.6686, allocations: 0 / 0.5129 GB, free: 1.879 MB / 430.1 MB Notification: Performance of Templates: time 0.2132/0.8818, allocations: 20.11 MB / 0.5326 GB, free: 148.6 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches