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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 1.986/1.986, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.863e-05/2.872e-05, allocations: 4 kB / 292.7 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0906/0.09065, allocations: 50.41 MB / 343.1 MB, free: 5.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3646/0.4553, allocations: 90 MB / 433.1 MB, free: 4.348 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.4556, allocations: 88.38 kB / 433.2 MB, free: 4.301 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2067/0.6623, allocations: 53.49 MB / 486.7 MB, free: 2.824 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.481e-06/0.6623, allocations: 3.938 kB / 486.7 MB, free: 2.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001175/0.6625, allocations: 52 kB / 486.7 MB, free: 2.77 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.005858/0.6683, allocations: 2.462 MB / 489.2 MB, free: 252 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.6684, allocations: 8.031 kB / 489.2 MB, free: 244 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01097/0.6794, allocations: 1.954 MB / 491.1 MB, free: 14.28 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004051/0.6835, allocations: 1.415 MB / 492.6 MB, free: 12.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002632/0.6838, allocations: 230 kB / 492.8 MB, free: 12.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008843/0.6847, allocations: 307.8 kB / 493.1 MB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02407/0.7088, allocations: 8.925 MB / 0.4902 GB, free: 2.422 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001733/0.709, allocations: 59.45 kB / 0.4903 GB, free: 2.363 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005979/0.7096, allocations: 151.9 kB / 0.4904 GB, free: 2.215 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002093/0.7117, allocations: 0.8047 MB / 0.4912 GB, free: 1.406 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02181/0.7335, allocations: 6.999 MB / 0.4981 GB, free: 10.39 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3307/1.064, allocations: 38.38 MB / 0.5355 GB, free: 92.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02573/1.09, allocations: 5.33 MB / 0.5407 GB, free: 91.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001835/1.092, allocations: 0.9407 MB / 0.5417 GB, free: 91.76 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006277/1.098, allocations: 3.696 MB / 0.5453 GB, free: 89.97 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.44e-05/1.098, allocations: 58.06 kB / 0.5453 GB, free: 89.93 MB / 442.7 MB Notification: Performance of pre-optimization done (n=111): time 5.617e-06/1.098, allocations: 0 / 0.5453 GB, free: 89.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.04627/1.145, allocations: 8.199 MB / 0.5533 GB, free: 89.75 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/1.145, allocations: 194.9 kB / 0.5535 GB, free: 89.53 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004361/1.149, allocations: 2.684 MB / 0.5561 GB, free: 89.21 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001495/1.149, allocations: 43.22 kB / 0.5562 GB, free: 89.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001358/1.151, allocations: 2.415 MB / 0.5585 GB, free: 87.86 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000451/1.151, allocations: 0.5003 MB / 0.559 GB, free: 87.6 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002707/1.151, allocations: 111.3 kB / 0.5591 GB, free: 87.6 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003294/1.152, allocations: 0.5315 MB / 0.5597 GB, free: 87.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002599/1.154, allocations: 1.457 MB / 0.5611 GB, free: 87.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004036/1.158, allocations: 4.975 MB / 0.5659 GB, free: 82.65 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004474/1.163, allocations: 2.714 MB / 0.5686 GB, free: 82.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.191e-05/1.163, allocations: 42.03 kB / 0.5686 GB, free: 82.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01291/1.176, allocations: 5.794 MB / 0.5743 GB, free: 82.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/1.176, allocations: 60.81 kB / 0.5743 GB, free: 82.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001304/1.176, allocations: 129.5 kB / 0.5745 GB, free: 82.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002026/1.176, allocations: 184.5 kB / 0.5746 GB, free: 82.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006627/1.183, allocations: 1.519 MB / 0.5761 GB, free: 81.99 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002054/1.183, allocations: 255.8 kB / 0.5764 GB, free: 81.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004888/1.188, allocations: 0.7556 MB / 0.5771 GB, free: 81.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007634/1.189, allocations: 344.5 kB / 0.5774 GB, free: 81.54 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.0008055/1.19, allocations: 0.5257 MB / 0.5779 GB, free: 81.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004697/1.19, allocations: 253.1 kB / 0.5782 GB, free: 81.09 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/1.192, allocations: 0.7504 MB / 0.5789 GB, free: 80.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.092e-05/1.192, allocations: 15.19 kB / 0.5789 GB, free: 80.88 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/1.192, allocations: 0 / 0.5789 GB, free: 80.88 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/1.192, allocations: 10.23 kB / 0.5789 GB, free: 80.88 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007193/1.199, allocations: 3.212 MB / 0.5821 GB, free: 79.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/1.199, allocations: 0 / 0.5821 GB, free: 79.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003408/1.203, allocations: 480.4 kB / 0.5825 GB, free: 79.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.449e-05/1.203, allocations: 2.719 kB / 0.5825 GB, free: 79.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001358/1.203, allocations: 35.05 kB / 0.5826 GB, free: 79.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.059e-05/1.203, allocations: 9.031 kB / 0.5826 GB, free: 79.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.978e-06/1.203, allocations: 0 / 0.5826 GB, free: 79.62 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003738/1.207, allocations: 2.639 MB / 0.5852 GB, free: 78.24 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005595/1.207, allocations: 313.8 kB / 0.5855 GB, free: 77.98 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003811/1.208, allocations: 33.59 kB / 0.5855 GB, free: 77.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00138/1.209, allocations: 48.28 kB / 0.5855 GB, free: 77.95 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/1.209, allocations: 62.78 kB / 0.5856 GB, free: 77.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001161/1.209, allocations: 34.28 kB / 0.5856 GB, free: 77.94 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00307/1.212, allocations: 1.81 MB / 0.5874 GB, free: 77.28 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.25e-07/1.212, allocations: 0 / 0.5874 GB, free: 77.28 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008526/1.221, allocations: 0.8431 MB / 0.5882 GB, free: 77.08 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.0006768/1.222, allocations: 175.5 kB / 0.5884 GB, free: 76.96 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01068/1.232, allocations: 3.195 MB / 0.5915 GB, free: 75.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.387e-06/1.232, allocations: 1.5 kB / 0.5915 GB, free: 75.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002012/1.234, allocations: 0.6096 MB / 0.5921 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.002841/1.237, allocations: 238.8 kB / 0.5923 GB, free: 74.73 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02183/1.259, allocations: 6.227 MB / 0.5984 GB, free: 69.32 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005517/1.265, allocations: 2.455 MB / 0.6008 GB, free: 67.39 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01032/1.275, allocations: 1.64 MB / 0.6024 GB, free: 66.37 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001127/1.276, allocations: 188.3 kB / 0.6026 GB, free: 66.19 MB / 442.7 MB Notification: Performance of SimCode: time 2.456e-06/1.276, allocations: 0 / 0.6026 GB, free: 66.19 MB / 442.7 MB Notification: Performance of Templates: time 0.05577/1.332, allocations: 20.03 MB / 0.6222 GB, free: 48.23 MB / 442.7 MB