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.679/1.679, allocations: 171.2 MB / 186.3 MB, free: 1.398 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.247e-05/3.254e-05, allocations: 4 kB / 228.1 MB, free: 7.969 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08164/0.08171, allocations: 38.77 MB / 266.9 MB, free: 1.117 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.03506/0.1168, allocations: 22.72 MB / 289.6 MB, free: 10.31 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01436/0.1312, allocations: 4.965 MB / 294.6 MB, free: 5.332 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004903/0.1362, allocations: 107.8 kB / 294.7 MB, free: 5.227 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004206/0.1405, allocations: 1.171 MB / 295.9 MB, free: 4.051 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01148/0.152, allocations: 3.058 MB / 298.9 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00175/0.1538, allocations: 191.7 kB / 299.1 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.2599/0.4137, allocations: 0.8721 MB / 300 MB, free: 3.801 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00392/0.4177, allocations: 1.606 MB / 301.6 MB, free: 3.652 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001162/0.4189, allocations: 463 kB / 302 MB, free: 3.652 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002092/0.421, allocations: 0.7578 MB / 302.8 MB, free: 3.648 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002067/0.4231, allocations: 0.5074 MB / 303.3 MB, free: 3.648 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008902/0.4241, allocations: 64.12 kB / 303.4 MB, free: 3.648 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001916/0.426, allocations: 0.9402 MB / 304.3 MB, free: 3.645 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001244/0.4273, allocations: 163.4 kB / 304.5 MB, free: 3.645 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005995/0.4333, allocations: 3.216 MB / 307.7 MB, free: 3.41 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.4334, allocations: 0 / 307.7 MB, free: 3.41 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.857e-06/0.4334, allocations: 0 / 307.7 MB, free: 3.41 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0002051/0.4336, allocations: 3.969 kB / 307.7 MB, free: 3.41 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.007944/0.4416, allocations: 2.388 MB / 310.1 MB, free: 2.141 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.4417, allocations: 11.36 kB / 310.1 MB, free: 2.141 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01435/0.456, allocations: 2.105 MB / 312.2 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004072/0.4602, allocations: 1.12 MB / 313.3 MB, free: 1.125 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002563/0.4605, allocations: 147.5 kB / 313.5 MB, free: 1.121 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001516/0.462, allocations: 197.5 kB / 313.6 MB, free: 1.117 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04155/0.5036, allocations: 8.534 MB / 322.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002238/0.5039, allocations: 35.53 kB / 322.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001211/0.5051, allocations: 101.2 kB / 322.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007226/0.5124, allocations: 1.653 MB / 324 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04331/0.5557, allocations: 7.112 MB / 331.1 MB, free: 8.988 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07263/0.6284, allocations: 29.86 MB / 360.9 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05543/0.6839, allocations: 4.961 MB / 365.9 MB, free: 8.844 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008372/0.6924, allocations: 3.422 MB / 369.3 MB, free: 5.352 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.144e-05/0.6925, allocations: 48.81 kB / 369.4 MB, free: 5.297 MB / 298.7 MB Notification: Performance of pre-optimization done (n=104): time 5.4e-06/0.6925, allocations: 3.938 kB / 369.4 MB, free: 5.293 MB / 298.7 MB Notification: Performance of matching and sorting (n=104): time 0.08818/0.7807, allocations: 9.478 MB / 378.9 MB, free: 11.69 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.7808, allocations: 198.6 kB / 379.1 MB, free: 11.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006386/0.7872, allocations: 2.676 MB / 381.7 MB, free: 8.762 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002726/0.7876, allocations: 41.7 kB / 381.8 MB, free: 8.715 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002789/0.7904, allocations: 2.409 MB / 384.2 MB, free: 6.312 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009266/0.7913, allocations: 484.8 kB / 384.7 MB, free: 5.844 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000508/0.7919, allocations: 104 kB / 384.8 MB, free: 5.742 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0004801/0.7924, allocations: 0.5339 MB / 385.3 MB, free: 5.199 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004462/0.7968, allocations: 1.576 MB / 386.9 MB, free: 3.617 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008297/0.8052, allocations: 5.09 MB / 392 MB, free: 12.79 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007241/0.8125, allocations: 2.794 MB / 394.7 MB, free: 10.12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001237/0.8127, allocations: 40 kB / 394.8 MB, free: 10.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01854/0.8312, allocations: 6.291 MB / 401.1 MB, free: 4.547 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.8314, allocations: 64.06 kB / 401.1 MB, free: 4.484 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002109/0.8316, allocations: 124 kB / 401.3 MB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002403/0.8319, allocations: 184 kB / 401.4 MB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01001/0.8419, allocations: 1.434 MB / 402.9 MB, free: 2.863 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003125/0.8423, allocations: 251.7 kB / 403.1 MB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005899/0.8482, allocations: 0.7421 MB / 403.9 MB, free: 1.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001214/0.8495, allocations: 341.4 kB / 404.2 MB, free: 1.59 MB / 330.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.00442/0.8539, allocations: 1.528 MB / 405.7 MB, free: 120 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007223/0.8546, allocations: 245 kB / 406 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002376/0.857, allocations: 0.8128 MB / 406.8 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-05/0.8571, allocations: 12 kB / 406.8 MB, free: 15.04 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/0.8572, allocations: 8 kB / 406.8 MB, free: 15.03 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.872e-05/0.8572, allocations: 3.984 kB / 406.8 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007066/0.8643, allocations: 2.352 MB / 409.2 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.39e-05/0.8643, allocations: 8 kB / 409.2 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004718/0.8691, allocations: 395.5 kB / 409.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.422e-05/0.8692, allocations: 4.047 kB / 409.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002757/0.8694, allocations: 39.95 kB / 409.6 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.441e-05/0.8695, allocations: 7.984 kB / 409.6 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.8695, allocations: 4.312 kB / 409.6 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006006/0.8755, allocations: 2.83 MB / 412.4 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009703/0.8765, allocations: 305.7 kB / 412.7 MB, free: 8.977 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006479/0.8772, allocations: 27.98 kB / 412.8 MB, free: 8.949 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001751/0.879, allocations: 47.89 kB / 412.8 MB, free: 8.902 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002208/0.8792, allocations: 55.86 kB / 412.9 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/0.8794, allocations: 31.98 kB / 412.9 MB, free: 8.816 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005101/0.8845, allocations: 1.809 MB / 414.7 MB, free: 7.004 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.8845, allocations: 0 / 414.7 MB, free: 7.004 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005951/0.8905, allocations: 0.8139 MB / 415.5 MB, free: 6.191 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.0006227/0.8912, allocations: 159 kB / 415.7 MB, free: 6.027 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009803/0.901, allocations: 3.537 MB / 419.2 MB, free: 2.516 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/0.9011, allocations: 4 kB / 419.2 MB, free: 2.512 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001707/0.9028, allocations: 0.7034 MB / 419.9 MB, free: 1.812 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00199/0.9048, allocations: 235.7 kB / 420.1 MB, free: 1.582 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03031/0.9351, allocations: 8.586 MB / 428.7 MB, free: 8.938 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007736/0.9429, allocations: 2.425 MB / 431.2 MB, free: 6.488 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001734/0.9447, allocations: 235.4 kB / 431.4 MB, free: 6.258 MB / 362.7 MB Notification: Performance of SimCode: time 1.863e-06/0.9448, allocations: 0 / 431.4 MB, free: 6.258 MB / 362.7 MB Notification: Performance of Templates: time 0.3711/1.316, allocations: 38.91 MB / 470.3 MB, free: 106.1 MB / 362.7 MB