Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.019/2.019, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.399e-05/3.405e-05, allocations: 4 kB / 292.2 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1171, allocations: 50.4 MB / 342.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4758/0.593, allocations: 102.3 MB / 444.9 MB, free: 7.832 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/0.5933, allocations: 85.58 kB / 445 MB, free: 7.789 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.875/1.468, allocations: 120.6 MB / 0.5523 GB, free: 96.65 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.335e-06/1.468, allocations: 0 / 0.5523 GB, free: 96.65 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003429/1.469, allocations: 118.7 kB / 0.5524 GB, free: 96.64 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.04783/1.517, allocations: 6.736 MB / 0.559 GB, free: 94.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/1.517, allocations: 11.12 kB / 0.559 GB, free: 94.34 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005508/1.522, allocations: 1.09 MB / 0.5601 GB, free: 94.25 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02913/1.551, allocations: 3.474 MB / 0.5635 GB, free: 93.83 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02925/1.581, allocations: 7.293 MB / 0.5706 GB, free: 93.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000675/1.581, allocations: 467.9 kB / 0.571 GB, free: 93.05 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003645/1.585, allocations: 0.5985 MB / 0.5716 GB, free: 93.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06324/1.648, allocations: 17.42 MB / 0.5886 GB, free: 88.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005289/1.649, allocations: 82.81 kB / 0.5887 GB, free: 88.28 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003334/1.652, allocations: 291.6 kB / 0.589 GB, free: 88.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004666/1.657, allocations: 1.647 MB / 0.5906 GB, free: 87.85 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05469/1.712, allocations: 14.74 MB / 0.605 GB, free: 80.27 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1075/1.819, allocations: 67.49 MB / 0.6709 GB, free: 12.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02923/1.849, allocations: 6.943 MB / 0.6777 GB, free: 5.797 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006815/1.856, allocations: 3.136 MB / 0.6807 GB, free: 2.648 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03938/1.895, allocations: 14.53 MB / 0.6949 GB, free: 3.711 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.384e-05/1.895, allocations: 68.56 kB / 0.695 GB, free: 3.637 MB / 458.7 MB Notification: Performance of pre-optimization done (n=289): time 9.458e-06/1.895, allocations: 0 / 0.695 GB, free: 3.637 MB / 458.7 MB Notification: Performance of matching and sorting (n=321): time 0.4134/2.308, allocations: 21.08 MB / 0.7156 GB, free: 100.9 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004612/2.313, allocations: 4.569 MB / 0.72 GB, free: 96.58 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01145/2.325, allocations: 4.439 MB / 0.7244 GB, free: 96.14 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009811/2.326, allocations: 76.48 kB / 0.7244 GB, free: 96.11 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003819/2.33, allocations: 4.179 MB / 0.7285 GB, free: 94 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002335/2.332, allocations: 1.241 MB / 0.7297 GB, free: 93.28 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001553/2.334, allocations: 178 kB / 0.7299 GB, free: 93.28 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008152/2.334, allocations: 0.6766 MB / 0.7306 GB, free: 92.96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008889/2.343, allocations: 3.421 MB / 0.7339 GB, free: 92.93 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0126/2.356, allocations: 8.281 MB / 0.742 GB, free: 86.65 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01229/2.368, allocations: 5.214 MB / 0.7471 GB, free: 85.89 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000233/2.369, allocations: 46.69 kB / 0.7471 GB, free: 85.89 MB / 458.7 MB Notification: Performance of matching and sorting (n=1158) (initialization): time 0.04462/2.413, allocations: 13.36 MB / 0.7602 GB, free: 82.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001497/2.413, allocations: 78.5 kB / 0.7603 GB, free: 82.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0242/2.438, allocations: 6.69 MB / 0.7668 GB, free: 80.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01641/2.454, allocations: 2.884 MB / 0.7696 GB, free: 79.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01305/2.467, allocations: 2.069 MB / 0.7716 GB, free: 79.53 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01829/2.486, allocations: 12.64 MB / 0.784 GB, free: 70.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01355/2.499, allocations: 0.8228 MB / 0.7848 GB, free: 70.28 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002341/2.502, allocations: 0.5179 MB / 0.7853 GB, free: 70.21 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.002665/2.504, allocations: 0.7781 MB / 0.786 GB, free: 69.58 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001527/2.506, allocations: 485.8 kB / 0.7865 GB, free: 69.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02656/2.532, allocations: 7.223 MB / 0.7936 GB, free: 64.68 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02408/2.556, allocations: 6.426 MB / 0.7998 GB, free: 59.62 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.834e-05/2.557, allocations: 4 kB / 0.7998 GB, free: 59.62 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.225e-05/2.557, allocations: 18.53 kB / 0.7998 GB, free: 59.61 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0504/2.607, allocations: 16.98 MB / 0.8164 GB, free: 46.24 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.143e-05/2.607, allocations: 8 kB / 0.8164 GB, free: 46.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005582/2.613, allocations: 0.5739 MB / 0.817 GB, free: 45.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02019/2.633, allocations: 2.891 MB / 0.8198 GB, free: 43.87 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001284/2.634, allocations: 89.2 kB / 0.8199 GB, free: 43.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02852/2.663, allocations: 13.7 MB / 0.8333 GB, free: 30.38 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003056/2.666, allocations: 4.431 MB / 0.8376 GB, free: 25.53 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03239/2.698, allocations: 12.09 MB / 0.8494 GB, free: 13.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001956/2.7, allocations: 0.5416 MB / 0.85 GB, free: 12.46 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001589/2.702, allocations: 77.14 kB / 0.85 GB, free: 12.38 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005609/2.708, allocations: 363.4 kB / 0.8504 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007845/2.708, allocations: 245.5 kB / 0.8506 GB, free: 11.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003973/2.709, allocations: 105.3 kB / 0.8507 GB, free: 11.68 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007407/2.716, allocations: 3.037 MB / 0.8537 GB, free: 8.66 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.223e-06/2.716, allocations: 0 / 0.8537 GB, free: 8.66 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01121/2.728, allocations: 1.726 MB / 0.8554 GB, free: 6.941 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.377/3.105, allocations: 14.31 MB / 0.8693 GB, free: 105.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03079/3.135, allocations: 9.881 MB / 0.879 GB, free: 104.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.547e-05/3.136, allocations: 1.438 kB / 0.879 GB, free: 104.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01801/3.154, allocations: 4.988 MB / 0.8839 GB, free: 103.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005932/3.16, allocations: 0.5718 MB / 0.8844 GB, free: 103.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05105/3.211, allocations: 15.2 MB / 0.8993 GB, free: 99.71 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01298/3.224, allocations: 4.401 MB / 0.9036 GB, free: 98.84 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0162/3.24, allocations: 2.564 MB / 0.9061 GB, free: 98.64 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009137/3.249, allocations: 2.812 MB / 0.9088 GB, free: 98.62 MB / 474.7 MB Notification: Performance of SimCode: time 2.044e-06/3.249, allocations: 0 / 0.9088 GB, free: 98.62 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2544/3.504, allocations: 118.1 MB / 1.024 GB, free: 16.76 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001443/3.504, allocations: 195.5 kB / 1.024 GB, free: 16.54 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.351/10.85, allocations: 4 kB / 1.024 GB, free: 16.53 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat does not exist to compare? outputFormat=mat