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.807/1.807, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.954e-05/2.987e-05, allocations: 3.312 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07967/0.07972, allocations: 44.51 MB / 299.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3357/0.4155, allocations: 80.64 MB / 380.5 MB, free: 22.06 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/0.4158, allocations: 85.19 kB / 380.6 MB, free: 22.06 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1809/0.5966, allocations: 51.24 MB / 431.8 MB, free: 5.043 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5967, allocations: 0 / 431.8 MB, free: 5.043 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001061/0.5968, allocations: 50.66 kB / 431.9 MB, free: 5.043 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.006364/0.6032, allocations: 2.41 MB / 434.3 MB, free: 3.484 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.6033, allocations: 6.406 kB / 434.3 MB, free: 3.484 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01113/0.6144, allocations: 1.953 MB / 436.2 MB, free: 1.875 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003776/0.6182, allocations: 1.388 MB / 437.6 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002293/0.6185, allocations: 224 kB / 437.8 MB, free: 0.582 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001258/0.6198, allocations: 305.9 kB / 438.1 MB, free: 372 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.026/0.6458, allocations: 8.826 MB / 447 MB, free: 8.461 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002067/0.646, allocations: 61.84 kB / 447 MB, free: 8.402 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001006/0.6471, allocations: 153.4 kB / 447.2 MB, free: 8.328 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001886/0.649, allocations: 0.7852 MB / 448 MB, free: 7.543 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02284/0.6718, allocations: 7.045 MB / 455 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05481/0.7267, allocations: 38.01 MB / 493 MB, free: 9.203 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02635/0.7531, allocations: 5.224 MB / 498.2 MB, free: 3.801 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002095/0.7552, allocations: 0.9157 MB / 499.2 MB, free: 2.863 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007278/0.7625, allocations: 3.346 MB / 0.4907 GB, free: 15.42 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.661e-05/0.7626, allocations: 42.56 kB / 0.4908 GB, free: 15.37 MB / 394.7 MB Notification: Performance of pre-optimization done (n=104): time 7.46e-06/0.7627, allocations: 0 / 0.4908 GB, free: 15.37 MB / 394.7 MB Notification: Performance of matching and sorting (n=104): time 0.04784/0.8105, allocations: 8.06 MB / 0.4986 GB, free: 7.293 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.8107, allocations: 199.9 kB / 0.4988 GB, free: 7.055 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006429/0.8171, allocations: 2.653 MB / 0.5014 GB, free: 4.383 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002046/0.8174, allocations: 41.7 kB / 0.5015 GB, free: 4.336 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002626/0.82, allocations: 2.416 MB / 0.5038 GB, free: 1.883 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008095/0.8209, allocations: 478.3 kB / 0.5043 GB, free: 1.41 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005517/0.8214, allocations: 108 kB / 0.5044 GB, free: 1.305 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0006032/0.8221, allocations: 0.5301 MB / 0.5049 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2405/1.063, allocations: 1.441 MB / 0.5063 GB, free: 104.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008582/1.071, allocations: 4.968 MB / 0.5112 GB, free: 99.74 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009144/1.08, allocations: 2.687 MB / 0.5138 GB, free: 99.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000288/1.081, allocations: 35.69 kB / 0.5138 GB, free: 99.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.02572/1.107, allocations: 6.051 MB / 0.5197 GB, free: 99.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002333/1.107, allocations: 58.88 kB / 0.5198 GB, free: 99.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004257/1.107, allocations: 127.8 kB / 0.5199 GB, free: 99.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005053/1.108, allocations: 183.6 kB / 0.5201 GB, free: 99.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01319/1.121, allocations: 1.508 MB / 0.5215 GB, free: 98.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004012/1.121, allocations: 240.5 kB / 0.5218 GB, free: 98.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01032/1.132, allocations: 0.7556 MB / 0.5225 GB, free: 98.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001455/1.133, allocations: 336.5 kB / 0.5228 GB, free: 98.93 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.001526/1.135, allocations: 0.521 MB / 0.5233 GB, free: 98.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009153/1.136, allocations: 245.7 kB / 0.5236 GB, free: 98.61 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002762/1.139, allocations: 0.7077 MB / 0.5243 GB, free: 98.54 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.696e-05/1.139, allocations: 14.5 kB / 0.5243 GB, free: 98.54 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.552e-05/1.139, allocations: 4 kB / 0.5243 GB, free: 98.53 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.761e-05/1.139, allocations: 9.078 kB / 0.5243 GB, free: 98.53 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005375/1.144, allocations: 2.265 MB / 0.5265 GB, free: 98.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.579e-05/1.144, allocations: 0 / 0.5265 GB, free: 98.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003689/1.148, allocations: 464.9 kB / 0.527 GB, free: 98.28 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.889e-05/1.148, allocations: 7.312 kB / 0.527 GB, free: 98.28 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001978/1.148, allocations: 34.25 kB / 0.527 GB, free: 98.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.156e-06/1.148, allocations: 3.719 kB / 0.527 GB, free: 98.28 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/1.148, allocations: 7.828 kB / 0.527 GB, free: 98.27 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003701/1.152, allocations: 2.567 MB / 0.5295 GB, free: 97.43 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006868/1.153, allocations: 300.6 kB / 0.5298 GB, free: 97.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004145/1.153, allocations: 33 kB / 0.5298 GB, free: 97.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001271/1.154, allocations: 48.42 kB / 0.5299 GB, free: 97.21 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/1.155, allocations: 56.77 kB / 0.5299 GB, free: 97.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/1.155, allocations: 31.66 kB / 0.53 GB, free: 97.2 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003358/1.158, allocations: 1.79 MB / 0.5317 GB, free: 97.04 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.97e-07/1.158, allocations: 0 / 0.5317 GB, free: 97.04 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005475/1.164, allocations: 0.8275 MB / 0.5325 GB, free: 96.98 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.0004349/1.164, allocations: 160.2 kB / 0.5327 GB, free: 96.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006622/1.171, allocations: 3.321 MB / 0.5359 GB, free: 96.17 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.756e-06/1.171, allocations: 0 / 0.5359 GB, free: 96.17 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/1.172, allocations: 0.5961 MB / 0.5365 GB, free: 95.98 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/1.173, allocations: 232.9 kB / 0.5367 GB, free: 95.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01382/1.187, allocations: 6.455 MB / 0.543 GB, free: 93 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003484/1.191, allocations: 2.429 MB / 0.5454 GB, free: 91.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008865/1.192, allocations: 220.8 kB / 0.5456 GB, free: 91.92 MB / 394.7 MB Notification: Performance of SimCode: time 1.814e-06/1.192, allocations: 6.438 kB / 0.5456 GB, free: 91.91 MB / 394.7 MB Notification: Performance of Templates: time 0.06039/1.252, allocations: 38.97 MB / 0.5837 GB, free: 65.71 MB / 394.7 MB