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_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 1.711/1.711, allocations: 194.9 MB / 208 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.969e-05/2.985e-05, allocations: 4 kB / 255.4 MB, free: 2.684 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07737/0.07742, allocations: 44.5 MB / 299.9 MB, free: 6.113 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.345/0.4224, allocations: 80.66 MB / 380.5 MB, free: 21.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003595/0.4229, allocations: 82.08 kB / 380.6 MB, free: 21.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1892/0.6121, allocations: 51.25 MB / 431.9 MB, free: 4.668 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.39e-06/0.6121, allocations: 0 / 431.9 MB, free: 4.668 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.749e-05/0.6122, allocations: 51.19 kB / 431.9 MB, free: 4.668 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.005276/0.6175, allocations: 2.407 MB / 434.3 MB, free: 3.109 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.6176, allocations: 10.31 kB / 434.3 MB, free: 3.109 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009817/0.6274, allocations: 1.954 MB / 436.3 MB, free: 1.348 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003415/0.6309, allocations: 1.386 MB / 437.7 MB, free: 212 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001965/0.6311, allocations: 226.6 kB / 437.9 MB, free: 60 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001065/0.6322, allocations: 301.6 kB / 438.2 MB, free: 15.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02354/0.6557, allocations: 8.795 MB / 447 MB, free: 7.977 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001753/0.6559, allocations: 55.47 kB / 447 MB, free: 7.922 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005657/0.6565, allocations: 150.4 kB / 447.2 MB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001683/0.6582, allocations: 0.793 MB / 448 MB, free: 7.051 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02145/0.6797, allocations: 6.896 MB / 454.9 MB, free: 156 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05363/0.7334, allocations: 38.01 MB / 492.9 MB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02498/0.7584, allocations: 5.214 MB / 498.1 MB, free: 3.465 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002016/0.7605, allocations: 0.9039 MB / 499 MB, free: 2.539 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007079/0.7676, allocations: 3.346 MB / 0.4906 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.887e-05/0.7676, allocations: 46.69 kB / 0.4906 GB, free: 15.05 MB / 394.7 MB Notification: Performance of pre-optimization done (n=104): time 4.734e-06/0.7677, allocations: 0 / 0.4906 GB, free: 15.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=104): time 0.04452/0.8122, allocations: 8.063 MB / 0.4985 GB, free: 6.965 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001306/0.8123, allocations: 191.9 kB / 0.4987 GB, free: 6.734 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005873/0.8182, allocations: 2.661 MB / 0.5013 GB, free: 4.055 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001921/0.8185, allocations: 41.64 kB / 0.5013 GB, free: 4.008 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002617/0.8211, allocations: 2.398 MB / 0.5037 GB, free: 1.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007586/0.8219, allocations: 482.3 kB / 0.5041 GB, free: 1.094 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000428/0.8223, allocations: 112 kB / 0.5042 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0006334/0.823, allocations: 0.5808 MB / 0.5048 GB, free: 404 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.298/1.121, allocations: 1.443 MB / 0.5062 GB, free: 104.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00828/1.129, allocations: 4.937 MB / 0.511 GB, free: 99.71 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009478/1.139, allocations: 2.675 MB / 0.5136 GB, free: 99.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002953/1.139, allocations: 43.56 kB / 0.5137 GB, free: 99.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.02405/1.163, allocations: 5.742 MB / 0.5193 GB, free: 99.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002067/1.164, allocations: 63.25 kB / 0.5193 GB, free: 99.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003254/1.164, allocations: 128.5 kB / 0.5195 GB, free: 99.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002592/1.164, allocations: 181.1 kB / 0.5196 GB, free: 99.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007187/1.171, allocations: 1.505 MB / 0.5211 GB, free: 99.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002723/1.172, allocations: 243.7 kB / 0.5213 GB, free: 99.08 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005342/1.177, allocations: 0.7552 MB / 0.5221 GB, free: 99.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001056/1.178, allocations: 342.2 kB / 0.5224 GB, free: 99.07 MB / 394.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.001056/1.179, allocations: 0.5157 MB / 0.5229 GB, free: 98.85 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005282/1.18, allocations: 247.8 kB / 0.5231 GB, free: 98.74 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/1.181, allocations: 0.7002 MB / 0.5238 GB, free: 98.66 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.071e-05/1.181, allocations: 14.59 kB / 0.5238 GB, free: 98.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/1.181, allocations: 7.281 kB / 0.5239 GB, free: 98.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/1.181, allocations: 3.938 kB / 0.5239 GB, free: 98.66 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004994/1.186, allocations: 2.268 MB / 0.5261 GB, free: 98.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/1.187, allocations: 3.828 kB / 0.5261 GB, free: 98.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003678/1.19, allocations: 468.7 kB / 0.5265 GB, free: 98.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.96e-05/1.19, allocations: 6.906 kB / 0.5265 GB, free: 98.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001812/1.19, allocations: 33.22 kB / 0.5266 GB, free: 98.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.379e-06/1.19, allocations: 5.812 kB / 0.5266 GB, free: 98.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.36e-06/1.19, allocations: 3.953 kB / 0.5266 GB, free: 98.4 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004333/1.195, allocations: 2.572 MB / 0.5291 GB, free: 97.56 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/1.196, allocations: 304.8 kB / 0.5294 GB, free: 97.33 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/1.197, allocations: 29.72 kB / 0.5294 GB, free: 97.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002816/1.2, allocations: 51.19 kB / 0.5295 GB, free: 97.33 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002777/1.2, allocations: 58.3 kB / 0.5295 GB, free: 97.33 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001822/1.2, allocations: 28.77 kB / 0.5295 GB, free: 97.33 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.006013/1.207, allocations: 1.788 MB / 0.5313 GB, free: 97.17 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.637e-06/1.207, allocations: 0 / 0.5313 GB, free: 97.17 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.009722/1.216, allocations: 0.8221 MB / 0.5321 GB, free: 97.11 MB / 394.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.0006831/1.217, allocations: 166.5 kB / 0.5322 GB, free: 97.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01074/1.228, allocations: 3.153 MB / 0.5353 GB, free: 96.36 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.215e-05/1.228, allocations: 0 / 0.5353 GB, free: 96.36 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001843/1.23, allocations: 0.586 MB / 0.5359 GB, free: 96.16 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003213/1.233, allocations: 238.7 kB / 0.5361 GB, free: 96.04 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02189/1.255, allocations: 6.109 MB / 0.5421 GB, free: 93.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0056/1.261, allocations: 2.423 MB / 0.5445 GB, free: 92.32 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.009567/1.27, allocations: 1.634 MB / 0.546 GB, free: 92.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/1.271, allocations: 179 kB / 0.5462 GB, free: 92.16 MB / 394.7 MB Notification: Performance of SimCode: time 2.719e-06/1.272, allocations: 0 / 0.5462 GB, free: 92.16 MB / 394.7 MB Notification: Performance of Templates: time 0.05823/1.33, allocations: 19.49 MB / 0.5653 GB, free: 83.48 MB / 394.7 MB