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.827/1.827, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.828e-05/2.856e-05, allocations: 4 kB / 255.4 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08157/0.08163, allocations: 44.5 MB / 299.9 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4108/0.4924, allocations: 80.66 MB / 380.5 MB, free: 21.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.4927, allocations: 84.78 kB / 380.6 MB, free: 21.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1705/0.6632, allocations: 51.25 MB / 431.8 MB, free: 4.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.436e-06/0.6633, allocations: 0 / 431.8 MB, free: 4.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.765e-05/0.6634, allocations: 50.75 kB / 431.9 MB, free: 4.98 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.00596/0.6694, allocations: 2.407 MB / 434.3 MB, free: 3.426 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.6694, allocations: 9.625 kB / 434.3 MB, free: 3.426 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01016/0.6796, allocations: 1.953 MB / 436.3 MB, free: 1.867 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003526/0.6832, allocations: 1.389 MB / 437.7 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002299/0.6834, allocations: 228.6 kB / 437.9 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001227/0.6847, allocations: 299 kB / 438.2 MB, free: 368 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02581/0.7105, allocations: 8.793 MB / 447 MB, free: 8.496 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001895/0.7108, allocations: 59.47 kB / 447 MB, free: 8.438 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008398/0.7116, allocations: 150.4 kB / 447.2 MB, free: 8.355 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001883/0.7135, allocations: 0.7891 MB / 448 MB, free: 7.559 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02203/0.7356, allocations: 6.896 MB / 454.9 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05481/0.7904, allocations: 38.01 MB / 492.9 MB, free: 9.359 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02546/0.8159, allocations: 5.211 MB / 498.1 MB, free: 3.973 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002106/0.8181, allocations: 0.9077 MB / 499 MB, free: 3.043 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007415/0.8255, allocations: 3.346 MB / 0.4906 GB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.308e-05/0.8257, allocations: 50.69 kB / 0.4906 GB, free: 15.55 MB / 394.7 MB Notification: Performance of pre-optimization done (n=104): time 4.983e-06/0.8257, allocations: 0 / 0.4906 GB, free: 15.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=104): time 0.04577/0.8715, allocations: 8.052 MB / 0.4985 GB, free: 7.477 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001413/0.8716, allocations: 195.8 kB / 0.4987 GB, free: 7.242 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006071/0.8777, allocations: 2.657 MB / 0.5012 GB, free: 4.566 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001887/0.878, allocations: 37.7 kB / 0.5013 GB, free: 4.523 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002622/0.8806, allocations: 2.416 MB / 0.5036 GB, free: 2.07 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007794/0.8814, allocations: 482.3 kB / 0.5041 GB, free: 1.594 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005078/0.8819, allocations: 108 kB / 0.5042 GB, free: 1.488 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005277/0.8825, allocations: 0.5301 MB / 0.5047 GB, free: 0.9492 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.222/1.104, allocations: 1.447 MB / 0.5061 GB, free: 104.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005711/1.11, allocations: 4.936 MB / 0.511 GB, free: 99.8 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005599/1.116, allocations: 2.68 MB / 0.5136 GB, free: 99.79 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002332/1.116, allocations: 38.56 kB / 0.5136 GB, free: 99.79 MB / 394.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01528/1.131, allocations: 5.694 MB / 0.5192 GB, free: 99.33 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001483/1.132, allocations: 66.77 kB / 0.5192 GB, free: 99.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002495/1.132, allocations: 126.8 kB / 0.5194 GB, free: 99.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003202/1.132, allocations: 184.3 kB / 0.5195 GB, free: 99.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006995/1.139, allocations: 1.501 MB / 0.521 GB, free: 99.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002729/1.14, allocations: 250.1 kB / 0.5212 GB, free: 99.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005452/1.145, allocations: 0.7542 MB / 0.522 GB, free: 99.15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001155/1.146, allocations: 340.2 kB / 0.5223 GB, free: 99.15 MB / 394.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.001326/1.148, allocations: 0.5195 MB / 0.5228 GB, free: 98.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005536/1.148, allocations: 240.7 kB / 0.523 GB, free: 98.84 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001673/1.15, allocations: 0.7093 MB / 0.5237 GB, free: 98.77 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.926e-05/1.15, allocations: 14.88 kB / 0.5237 GB, free: 98.77 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/1.15, allocations: 0 / 0.5237 GB, free: 98.77 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-05/1.15, allocations: 15.27 kB / 0.5238 GB, free: 98.77 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005572/1.156, allocations: 2.262 MB / 0.526 GB, free: 98.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.728e-05/1.156, allocations: 3.812 kB / 0.526 GB, free: 98.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003155/1.159, allocations: 465.9 kB / 0.5264 GB, free: 98.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.885e-05/1.159, allocations: 3.906 kB / 0.5264 GB, free: 98.51 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002064/1.159, allocations: 37.62 kB / 0.5265 GB, free: 98.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.071e-05/1.159, allocations: 7.844 kB / 0.5265 GB, free: 98.51 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.753e-06/1.159, allocations: 3.953 kB / 0.5265 GB, free: 98.5 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003565/1.163, allocations: 2.569 MB / 0.529 GB, free: 97.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007251/1.163, allocations: 299 kB / 0.5293 GB, free: 97.44 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005577/1.164, allocations: 28.78 kB / 0.5293 GB, free: 97.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001575/1.166, allocations: 50.14 kB / 0.5293 GB, free: 97.44 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000215/1.166, allocations: 53.92 kB / 0.5294 GB, free: 97.44 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001189/1.166, allocations: 29.78 kB / 0.5294 GB, free: 97.44 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003866/1.17, allocations: 1.797 MB / 0.5312 GB, free: 97.27 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.18e-06/1.17, allocations: 0 / 0.5312 GB, free: 97.27 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005824/1.176, allocations: 0.8186 MB / 0.532 GB, free: 97.22 MB / 394.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.0004918/1.176, allocations: 167.8 kB / 0.5321 GB, free: 97.12 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006563/1.183, allocations: 3.146 MB / 0.5352 GB, free: 96.61 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.798e-06/1.183, allocations: 4 kB / 0.5352 GB, free: 96.61 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/1.184, allocations: 0.5968 MB / 0.5358 GB, free: 96.41 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001785/1.186, allocations: 229.6 kB / 0.536 GB, free: 96.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/1.2, allocations: 6.44 MB / 0.5423 GB, free: 93.45 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003872/1.204, allocations: 2.418 MB / 0.5447 GB, free: 92.38 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009667/1.205, allocations: 231.5 kB / 0.5449 GB, free: 92.36 MB / 394.7 MB Notification: Performance of SimCode: time 1.846e-06/1.205, allocations: 0 / 0.5449 GB, free: 92.36 MB / 394.7 MB Notification: Performance of Templates: time 0.05977/1.265, allocations: 38.17 MB / 0.5821 GB, free: 67.27 MB / 394.7 MB