Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_1_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.073/2.073, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.527e-05/2.538e-05, allocations: 4 kB / 219.6 MB, free: 6.953 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3034, allocations: 38.77 MB / 258.3 MB, free: 12.29 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1359/0.4393, allocations: 71.17 MB / 329.5 MB, free: 6.688 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.4397, allocations: 71.91 kB / 329.6 MB, free: 6.617 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0685/0.5082, allocations: 15.41 MB / 345 MB, free: 7.094 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5082, allocations: 0 / 345 MB, free: 7.094 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.802e-05/0.5083, allocations: 16 kB / 345 MB, free: 7.078 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.003266/0.5116, allocations: 1.045 MB / 346 MB, free: 5.969 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/0.5117, allocations: 8.031 kB / 346.1 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00041/0.5121, allocations: 102.9 kB / 346.2 MB, free: 5.859 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001381/0.5135, allocations: 0.5116 MB / 346.7 MB, free: 5.305 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000294/0.5138, allocations: 126.7 kB / 346.8 MB, free: 5.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/0.514, allocations: 43.86 kB / 346.8 MB, free: 5.117 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001412/0.5154, allocations: 466.7 kB / 347.3 MB, free: 4.664 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001707/0.5171, allocations: 0.6884 MB / 348 MB, free: 3.875 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.408e-05/0.5172, allocations: 3.938 kB / 348 MB, free: 3.871 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.5173, allocations: 8 kB / 348 MB, free: 3.863 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.574e-05/0.5174, allocations: 15.98 kB / 348 MB, free: 3.848 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00714/0.5245, allocations: 1.93 MB / 349.9 MB, free: 1.832 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002187/0.5268, allocations: 0.8704 MB / 350.8 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.5279, allocations: 318.8 kB / 351.1 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001253/0.528, allocations: 12.77 kB / 351.1 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.616e-05/0.5281, allocations: 47.34 kB / 351.2 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of pre-optimization done (n=74): time 5.31e-06/0.5281, allocations: 4 kB / 351.2 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of matching and sorting (n=74): time 0.004991/0.5331, allocations: 0.8266 MB / 352 MB, free: 15.65 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006554/0.5338, allocations: 0.8274 MB / 352.8 MB, free: 14.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001466/0.5353, allocations: 476.2 kB / 353.3 MB, free: 14.15 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002623/0.5356, allocations: 25.7 kB / 353.3 MB, free: 14.12 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005086/0.5361, allocations: 321 kB / 353.6 MB, free: 13.8 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004559/0.5366, allocations: 244.3 kB / 353.9 MB, free: 13.56 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.013e-05/0.5367, allocations: 4 kB / 353.9 MB, free: 13.56 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003118/0.537, allocations: 378.8 kB / 354.2 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009037/0.538, allocations: 209.5 kB / 354.5 MB, free: 12.97 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/0.5393, allocations: 467.2 kB / 354.9 MB, free: 12.42 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009461/0.5403, allocations: 255.6 kB / 355.2 MB, free: 12.17 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.5403, allocations: 0 / 355.2 MB, free: 12.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.004772/0.5451, allocations: 0.889 MB / 356 MB, free: 11.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001119/0.5452, allocations: 88.7 kB / 356.1 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.5453, allocations: 3.938 kB / 356.1 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001349/0.5466, allocations: 207.3 kB / 356.3 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001681/0.5483, allocations: 147.8 kB / 356.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01289/0.5612, allocations: 6.002 MB / 362.5 MB, free: 4.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/0.563, allocations: 95.58 kB / 362.6 MB, free: 4.246 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/0.5632, allocations: 20 kB / 362.6 MB, free: 4.227 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real pump.h:VARIABLE(unit = "J/kg" protected = true ) "Medium's specific enthalpy" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000466/0.5636, allocations: 145.1 kB / 362.7 MB, free: 4.078 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005102/0.5688, allocations: 0.8305 MB / 363.6 MB, free: 3.227 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000539/0.5694, allocations: 79.16 kB / 363.7 MB, free: 3.148 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000426/0.5698, allocations: 79.62 kB / 363.7 MB, free: 3.062 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.618e-05/0.5699, allocations: 8 kB / 363.7 MB, free: 3.055 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.5699, allocations: 7.875 kB / 363.7 MB, free: 3.047 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005128/0.575, allocations: 1.131 MB / 364.9 MB, free: 1.805 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008994/0.5841, allocations: 1.711 MB / 366.6 MB, free: 36 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.5842, allocations: 3.953 kB / 366.6 MB, free: 32 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2385/0.8227, allocations: 142.5 kB / 366.7 MB, free: 89.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000854/0.8236, allocations: 162.2 kB / 366.9 MB, free: 89.91 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001604/0.8238, allocations: 6.172 kB / 366.9 MB, free: 89.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00917/0.833, allocations: 4.634 MB / 371.5 MB, free: 86.31 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.8331, allocations: 0 / 371.5 MB, free: 86.31 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004241/0.8373, allocations: 1.216 MB / 372.7 MB, free: 86.14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003243/0.8377, allocations: 160.4 kB / 372.9 MB, free: 86.01 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002341/0.838, allocations: 2.5 kB / 372.9 MB, free: 86.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001484/0.8395, allocations: 47.8 kB / 372.9 MB, free: 86.01 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003728/0.8399, allocations: 58.77 kB / 373 MB, free: 86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.86e-05/0.84, allocations: 25.08 kB / 373 MB, free: 86 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001038/0.841, allocations: 373.3 kB / 373.4 MB, free: 85.92 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.273e-06/0.8411, allocations: 1.094 kB / 373.4 MB, free: 85.92 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002375/0.8435, allocations: 247.3 kB / 373.6 MB, free: 85.91 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.006438/0.85, allocations: 1.787 MB / 375.4 MB, free: 85.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003205/0.8532, allocations: 1.175 MB / 376.6 MB, free: 84.54 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.168e-05/0.8533, allocations: 3.5 kB / 376.6 MB, free: 84.54 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00253/0.8559, allocations: 0.6849 MB / 377.3 MB, free: 84.23 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002244/0.8582, allocations: 183.1 kB / 377.5 MB, free: 84.22 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006519/0.8647, allocations: 1.352 MB / 378.8 MB, free: 83.83 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006279/0.8654, allocations: 0.9462 MB / 379.8 MB, free: 83.11 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001018/0.8665, allocations: 90.03 kB / 379.9 MB, free: 83.1 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008075/0.8673, allocations: 278.3 kB / 380.1 MB, free: 83.09 MB / 314.7 MB Notification: Performance of SimCode: time 1.342e-06/0.8674, allocations: 4 kB / 380.1 MB, free: 83.09 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08902/0.9564, allocations: 20.02 MB / 400.2 MB, free: 71.01 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002401/0.9567, allocations: 137.8 kB / 400.3 MB, free: 70.81 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.873/4.83, allocations: 7.938 kB / 400.3 MB, free: 70.8 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat