Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.942/1.942, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.613e-05/3.616e-05, allocations: 9.391 kB / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 50.42 MB / 342.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4614/0.5679, allocations: 95.76 MB / 438.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002994/0.5683, allocations: 89.84 kB / 438.5 MB, free: 14.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3585/0.9268, allocations: 74.52 MB / 0.501 GB, free: 8.141 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.9268, allocations: 3.938 kB / 0.501 GB, free: 8.137 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003372/0.9272, allocations: 75.94 kB / 0.5011 GB, free: 8.062 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.02952/0.9567, allocations: 3.858 MB / 0.5048 GB, free: 4.145 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.054e-05/0.9568, allocations: 12.03 kB / 0.5048 GB, free: 4.133 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00385/0.9607, allocations: 0.6797 MB / 0.5055 GB, free: 3.441 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02739/0.9882, allocations: 2.159 MB / 0.5076 GB, free: 1.273 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02922/1.017, allocations: 4.319 MB / 0.5118 GB, free: 12.89 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006356/1.018, allocations: 287.4 kB / 0.5121 GB, free: 12.61 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002935/1.021, allocations: 375.8 kB / 0.5125 GB, free: 12.24 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04552/1.067, allocations: 9.219 MB / 0.5215 GB, free: 2.062 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003667/1.067, allocations: 55.47 kB / 0.5215 GB, free: 2.008 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002533/1.07, allocations: 187.9 kB / 0.5217 GB, free: 1.824 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003781/1.073, allocations: 0.9116 MB / 0.5226 GB, free: 0.9141 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3867/1.46, allocations: 7.279 MB / 0.5297 GB, free: 103.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07689/1.537, allocations: 43.89 MB / 0.5726 GB, free: 76.19 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01398/1.551, allocations: 3.403 MB / 0.5759 GB, free: 75.11 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00284/1.554, allocations: 1.414 MB / 0.5773 GB, free: 74.5 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01404/1.568, allocations: 6.861 MB / 0.584 GB, free: 70.57 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/1.568, allocations: 46.5 kB / 0.584 GB, free: 70.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=132): time 5.54e-06/1.568, allocations: 3.938 kB / 0.584 GB, free: 70.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=139): time 0.03616/1.604, allocations: 9.273 MB / 0.5931 GB, free: 66.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001324/1.606, allocations: 1.615 MB / 0.5946 GB, free: 65.27 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006355/1.612, allocations: 3.117 MB / 0.5977 GB, free: 64.16 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004195/1.613, allocations: 47.95 kB / 0.5977 GB, free: 64.12 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002298/1.615, allocations: 2.753 MB / 0.6004 GB, free: 61.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009154/1.616, allocations: 0.5728 MB / 0.601 GB, free: 61.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005548/1.617, allocations: 104 kB / 0.6011 GB, free: 61.44 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003239/1.617, allocations: 0.545 MB / 0.6016 GB, free: 61.03 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004235/1.621, allocations: 1.853 MB / 0.6034 GB, free: 60.41 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006377/1.628, allocations: 5.259 MB / 0.6086 GB, free: 55.11 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006223/1.634, allocations: 3.095 MB / 0.6116 GB, free: 54.04 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.07e-05/1.634, allocations: 35.88 kB / 0.6116 GB, free: 54.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=712) (initialization): time 0.02848/1.662, allocations: 7.934 MB / 0.6194 GB, free: 51.57 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.878e-05/1.663, allocations: 54.56 kB / 0.6194 GB, free: 51.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01626/1.679, allocations: 3.129 MB / 0.6225 GB, free: 50.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01653/1.695, allocations: 1.95 MB / 0.6244 GB, free: 49.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006958/1.702, allocations: 1.242 MB / 0.6256 GB, free: 48.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01105/1.713, allocations: 5.676 MB / 0.6311 GB, free: 43.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00636/1.72, allocations: 379.3 kB / 0.6315 GB, free: 43.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007038/1.721, allocations: 340.4 kB / 0.6318 GB, free: 42.79 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 559 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (674): * Single equations (assignments): 665 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009747/1.722, allocations: 0.5277 MB / 0.6323 GB, free: 42.26 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005785/1.722, allocations: 304.1 kB / 0.6326 GB, free: 41.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008288/1.73, allocations: 2.733 MB / 0.6353 GB, free: 39.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007031/1.737, allocations: 2.316 MB / 0.6376 GB, free: 37.94 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/1.737, allocations: 4 kB / 0.6376 GB, free: 37.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.998e-05/1.738, allocations: 6.703 kB / 0.6376 GB, free: 37.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0201/1.758, allocations: 7.818 MB / 0.6452 GB, free: 31.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.08e-05/1.758, allocations: 3.75 kB / 0.6452 GB, free: 31.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002137/1.76, allocations: 230.8 kB / 0.6454 GB, free: 31.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005267/1.765, allocations: 1.047 MB / 0.6464 GB, free: 30.81 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000262/1.765, allocations: 35.73 kB / 0.6465 GB, free: 30.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007549/1.773, allocations: 4.948 MB / 0.6513 GB, free: 26.16 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001079/1.774, allocations: 1.472 MB / 0.6527 GB, free: 24.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01156/1.786, allocations: 5.043 MB / 0.6577 GB, free: 20.18 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/1.787, allocations: 368.2 kB / 0.658 GB, free: 19.81 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006195/1.787, allocations: 27.66 kB / 0.6581 GB, free: 19.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002515/1.79, allocations: 125.3 kB / 0.6582 GB, free: 19.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003634/1.79, allocations: 88.22 kB / 0.6583 GB, free: 19.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001625/1.791, allocations: 39.98 kB / 0.6583 GB, free: 19.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004341/1.795, allocations: 2.147 MB / 0.6604 GB, free: 17.46 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.022e-06/1.795, allocations: 3.938 kB / 0.6604 GB, free: 17.46 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006412/1.801, allocations: 0.9662 MB / 0.6613 GB, free: 16.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01213/1.813, allocations: 6.048 MB / 0.6672 GB, free: 10.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01425/1.828, allocations: 4.904 MB / 0.672 GB, free: 5.449 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.241e-05/1.828, allocations: 0 / 0.672 GB, free: 5.449 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009259/1.837, allocations: 1.984 MB / 0.674 GB, free: 3.402 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004536/1.842, allocations: 364.9 kB / 0.6743 GB, free: 3.055 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04104/1.883, allocations: 8.586 MB / 0.6827 GB, free: 10.43 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0082/1.891, allocations: 2.986 MB / 0.6856 GB, free: 7.438 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004208/1.895, allocations: 1.655 MB / 0.6872 GB, free: 5.781 MB / 458.7 MB Notification: Performance of SimCode: time 1.954e-06/1.895, allocations: 0 / 0.6872 GB, free: 5.781 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.729/6.624, allocations: 132.2 MB / 0.8164 GB, free: 34.55 MB / 458.7 MB