Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 1.614/1.614, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003609, allocations: 8 kB / 233.2 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06987/0.07025, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.0326/0.1029, allocations: 23.57 MB / 295.5 MB, free: 4.539 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.1979/0.3009, allocations: 5.403 MB / 300.9 MB, free: 7.754 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004452/0.3054, allocations: 110.7 kB / 301 MB, free: 7.754 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003701/0.3091, allocations: 1.167 MB / 302.2 MB, free: 7.754 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01074/0.3199, allocations: 3.194 MB / 305.4 MB, free: 7.699 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001472/0.3214, allocations: 208.4 kB / 305.6 MB, free: 7.699 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002799/0.3243, allocations: 1.289 MB / 306.9 MB, free: 7.684 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00325/0.3276, allocations: 1.852 MB / 308.7 MB, free: 7.473 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001033/0.3286, allocations: 0.5907 MB / 309.3 MB, free: 7.391 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001307/0.33, allocations: 0.8279 MB / 310.1 MB, free: 7.219 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000377/0.3304, allocations: 83.97 kB / 310.2 MB, free: 7.219 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001345/0.3317, allocations: 0.5243 MB / 310.7 MB, free: 7.094 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001304/0.3331, allocations: 0.9797 MB / 311.7 MB, free: 6.914 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006984/0.3338, allocations: 0.5428 MB / 312.3 MB, free: 6.883 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004347/0.3381, allocations: 3.202 MB / 315.5 MB, free: 5.199 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.671e-06/0.3382, allocations: 2.031 kB / 315.5 MB, free: 5.199 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.654e-06/0.3382, allocations: 0 / 315.5 MB, free: 5.199 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001205/0.3383, allocations: 0 / 315.5 MB, free: 5.199 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1094 * Number of variables: 1094 Notification: Performance of Generate backend data structure: time 0.004348/0.3427, allocations: 2.387 MB / 317.9 MB, free: 3.629 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.3427, allocations: 11.19 kB / 317.9 MB, free: 3.629 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01009/0.3529, allocations: 2.107 MB / 320 MB, free: 2.668 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0027/0.3556, allocations: 1.126 MB / 321.1 MB, free: 2.188 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/0.3558, allocations: 151.2 kB / 321.3 MB, free: 2.18 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007613/0.3566, allocations: 199.2 kB / 321.4 MB, free: 2.176 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02186/0.3784, allocations: 8.537 MB / 330 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001371/0.3786, allocations: 43.34 kB / 330 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004525/0.3791, allocations: 100.6 kB / 330.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00384/0.383, allocations: 1.643 MB / 331.8 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02271/0.4057, allocations: 7.116 MB / 338.9 MB, free: 6.574 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04724/0.453, allocations: 29.86 MB / 368.7 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02743/0.4805, allocations: 4.971 MB / 373.7 MB, free: 3.992 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007461/0.488, allocations: 3.411 MB / 377.1 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.747e-05/0.4881, allocations: 54.48 kB / 377.2 MB, free: 456 kB / 298.7 MB Notification: Performance of pre-optimization done (n=104): time 6.529e-06/0.4881, allocations: 0 / 377.2 MB, free: 456 kB / 298.7 MB Notification: Performance of matching and sorting (n=104): time 0.05641/0.5445, allocations: 9.481 MB / 386.7 MB, free: 6.82 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/0.5447, allocations: 191.9 kB / 386.8 MB, free: 6.59 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006314/0.551, allocations: 2.989 MB / 389.8 MB, free: 3.582 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001971/0.5513, allocations: 37.7 kB / 389.9 MB, free: 3.539 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0026/0.5539, allocations: 2.416 MB / 392.3 MB, free: 1.141 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007914/0.5547, allocations: 484.2 kB / 392.8 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004758/0.5552, allocations: 100 kB / 392.9 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0005442/0.5558, allocations: 0.5417 MB / 393.4 MB, free: 24 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003755/0.5595, allocations: 1.568 MB / 395 MB, free: 14.45 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007432/0.567, allocations: 5.119 MB / 400.1 MB, free: 7.543 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006018/0.5731, allocations: 2.786 MB / 402.9 MB, free: 4.762 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001101/0.5732, allocations: 36 kB / 402.9 MB, free: 4.727 MB / 330.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01732/0.5905, allocations: 6.304 MB / 409.2 MB, free: 14.42 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001275/0.5907, allocations: 56 kB / 409.3 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001929/0.5909, allocations: 128 kB / 409.4 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002554/0.5912, allocations: 184 kB / 409.6 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007019/0.5982, allocations: 1.443 MB / 411 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002999/0.5986, allocations: 247 kB / 411.3 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005672/0.6043, allocations: 0.744 MB / 412 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001062/0.6054, allocations: 344 kB / 412.3 MB, free: 11.29 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 27 (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.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 (671): * Single equations (assignments): 668 * 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.003554/0.6089, allocations: 1.555 MB / 413.9 MB, free: 9.723 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000617/0.6096, allocations: 248.8 kB / 414.1 MB, free: 9.477 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00189/0.6115, allocations: 0.8011 MB / 414.9 MB, free: 8.668 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.275e-05/0.6116, allocations: 16 kB / 414.9 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.966e-06/0.6116, allocations: 5.641 kB / 415 MB, free: 8.648 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.825e-05/0.6116, allocations: 7.984 kB / 415 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005872/0.6175, allocations: 2.353 MB / 417.3 MB, free: 6.254 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.958e-05/0.6176, allocations: 4.359 kB / 417.3 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003058/0.6206, allocations: 399.5 kB / 417.7 MB, free: 5.859 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.534e-05/0.6207, allocations: 4 kB / 417.7 MB, free: 5.855 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001743/0.6209, allocations: 31.97 kB / 417.7 MB, free: 5.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.321e-05/0.6209, allocations: 11.88 kB / 417.8 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.598e-06/0.6209, allocations: 4 kB / 417.8 MB, free: 5.809 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004797/0.6257, allocations: 2.731 MB / 420.5 MB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007711/0.6265, allocations: 297.7 kB / 420.8 MB, free: 2.738 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003713/0.6269, allocations: 35.17 kB / 420.8 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/0.6282, allocations: 35.97 kB / 420.8 MB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.6283, allocations: 55.92 kB / 420.9 MB, free: 2.617 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/0.6285, allocations: 33.62 kB / 420.9 MB, free: 2.586 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003915/0.6324, allocations: 1.812 MB / 422.7 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.136e-06/0.6324, allocations: 0 / 422.7 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005423/0.6379, allocations: 0.8124 MB / 423.6 MB, free: 15.96 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (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],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.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 (81): * Single equations (assignments): 78 * 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.0004982/0.6384, allocations: 166 kB / 423.7 MB, free: 15.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007729/0.6461, allocations: 3.537 MB / 427.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.6462, allocations: 0 / 427.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001383/0.6476, allocations: 0.6963 MB / 428 MB, free: 11.58 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.6493, allocations: 249.5 kB / 428.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01743/0.6667, allocations: 8.678 MB / 436.9 MB, free: 2.609 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004291/0.6711, allocations: 2.425 MB / 439.3 MB, free: 164 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1823/0.8534, allocations: 229.1 kB / 439.5 MB, free: 127 MB / 362.7 MB Notification: Performance of SimCode: time 2.084e-06/0.8534, allocations: 0 / 439.5 MB, free: 127 MB / 362.7 MB Notification: Performance of Templates: time 0.06282/0.9163, allocations: 38.91 MB / 478.4 MB, free: 103.4 MB / 362.7 MB