Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") Notification: Performance of loadModel(Modelica): time 2.131/2.131, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.113e-05/3.119e-05, allocations: 7.984 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1076, allocations: 50.42 MB / 345 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01783/0.1255, allocations: 11.47 MB / 356.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01009/0.1356, allocations: 3.78 MB / 360.2 MB, free: 9.637 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002192/0.1379, allocations: 59.81 kB / 360.3 MB, free: 9.578 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001954/0.1399, allocations: 0.5327 MB / 360.8 MB, free: 9.043 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006979/0.1469, allocations: 1.886 MB / 362.7 MB, free: 7.152 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001568/0.1485, allocations: 411.3 kB / 363.1 MB, free: 6.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003652/0.1522, allocations: 1.294 MB / 364.4 MB, free: 5.453 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006988/0.153, allocations: 392.8 kB / 364.8 MB, free: 5.039 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001019/0.154, allocations: 0.5144 MB / 365.3 MB, free: 4.523 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00174/0.1558, allocations: 0.9236 MB / 366.2 MB, free: 3.598 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002306/0.1581, allocations: 0.7957 MB / 367 MB, free: 2.801 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006986/0.1588, allocations: 91.98 kB / 367.1 MB, free: 2.711 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001466/0.1603, allocations: 0.9468 MB / 368.1 MB, free: 1.762 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007129/0.1611, allocations: 152 kB / 368.2 MB, free: 1.613 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005103/0.1662, allocations: 3.005 MB / 371.2 MB, free: 14.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1662, allocations: 4 kB / 371.2 MB, free: 14.6 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.39e-06/0.1662, allocations: 4 kB / 371.2 MB, free: 14.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001204/0.1664, allocations: 3.938 kB / 371.2 MB, free: 14.59 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.009787/0.1762, allocations: 2.711 MB / 373.9 MB, free: 11.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/0.1763, allocations: 8.031 kB / 373.9 MB, free: 11.81 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01705/0.1933, allocations: 2.262 MB / 376.2 MB, free: 9.543 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00522/0.1986, allocations: 1.789 MB / 378 MB, free: 7.707 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001931/0.1988, allocations: 122.6 kB / 378.1 MB, free: 7.586 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002118/0.201, allocations: 299.5 kB / 378.4 MB, free: 7.293 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02744/0.2284, allocations: 8.613 MB / 387 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001137/0.2286, allocations: 39.66 kB / 387.1 MB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005073/0.2291, allocations: 79.89 kB / 387.1 MB, free: 13.99 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004143/0.2333, allocations: 1.397 MB / 388.5 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03321/0.2665, allocations: 9.901 MB / 398.4 MB, free: 2.684 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3303/0.5969, allocations: 30.67 MB / 429.1 MB, free: 26.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02043/0.6174, allocations: 4.493 MB / 433.6 MB, free: 24.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001897/0.6177, allocations: 20.53 kB / 433.6 MB, free: 24.49 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.6177, allocations: 53.5 kB / 433.7 MB, free: 24.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=122): time 5.04e-06/0.6177, allocations: 0 / 433.7 MB, free: 24.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=136): time 0.07709/0.6948, allocations: 18.84 MB / 452.5 MB, free: 7.625 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002416/0.6973, allocations: 3.076 MB / 455.6 MB, free: 4.23 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005435/0.7028, allocations: 2.896 MB / 458.5 MB, free: 1.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007643/0.7036, allocations: 42.64 kB / 458.5 MB, free: 1.273 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001855/0.7055, allocations: 2.06 MB / 460.6 MB, free: 15.22 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001464/0.707, allocations: 0.559 MB / 461.1 MB, free: 14.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006591/0.7076, allocations: 97.64 kB / 461.2 MB, free: 14.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004164/0.7081, allocations: 0.5134 MB / 461.8 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00776/0.7158, allocations: 2.644 MB / 464.4 MB, free: 11.39 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01029/0.7262, allocations: 5.58 MB / 470 MB, free: 4.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009869/0.7361, allocations: 3.694 MB / 473.7 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.562e-05/0.7362, allocations: 32 kB / 473.7 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.05964/0.7959, allocations: 11.72 MB / 485.4 MB, free: 4.871 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/0.7961, allocations: 52 kB / 485.5 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04457/0.8406, allocations: 7.05 MB / 492.5 MB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04335/0.884, allocations: 4.546 MB / 497.1 MB, free: 9.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008096/0.8922, allocations: 1.24 MB / 498.3 MB, free: 7.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03039/0.9226, allocations: 12.08 MB / 0.4984 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008084/0.9307, allocations: 0.5784 MB / 0.499 GB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001495/0.9323, allocations: 316.6 kB / 0.4993 GB, free: 10.42 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 18 (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 (584): * Single equations (assignments): 569 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004367/0.9367, allocations: 1.385 MB / 0.5007 GB, free: 9.02 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009454/0.9376, allocations: 253 kB / 0.5009 GB, free: 8.77 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001365/0.939, allocations: 419.3 kB / 0.5013 GB, free: 8.352 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02264/0.9617, allocations: 5.011 MB / 0.5062 GB, free: 3.305 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.241e-05/0.9617, allocations: 7.938 kB / 0.5062 GB, free: 3.297 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.199e-05/0.9618, allocations: 11.98 kB / 0.5062 GB, free: 3.285 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01469/0.9765, allocations: 5.365 MB / 0.5114 GB, free: 13.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.161e-05/0.9766, allocations: 0 / 0.5114 GB, free: 13.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003739/0.9803, allocations: 371.4 kB / 0.5118 GB, free: 13.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0163/0.9967, allocations: 2.382 MB / 0.5141 GB, free: 11.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007791/0.9975, allocations: 43.95 kB / 0.5142 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0163/1.014, allocations: 9.009 MB / 0.523 GB, free: 1.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002845/1.017, allocations: 2.925 MB / 0.5258 GB, free: 14.31 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03096/1.048, allocations: 8.848 MB / 0.5345 GB, free: 5.379 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/1.049, allocations: 345.5 kB / 0.5348 GB, free: 5.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001119/1.05, allocations: 31.98 kB / 0.5348 GB, free: 4.988 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004206/1.054, allocations: 319.4 kB / 0.5351 GB, free: 4.676 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006975/1.055, allocations: 103.8 kB / 0.5352 GB, free: 4.574 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002958/1.055, allocations: 51.95 kB / 0.5353 GB, free: 4.523 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004939/1.06, allocations: 2.035 MB / 0.5373 GB, free: 2.484 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.06, allocations: 0 / 0.5373 GB, free: 2.484 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006685/1.067, allocations: 1.027 MB / 0.5383 GB, free: 1.465 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001376/1.068, allocations: 197.5 kB / 0.5385 GB, free: 1.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02245/1.091, allocations: 7.343 MB / 0.5456 GB, free: 9.812 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/1.091, allocations: 0 / 0.5456 GB, free: 9.812 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01178/1.103, allocations: 3.621 MB / 0.5492 GB, free: 6.047 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003052/1.106, allocations: 293.1 kB / 0.5494 GB, free: 5.762 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3086/1.414, allocations: 9.549 MB / 0.5588 GB, free: 143.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004645/1.419, allocations: 2.353 MB / 0.5611 GB, free: 142.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002339/1.421, allocations: 240.8 kB / 0.5613 GB, free: 142.9 MB / 442.7 MB Notification: Performance of SimCode: time 1.903e-06/1.421, allocations: 1.281 kB / 0.5613 GB, free: 142.9 MB / 442.7 MB Notification: Performance of Templates: time 0.2682/1.69, allocations: 137.9 MB / 0.6959 GB, free: 20.25 MB / 442.7 MB