Running command: translateModel(BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ThermalStorages.Examples.FluidStorageChargeDischargeCycle") Notification: Performance of loadModel(BuildingSystems): time 2.987/2.987, allocations: 343.8 MB / 355.9 MB, free: 9.391 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.04e-05/3.05e-05, allocations: 4 kB / 436.6 MB, free: 2.484 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1393, allocations: 77.73 MB / 0.5022 GB, free: 4.602 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.184/1.323, allocations: 367.4 MB / 0.861 GB, free: 159.4 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002054/1.324, allocations: 85.58 kB / 0.8611 GB, free: 159.3 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 3.387/4.711, allocations: 0.8067 GB / 1.668 GB, free: 108.4 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.659e-06/4.711, allocations: 0 / 1.668 GB, free: 108.4 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0003855/4.711, allocations: 84.02 kB / 1.668 GB, free: 108.4 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.007268/4.719, allocations: 2.847 MB / 1.671 GB, free: 107.2 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/4.719, allocations: 7.812 kB / 1.671 GB, free: 107.2 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001941/4.721, allocations: 384.9 kB / 1.671 GB, free: 107.1 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00919/4.73, allocations: 3.69 MB / 1.675 GB, free: 106.6 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/4.73, allocations: 190.3 kB / 1.675 GB, free: 106.6 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005204/4.731, allocations: 254.2 kB / 1.675 GB, free: 106.6 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006597/4.737, allocations: 3.104 MB / 1.678 GB, free: 106.2 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.448e-05/4.737, allocations: 3.969 kB / 1.678 GB, free: 106.2 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003633/4.738, allocations: 107.2 kB / 1.678 GB, free: 106.2 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.598e-05/4.738, allocations: 72.72 kB / 1.678 GB, free: 106.2 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005889/4.744, allocations: 2.42 MB / 1.681 GB, free: 106.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.01958/4.763, allocations: 12.17 MB / 1.693 GB, free: 101.5 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003191/4.767, allocations: 1.569 MB / 1.694 GB, free: 101.5 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001822/4.768, allocations: 1.09 MB / 1.695 GB, free: 101.5 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006891/4.769, allocations: 1.008 MB / 1.696 GB, free: 100.3 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001503/4.771, allocations: 0.8465 MB / 1.697 GB, free: 100 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=134): time 5.253e-06/4.771, allocations: 4.344 kB / 1.697 GB, free: 100 MB / 0.6667 GB Notification: Performance of matching and sorting (n=134): time 0.003878/4.775, allocations: 1.72 MB / 1.699 GB, free: 99.37 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/4.775, allocations: 101 kB / 1.699 GB, free: 99.27 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004118/4.779, allocations: 2.3 MB / 1.701 GB, free: 98.39 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0002564/4.779, allocations: 49.3 kB / 1.701 GB, free: 98.34 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.001299/4.78, allocations: 1.351 MB / 1.702 GB, free: 97.3 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005526/4.781, allocations: 471.7 kB / 1.703 GB, free: 96.95 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/4.781, allocations: 31.19 kB / 1.703 GB, free: 96.93 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001312/4.781, allocations: 375.8 kB / 1.703 GB, free: 96.6 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/4.783, allocations: 0.7076 MB / 1.704 GB, free: 96.36 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001635/4.784, allocations: 1.228 MB / 1.705 GB, free: 95.46 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00176/4.786, allocations: 0.999 MB / 1.706 GB, free: 95.11 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/4.786, allocations: 3.812 kB / 1.706 GB, free: 95.11 MB / 0.6667 GB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004802/4.791, allocations: 2.321 MB / 1.708 GB, free: 94.34 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 5.727e-05/4.791, allocations: 48.12 kB / 1.708 GB, free: 94.31 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.44e-05/4.791, allocations: 24.69 kB / 1.708 GB, free: 94.3 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.745e-05/4.791, allocations: 27.44 kB / 1.708 GB, free: 94.3 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001903/4.793, allocations: 410.5 kB / 1.709 GB, free: 94.29 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-05/4.793, allocations: 37.91 kB / 1.709 GB, free: 94.29 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003014/4.796, allocations: 321.6 kB / 1.709 GB, free: 94.14 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002963/4.796, allocations: 93.11 kB / 1.709 GB, free: 94.12 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.0007102/4.797, allocations: 463.7 kB / 1.71 GB, free: 93.88 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005305/4.798, allocations: 253.1 kB / 1.71 GB, free: 93.75 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004186/4.802, allocations: 1.992 MB / 1.712 GB, free: 93.01 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-05/4.802, allocations: 13.53 kB / 1.712 GB, free: 93.01 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.188e-06/4.802, allocations: 1.844 kB / 1.712 GB, free: 93.01 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003007/4.805, allocations: 1.603 MB / 1.713 GB, free: 92.43 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009811/4.815, allocations: 4.745 MB / 1.718 GB, free: 90.53 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/4.815, allocations: 3.531 kB / 1.718 GB, free: 90.53 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001526/4.816, allocations: 263.7 kB / 1.718 GB, free: 90.52 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.695e-05/4.816, allocations: 7.469 kB / 1.718 GB, free: 90.52 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001435/4.817, allocations: 39.92 kB / 1.718 GB, free: 90.5 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.09e-05/4.817, allocations: 8.719 kB / 1.718 GB, free: 90.5 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.766e-06/4.817, allocations: 3.812 kB / 1.718 GB, free: 90.5 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006329/4.823, allocations: 3.114 MB / 1.721 GB, free: 89.11 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001976/4.825, allocations: 0.5902 MB / 1.722 GB, free: 88.74 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007613/4.826, allocations: 34.72 kB / 1.722 GB, free: 88.72 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002011/4.828, allocations: 157.5 kB / 1.722 GB, free: 88.69 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/4.828, allocations: 89.03 kB / 1.722 GB, free: 88.67 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001593/4.828, allocations: 50.56 kB / 1.722 GB, free: 88.66 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.003335/4.832, allocations: 1.795 MB / 1.724 GB, free: 87.96 MB / 0.6667 GB Notification: Performance of sort global known variables: time 9.42e-07/4.832, allocations: 0 / 1.724 GB, free: 87.96 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.003593/4.835, allocations: 0.9977 MB / 1.725 GB, free: 87.62 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.001609/4.837, allocations: 0.8191 MB / 1.726 GB, free: 87.04 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.003162/4.84, allocations: 1.786 MB / 1.728 GB, free: 85.45 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 7.47e-06/4.84, allocations: 0 / 1.728 GB, free: 85.45 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001428/4.842, allocations: 0.8843 MB / 1.728 GB, free: 84.66 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007902/4.849, allocations: 1.471 MB / 1.73 GB, free: 83.66 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009134/4.859, allocations: 4.711 MB / 1.735 GB, free: 79.59 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002104/4.861, allocations: 2.27 MB / 1.737 GB, free: 77.79 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.003491/4.864, allocations: 0.7911 MB / 1.738 GB, free: 77.25 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007683/4.865, allocations: 205.8 kB / 1.738 GB, free: 77.06 MB / 0.6667 GB Notification: Performance of SimCode: time 1.732e-06/4.865, allocations: 3.172 kB / 1.738 GB, free: 77.06 MB / 0.6667 GB Notification: Performance of Templates: time 0.1123/4.977, allocations: 53.77 MB / 1.79 GB, free: 25.75 MB / 0.6667 GB