Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.027/2.027, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.032e-05/3.046e-05, allocations: 3.984 kB / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 50.41 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5/0.61, allocations: 102.3 MB / 444.9 MB, free: 7.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003344/0.6104, allocations: 90.64 kB / 445 MB, free: 7.707 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.871/1.481, allocations: 120.6 MB / 0.5523 GB, free: 96.09 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.853e-06/1.481, allocations: 0 / 0.5523 GB, free: 96.09 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003136/1.482, allocations: 115.9 kB / 0.5524 GB, free: 96.08 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2151 * Number of variables: 2151 Notification: Performance of Generate backend data structure: time 0.04665/1.528, allocations: 6.736 MB / 0.559 GB, free: 93.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/1.529, allocations: 7.594 kB / 0.559 GB, free: 93.77 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005089/1.534, allocations: 1.094 MB / 0.5601 GB, free: 93.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02916/1.563, allocations: 3.474 MB / 0.5635 GB, free: 93.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02746/1.59, allocations: 7.292 MB / 0.5706 GB, free: 92.51 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006218/1.591, allocations: 464.1 kB / 0.5711 GB, free: 92.49 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003396/1.594, allocations: 0.6047 MB / 0.5716 GB, free: 92.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06061/1.655, allocations: 17.43 MB / 0.5887 GB, free: 87.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003891/1.656, allocations: 85.34 kB / 0.5887 GB, free: 87.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002718/1.658, allocations: 290.3 kB / 0.589 GB, free: 87.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004567/1.663, allocations: 1.64 MB / 0.5906 GB, free: 87.53 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05622/1.719, allocations: 14.74 MB / 0.605 GB, free: 80.25 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1109/1.83, allocations: 67.48 MB / 0.6709 GB, free: 13.15 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02949/1.86, allocations: 6.952 MB / 0.6777 GB, free: 5.977 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007048/1.867, allocations: 3.12 MB / 0.6808 GB, free: 2.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04158/1.908, allocations: 14.53 MB / 0.6949 GB, free: 3.891 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.194e-05/1.908, allocations: 72.55 kB / 0.695 GB, free: 3.812 MB / 458.7 MB Notification: Performance of pre-optimization done (n=289): time 7.374e-06/1.908, allocations: 0 / 0.695 GB, free: 3.812 MB / 458.7 MB Notification: Performance of matching and sorting (n=321): time 0.4424/2.351, allocations: 21.07 MB / 0.7156 GB, free: 100.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003689/2.355, allocations: 4.57 MB / 0.7201 GB, free: 96.09 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01053/2.365, allocations: 4.446 MB / 0.7244 GB, free: 95.65 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009918/2.366, allocations: 74.05 kB / 0.7245 GB, free: 95.62 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003713/2.37, allocations: 4.056 MB / 0.7284 GB, free: 93.46 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002354/2.372, allocations: 1.246 MB / 0.7297 GB, free: 92.75 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001142/2.374, allocations: 173.5 kB / 0.7298 GB, free: 92.75 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005551/2.374, allocations: 0.683 MB / 0.7305 GB, free: 92.41 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008519/2.383, allocations: 3.416 MB / 0.7338 GB, free: 92.39 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01222/2.395, allocations: 8.294 MB / 0.7419 GB, free: 86.11 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01205/2.407, allocations: 5.207 MB / 0.747 GB, free: 85.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002083/2.407, allocations: 49.69 kB / 0.7471 GB, free: 85.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=1158) (initialization): time 0.04416/2.451, allocations: 13.21 MB / 0.76 GB, free: 81.89 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001554/2.452, allocations: 79.94 kB / 0.76 GB, free: 81.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02456/2.476, allocations: 6.694 MB / 0.7666 GB, free: 80.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02072/2.497, allocations: 2.879 MB / 0.7694 GB, free: 79.56 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02089/2.518, allocations: 2.075 MB / 0.7714 GB, free: 79.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02808/2.546, allocations: 12.63 MB / 0.7837 GB, free: 70.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.021/2.567, allocations: 0.8215 MB / 0.7845 GB, free: 70.08 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003212/2.57, allocations: 0.5109 MB / 0.785 GB, free: 70.01 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 790 * Number of states: 0 () * Number of discrete variables: 66 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],springDamperSeries.color[3],springDamperSeries.color[2],springDamperSeries.color[1],springDamperSeries.color_b[3],springDamperSeries.color_b[2],springDamperSeries.color_b[1],springDamperSeries.color_a[3],springDamperSeries.color_a[2],springDamperSeries.color_a[1],bar3.color[3],bar3.color[2],bar3.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[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],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1092): * Single equations (assignments): 1071 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004976/2.575, allocations: 0.7784 MB / 0.7858 GB, free: 69.38 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002305/2.578, allocations: 482.4 kB / 0.7863 GB, free: 69.12 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0406/2.618, allocations: 7.234 MB / 0.7933 GB, free: 64.86 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03605/2.654, allocations: 6.431 MB / 0.7996 GB, free: 59.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.486e-05/2.655, allocations: 4 kB / 0.7996 GB, free: 59.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001102/2.655, allocations: 14.48 kB / 0.7996 GB, free: 59.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08514/2.74, allocations: 16.99 MB / 0.8162 GB, free: 46.42 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.883e-05/2.74, allocations: 11.52 kB / 0.8162 GB, free: 46.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009106/2.749, allocations: 0.5733 MB / 0.8168 GB, free: 45.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02517/2.774, allocations: 2.885 MB / 0.8196 GB, free: 44.05 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001414/2.776, allocations: 98 kB / 0.8197 GB, free: 43.97 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03258/2.808, allocations: 13.69 MB / 0.8331 GB, free: 30.77 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005126/2.814, allocations: 4.439 MB / 0.8374 GB, free: 25.91 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05092/2.865, allocations: 12.1 MB / 0.8492 GB, free: 13.41 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002848/2.867, allocations: 0.5411 MB / 0.8497 GB, free: 12.84 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003032/2.871, allocations: 79.97 kB / 0.8498 GB, free: 12.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01051/2.881, allocations: 359.5 kB / 0.8502 GB, free: 12.41 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001984/2.883, allocations: 242.1 kB / 0.8504 GB, free: 12.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008622/2.884, allocations: 100.7 kB / 0.8505 GB, free: 12.08 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01164/2.896, allocations: 3.041 MB / 0.8535 GB, free: 9.055 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.573e-06/2.896, allocations: 6.156 kB / 0.8535 GB, free: 9.051 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01579/2.912, allocations: 1.732 MB / 0.8552 GB, free: 7.328 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 37 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$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],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],springDamperSeries.s_damper,body3.frame_a.r_0[1],body3.frame_a.r_0[2],body3.frame_a.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.w_a[1],body3.w_a[2],body3.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (267): * Single equations (assignments): 252 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(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.3665/3.278, allocations: 14.3 MB / 0.8691 GB, free: 105.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03107/3.309, allocations: 9.888 MB / 0.8788 GB, free: 103.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/3.309, allocations: 5.094 kB / 0.8788 GB, free: 103.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01822/3.328, allocations: 4.99 MB / 0.8837 GB, free: 102.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005959/3.334, allocations: 0.5832 MB / 0.8842 GB, free: 102.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05026/3.384, allocations: 15.83 MB / 0.8997 GB, free: 99.12 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009808/3.394, allocations: 4.406 MB / 0.904 GB, free: 98.26 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006804/3.401, allocations: 2.873 MB / 0.9068 GB, free: 98.25 MB / 474.7 MB Notification: Performance of SimCode: time 1.162e-06/3.401, allocations: 0 / 0.9068 GB, free: 98.25 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.02/10.42, allocations: 387.9 MB / 1.286 GB, free: 103.3 MB / 490.7 MB