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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 2.044/2.044, allocations: 225.8 MB / 238.8 MB, free: 11.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.867e-05/2.872e-05, allocations: 4 kB / 292.2 MB, free: 8.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08838/0.08843, allocations: 50.41 MB / 342.6 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4235/0.512, allocations: 90 MB / 432.6 MB, free: 4.387 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.5123, allocations: 87.56 kB / 432.6 MB, free: 4.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2044/0.7166, allocations: 53.5 MB / 486.1 MB, free: 2.828 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.528e-06/0.7167, allocations: 0 / 486.1 MB, free: 2.828 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001086/0.7168, allocations: 55.94 kB / 486.2 MB, free: 2.773 MB / 394.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.00578/0.7226, allocations: 2.458 MB / 488.7 MB, free: 260 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.7227, allocations: 8.031 kB / 488.7 MB, free: 252 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01089/0.7336, allocations: 1.958 MB / 490.6 MB, free: 14.28 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00398/0.7376, allocations: 1.415 MB / 492 MB, free: 12.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002796/0.7379, allocations: 226 kB / 492.3 MB, free: 12.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001113/0.739, allocations: 311.8 kB / 492.6 MB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02439/0.7634, allocations: 8.925 MB / 0.4897 GB, free: 2.426 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001753/0.7637, allocations: 59.47 kB / 0.4898 GB, free: 2.367 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005874/0.7643, allocations: 155.8 kB / 0.4899 GB, free: 2.215 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001685/0.766, allocations: 0.8047 MB / 0.4907 GB, free: 1.406 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02186/0.7878, allocations: 6.995 MB / 0.4976 GB, free: 10.4 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3076/1.096, allocations: 38.38 MB / 0.535 GB, free: 92.59 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02523/1.121, allocations: 5.332 MB / 0.5402 GB, free: 91.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00186/1.123, allocations: 0.9374 MB / 0.5412 GB, free: 91.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006194/1.129, allocations: 3.695 MB / 0.5448 GB, free: 90.01 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/1.129, allocations: 51.27 kB / 0.5448 GB, free: 89.97 MB / 442.7 MB Notification: Performance of pre-optimization done (n=111): time 4.967e-06/1.129, allocations: 3.172 kB / 0.5448 GB, free: 89.97 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.04536/1.174, allocations: 8.201 MB / 0.5528 GB, free: 89.79 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/1.174, allocations: 187.7 kB / 0.553 GB, free: 89.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004264/1.179, allocations: 2.69 MB / 0.5556 GB, free: 89.25 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001418/1.179, allocations: 42.22 kB / 0.5557 GB, free: 89.22 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001309/1.18, allocations: 2.421 MB / 0.558 GB, free: 87.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004331/1.181, allocations: 0.4964 MB / 0.5585 GB, free: 87.64 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002689/1.181, allocations: 103.6 kB / 0.5586 GB, free: 87.64 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003169/1.181, allocations: 0.538 MB / 0.5591 GB, free: 87.33 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002638/1.184, allocations: 1.462 MB / 0.5606 GB, free: 87.31 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003869/1.188, allocations: 4.967 MB / 0.5654 GB, free: 82.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004319/1.192, allocations: 2.727 MB / 0.5681 GB, free: 82.63 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.286e-05/1.192, allocations: 37 kB / 0.5681 GB, free: 82.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01131/1.204, allocations: 5.793 MB / 0.5738 GB, free: 82.12 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.422e-05/1.204, allocations: 61.78 kB / 0.5738 GB, free: 82.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001259/1.204, allocations: 133.8 kB / 0.574 GB, free: 82.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001974/1.204, allocations: 184.3 kB / 0.5741 GB, free: 82.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006458/1.211, allocations: 1.52 MB / 0.5756 GB, free: 81.99 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002115/1.211, allocations: 247.6 kB / 0.5759 GB, free: 81.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005055/1.216, allocations: 0.7534 MB / 0.5766 GB, free: 81.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008342/1.217, allocations: 344.9 kB / 0.5769 GB, free: 81.55 MB / 442.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.0008317/1.218, allocations: 0.5258 MB / 0.5774 GB, free: 81.24 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004951/1.218, allocations: 259.6 kB / 0.5777 GB, free: 81.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001492/1.22, allocations: 0.7424 MB / 0.5784 GB, free: 80.86 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.1e-05/1.22, allocations: 14.06 kB / 0.5784 GB, free: 80.86 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/1.22, allocations: 3.938 kB / 0.5784 GB, free: 80.86 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/1.22, allocations: 3.141 kB / 0.5784 GB, free: 80.86 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007347/1.227, allocations: 3.215 MB / 0.5816 GB, free: 79.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/1.227, allocations: 4.484 kB / 0.5816 GB, free: 79.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00342/1.231, allocations: 477.7 kB / 0.582 GB, free: 79.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.436e-05/1.231, allocations: 3.969 kB / 0.582 GB, free: 79.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001303/1.231, allocations: 36.06 kB / 0.5821 GB, free: 79.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.967e-06/1.231, allocations: 3.344 kB / 0.5821 GB, free: 79.61 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.973e-06/1.231, allocations: 7.438 kB / 0.5821 GB, free: 79.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003653/1.234, allocations: 2.634 MB / 0.5847 GB, free: 78.22 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000629/1.235, allocations: 320.5 kB / 0.585 GB, free: 77.96 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003879/1.236, allocations: 29.25 kB / 0.585 GB, free: 77.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/1.237, allocations: 53.2 kB / 0.585 GB, free: 77.93 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/1.237, allocations: 54.88 kB / 0.5851 GB, free: 77.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000111/1.237, allocations: 36.14 kB / 0.5851 GB, free: 77.92 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003131/1.24, allocations: 1.805 MB / 0.5869 GB, free: 77.26 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.18e-07/1.24, allocations: 4 kB / 0.5869 GB, free: 77.26 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00501/1.245, allocations: 0.8442 MB / 0.5877 GB, free: 77.06 MB / 442.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.0004221/1.246, allocations: 176.9 kB / 0.5879 GB, free: 76.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005972/1.252, allocations: 3.193 MB / 0.591 GB, free: 75.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.836e-06/1.252, allocations: 384 / 0.591 GB, free: 75.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009923/1.253, allocations: 0.616 MB / 0.5916 GB, free: 74.94 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001488/1.254, allocations: 239.7 kB / 0.5918 GB, free: 74.73 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01198/1.266, allocations: 6.224 MB / 0.5979 GB, free: 69.32 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003264/1.27, allocations: 2.457 MB / 0.6003 GB, free: 67.39 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005052/1.275, allocations: 1.636 MB / 0.6019 GB, free: 66.37 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000612/1.275, allocations: 186.7 kB / 0.6021 GB, free: 66.19 MB / 442.7 MB Notification: Performance of SimCode: time 1.749e-06/1.275, allocations: 0 / 0.6021 GB, free: 66.19 MB / 442.7 MB Notification: Performance of Templates: time 0.05746/1.333, allocations: 20.03 MB / 0.6217 GB, free: 48.27 MB / 442.7 MB