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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 2.147/2.147, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.796e-05/2.789e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1073, allocations: 50.41 MB / 345 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.03628/0.1436, allocations: 23.87 MB / 368.9 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01524/0.1589, allocations: 5.401 MB / 374.3 MB, free: 11.58 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005145/0.1641, allocations: 111.8 kB / 374.4 MB, free: 11.47 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004307/0.1684, allocations: 1.205 MB / 375.6 MB, free: 10.26 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01262/0.1811, allocations: 3.362 MB / 378.9 MB, free: 6.891 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001726/0.1829, allocations: 179.6 kB / 379.1 MB, free: 6.715 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002795/0.1857, allocations: 0.9009 MB / 380 MB, free: 5.809 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003248/0.189, allocations: 1.615 MB / 381.6 MB, free: 4.168 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008976/0.19, allocations: 474.8 kB / 382.1 MB, free: 3.703 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001493/0.1915, allocations: 0.7791 MB / 382.9 MB, free: 2.922 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001544/0.193, allocations: 0.5188 MB / 383.4 MB, free: 2.402 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004595/0.1935, allocations: 64 kB / 383.4 MB, free: 2.34 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001243/0.1948, allocations: 0.9662 MB / 384.4 MB, free: 1.371 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006439/0.1954, allocations: 172 kB / 384.6 MB, free: 1.203 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005193/0.2006, allocations: 3.262 MB / 387.8 MB, free: 13.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2007, allocations: 0 / 387.8 MB, free: 13.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.2007, allocations: 0 / 387.8 MB, free: 13.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001425/0.2009, allocations: 0 / 387.8 MB, free: 13.93 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.006279/0.2071, allocations: 2.439 MB / 390.3 MB, free: 11.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.2072, allocations: 12.03 kB / 390.3 MB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01402/0.2212, allocations: 2.121 MB / 392.4 MB, free: 9.293 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003934/0.2252, allocations: 1.126 MB / 393.5 MB, free: 8.121 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002728/0.2256, allocations: 155.8 kB / 393.7 MB, free: 7.969 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001184/0.2268, allocations: 199.8 kB / 393.9 MB, free: 7.773 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3289/0.5557, allocations: 8.65 MB / 402.5 MB, free: 48.16 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000168/0.556, allocations: 45.73 kB / 402.6 MB, free: 48.14 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004531/0.5564, allocations: 104 kB / 402.7 MB, free: 48.14 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005749/0.5622, allocations: 1.669 MB / 404.4 MB, free: 48.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03175/0.594, allocations: 7.236 MB / 411.6 MB, free: 46.58 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04605/0.6401, allocations: 30.21 MB / 441.8 MB, free: 20 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04059/0.6808, allocations: 5.114 MB / 446.9 MB, free: 14.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007595/0.6884, allocations: 3.773 MB / 450.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.6885, allocations: 46.83 kB / 450.7 MB, free: 10.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=111): time 4.729e-06/0.6885, allocations: 0 / 450.7 MB, free: 10.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=111): time 0.0841/0.7726, allocations: 9.639 MB / 460.4 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.109e-05/0.7727, allocations: 195.9 kB / 460.6 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007074/0.7798, allocations: 2.707 MB / 463.3 MB, free: 14.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003183/0.7802, allocations: 41.7 kB / 463.3 MB, free: 13.97 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003791/0.784, allocations: 2.429 MB / 465.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00128/0.7854, allocations: 0.4998 MB / 466.2 MB, free: 11.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008231/0.7863, allocations: 104 kB / 466.3 MB, free: 10.95 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0008692/0.7872, allocations: 0.5419 MB / 466.9 MB, free: 10.4 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006853/0.7941, allocations: 1.584 MB / 468.5 MB, free: 8.812 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01186/0.806, allocations: 5.126 MB / 473.6 MB, free: 1.883 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0107/0.8168, allocations: 2.798 MB / 476.4 MB, free: 15.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001881/0.817, allocations: 40 kB / 476.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.02642/0.8435, allocations: 6.348 MB / 482.8 MB, free: 8.695 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001913/0.8437, allocations: 60 kB / 482.8 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003363/0.8441, allocations: 128.5 kB / 483 MB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003695/0.8445, allocations: 184 kB / 483.1 MB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01376/0.8583, allocations: 1.45 MB / 484.6 MB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004519/0.8588, allocations: 247.6 kB / 484.8 MB, free: 6.637 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008921/0.8677, allocations: 0.759 MB / 485.6 MB, free: 5.875 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001532/0.8693, allocations: 343.9 kB / 485.9 MB, free: 5.539 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (681): * Single equations (assignments): 678 * 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.006039/0.8754, allocations: 1.54 MB / 487.5 MB, free: 3.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001054/0.8765, allocations: 252.7 kB / 487.7 MB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003368/0.8799, allocations: 0.8369 MB / 488.6 MB, free: 2.883 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.918e-05/0.88, allocations: 13.48 kB / 488.6 MB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.039e-05/0.8801, allocations: 4 kB / 488.6 MB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.369e-05/0.8801, allocations: 7.969 kB / 488.6 MB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01524/0.8954, allocations: 3.381 MB / 492 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.878e-05/0.8955, allocations: 0 / 492 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006583/0.9021, allocations: 407.5 kB / 492.4 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.264e-05/0.9022, allocations: 4 kB / 492.4 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003697/0.9026, allocations: 39.97 kB / 492.4 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.875e-05/0.9026, allocations: 7.953 kB / 492.4 MB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/0.9026, allocations: 3.984 kB / 492.4 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008819/0.9115, allocations: 2.881 MB / 495.3 MB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/0.9128, allocations: 305.6 kB / 495.6 MB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001176/0.914, allocations: 35.98 kB / 495.6 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002938/0.9171, allocations: 40.73 kB / 495.7 MB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004397/0.9176, allocations: 63.81 kB / 495.7 MB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002045/0.9178, allocations: 32.77 kB / 495.8 MB, free: 11.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007285/0.9251, allocations: 1.825 MB / 497.6 MB, free: 9.719 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.392e-06/0.9252, allocations: 0 / 497.6 MB, free: 9.719 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006581/0.9318, allocations: 0.8364 MB / 498.4 MB, free: 8.887 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 84 * 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.0006252/0.9324, allocations: 164.7 kB / 498.6 MB, free: 8.723 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009219/0.9417, allocations: 3.583 MB / 0.4904 GB, free: 5.172 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.386e-05/0.9418, allocations: 4.5 kB / 0.4904 GB, free: 5.168 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001731/0.9435, allocations: 0.7141 MB / 0.4911 GB, free: 4.453 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002006/0.9456, allocations: 235.5 kB / 0.4913 GB, free: 4.223 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02104/0.9667, allocations: 8.732 MB / 0.4998 GB, free: 11.44 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004675/0.9714, allocations: 2.449 MB / 0.5022 GB, free: 8.957 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001189/0.9726, allocations: 235.4 kB / 0.5025 GB, free: 8.727 MB / 394.7 MB Notification: Performance of SimCode: time 1.523e-06/0.9727, allocations: 0 / 0.5025 GB, free: 8.727 MB / 394.7 MB Notification: Performance of Templates: time 0.09381/1.066, allocations: 39.51 MB / 0.541 GB, free: 1.203 MB / 426.7 MB