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.576/1.576, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.313e-05/3.323e-05, allocations: 4 kB / 225 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.2118, allocations: 38.77 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1134/0.3253, allocations: 75.23 MB / 339 MB, free: 14.53 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.3256, allocations: 79.95 kB / 339.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3773/0.7029, allocations: 51.24 MB / 390.3 MB, free: 81.17 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.987e-06/0.7029, allocations: 0 / 390.3 MB, free: 81.17 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.381e-05/0.703, allocations: 54.31 kB / 390.4 MB, free: 81.17 MB / 314.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.004822/0.7079, allocations: 2.396 MB / 392.8 MB, free: 79.63 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.7079, allocations: 11.5 kB / 392.8 MB, free: 79.63 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01053/0.7185, allocations: 1.956 MB / 394.7 MB, free: 77.7 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003461/0.722, allocations: 1.392 MB / 396.1 MB, free: 76.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002225/0.7222, allocations: 219.9 kB / 396.3 MB, free: 76.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001083/0.7233, allocations: 306.7 kB / 396.6 MB, free: 75.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03588/0.7592, allocations: 8.8 MB / 405.4 MB, free: 66.12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002722/0.7596, allocations: 55.47 kB / 405.5 MB, free: 66.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0011/0.7607, allocations: 148.1 kB / 405.6 MB, free: 65.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002721/0.7634, allocations: 0.7891 MB / 406.4 MB, free: 65.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03808/0.8016, allocations: 6.888 MB / 413.3 MB, free: 58.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04982/0.8514, allocations: 38.04 MB / 451.4 MB, free: 19.1 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02268/0.8742, allocations: 5.197 MB / 456.5 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001669/0.8759, allocations: 0.9078 MB / 457.5 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0055/0.8814, allocations: 3.356 MB / 460.8 MB, free: 9.359 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.8815, allocations: 42.59 kB / 460.9 MB, free: 9.309 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 4.981e-06/0.8815, allocations: 4 kB / 460.9 MB, free: 9.305 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.04156/0.9231, allocations: 8.052 MB / 468.9 MB, free: 1.238 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.768e-05/0.9232, allocations: 199.9 kB / 469.1 MB, free: 1 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005199/0.9284, allocations: 2.657 MB / 471.8 MB, free: 14.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001877/0.9286, allocations: 37.7 kB / 471.8 MB, free: 14.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002475/0.9311, allocations: 2.408 MB / 474.2 MB, free: 11.88 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000787/0.9319, allocations: 484.6 kB / 474.7 MB, free: 11.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004477/0.9324, allocations: 100 kB / 474.8 MB, free: 11.31 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000531/0.9329, allocations: 0.534 MB / 475.3 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003467/0.9364, allocations: 1.443 MB / 476.8 MB, free: 9.316 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007135/0.9436, allocations: 4.937 MB / 481.7 MB, free: 2.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005775/0.9494, allocations: 2.69 MB / 484.4 MB, free: 15.9 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001152/0.9495, allocations: 36 kB / 484.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01506/0.9646, allocations: 5.698 MB / 490.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.9648, allocations: 60 kB / 490.2 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001801/0.965, allocations: 124 kB / 490.3 MB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002609/0.9653, allocations: 188 kB / 490.5 MB, free: 9.801 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007239/0.9725, allocations: 1.505 MB / 492 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002989/0.9729, allocations: 251 kB / 492.2 MB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005295/0.9782, allocations: 0.746 MB / 493 MB, free: 7.293 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001037/0.9792, allocations: 340 kB / 493.3 MB, free: 6.961 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 () * 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.0009852/0.9802, allocations: 0.5269 MB / 493.8 MB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000598/0.9809, allocations: 248.8 kB / 494.1 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001632/0.9825, allocations: 0.7047 MB / 494.8 MB, free: 5.465 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.295e-05/0.9826, allocations: 16 kB / 494.8 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.231e-06/0.9826, allocations: 0 / 494.8 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.639e-05/0.9826, allocations: 7.984 kB / 494.8 MB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005323/0.9879, allocations: 2.261 MB / 497.1 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.988, allocations: 0 / 497.1 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003319/0.9913, allocations: 467.4 kB / 497.5 MB, free: 2.688 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.231e-05/0.9914, allocations: 4 kB / 497.5 MB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001331/0.9915, allocations: 36.34 kB / 497.6 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.491e-05/0.9915, allocations: 11.89 kB / 497.6 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.921e-06/0.9915, allocations: 0 / 497.6 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2007/1.192, allocations: 2.582 MB / 0.4884 GB, free: 98.78 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007465/1.193, allocations: 297 kB / 0.4887 GB, free: 98.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005526/1.194, allocations: 28.45 kB / 0.4887 GB, free: 98.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001442/1.195, allocations: 51.67 kB / 0.4888 GB, free: 98.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/1.195, allocations: 53.75 kB / 0.4888 GB, free: 98.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/1.196, allocations: 33.97 kB / 0.4889 GB, free: 98.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004231/1.2, allocations: 1.791 MB / 0.4906 GB, free: 98.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.142e-06/1.2, allocations: 4.672 kB / 0.4906 GB, free: 98.52 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005349/1.205, allocations: 0.8127 MB / 0.4914 GB, free: 98.52 MB / 346.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 () * 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.0004348/1.206, allocations: 175.2 kB / 0.4916 GB, free: 98.44 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006242/1.212, allocations: 3.144 MB / 0.4947 GB, free: 98.38 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/1.212, allocations: 0 / 0.4947 GB, free: 98.38 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/1.213, allocations: 0.5865 MB / 0.4952 GB, free: 98.36 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001611/1.215, allocations: 234.3 kB / 0.4955 GB, free: 98.35 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/1.228, allocations: 6.448 MB / 0.5018 GB, free: 96.55 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003521/1.232, allocations: 2.421 MB / 0.5041 GB, free: 95.69 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009371/1.233, allocations: 229.3 kB / 0.5043 GB, free: 95.67 MB / 346.7 MB Notification: Performance of SimCode: time 1.531e-06/1.233, allocations: 0 / 0.5043 GB, free: 95.67 MB / 346.7 MB Notification: Performance of Templates: time 0.05673/1.289, allocations: 38.16 MB / 0.5416 GB, free: 68.61 MB / 346.7 MB