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_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 1.73/1.73, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.286e-05/4.312e-05, allocations: 4 kB / 225 MB, free: 2.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2121/0.2121, allocations: 38.76 MB / 263.8 MB, free: 9.824 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1142/0.3264, allocations: 75.23 MB / 339 MB, free: 14.48 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.3267, allocations: 83.95 kB / 339.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3856/0.7123, allocations: 51.24 MB / 390.3 MB, free: 81.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.888e-06/0.7123, allocations: 3.906 kB / 390.3 MB, free: 81.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001002/0.7124, allocations: 51.16 kB / 390.4 MB, free: 81.11 MB / 314.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.005834/0.7183, allocations: 2.411 MB / 392.8 MB, free: 79.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.7183, allocations: 7.781 kB / 392.8 MB, free: 79.61 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01006/0.7284, allocations: 1.949 MB / 394.8 MB, free: 77.67 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00352/0.732, allocations: 1.401 MB / 396.2 MB, free: 76.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002178/0.7322, allocations: 221.2 kB / 396.4 MB, free: 76.03 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00115/0.7334, allocations: 298.4 kB / 396.7 MB, free: 75.76 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02194/0.7553, allocations: 8.796 MB / 405.5 MB, free: 66.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000151/0.7555, allocations: 63.22 kB / 405.5 MB, free: 66.03 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005996/0.7562, allocations: 150.6 kB / 405.7 MB, free: 65.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001403/0.7576, allocations: 0.789 MB / 406.5 MB, free: 65.11 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0187/0.7763, allocations: 6.888 MB / 413.3 MB, free: 58.22 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03852/0.8149, allocations: 38.03 MB / 451.4 MB, free: 19.06 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02328/0.8382, allocations: 5.205 MB / 456.6 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/0.8399, allocations: 0.908 MB / 457.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005773/0.8457, allocations: 3.356 MB / 460.8 MB, free: 9.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.8457, allocations: 38.56 kB / 460.9 MB, free: 9.273 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 4.772e-06/0.8457, allocations: 0 / 460.9 MB, free: 9.273 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.0418/0.8876, allocations: 8.064 MB / 468.9 MB, free: 1.195 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/0.8876, allocations: 191.9 kB / 469.1 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006374/0.894, allocations: 2.655 MB / 471.8 MB, free: 14.29 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001965/0.8943, allocations: 41.7 kB / 471.8 MB, free: 14.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002593/0.8969, allocations: 2.403 MB / 474.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007938/0.8977, allocations: 481.8 kB / 474.7 MB, free: 11.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004795/0.8982, allocations: 104 kB / 474.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0006444/0.8989, allocations: 0.5847 MB / 475.4 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003442/0.9023, allocations: 1.44 MB / 476.8 MB, free: 9.234 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006851/0.9092, allocations: 4.937 MB / 481.8 MB, free: 2.508 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005694/0.915, allocations: 2.682 MB / 484.4 MB, free: 15.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001044/0.9151, allocations: 40 kB / 484.5 MB, free: 15.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.0148/0.9299, allocations: 5.744 MB / 490.2 MB, free: 10.04 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001115/0.9301, allocations: 60.09 kB / 490.3 MB, free: 9.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001708/0.9303, allocations: 127.9 kB / 490.4 MB, free: 9.855 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002608/0.9305, allocations: 184 kB / 490.6 MB, free: 9.676 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00713/0.9377, allocations: 1.509 MB / 492.1 MB, free: 8.164 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002819/0.938, allocations: 239.7 kB / 492.3 MB, free: 7.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005167/0.9432, allocations: 0.7537 MB / 493.1 MB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008676/0.9441, allocations: 344 kB / 493.4 MB, free: 6.836 MB / 346.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.000931/0.945, allocations: 0.5126 MB / 493.9 MB, free: 6.312 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005538/0.9456, allocations: 252.8 kB / 494.2 MB, free: 6.062 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0016/0.9472, allocations: 0.7008 MB / 494.9 MB, free: 5.348 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.408e-05/0.9472, allocations: 16 kB / 494.9 MB, free: 5.332 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.881e-06/0.9473, allocations: 0 / 494.9 MB, free: 5.332 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/0.9473, allocations: 3.984 kB / 494.9 MB, free: 5.328 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005133/0.9524, allocations: 2.27 MB / 497.2 MB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.594e-06/0.9525, allocations: 0 / 497.2 MB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003464/0.9559, allocations: 467.4 kB / 497.6 MB, free: 2.566 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-05/0.956, allocations: 4 kB / 497.6 MB, free: 2.562 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000138/0.9561, allocations: 43.41 kB / 497.7 MB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-05/0.9562, allocations: 11.95 kB / 497.7 MB, free: 2.512 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.777e-06/0.9562, allocations: 0 / 497.7 MB, free: 2.512 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1996/1.156, allocations: 2.567 MB / 0.4885 GB, free: 98.67 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007259/1.157, allocations: 301.8 kB / 0.4888 GB, free: 98.57 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004475/1.157, allocations: 28.67 kB / 0.4888 GB, free: 98.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/1.158, allocations: 49.48 kB / 0.4889 GB, free: 98.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/1.159, allocations: 54.22 kB / 0.4889 GB, free: 98.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001338/1.159, allocations: 35.48 kB / 0.489 GB, free: 98.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003705/1.162, allocations: 1.793 MB / 0.4907 GB, free: 98.41 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.032e-06/1.163, allocations: 0 / 0.4907 GB, free: 98.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005156/1.168, allocations: 0.821 MB / 0.4915 GB, free: 98.41 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.0004022/1.168, allocations: 168.1 kB / 0.4917 GB, free: 98.33 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006355/1.174, allocations: 3.141 MB / 0.4948 GB, free: 98.26 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/1.175, allocations: 0.5625 kB / 0.4948 GB, free: 98.26 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/1.176, allocations: 0.5949 MB / 0.4953 GB, free: 98.25 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001544/1.177, allocations: 226.6 kB / 0.4956 GB, free: 98.23 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01263/1.19, allocations: 6.133 MB / 0.5015 GB, free: 96.46 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00311/1.193, allocations: 2.41 MB / 0.5039 GB, free: 95.71 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.004969/1.198, allocations: 1.63 MB / 0.5055 GB, free: 95.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006538/1.199, allocations: 184.9 kB / 0.5057 GB, free: 95.56 MB / 346.7 MB Notification: Performance of SimCode: time 1.861e-06/1.199, allocations: 0 / 0.5057 GB, free: 95.56 MB / 346.7 MB Notification: Performance of Templates: time 0.0556/1.254, allocations: 19.49 MB / 0.5247 GB, free: 85.94 MB / 346.7 MB