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.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 1.867/1.867, allocations: 205.8 MB / 218.9 MB, free: 9.348 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.183e-05/3.189e-05, allocations: 4 kB / 269.4 MB, free: 6.395 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08481/0.08486, allocations: 47.58 MB / 316.9 MB, free: 6.734 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4082/0.4932, allocations: 88.36 MB / 405.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.4935, allocations: 86.64 kB / 405.4 MB, free: 15.89 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2596/0.7531, allocations: 52.64 MB / 458 MB, free: 2.125 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.446e-06/0.7531, allocations: 0 / 458 MB, free: 2.125 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001278/0.7533, allocations: 56 kB / 458.1 MB, free: 2.07 MB / 362.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.0066/0.7599, allocations: 2.454 MB / 460.5 MB, free: 15.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.76, allocations: 8.031 kB / 460.5 MB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01107/0.771, allocations: 1.961 MB / 462.5 MB, free: 13.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004089/0.7752, allocations: 1.411 MB / 463.9 MB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002915/0.7755, allocations: 230 kB / 464.1 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001191/0.7767, allocations: 307.8 kB / 464.4 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02468/0.8014, allocations: 8.921 MB / 473.4 MB, free: 1.734 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000173/0.8016, allocations: 63.47 kB / 473.4 MB, free: 1.672 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005773/0.8022, allocations: 151.9 kB / 473.6 MB, free: 1.523 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001761/0.804, allocations: 0.8124 MB / 474.4 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02205/0.8261, allocations: 6.995 MB / 481.4 MB, free: 9.703 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05303/0.8791, allocations: 38.37 MB / 0.5076 GB, free: 2.055 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2461/1.125, allocations: 5.336 MB / 0.5128 GB, free: 121.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001907/1.127, allocations: 0.9367 MB / 0.5137 GB, free: 121.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00628/1.134, allocations: 3.704 MB / 0.5173 GB, free: 120.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/1.134, allocations: 49.14 kB / 0.5174 GB, free: 120.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=111): time 5.238e-06/1.134, allocations: 0 / 0.5174 GB, free: 120.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=111): time 0.04577/1.179, allocations: 8.195 MB / 0.5254 GB, free: 120 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/1.179, allocations: 198.5 kB / 0.5255 GB, free: 119.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004501/1.184, allocations: 2.685 MB / 0.5282 GB, free: 119.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001663/1.184, allocations: 43.3 kB / 0.5282 GB, free: 119.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001479/1.186, allocations: 2.425 MB / 0.5306 GB, free: 118.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004976/1.186, allocations: 497.6 kB / 0.5311 GB, free: 117.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002794/1.186, allocations: 111.2 kB / 0.5312 GB, free: 117.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000316/1.187, allocations: 0.524 MB / 0.5317 GB, free: 117.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002706/1.19, allocations: 1.466 MB / 0.5331 GB, free: 117.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004328/1.194, allocations: 4.974 MB / 0.538 GB, free: 112.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004629/1.199, allocations: 2.724 MB / 0.5406 GB, free: 112.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.562e-05/1.199, allocations: 37.91 kB / 0.5407 GB, free: 112.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01247/1.211, allocations: 5.794 MB / 0.5463 GB, free: 112.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.486e-05/1.211, allocations: 57.72 kB / 0.5464 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001314/1.211, allocations: 128.6 kB / 0.5465 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002046/1.212, allocations: 189.7 kB / 0.5467 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007117/1.219, allocations: 1.521 MB / 0.5482 GB, free: 112 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000213/1.219, allocations: 242.6 kB / 0.5484 GB, free: 112 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004985/1.224, allocations: 0.752 MB / 0.5491 GB, free: 111.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008382/1.225, allocations: 342.9 kB / 0.5495 GB, free: 111.6 MB / 426.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.0008455/1.226, allocations: 0.5368 MB / 0.55 GB, free: 111.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004934/1.226, allocations: 251.8 kB / 0.5502 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001465/1.228, allocations: 0.7374 MB / 0.5509 GB, free: 111 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.888e-05/1.228, allocations: 17.41 kB / 0.551 GB, free: 111 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.534e-06/1.228, allocations: 0 / 0.551 GB, free: 111 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/1.228, allocations: 6.734 kB / 0.551 GB, free: 111 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007174/1.235, allocations: 3.228 MB / 0.5541 GB, free: 109.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.529e-05/1.235, allocations: 0.875 kB / 0.5541 GB, free: 109.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003475/1.239, allocations: 476.3 kB / 0.5546 GB, free: 109.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.772e-05/1.239, allocations: 3.875 kB / 0.5546 GB, free: 109.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001467/1.239, allocations: 33.11 kB / 0.5546 GB, free: 109.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.741e-06/1.239, allocations: 11.27 kB / 0.5546 GB, free: 109.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.733e-06/1.239, allocations: 7.875 kB / 0.5546 GB, free: 109.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004369/1.243, allocations: 2.648 MB / 0.5572 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006532/1.244, allocations: 308.3 kB / 0.5575 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003671/1.244, allocations: 31.19 kB / 0.5575 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/1.246, allocations: 55.06 kB / 0.5576 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/1.246, allocations: 48.36 kB / 0.5576 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001121/1.246, allocations: 40.39 kB / 0.5577 GB, free: 108.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003398/1.249, allocations: 1.805 MB / 0.5594 GB, free: 107.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.85e-07/1.249, allocations: 0 / 0.5594 GB, free: 107.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00526/1.255, allocations: 0.8394 MB / 0.5602 GB, free: 107.2 MB / 426.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.0004403/1.255, allocations: 182.8 kB / 0.5604 GB, free: 107.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006275/1.261, allocations: 3.191 MB / 0.5635 GB, free: 104.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.349e-06/1.262, allocations: 0.625 kB / 0.5635 GB, free: 104.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001072/1.263, allocations: 0.6229 MB / 0.5641 GB, free: 103.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001578/1.264, allocations: 244.8 kB / 0.5644 GB, free: 103.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01273/1.277, allocations: 6.204 MB / 0.5704 GB, free: 98.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003463/1.28, allocations: 2.447 MB / 0.5728 GB, free: 96.38 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00539/1.286, allocations: 1.64 MB / 0.5744 GB, free: 95.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007391/1.287, allocations: 193.7 kB / 0.5746 GB, free: 95.17 MB / 426.7 MB Notification: Performance of SimCode: time 1.686e-06/1.287, allocations: 0 / 0.5746 GB, free: 95.17 MB / 426.7 MB Notification: Performance of Templates: time 0.06413/1.351, allocations: 19.96 MB / 0.5941 GB, free: 77.9 MB / 426.7 MB