Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.64/1.64, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.931e-05/5.085e-05, allocations: 4 kB / 225.1 MB, free: 2.602 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2568, allocations: 38.76 MB / 263.8 MB, free: 9.75 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.4064, allocations: 84.74 MB / 348.6 MB, free: 4.879 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003199/0.4068, allocations: 79.95 kB / 348.7 MB, free: 4.801 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6339/1.041, allocations: 107.8 MB / 456.4 MB, free: 16.87 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.943e-06/1.041, allocations: 0 / 456.4 MB, free: 16.87 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003031/1.041, allocations: 111.9 kB / 456.5 MB, free: 16.76 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: 1913 * Number of variables: 1913 Notification: Performance of Generate backend data structure: time 0.04364/1.085, allocations: 6.3 MB / 462.8 MB, free: 10.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/1.085, allocations: 8.031 kB / 462.8 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004521/1.089, allocations: 0.9796 MB / 463.8 MB, free: 9.387 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02704/1.116, allocations: 3.375 MB / 467.2 MB, free: 6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02748/1.144, allocations: 7.471 MB / 474.7 MB, free: 14.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006777/1.145, allocations: 410.7 kB / 475.1 MB, free: 14.06 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00319/1.148, allocations: 0.5387 MB / 475.6 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06291/1.211, allocations: 16.33 MB / 491.9 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003602/1.211, allocations: 83.27 kB / 492 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002603/1.214, allocations: 259.8 kB / 492.3 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004797/1.219, allocations: 1.492 MB / 493.8 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3004/1.519, allocations: 13.9 MB / 0.4958 GB, free: 58.24 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09725/1.616, allocations: 63.61 MB / 0.5579 GB, free: 20.71 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02866/1.645, allocations: 6.162 MB / 0.5639 GB, free: 18.75 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006376/1.652, allocations: 2.958 MB / 0.5668 GB, free: 17.54 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03154/1.683, allocations: 13.2 MB / 0.5797 GB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.962e-05/1.683, allocations: 64.94 kB / 0.5797 GB, free: 10.96 MB / 346.7 MB Notification: Performance of pre-optimization done (n=246): time 5.891e-06/1.683, allocations: 3.938 kB / 0.5797 GB, free: 10.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=278): time 0.1572/1.84, allocations: 21.92 MB / 0.6012 GB, free: 14.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004684/1.845, allocations: 4.564 MB / 0.6056 GB, free: 9.559 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01066/1.856, allocations: 4.186 MB / 0.6097 GB, free: 5.848 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008718/1.857, allocations: 64.83 kB / 0.6098 GB, free: 5.781 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004263/1.861, allocations: 3.732 MB / 0.6134 GB, free: 2.398 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002196/1.863, allocations: 1.091 MB / 0.6145 GB, free: 1.438 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001282/1.865, allocations: 166.5 kB / 0.6146 GB, free: 1.281 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0007119/1.865, allocations: 0.6482 MB / 0.6153 GB, free: 0.7188 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02325/1.889, allocations: 4.089 MB / 0.6193 GB, free: 15.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01418/1.903, allocations: 7.714 MB / 0.6268 GB, free: 6.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01296/1.916, allocations: 4.883 MB / 0.6316 GB, free: 1.414 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001622/1.916, allocations: 48 kB / 0.6316 GB, free: 1.367 MB / 378.7 MB Notification: Performance of matching and sorting (n=1053) (initialization): time 0.2877/2.204, allocations: 12.2 MB / 0.6435 GB, free: 84.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001118/2.204, allocations: 72.78 kB / 0.6436 GB, free: 84.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02078/2.225, allocations: 6.171 MB / 0.6496 GB, free: 84.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01368/2.238, allocations: 2.608 MB / 0.6522 GB, free: 84.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01258/2.251, allocations: 1.969 MB / 0.6541 GB, free: 83.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0137/2.265, allocations: 11.49 MB / 0.6653 GB, free: 76.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01246/2.277, allocations: 0.8105 MB / 0.6661 GB, free: 76.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002239/2.28, allocations: 486.5 kB / 0.6666 GB, free: 76.18 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 729 * Number of states: 0 () * Number of discrete variables: 48 (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],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],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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (996): * Single equations (assignments): 975 * 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 {1,1,1} * 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.002382/2.282, allocations: 0.7073 MB / 0.6672 GB, free: 75.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/2.283, allocations: 445.7 kB / 0.6677 GB, free: 75.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03303/2.316, allocations: 6.908 MB / 0.6744 GB, free: 75.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02984/2.346, allocations: 6.167 MB / 0.6804 GB, free: 75.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.918e-05/2.346, allocations: 9.469 kB / 0.6805 GB, free: 75.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.57e-05/2.346, allocations: 16.78 kB / 0.6805 GB, free: 75.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05481/2.401, allocations: 15.64 MB / 0.6957 GB, free: 70.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-05/2.401, allocations: 7.188 kB / 0.6957 GB, free: 70.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00524/2.406, allocations: 0.5151 MB / 0.6963 GB, free: 69.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01536/2.422, allocations: 2.89 MB / 0.6991 GB, free: 67.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008436/2.423, allocations: 86.38 kB / 0.6992 GB, free: 67.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02038/2.443, allocations: 13.7 MB / 0.7125 GB, free: 55.22 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003023/2.446, allocations: 4.418 MB / 0.7168 GB, free: 50.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02998/2.476, allocations: 11.42 MB / 0.728 GB, free: 40.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001617/2.478, allocations: 0.5098 MB / 0.7285 GB, free: 40.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001786/2.48, allocations: 65.25 kB / 0.7286 GB, free: 40.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006376/2.486, allocations: 361.8 kB / 0.7289 GB, free: 40.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001197/2.487, allocations: 211.8 kB / 0.7291 GB, free: 39.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003845/2.488, allocations: 90.11 kB / 0.7292 GB, free: 39.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006912/2.495, allocations: 2.883 MB / 0.732 GB, free: 37.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.423e-06/2.495, allocations: 0 / 0.732 GB, free: 37.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.009647/2.504, allocations: 1.582 MB / 0.7336 GB, free: 35.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (226): * Single equations (assignments): 211 * 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.03153/2.536, allocations: 13.46 MB / 0.7467 GB, free: 21.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.02575/2.562, allocations: 9.076 MB / 0.7556 GB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/2.562, allocations: 0 / 0.7556 GB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02578/2.588, allocations: 4.843 MB / 0.7603 GB, free: 7.809 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01062/2.598, allocations: 0.5188 MB / 0.7608 GB, free: 7.309 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3394/2.938, allocations: 14.74 MB / 0.7752 GB, free: 95.15 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01203/2.95, allocations: 4.07 MB / 0.7792 GB, free: 94.32 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008814/2.959, allocations: 2.597 MB / 0.7817 GB, free: 94.32 MB / 394.7 MB Notification: Performance of SimCode: time 2.224e-06/2.959, allocations: 0 / 0.7817 GB, free: 94.32 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.891/9.849, allocations: 355 MB / 1.128 GB, free: 75.49 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat does not exist to compare? outputFormat=mat