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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.176e-05/2.193e-05, allocations: 0 / 249.6 MB, free: 15.28 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2516, allocations: 44.5 MB / 294.1 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.127/0.3786, allocations: 80 MB / 374.1 MB, free: 1.973 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/0.3789, allocations: 83.89 kB / 374.2 MB, free: 1.891 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4139/0.7929, allocations: 50 MB / 424.2 MB, free: 88.74 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.799e-06/0.7929, allocations: 0.625 kB / 424.2 MB, free: 88.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001601/0.7931, allocations: 49.81 kB / 424.2 MB, free: 88.74 MB / 362.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.006723/0.7998, allocations: 2.402 MB / 426.6 MB, free: 88.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.7999, allocations: 10.88 kB / 426.7 MB, free: 88.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01077/0.8107, allocations: 1.95 MB / 428.6 MB, free: 88.01 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004002/0.8147, allocations: 1.395 MB / 430 MB, free: 87.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002176/0.815, allocations: 95.81 kB / 430.1 MB, free: 87.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001193/0.8162, allocations: 178.4 kB / 430.3 MB, free: 87.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008883/0.8251, allocations: 4.137 MB / 434.4 MB, free: 87.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01382/0.839, allocations: 6.822 MB / 441.2 MB, free: 85.37 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001652/0.8392, allocations: 57.48 kB / 441.3 MB, free: 85.37 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005945/0.8398, allocations: 24.62 kB / 441.3 MB, free: 85.37 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001492/0.8413, allocations: 0.7906 MB / 442.1 MB, free: 85.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03692/0.8782, allocations: 35.69 MB / 477.8 MB, free: 58.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00298/0.8813, allocations: 1.924 MB / 479.7 MB, free: 56.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001535/0.8828, allocations: 0.8682 MB / 480.6 MB, free: 56.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.73e-05/0.8829, allocations: 16.98 kB / 480.6 MB, free: 56.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.883, allocations: 52.41 kB / 480.6 MB, free: 56.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=112): time 5.216e-06/0.883, allocations: 0 / 480.6 MB, free: 56.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.02634/0.9093, allocations: 5.224 MB / 485.9 MB, free: 55.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.875e-05/0.9094, allocations: 217.6 kB / 486.1 MB, free: 55.37 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004294/0.9137, allocations: 2.377 MB / 488.5 MB, free: 53.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001993/0.914, allocations: 25.7 kB / 488.5 MB, free: 53.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001726/0.9157, allocations: 2.471 MB / 491 MB, free: 50.96 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006433/0.9164, allocations: 0.4925 MB / 491.4 MB, free: 50.53 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003986/0.9168, allocations: 0 / 491.4 MB, free: 50.53 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003568/0.9172, allocations: 0.5414 MB / 492 MB, free: 50.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002748/0.92, allocations: 1.398 MB / 493.4 MB, free: 48.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004789/0.9248, allocations: 5.02 MB / 498.4 MB, free: 42.17 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004803/0.9296, allocations: 2.678 MB / 0.4893 GB, free: 39.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001008/0.9298, allocations: 40 kB / 0.4894 GB, free: 39.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.01278/0.9426, allocations: 5.479 MB / 0.4947 GB, free: 34.38 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001001/0.9427, allocations: 64 kB / 0.4948 GB, free: 34.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001366/0.9429, allocations: 128.8 kB / 0.4949 GB, free: 34.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002031/0.9431, allocations: 192 kB / 0.4951 GB, free: 34.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00638/0.9495, allocations: 1.552 MB / 0.4966 GB, free: 32.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001836/0.9497, allocations: 255 kB / 0.4969 GB, free: 32.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005126/0.9548, allocations: 0.6406 MB / 0.4975 GB, free: 31.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001/0.9559, allocations: 352.5 kB / 0.4978 GB, free: 31.21 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 598 * 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 (698): * Single equations (assignments): 695 * 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.0008045/0.9567, allocations: 428.6 kB / 0.4982 GB, free: 30.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005318/0.9572, allocations: 233 kB / 0.4984 GB, free: 30.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001463/0.9587, allocations: 0.6887 MB / 0.4991 GB, free: 29.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.451e-05/0.9588, allocations: 12.55 kB / 0.4991 GB, free: 29.85 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/0.9588, allocations: 4 kB / 0.4991 GB, free: 29.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.9588, allocations: 7.922 kB / 0.4991 GB, free: 29.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006285/0.9651, allocations: 2.581 MB / 0.5017 GB, free: 27.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.629e-05/0.9652, allocations: 0 / 0.5017 GB, free: 27.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002629/0.9678, allocations: 383.5 kB / 0.502 GB, free: 26.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007045/0.9686, allocations: 146.2 kB / 0.5022 GB, free: 26.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001973/0.9688, allocations: 23.97 kB / 0.5022 GB, free: 26.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002063/0.9709, allocations: 2.645 MB / 0.5048 GB, free: 23.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.773e-06/0.9709, allocations: 8.094 kB / 0.5048 GB, free: 23.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00383/0.9747, allocations: 2.632 MB / 0.5074 GB, free: 21.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006744/0.9755, allocations: 289.8 kB / 0.5076 GB, free: 20.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004554/0.9759, allocations: 15.98 kB / 0.5076 GB, free: 20.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/0.9775, allocations: 35.94 kB / 0.5077 GB, free: 20.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002696/0.9778, allocations: 63.86 kB / 0.5077 GB, free: 20.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000118/0.978, allocations: 36.61 kB / 0.5078 GB, free: 20.65 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003204/0.9812, allocations: 1.527 MB / 0.5093 GB, free: 19.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.168e-06/0.9812, allocations: 0 / 0.5093 GB, free: 19.12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005683/0.9869, allocations: 0.7285 MB / 0.51 GB, free: 18.39 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (86): * Single equations (assignments): 81 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004765/0.9874, allocations: 161.8 kB / 0.5101 GB, free: 18.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005712/0.9932, allocations: 3.166 MB / 0.5132 GB, free: 15.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.54e-06/0.9932, allocations: 0 / 0.5132 GB, free: 15.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001781/0.995, allocations: 0.8715 MB / 0.5141 GB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/0.9965, allocations: 197.2 kB / 0.5143 GB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01314/1.01, allocations: 6.474 MB / 0.5206 GB, free: 7.629 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00358/1.013, allocations: 2.425 MB / 0.523 GB, free: 5.18 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008367/1.014, allocations: 219.4 kB / 0.5232 GB, free: 4.965 MB / 362.7 MB Notification: Performance of SimCode: time 1.939e-06/1.014, allocations: 0 / 0.5232 GB, free: 4.965 MB / 362.7 MB Notification: Performance of Templates: time 0.3108/1.325, allocations: 49.17 MB / 0.5712 GB, free: 104.2 MB / 394.7 MB