Running command: "" <> buildModelFMU(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ThermalStorages_Examples_FluidStorageChargeDischargeCycle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(BuildingSystems): time 3.082/3.082, allocations: 343.8 MB / 355.9 MB, free: 9.375 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.775e-05/3.784e-05, allocations: 4 kB / 436.6 MB, free: 2.383 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1709, allocations: 77.74 MB / 0.5023 GB, free: 4.492 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.43/1.601, allocations: 367.4 MB / 0.8611 GB, free: 159.1 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002904/1.602, allocations: 86.58 kB / 0.8612 GB, free: 159.1 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 4.056/5.658, allocations: 0.8068 GB / 1.668 GB, free: 108.2 MB / 0.6667 GB Notification: Performance of FrontEnd: time 3.586e-06/5.658, allocations: 0 / 1.668 GB, free: 108.2 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.000447/5.659, allocations: 84.88 kB / 1.668 GB, free: 108.2 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: 640 * Number of variables: 640 Notification: Performance of Generate backend data structure: time 0.00913/5.668, allocations: 2.862 MB / 1.671 GB, free: 106.9 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/5.668, allocations: 7.156 kB / 1.671 GB, free: 106.9 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001026/5.669, allocations: 360.8 kB / 1.671 GB, free: 106.9 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001803/5.671, allocations: 393.1 kB / 1.672 GB, free: 106.7 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01167/5.682, allocations: 3.686 MB / 1.675 GB, free: 106.2 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001745/5.683, allocations: 191.7 kB / 1.675 GB, free: 106.2 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005726/5.683, allocations: 255.9 kB / 1.676 GB, free: 106.2 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00771/5.691, allocations: 3.101 MB / 1.679 GB, free: 105.8 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.382e-05/5.691, allocations: 6.125 kB / 1.679 GB, free: 105.8 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003786/5.691, allocations: 104.2 kB / 1.679 GB, free: 105.8 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001061/5.691, allocations: 73.02 kB / 1.679 GB, free: 105.8 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006471/5.698, allocations: 2.422 MB / 1.681 GB, free: 105.8 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.02449/5.723, allocations: 12.17 MB / 1.693 GB, free: 101.2 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004087/5.727, allocations: 1.568 MB / 1.695 GB, free: 101.2 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002213/5.729, allocations: 1.083 MB / 1.696 GB, free: 100.8 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009127/5.73, allocations: 1.013 MB / 1.697 GB, free: 99.62 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001929/5.732, allocations: 0.8461 MB / 1.697 GB, free: 99.29 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=134): time 4.889e-06/5.732, allocations: 0 / 1.697 GB, free: 99.29 MB / 0.6667 GB Notification: Performance of matching and sorting (n=134): time 0.004375/5.736, allocations: 1.729 MB / 1.699 GB, free: 98.64 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.851e-05/5.736, allocations: 97.3 kB / 1.699 GB, free: 98.54 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004702/5.741, allocations: 2.301 MB / 1.702 GB, free: 97.66 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0003618/5.741, allocations: 51.14 kB / 1.702 GB, free: 97.62 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.001621/5.743, allocations: 1.346 MB / 1.703 GB, free: 96.58 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008603/5.744, allocations: 471.9 kB / 1.703 GB, free: 96.23 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/5.744, allocations: 32 kB / 1.703 GB, free: 96.21 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001459/5.744, allocations: 375.4 kB / 1.704 GB, free: 95.88 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001627/5.746, allocations: 0.7012 MB / 1.704 GB, free: 95.64 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001939/5.748, allocations: 1.241 MB / 1.706 GB, free: 94.75 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002025/5.75, allocations: 1.002 MB / 1.707 GB, free: 94.39 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.397e-05/5.75, allocations: 3.906 kB / 1.707 GB, free: 94.39 MB / 0.6667 GB Notification: Performance of matching and sorting (n=220) (initialization): time 0.00551/5.756, allocations: 2.32 MB / 1.709 GB, free: 93.62 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 6.205e-05/5.756, allocations: 47.05 kB / 1.709 GB, free: 93.59 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.512e-05/5.756, allocations: 14.31 kB / 1.709 GB, free: 93.59 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.668e-05/5.756, allocations: 28.44 kB / 1.709 GB, free: 93.59 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002705/5.758, allocations: 407.4 kB / 1.709 GB, free: 93.57 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.082e-05/5.759, allocations: 45.23 kB / 1.709 GB, free: 93.57 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003732/5.762, allocations: 313 kB / 1.71 GB, free: 93.42 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000233/5.762, allocations: 94.55 kB / 1.71 GB, free: 93.4 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: 71 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,consumptionProfile.a,consumptionProfile.b,consumptionProfile.last,$PRE.consumptionProfile.nextEvent,consumptionProfile.nextEvent,consumptionProfile.nextEventScaled,$PRE.logicControl.y,logicControl.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 1 * 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.0008419/5.763, allocations: 468.5 kB / 1.71 GB, free: 93.16 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000688/5.764, allocations: 253 kB / 1.71 GB, free: 93.04 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005034/5.769, allocations: 1.99 MB / 1.712 GB, free: 92.29 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.368e-05/5.769, allocations: 17.03 kB / 1.712 GB, free: 92.29 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/5.769, allocations: 0 / 1.712 GB, free: 92.29 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003347/5.773, allocations: 1.605 MB / 1.714 GB, free: 91.71 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0111/5.784, allocations: 4.752 MB / 1.719 GB, free: 89.81 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/5.784, allocations: 0 / 1.719 GB, free: 89.81 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002131/5.786, allocations: 261.2 kB / 1.719 GB, free: 89.8 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-05/5.786, allocations: 7.469 kB / 1.719 GB, free: 89.8 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001453/5.786, allocations: 42.47 kB / 1.719 GB, free: 89.78 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.325e-05/5.786, allocations: 4.625 kB / 1.719 GB, free: 89.78 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/5.786, allocations: 6.469 kB / 1.719 GB, free: 89.78 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006317/5.792, allocations: 3.101 MB / 1.722 GB, free: 88.39 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002025/5.795, allocations: 0.5931 MB / 1.723 GB, free: 88.02 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005462/5.795, allocations: 38.47 kB / 1.723 GB, free: 88 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002503/5.798, allocations: 157.1 kB / 1.723 GB, free: 87.97 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002486/5.798, allocations: 91.38 kB / 1.723 GB, free: 87.95 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001555/5.798, allocations: 55.02 kB / 1.723 GB, free: 87.94 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.003607/5.802, allocations: 1.797 MB / 1.725 GB, free: 87.24 MB / 0.6667 GB Notification: Performance of sort global known variables: time 7.31e-07/5.802, allocations: 0 / 1.725 GB, free: 87.24 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.004185/5.806, allocations: 1.001 MB / 1.726 GB, free: 86.85 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: 7 ($whenCondition1,consumptionProfile.a,consumptionProfile.b,consumptionProfile.last,consumptionProfile.nextEvent,consumptionProfile.nextEventScaled,logicControl.y) * Number of discrete states: 7 (consumptionProfile.nextEvent,consumptionProfile.last,consumptionProfile.nextEventScaled,consumptionProfile.b,consumptionProfile.a,$whenCondition1,logicControl.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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 Backend phase and start with SimCode phase: time 0.00818/5.814, allocations: 4.671 MB / 1.73 GB, free: 82.68 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.003941/5.818, allocations: 1.783 MB / 1.732 GB, free: 81.09 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/5.818, allocations: 0 / 1.732 GB, free: 81.09 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001674/5.82, allocations: 0.8867 MB / 1.733 GB, free: 80.29 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01204/5.832, allocations: 1.47 MB / 1.734 GB, free: 79.29 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01431/5.846, allocations: 5.586 MB / 1.74 GB, free: 74.55 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002172/5.848, allocations: 2.276 MB / 1.742 GB, free: 72.75 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.004207/5.853, allocations: 0.7917 MB / 1.743 GB, free: 72.21 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002798/5.856, allocations: 1.093 MB / 1.744 GB, free: 71.21 MB / 0.6667 GB Notification: Performance of SimCode: time 1.733e-06/5.856, allocations: 0 / 1.744 GB, free: 71.21 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6876/6.543, allocations: 79.87 MB / 1.822 GB, free: 98.91 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002175/6.543, allocations: 232.3 kB / 1.822 GB, free: 98.6 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.291/11.83, allocations: 0 / 1.822 GB, free: 98.6 MB / 0.6667 GB