Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.123/2.123, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.097e-05/3.101e-05, allocations: 4 kB / 292.2 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1051, allocations: 50.42 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4389/0.544, allocations: 90.07 MB / 432.7 MB, free: 3.871 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.5444, allocations: 84.89 kB / 432.8 MB, free: 3.828 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2325/0.777, allocations: 53.51 MB / 486.3 MB, free: 2.891 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.769e-06/0.777, allocations: 0 / 486.3 MB, free: 2.891 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001818/0.7772, allocations: 55.94 kB / 486.4 MB, free: 2.836 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.01015/0.7874, allocations: 2.465 MB / 488.8 MB, free: 320 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.15e-05/0.7875, allocations: 8.031 kB / 488.8 MB, free: 312 kB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002502/0.79, allocations: 0.5649 MB / 489.4 MB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02082/0.8109, allocations: 1.961 MB / 491.4 MB, free: 13.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005026/0.8159, allocations: 1.411 MB / 492.8 MB, free: 12.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003215/0.8163, allocations: 230 kB / 493 MB, free: 12.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001746/0.8181, allocations: 299.8 kB / 493.3 MB, free: 11.78 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03401/0.8521, allocations: 8.933 MB / 0.4904 GB, free: 1.906 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001992/0.8524, allocations: 55.47 kB / 0.4905 GB, free: 1.852 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009137/0.8533, allocations: 155.9 kB / 0.4906 GB, free: 1.699 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002357/0.8557, allocations: 0.8124 MB / 0.4914 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03046/0.8861, allocations: 6.987 MB / 0.4983 GB, free: 9.883 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3695/1.256, allocations: 38.38 MB / 0.5357 GB, free: 92.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04024/1.296, allocations: 5.336 MB / 0.541 GB, free: 91.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002438/1.299, allocations: 0.9471 MB / 0.5419 GB, free: 91.76 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008618/1.307, allocations: 3.689 MB / 0.5455 GB, free: 89.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/1.307, allocations: 60.5 kB / 0.5455 GB, free: 89.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=111): time 4.529e-06/1.307, allocations: 0 / 0.5455 GB, free: 89.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.07164/1.379, allocations: 8.204 MB / 0.5535 GB, free: 89.73 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.483e-05/1.379, allocations: 187.7 kB / 0.5537 GB, free: 89.52 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005865/1.385, allocations: 2.687 MB / 0.5564 GB, free: 89.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002317/1.385, allocations: 43.98 kB / 0.5564 GB, free: 89.17 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002012/1.387, allocations: 2.431 MB / 0.5588 GB, free: 87.78 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008037/1.388, allocations: 0.4916 MB / 0.5592 GB, free: 87.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005676/1.389, allocations: 110.8 kB / 0.5594 GB, free: 87.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003708/1.389, allocations: 0.5355 MB / 0.5599 GB, free: 87.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003529/1.393, allocations: 1.458 MB / 0.5613 GB, free: 87.18 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00582/1.398, allocations: 4.976 MB / 0.5662 GB, free: 82.57 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005936/1.404, allocations: 2.722 MB / 0.5688 GB, free: 82.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000161/1.405, allocations: 34.78 kB / 0.5688 GB, free: 82.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01481/1.419, allocations: 5.746 MB / 0.5745 GB, free: 82.01 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/1.42, allocations: 61.48 kB / 0.5745 GB, free: 82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001823/1.42, allocations: 128.5 kB / 0.5746 GB, free: 82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002097/1.42, allocations: 191.2 kB / 0.5748 GB, free: 82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009803/1.43, allocations: 1.517 MB / 0.5763 GB, free: 81.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002361/1.43, allocations: 250.2 kB / 0.5765 GB, free: 81.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005527/1.436, allocations: 0.7589 MB / 0.5773 GB, free: 81.44 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00111/1.437, allocations: 343.6 kB / 0.5776 GB, free: 81.44 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.0009308/1.438, allocations: 0.5264 MB / 0.5781 GB, free: 81.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005976/1.438, allocations: 245.8 kB / 0.5784 GB, free: 80.99 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001783/1.44, allocations: 0.7396 MB / 0.5791 GB, free: 80.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.741e-05/1.44, allocations: 18.06 kB / 0.5791 GB, free: 80.88 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/1.44, allocations: 3.625 kB / 0.5791 GB, free: 80.88 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/1.44, allocations: 3.562 kB / 0.5791 GB, free: 80.88 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008758/1.449, allocations: 3.231 MB / 0.5823 GB, free: 79.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.491e-05/1.449, allocations: 0 / 0.5823 GB, free: 79.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004979/1.454, allocations: 474.5 kB / 0.5827 GB, free: 79.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-05/1.454, allocations: 2.281 kB / 0.5827 GB, free: 79.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001611/1.454, allocations: 39.89 kB / 0.5828 GB, free: 79.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.688e-06/1.454, allocations: 4.375 kB / 0.5828 GB, free: 79.61 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/1.454, allocations: 10.11 kB / 0.5828 GB, free: 79.61 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004223/1.459, allocations: 2.638 MB / 0.5853 GB, free: 78.22 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006956/1.459, allocations: 307.9 kB / 0.5856 GB, free: 77.97 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004295/1.46, allocations: 35.25 kB / 0.5857 GB, free: 77.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001661/1.461, allocations: 48.3 kB / 0.5857 GB, free: 77.95 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/1.462, allocations: 53.84 kB / 0.5858 GB, free: 77.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/1.462, allocations: 35.12 kB / 0.5858 GB, free: 77.93 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003603/1.465, allocations: 1.811 MB / 0.5876 GB, free: 77.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.465, allocations: 0 / 0.5876 GB, free: 77.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005409/1.471, allocations: 0.8433 MB / 0.5884 GB, free: 77.07 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.004805/1.476, allocations: 3.605 MB / 0.5919 GB, free: 74.72 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006985/1.483, allocations: 3.193 MB / 0.595 GB, free: 71.83 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/1.483, allocations: 0 / 0.595 GB, free: 71.83 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/1.484, allocations: 0.6207 MB / 0.5956 GB, free: 71.27 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001792/1.486, allocations: 237.2 kB / 0.5959 GB, free: 71.05 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0207/1.507, allocations: 7.546 MB / 0.6032 GB, free: 64.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003284/1.51, allocations: 2.454 MB / 0.6056 GB, free: 62.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002579/1.513, allocations: 1.264 MB / 0.6069 GB, free: 61.52 MB / 442.7 MB Notification: Performance of SimCode: time 9.62e-07/1.513, allocations: 0 / 0.6069 GB, free: 61.52 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.553/5.065, allocations: 56.19 MB / 0.6617 GB, free: 7.289 MB / 442.7 MB