Running command: "" <> buildModelFMU(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorage,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ThermalStorages_Examples_FluidStorage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(BuildingSystems): time 3.182/3.182, allocations: 343.8 MB / 355.9 MB, free: 9.391 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.642e-05/3.654e-05, allocations: 4 kB / 436.6 MB, free: 2.383 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1717, allocations: 77.73 MB / 0.5023 GB, free: 4.5 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.425/1.597, allocations: 366.6 MB / 0.8603 GB, free: 160 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/1.597, allocations: 82.8 kB / 0.8604 GB, free: 160 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 3.995/5.592, allocations: 0.8052 GB / 1.666 GB, free: 109.5 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.284e-06/5.592, allocations: 0 / 1.666 GB, free: 109.5 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0004235/5.593, allocations: 83.2 kB / 1.666 GB, free: 109.5 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 631 * Number of variables: 631 Notification: Performance of Generate backend data structure: time 0.009591/5.602, allocations: 2.859 MB / 1.668 GB, free: 108.3 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.464e-05/5.602, allocations: 9.469 kB / 1.668 GB, free: 108.3 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00134/5.604, allocations: 362 kB / 1.669 GB, free: 108.2 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002235/5.606, allocations: 381.2 kB / 1.669 GB, free: 108.1 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01234/5.618, allocations: 3.658 MB / 1.673 GB, free: 107.6 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000218/5.619, allocations: 191.9 kB / 1.673 GB, free: 107.6 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009502/5.62, allocations: 247.6 kB / 1.673 GB, free: 107.6 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009877/5.63, allocations: 3.041 MB / 1.676 GB, free: 107.2 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001182/5.63, allocations: 6.969 kB / 1.676 GB, free: 107.2 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005871/5.63, allocations: 110 kB / 1.676 GB, free: 107.2 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001078/5.63, allocations: 68.81 kB / 1.676 GB, free: 107.2 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007975/5.638, allocations: 2.377 MB / 1.679 GB, free: 107.2 MB / 0.6667 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02631/5.665, allocations: 12.07 MB / 1.69 GB, free: 102.5 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004087/5.669, allocations: 1.538 MB / 1.692 GB, free: 102.5 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002276/5.671, allocations: 1.031 MB / 1.693 GB, free: 102.4 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009615/5.672, allocations: 1.013 MB / 1.694 GB, free: 101.2 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002002/5.674, allocations: 0.7965 MB / 1.695 GB, free: 100.9 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=132): time 6.612e-06/5.674, allocations: 7.031 kB / 1.695 GB, free: 100.9 MB / 0.6667 GB Notification: Performance of matching and sorting (n=132): time 0.004188/5.679, allocations: 1.558 MB / 1.696 GB, free: 100.4 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/5.679, allocations: 70.53 kB / 1.696 GB, free: 100.3 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005894/5.685, allocations: 2.249 MB / 1.698 GB, free: 99.43 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0004039/5.685, allocations: 53.64 kB / 1.698 GB, free: 99.38 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.001695/5.687, allocations: 1.308 MB / 1.7 GB, free: 98.37 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008565/5.688, allocations: 469.8 kB / 1.7 GB, free: 98.02 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/5.688, allocations: 39.19 kB / 1.7 GB, free: 97.99 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001527/5.688, allocations: 380.8 kB / 1.701 GB, free: 97.65 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001681/5.69, allocations: 0.6698 MB / 1.701 GB, free: 97.42 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002059/5.692, allocations: 1.177 MB / 1.702 GB, free: 96.56 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002245/5.694, allocations: 0.9955 MB / 1.703 GB, free: 96.18 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.035e-05/5.694, allocations: 2.875 kB / 1.703 GB, free: 96.18 MB / 0.6667 GB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006174/5.7, allocations: 2.221 MB / 1.706 GB, free: 95.39 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 7.627e-05/5.7, allocations: 66.09 kB / 1.706 GB, free: 95.33 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.161e-05/5.7, allocations: 14.66 kB / 1.706 GB, free: 95.33 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.587e-05/5.701, allocations: 28.62 kB / 1.706 GB, free: 95.33 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003196/5.704, allocations: 426.1 kB / 1.706 GB, free: 95.31 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.267e-05/5.704, allocations: 36.23 kB / 1.706 GB, free: 95.31 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004402/5.708, allocations: 330.1 kB / 1.706 GB, free: 95.16 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004931/5.709, allocations: 77.98 kB / 1.706 GB, free: 95.15 MB / 0.6667 GB Warning: Assuming fixed start value for the following 7 variables: storage.vol_HX_1.dynBal.U:VARIABLE(start = storage.vol_HX_1.dynBal.fluidVolume * storage.vol_HX_1.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_HX_1$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_HX_1$dynBal.Medium.setState_pTX(storage.vol_HX_1.dynBal.p_start, storage.vol_HX_1.dynBal.T_start, {})) + (-273.15 + storage.vol_HX_1.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real storage.vol_top.dynBal.U:VARIABLE(start = storage.vol_top.dynBal.fluidVolume * storage.vol_top.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_top$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_top$dynBal.Medium.setState_pTX(storage.vol_top.dynBal.p_start, storage.vol_top.dynBal.T_start, {})) + (-273.15 + storage.vol_top.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real storage.vol_bot.dynBal.U:VARIABLE(start = storage.vol_bot.dynBal.fluidVolume * storage.vol_bot.dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_bot$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol_bot$dynBal.Medium.setState_pTX(storage.vol_bot.dynBal.p_start, storage.vol_bot.dynBal.T_start, {})) + (-273.15 + storage.vol_bot.dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real storage.vol[4].dynBal.U:VARIABLE(start = storage.vol[4].dynBal.fluidVolume * storage.vol[4].dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.setState_pTX(storage.vol[4].dynBal.p_start, storage.vol[4].dynBal.T_start, {})) + (-273.15 + storage.vol[4].dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [4] storage.vol[3].dynBal.U:VARIABLE(start = storage.vol[3].dynBal.fluidVolume * storage.vol[3].dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.setState_pTX(storage.vol[3].dynBal.p_start, storage.vol[3].dynBal.T_start, {})) + (-273.15 + storage.vol[3].dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [4] storage.vol[2].dynBal.U:VARIABLE(start = storage.vol[2].dynBal.fluidVolume * storage.vol[2].dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.setState_pTX(storage.vol[2].dynBal.p_start, storage.vol[2].dynBal.T_start, {})) + (-273.15 + storage.vol[2].dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [4] storage.vol[1].dynBal.U:VARIABLE(start = storage.vol[1].dynBal.fluidVolume * storage.vol[1].dynBal.rho_start * BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.specificInternalEnergy(BuildingSystems.Fluid.Interfaces.ConservationEquation$storage$vol$dynBal.Medium.setState_pTX(storage.vol[1].dynBal.p_start, storage.vol[1].dynBal.T_start, {})) + (-273.15 + storage.vol[1].dynBal.T_start) * 0.0 unit = "J" nominal = 100000.0 protected = true ) "Internal energy of fluid" type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.m_flow1.T_start,m_flow1.T_start,$PRE.m_flow1.count,m_flow1.count,$PRE.m_flow2.T_start,m_flow2.T_start,$PRE.m_flow2.count,m_flow2.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (217): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008913/5.71, allocations: 441.7 kB / 1.707 GB, free: 94.93 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008683/5.711, allocations: 241.2 kB / 1.707 GB, free: 94.81 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00476/5.715, allocations: 1.808 MB / 1.709 GB, free: 94.14 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.712e-05/5.715, allocations: 18.72 kB / 1.709 GB, free: 94.14 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/5.715, allocations: 0 / 1.709 GB, free: 94.14 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003175/5.719, allocations: 1.411 MB / 1.71 GB, free: 93.63 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01224/5.731, allocations: 4.511 MB / 1.715 GB, free: 91.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/5.731, allocations: 3.938 kB / 1.715 GB, free: 91.79 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002379/5.733, allocations: 288.2 kB / 1.715 GB, free: 91.78 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.261e-05/5.733, allocations: 7.531 kB / 1.715 GB, free: 91.78 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001659/5.734, allocations: 34.95 kB / 1.715 GB, free: 91.76 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-05/5.734, allocations: 9.469 kB / 1.715 GB, free: 91.76 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/5.734, allocations: 0 / 1.715 GB, free: 91.76 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006008/5.74, allocations: 2.852 MB / 1.718 GB, free: 90.46 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002277/5.742, allocations: 0.5825 MB / 1.718 GB, free: 90.09 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000997/5.743, allocations: 35.22 kB / 1.718 GB, free: 90.07 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003423/5.747, allocations: 161.7 kB / 1.719 GB, free: 90.04 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004331/5.747, allocations: 104.1 kB / 1.719 GB, free: 90.03 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001639/5.747, allocations: 44.91 kB / 1.719 GB, free: 90.02 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.004222/5.751, allocations: 1.757 MB / 1.72 GB, free: 89.32 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.353e-06/5.751, allocations: 0 / 1.72 GB, free: 89.32 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.004615/5.756, allocations: 0.9746 MB / 1.721 GB, free: 89.09 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (storage.vol[1].dynBal.U,storage.vol[2].dynBal.U,storage.vol[3].dynBal.U,storage.vol[4].dynBal.U,storage.vol_bot.dynBal.U,storage.vol_top.dynBal.U,storage.vol_HX_1.dynBal.U) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,m_flow1.T_start,m_flow1.count,m_flow2.T_start,m_flow2.count) * Number of discrete states: 2 (m_flow1.count,m_flow2.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00832/5.764, allocations: 4.449 MB / 1.726 GB, free: 86.76 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.004178/5.769, allocations: 1.759 MB / 1.727 GB, free: 85.48 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/5.769, allocations: 0 / 1.727 GB, free: 85.48 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001834/5.771, allocations: 0.7703 MB / 1.728 GB, free: 84.8 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01225/5.783, allocations: 1.477 MB / 1.73 GB, free: 83.79 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01655/5.799, allocations: 5.464 MB / 1.735 GB, free: 79.14 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003108/5.803, allocations: 2.238 MB / 1.737 GB, free: 77.36 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.004614/5.807, allocations: 0.8141 MB / 1.738 GB, free: 76.79 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002736/5.81, allocations: 1.081 MB / 1.739 GB, free: 75.8 MB / 0.6667 GB Notification: Performance of SimCode: time 1.152e-06/5.81, allocations: 3.938 kB / 1.739 GB, free: 75.8 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.676/6.486, allocations: 78.99 MB / 1.816 GB, free: 94.76 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003119/6.487, allocations: 219.7 kB / 1.816 GB, free: 94.53 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.187/11.67, allocations: 0 / 1.816 GB, free: 94.53 MB / 0.6667 GB