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 2.009/2.009, allocations: 194.9 MB / 211.2 MB, free: 8.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.145e-05/3.139e-05, allocations: 7.906 kB / 258.8 MB, free: 8.508 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3072, allocations: 44.5 MB / 303.3 MB, free: 12.72 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.0357/0.343, allocations: 22.72 MB / 326 MB, free: 6.902 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01479/0.3578, allocations: 4.977 MB / 331 MB, free: 1.914 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004993/0.3629, allocations: 111.8 kB / 331.1 MB, free: 1.805 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004237/0.3671, allocations: 1.167 MB / 332.3 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01209/0.3793, allocations: 3.058 MB / 335.3 MB, free: 13.57 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001806/0.3811, allocations: 199.5 kB / 335.5 MB, free: 13.37 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002824/0.384, allocations: 0.8774 MB / 336.4 MB, free: 12.49 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003546/0.3876, allocations: 1.6 MB / 338 MB, free: 10.87 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009727/0.3886, allocations: 462.8 kB / 338.5 MB, free: 10.41 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001637/0.3903, allocations: 0.7597 MB / 339.2 MB, free: 9.652 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001657/0.392, allocations: 0.4993 MB / 339.7 MB, free: 9.152 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006226/0.3927, allocations: 68 kB / 339.8 MB, free: 9.086 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001529/0.3942, allocations: 0.9428 MB / 340.7 MB, free: 8.141 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007907/0.3951, allocations: 168 kB / 340.9 MB, free: 7.977 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005309/0.4004, allocations: 3.224 MB / 344.1 MB, free: 4.746 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.4005, allocations: 0 / 344.1 MB, free: 4.746 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.058e-06/0.4005, allocations: 0 / 344.1 MB, free: 4.746 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001684/0.4007, allocations: 0 / 344.1 MB, free: 4.746 MB / 282.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.00631/0.407, allocations: 2.395 MB / 346.5 MB, free: 2.293 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.4071, allocations: 8.031 kB / 346.5 MB, free: 2.285 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01419/0.4213, allocations: 2.106 MB / 348.6 MB, free: 172 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003404/0.4247, allocations: 1.114 MB / 349.7 MB, free: 15.01 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.425, allocations: 147.7 kB / 349.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009856/0.426, allocations: 199.8 kB / 350.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03222/0.4582, allocations: 8.52 MB / 358.6 MB, free: 5.551 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001735/0.4585, allocations: 47.59 kB / 358.6 MB, free: 5.504 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008291/0.4593, allocations: 99.84 kB / 358.7 MB, free: 5.406 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005468/0.4648, allocations: 1.647 MB / 360.4 MB, free: 3.758 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0316/0.4964, allocations: 7.123 MB / 367.5 MB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05519/0.5517, allocations: 29.86 MB / 397.4 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04363/0.5954, allocations: 4.969 MB / 402.3 MB, free: 8.723 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008553/0.604, allocations: 3.414 MB / 405.7 MB, free: 5.219 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.031e-05/0.6041, allocations: 54.48 kB / 405.8 MB, free: 5.156 MB / 346.7 MB Notification: Performance of pre-optimization done (n=104): time 5.45e-06/0.6042, allocations: 0 / 405.8 MB, free: 5.156 MB / 346.7 MB Notification: Performance of matching and sorting (n=104): time 0.08862/0.6928, allocations: 9.481 MB / 415.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001548/0.693, allocations: 191.9 kB / 415.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006896/0.6999, allocations: 2.676 MB / 418.1 MB, free: 8.609 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002791/0.7002, allocations: 45.69 kB / 418.2 MB, free: 8.559 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002948/0.7032, allocations: 2.405 MB / 420.6 MB, free: 6.117 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009862/0.7042, allocations: 478.4 kB / 421.1 MB, free: 5.645 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005258/0.7048, allocations: 104 kB / 421.2 MB, free: 5.543 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004987/0.7053, allocations: 0.5301 MB / 421.7 MB, free: 5.004 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004619/0.7099, allocations: 1.576 MB / 423.3 MB, free: 3.422 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2694/0.9794, allocations: 5.089 MB / 428.4 MB, free: 104.4 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007542/0.987, allocations: 2.784 MB / 431.1 MB, free: 103.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002545/0.9873, allocations: 36.38 kB / 431.2 MB, free: 103.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01634/1.004, allocations: 6.301 MB / 437.5 MB, free: 101.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001327/1.004, allocations: 64.2 kB / 437.5 MB, free: 101.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002102/1.004, allocations: 129.7 kB / 437.7 MB, free: 101.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002016/1.004, allocations: 182.8 kB / 437.8 MB, free: 101.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009603/1.014, allocations: 1.444 MB / 439.3 MB, free: 101.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002754/1.014, allocations: 247.7 kB / 439.5 MB, free: 101.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005553/1.02, allocations: 0.7404 MB / 440.3 MB, free: 101 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001143/1.021, allocations: 336.2 kB / 440.6 MB, free: 100.9 MB / 362.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.003832/1.025, allocations: 1.527 MB / 442.1 MB, free: 99.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006039/1.025, allocations: 249.2 kB / 442.4 MB, free: 99.42 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001884/1.027, allocations: 0.8045 MB / 443.2 MB, free: 98.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.333e-05/1.027, allocations: 12 kB / 443.2 MB, free: 98.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.258e-05/1.027, allocations: 4.875 kB / 443.2 MB, free: 98.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-05/1.027, allocations: 3.797 kB / 443.2 MB, free: 98.7 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00553/1.033, allocations: 2.356 MB / 445.5 MB, free: 96.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.248e-05/1.033, allocations: 0 / 445.5 MB, free: 96.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004459/1.038, allocations: 399.8 kB / 445.9 MB, free: 96.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-05/1.038, allocations: 4 kB / 445.9 MB, free: 96.49 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002209/1.038, allocations: 43.59 kB / 446 MB, free: 96.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.438e-06/1.038, allocations: 4 kB / 446 MB, free: 96.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/1.038, allocations: 4 kB / 446 MB, free: 96.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004501/1.042, allocations: 2.83 MB / 448.8 MB, free: 93.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006979/1.043, allocations: 297.5 kB / 449.1 MB, free: 93.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005266/1.044, allocations: 27.94 kB / 449.1 MB, free: 93.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001694/1.045, allocations: 46.38 kB / 449.2 MB, free: 93.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/1.046, allocations: 66.05 kB / 449.3 MB, free: 93.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/1.046, allocations: 34.67 kB / 449.3 MB, free: 93.38 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003788/1.05, allocations: 1.811 MB / 451.1 MB, free: 91.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.31e-07/1.05, allocations: 0 / 451.1 MB, free: 91.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005198/1.055, allocations: 0.8115 MB / 451.9 MB, free: 90.77 MB / 362.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.0004965/1.055, allocations: 162.5 kB / 452.1 MB, free: 90.61 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00775/1.063, allocations: 3.539 MB / 455.6 MB, free: 87.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.789e-06/1.063, allocations: 1.203 kB / 455.6 MB, free: 87.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001358/1.065, allocations: 0.6934 MB / 456.3 MB, free: 86.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001816/1.066, allocations: 234.6 kB / 456.5 MB, free: 86.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01799/1.084, allocations: 8.595 MB / 465.1 MB, free: 77.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00375/1.088, allocations: 2.421 MB / 467.5 MB, free: 75.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001085/1.089, allocations: 231.4 kB / 467.8 MB, free: 74.85 MB / 362.7 MB Notification: Performance of SimCode: time 1.162e-06/1.089, allocations: 0 / 467.8 MB, free: 74.85 MB / 362.7 MB Notification: Performance of Templates: time 0.07476/1.164, allocations: 38.93 MB / 0.4948 GB, free: 35.89 MB / 362.7 MB