Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Dampers.Examples.Damper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Dampers.Examples.Damper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Dampers.Examples.Damper") translateModel(Buildings.Fluid.Actuators.Dampers.Examples.Damper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Dampers.Examples.Damper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 98.95 kB / 16.42 MB, free: 6.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001096, allocations: 192.2 kB / 17.35 MB, free: 5.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.287/1.287, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.269/1.269, allocations: 251.7 MB / 0.51 GB, free: 432 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.47e-05/2.47e-05, allocations: 2.281 kB / 0.7264 GB, free: 4.766 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.Damper): time 0.5623/0.5624, allocations: 182.6 MB / 0.9047 GB, free: 7.059 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.01426/0.5767, allocations: 8.911 MB / 0.9134 GB, free: 14.14 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001551/0.5782, allocations: 35.69 kB / 0.9134 GB, free: 14.1 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.001251/0.5795, allocations: 472.8 kB / 0.9138 GB, free: 13.64 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.003708/0.5832, allocations: 1.541 MB / 0.9153 GB, free: 12.09 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.005022/0.5883, allocations: 2.06 MB / 0.9174 GB, free: 10.04 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.003199/0.5915, allocations: 2.597 MB / 0.9199 GB, free: 7.441 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/0.5927, allocations: 1.111 MB / 0.921 GB, free: 6.316 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001309/0.5941, allocations: 1.067 MB / 0.922 GB, free: 5.246 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001113/0.5952, allocations: 1.024 MB / 0.923 GB, free: 4.219 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0001925/0.5954, allocations: 139.9 kB / 0.9232 GB, free: 4.082 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002792/0.5982, allocations: 1.676 MB / 0.9248 GB, free: 2.402 MB / 0.7012 GB Notification: Performance of combineBinaries: time 0.00219/0.6004, allocations: 2.859 MB / 0.9276 GB, free: 15.52 MB / 0.7169 GB Notification: Performance of replaceArrayConstructors: time 0.0009953/0.6014, allocations: 1.458 MB / 0.929 GB, free: 14.04 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002797/0.6017, allocations: 195.3 kB / 0.9292 GB, free: 13.85 MB / 0.7169 GB Notification: Performance of FrontEnd: time 0.0001687/0.6019, allocations: 39.88 kB / 0.9292 GB, free: 13.81 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 163 (143) * Number of variables: 163 (137) Notification: Performance of Bindings: time 0.005461/0.6073, allocations: 5.996 MB / 0.9351 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of FunctionAlias: time 0.0007132/0.6081, allocations: 0.6222 MB / 0.9357 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of Early Inline: time 0.005804/0.6139, allocations: 6.283 MB / 0.9418 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of simplify1: time 0.0005404/0.6144, allocations: 0.554 MB / 0.9424 GB, free: 116 kB / 0.7169 GB Notification: Performance of Alias: time 0.004424/0.6188, allocations: 3.835 MB / 0.9461 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of simplify2: time 0.000552/0.6194, allocations: 0.55 MB / 0.9466 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of Events: time 0.0009796/0.6204, allocations: 0.9527 MB / 0.9476 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of Detect States: time 0.0009888/0.6214, allocations: 1.193 MB / 0.9487 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of Partitioning: time 0.001606/0.623, allocations: 1.649 MB / 0.9504 GB, free: 7.285 MB / 0.7325 GB Notification: Performance of Causalize: time 0.009345/0.6324, allocations: 9.27 MB / 0.9594 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of After Index Reduction Inline: time 0.004441/0.6368, allocations: 4.852 MB / 0.9641 GB, free: 8.977 MB / 0.7481 GB Notification: Performance of Inline: time 0.01187/0.6487, allocations: 12.37 MB / 0.9762 GB, free: 12.54 MB / 0.7637 GB Notification: Performance of Partitioning: time 0.0003012/0.649, allocations: 232.7 kB / 0.9764 GB, free: 12.28 MB / 0.7637 GB Notification: Performance of Cleanup: time 0.001078/0.6501, allocations: 1.174 MB / 0.9776 GB, free: 11.09 MB / 0.7637 GB Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (13) preInd.ySupSpl = preInd.ySupSpl_raw[preInd.idx_sorted] ($RES_SIM_9) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (100/188) **************************** (1) [PRMT] (1) Real res.rho = res.rho_default (fixed = true, start = res.rho_default, min = 0.0, max = 1e5, nominal = 1.0) (2) [PRMT] (1) protected Real sou.p_in_internal = sou.p (fixed = true, start = sou.p) (3) [PRMT] (1) protected Real sou.T_in_internal = sou.T (fixed = true, start = sou.T) (4) [PRMT] (1) protected Real sin.p_in_internal = sin.p (fixed = true, start = sin.p) (5) [PRMT] (1) protected Real sin.T_in_internal = sin.T (fixed = true, start = sin.T) (6) [PRMT] (1) Real preIndDpFixed_nominal.rho = preIndDpFixed_nominal.rho_default (fixed = true, start = preIndDpFixed_nominal.rho_default, min = 0.0, max = 1e5, nominal = 1.0) (7) [PRMT] (1) Real preIndFrom_dp.rho = preIndFrom_dp.rho_default (fixed = true, start = preIndFrom_dp.rho_default, min = 0.0, max = 1e5, nominal = 1.0) (8) [PRMT] (1) Real preInd.rho = preInd.rho_default (fixed = true, start = preInd.rho_default, min = 0.0, max = 1e5, nominal = 1.0) (9) [PRMT] (1) protected parameter Real preInd.coeff2 = 1.0 / preInd.coeff1 (fixed = true) (10) [PRMT] (1) protected parameter Real preInd.coeff1 = (preInd.l2 * preInd.m_flow_nominal) / preInd.dpDamper_nominal (fixed = true) (11) [PRMT] (13) protected parameter Real[13] preInd.kSupSpl_raw = {Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preInd.ySupSpl_raw[$i1], preInd.a, preInd.b, preInd.cL, preInd.cU, preInd.yL, preInd.yU) for $i1 in 1:13} .^ 2.0 (fixed = {true for $i1 in 1:13}) (12) [PRMT] (13) protected parameter Real[13] preInd.ySupSpl_raw = {1.0, (preInd.yU - 1.0) / 4.0 + 1.0, (2.0 * (preInd.yU - 1.0)) / 4.0 + 1.0, (3.0 * (preInd.yU - 1.0)) / 4.0 + 1.0, (4.0 * (preInd.yU - 1.0)) / 4.0 + 1.0, preInd.yU - 0.3333333333333333 * (preInd.yU - preInd.yL), (preInd.yU + preInd.yL) / 2.0, preInd.yU - 0.6666666666666666 * (preInd.yU - preInd.yL), preInd.yL, preInd.yL / (-4.0) + preInd.yL, (2.0 * (-preInd.yL)) / 4.0 + preInd.yL, (3.0 * (-preInd.yL)) / 4.0 + preInd.yL, (4.0 * (-preInd.yL)) / 4.0 + preInd.yL} (fixed = {true for $i1 in 1:13}) (13) [PRMT] (1) protected parameter Real preInd.kTotMin = if preInd.dpFixed_nominal > 1e-15 then sqrt(1.0 / (1.0 / preInd.kDamMin ^ 2.0 + 1.0 / preInd.kFixed ^ 2.0)) else preInd.kDamMin (fixed = true) (14) [PRMT] (1) protected parameter Real preInd.kDamMin = preInd.l * preInd.kDamMax (fixed = true) (15) [PRMT] (1) protected parameter Real preInd.kTotMax = if preInd.dpFixed_nominal > 1e-15 then sqrt(1.0 / (1.0 / preInd.kDamMax ^ 2.0 + 1.0 / preInd.kFixed ^ 2.0)) else preInd.kDamMax (fixed = true) (16) [PRMT] (1) protected parameter Real preInd.kDamMax = ((preInd.rho_default * 2.0) / preInd.k1) ^ 0.5 * preInd.A (fixed = true) (17) [PRMT] (3) protected parameter Real[3] preInd.cU = {(log(preInd.k1) - preInd.a) / ((preInd.yU ^ 2.0 + 1.0) - 2.0 * preInd.yU), ((-(preInd.b * 2.0 + preInd.a * 2.0)) * preInd.yU + preInd.yU ^ 2.0 * preInd.b + preInd.yU * 2.0 * log(preInd.k1) + preInd.b) / (-((1.0 + preInd.yU ^ 2.0) - preInd.yU * 2.0)), (preInd.b + preInd.b * preInd.yU ^ 2.0 + log(preInd.k1) * preInd.yU ^ 2.0 + preInd.yU * (-(2.0 * preInd.a + 2.0 * preInd.b)) + preInd.a) / ((preInd.yU ^ 2.0 + 1.0) - 2.0 * preInd.yU)} (fixed = {true for $i1 in 1:3}) (18) [PRMT] (3) protected parameter Real[3] preInd.cL = {(log(preInd.k0) - (preInd.a + preInd.b)) / preInd.yL ^ 2.0, ((2.0 * preInd.b + preInd.a * 2.0) - (preInd.yL * preInd.b + log(preInd.k0) * 2.0)) / preInd.yL, log(preInd.k0)} (fixed = {true for $i1 in 1:3}) (19) [PRMT] (1) protected parameter Real preInd.kU = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preInd.yU, preInd.a, preInd.b, preInd.cL, preInd.cU, preInd.yL, preInd.yU) ^ 2.0 (fixed = true) (20) [PRMT] (1) protected parameter Real preInd.kL = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preInd.yL, preInd.a, preInd.b, preInd.cL, preInd.cU, preInd.yL, preInd.yU) ^ 2.0 (fixed = true) (21) [PRMT] (1) protected parameter Real preInd.facRouDuc = if preInd.roundDuct then 0.8862269254527579 else 1.0 (fixed = true) (22) [PRMT] (1) protected parameter Real preInd.rho_default = Buildings.Fluid.Actuators.Dampers.Examples.Damper.preInd.Medium.density(preInd.sta_default) (fixed = true, start = 1.0, min = 0.0, max = 1e5, nominal = 1.0) (23) [PRMT] (1) final parameter Real preInd.kFixed = if preInd.dpFixed_nominal > 1e-15 then preInd.m_flow_nominal / sqrt(preInd.dpFixed_nominal) else 1e60 (fixed = true) (24) [PRMT] (1) final parameter Real preInd.k0 = preInd.rho_default * 2.0 * (preInd.A / preInd.kDamMin) ^ 2.0 (fixed = true, min = 0.0) (25) [PRMT] (1) final parameter Real preInd.A = preInd.m_flow_nominal / (preInd.v_nominal * preInd.rho_default) (fixed = true) (26) [PRMT] (1) final parameter Real preInd.v_nominal = ((2.0 * preInd.dpDamper_nominal) / (preInd.rho_default * preInd.k1)) ^ 0.5 (fixed = true) (27) [PRMT] (1) protected final parameter Real preInd.dp_nominal_pos = abs(preInd.dp_nominal) (fixed = true) (28) [PRMT] (1) protected final parameter Real preInd.m_flow_nominal_pos = abs(preInd.m_flow_nominal) (fixed = true) (29) [PRMT] (1) protected parameter Real preInd.eta_default = Buildings.Fluid.Actuators.Dampers.Examples.Damper.preInd.Medium.dynamicViscosity(preInd.sta_default) (fixed = true, min = 0.0) (30) [PRMT] (1) final parameter Real preInd.m_flow_turbulent = if preInd.use_deltaM then preInd.m_flow_nominal * preInd.deltaM else preInd.facRouDuc * preInd.ReC * preInd.eta_default * sqrt(preInd.A) (fixed = true, min = 0.0) (31) [PRMT] (1) final parameter Real preInd.dp_nominal = preInd.dpDamper_nominal + preInd.dpFixed_nominal (fixed = true) (32) [PRMT] (1) final parameter Real preInd.m_flow_small = 1e-4 * abs(preInd.m_flow_nominal) (fixed = true, min = 0.0) (33) [PRMT] (1) protected parameter Real preIndFrom_dp.coeff2 = 1.0 / preIndFrom_dp.coeff1 (fixed = true) (34) [PRMT] (1) protected parameter Real preIndFrom_dp.coeff1 = (preIndFrom_dp.l2 * preIndFrom_dp.m_flow_nominal) / preIndFrom_dp.dpDamper_nominal (fixed = true) (35) [PRMT] (13) protected parameter Real[13] preIndFrom_dp.kSupSpl_raw = {Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preIndFrom_dp.ySupSpl_raw[$i1], preIndFrom_dp.a, preIndFrom_dp.b, preIndFrom_dp.cL, preIndFrom_dp.cU, preIndFrom_dp.yL, preIndFrom_dp.yU) for $i1 in 1:13} .^ 2.0 (fixed = {true for $i1 in 1:13}) (36) [PRMT] (13) protected parameter Real[13] preIndFrom_dp.ySupSpl_raw = {1.0, (preIndFrom_dp.yU - 1.0) / 4.0 + 1.0, (2.0 * (preIndFrom_dp.yU - 1.0)) / 4.0 + 1.0, (3.0 * (preIndFrom_dp.yU - 1.0)) / 4.0 + 1.0, (4.0 * (preIndFrom_dp.yU - 1.0)) / 4.0 + 1.0, preIndFrom_dp.yU - 0.3333333333333333 * (preIndFrom_dp.yU - preIndFrom_dp.yL), (preIndFrom_dp.yU + preIndFrom_dp.yL) / 2.0, preIndFrom_dp.yU - 0.6666666666666666 * (preIndFrom_dp.yU - preIndFrom_dp.yL), preIndFrom_dp.yL, preIndFrom_dp.yL / (-4.0) + preIndFrom_dp.yL, (2.0 * (-preIndFrom_dp.yL)) / 4.0 + preIndFrom_dp.yL, (3.0 * (-preIndFrom_dp.yL)) / 4.0 + preIndFrom_dp.yL, (4.0 * (-preIndFrom_dp.yL)) / 4.0 + preIndFrom_dp.yL} (fixed = {true for $i1 in 1:13}) (37) [PRMT] (1) protected parameter Real preIndFrom_dp.kTotMin = if preIndFrom_dp.dpFixed_nominal > 1e-15 then sqrt(1.0 / (1.0 / preIndFrom_dp.kDamMin ^ 2.0 + 1.0 / preIndFrom_dp.kFixed ^ 2.0)) else preIndFrom_dp.kDamMin (fixed = true) (38) [PRMT] (1) protected parameter Real preIndFrom_dp.kDamMin = preIndFrom_dp.l * preIndFrom_dp.kDamMax (fixed = true) (39) [PRMT] (1) protected parameter Real preIndFrom_dp.kTotMax = if preIndFrom_dp.dpFixed_nominal > 1e-15 then sqrt(1.0 / (1.0 / preIndFrom_dp.kDamMax ^ 2.0 + 1.0 / preIndFrom_dp.kFixed ^ 2.0)) else preIndFrom_dp.kDamMax (fixed = true) (40) [PRMT] (1) protected parameter Real preIndFrom_dp.kDamMax = ((preIndFrom_dp.rho_default * 2.0) / preIndFrom_dp.k1) ^ 0.5 * preIndFrom_dp.A (fixed = true) (41) [PRMT] (3) protected parameter Real[3] preIndFrom_dp.cU = {(log(preIndFrom_dp.k1) - preIndFrom_dp.a) / ((preIndFrom_dp.yU ^ 2.0 + 1.0) - 2.0 * preIndFrom_dp.yU), ((-(preIndFrom_dp.b * 2.0 + preIndFrom_dp.a * 2.0)) * preIndFrom_dp.yU + preIndFrom_dp.yU ^ 2.0 * preIndFrom_dp.b + preIndFrom_dp.yU * 2.0 * log(preIndFrom_dp.k1) + preIndFrom_dp.b) / (-((1.0 + preIndFrom_dp.yU ^ 2.0) - preIndFrom_dp.yU * 2.0)), (preIndFrom_dp.b + preIndFrom_dp.b * preIndFrom_dp.yU ^ 2.0 + log(preIndFrom_dp.k1) * preIndFrom_dp.yU ^ 2.0 + preIndFrom_dp.yU * (-(2.0 * preIndFrom_dp.a + 2.0 * preIndFrom_dp.b)) + preIndFrom_dp.a) / ((preIndFrom_dp.yU ^ 2.0 + 1.0) - 2.0 * preIndFrom_dp.yU)} (fixed = {true for $i1 in 1:3}) (42) [PRMT] (3) protected parameter Real[3] preIndFrom_dp.cL = {(log(preIndFrom_dp.k0) - (preIndFrom_dp.a + preIndFrom_dp.b)) / preIndFrom_dp.yL ^ 2.0, ((2.0 * preIndFrom_dp.b + preIndFrom_dp.a * 2.0) - (preIndFrom_dp.yL * preIndFrom_dp.b + log(preIndFrom_dp.k0) * 2.0)) / preIndFrom_dp.yL, log(preIndFrom_dp.k0)} (fixed = {true for $i1 in 1:3}) (43) [PRMT] (1) protected parameter Real preIndFrom_dp.kU = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preIndFrom_dp.yU, preIndFrom_dp.a, preIndFrom_dp.b, preIndFrom_dp.cL, preIndFrom_dp.cU, preIndFrom_dp.yL, preIndFrom_dp.yU) ^ 2.0 (fixed = true) (44) [PRMT] (1) protected parameter Real preIndFrom_dp.kL = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preIndFrom_dp.yL, preIndFrom_dp.a, preIndFrom_dp.b, preIndFrom_dp.cL, preIndFrom_dp.cU, preIndFrom_dp.yL, preIndFrom_dp.yU) ^ 2.0 (fixed = true) (45) [PRMT] (1) protected parameter Real preIndFrom_dp.facRouDuc = if preIndFrom_dp.roundDuct then 0.8862269254527579 else 1.0 (fixed = true) (46) [PRMT] (1) protected parameter Real preIndFrom_dp.rho_default = Buildings.Fluid.Actuators.Dampers.Examples.Damper.preIndFrom_dp.Medium.density(preIndFrom_dp.sta_default) (fixed = true, start = 1.0, min = 0.0, max = 1e5, nominal = 1.0) (47) [PRMT] (1) final parameter Real preIndFrom_dp.kFixed = if preIndFrom_dp.dpFixed_nominal > 1e-15 then preIndFrom_dp.m_flow_nominal / sqrt(preIndFrom_dp.dpFixed_nominal) else 1e60 (fixed = true) (48) [PRMT] (1) final parameter Real preIndFrom_dp.k0 = preIndFrom_dp.rho_default * 2.0 * (preIndFrom_dp.A / preIndFrom_dp.kDamMin) ^ 2.0 (fixed = true, min = 0.0) (49) [PRMT] (1) final parameter Real preIndFrom_dp.A = preIndFrom_dp.m_flow_nominal / (preIndFrom_dp.v_nominal * preIndFrom_dp.rho_default) (fixed = true) (50) [PRMT] (1) final parameter Real preIndFrom_dp.v_nominal = ((2.0 * preIndFrom_dp.dpDamper_nominal) / (preIndFrom_dp.rho_default * preIndFrom_dp.k1)) ^ 0.5 (fixed = true) (51) [PRMT] (1) protected final parameter Real preIndFrom_dp.dp_nominal_pos = abs(preIndFrom_dp.dp_nominal) (fixed = true) (52) [PRMT] (1) protected final parameter Real preIndFrom_dp.m_flow_nominal_pos = abs(preIndFrom_dp.m_flow_nominal) (fixed = true) (53) [PRMT] (1) protected parameter Real preIndFrom_dp.eta_default = Buildings.Fluid.Actuators.Dampers.Examples.Damper.preIndFrom_dp.Medium.dynamicViscosity(preIndFrom_dp.sta_default) (fixed = true, min = 0.0) (54) [PRMT] (1) final parameter Real preIndFrom_dp.m_flow_turbulent = if preIndFrom_dp.use_deltaM then preIndFrom_dp.m_flow_nominal * preIndFrom_dp.deltaM else preIndFrom_dp.facRouDuc * preIndFrom_dp.ReC * preIndFrom_dp.eta_default * sqrt(preIndFrom_dp.A) (fixed = true, min = 0.0) (55) [PRMT] (1) final parameter Real preIndFrom_dp.dp_nominal = preIndFrom_dp.dpDamper_nominal + preIndFrom_dp.dpFixed_nominal (fixed = true) (56) [PRMT] (1) final parameter Real preIndFrom_dp.m_flow_small = 1e-4 * abs(preIndFrom_dp.m_flow_nominal) (fixed = true, min = 0.0) (57) [PRMT] (1) protected parameter Real preIndDpFixed_nominal.coeff2 = 1.0 / preIndDpFixed_nominal.coeff1 (fixed = true) (58) [PRMT] (1) protected parameter Real preIndDpFixed_nominal.coeff1 = (preIndDpFixed_nominal.l2 * preIndDpFixed_nominal.m_flow_nominal) / preIndDpFixed_nominal.dpDamper_nominal (fixed = true) (59) [PRMT] (13) protected parameter Real[13] preIndDpFixed_nominal.kSupSpl_raw = {Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preIndDpFixed_nominal.ySupSpl_raw[$i1], preIndDpFixed_nominal.a, preIndDpFixed_nominal.b, preIndDpFixed_nominal.cL, preIndDpFixed_nominal.cU, preIndDpFixed_nominal.yL, preIndDpFixed_nominal.yU) for $i1 in 1:13} .^ 2.0 (fixed = {true for $i1 in 1:13}) (60) [PRMT] (13) protected parameter Real[13] preIndDpFixed_nominal.ySupSpl_raw = {1.0, (preIndDpFixed_nominal.yU - 1.0) / 4.0 + 1.0, (2.0 * (preIndDpFixed_nominal.yU - 1.0)) / 4.0 + 1.0, (3.0 * (preIndDpFixed_nominal.yU - 1.0)) / 4.0 + 1.0, (4.0 * (preIndDpFixed_nominal.yU - 1.0)) / 4.0 + 1.0, preIndDpFixed_nominal.yU - 0.3333333333333333 * (preIndDpFixed_nominal.yU - preIndDpFixed_nominal.yL), (preIndDpFixed_nominal.yU + preIndDpFixed_nominal.yL) / 2.0, preIndDpFixed_nominal.yU - 0.6666666666666666 * (preIndDpFixed_nominal.yU - preIndDpFixed_nominal.yL), preIndDpFixed_nominal.yL, preIndDpFixed_nominal.yL / (-4.0) + preIndDpFixed_nominal.yL, (2.0 * (-preIndDpFixed_nominal.yL)) / 4.0 + preIndDpFixed_nominal.yL, (3.0 * (-preIndDpFixed_nominal.yL)) / 4.0 + preIndDpFixed_nominal.yL, (4.0 * (-preIndDpFixed_nominal.yL)) / 4.0 + preIndDpFixed_nominal.yL} (fixed = {true for $i1 in 1:13}) (61) [PRMT] (1) protected parameter Real preIndDpFixed_nominal.kTotMin = if preIndDpFixed_nominal.dpFixed_nominal > 1e-15 then sqrt(1.0 / (1.0 / preIndDpFixed_nominal.kDamMin ^ 2.0 + 1.0 / preIndDpFixed_nominal.kFixed ^ 2.0)) else preIndDpFixed_nominal.kDamMin (fixed = true) (62) [PRMT] (1) protected parameter Real preIndDpFixed_nominal.kDamMin = preIndDpFixed_nominal.l * preIndDpFixed_nominal.kDamMax (fixed = true) (63) [PRMT] (1) protected parameter Real preIndDpFixed_nominal.kTotMax = if preIndDpFixed_nominal.dpFixed_nominal > 1e-15 then sqrt(1.0 / (1.0 / preIndDpFixed_nominal.kDamMax ^ 2.0 + 1.0 / preIndDpFixed_nominal.kFixed ^ 2.0)) else preIndDpFixed_nominal.kDamMax (fixed = true) (64) [PRMT] (1) protected parameter Real preIndDpFixed_nominal.kDamMax = ((preIndDpFixed_nominal.rho_default * 2.0) / preIndDpFixed_nominal.k1) ^ 0.5 * preIndDpFixed_nominal.A (fixed = true) (65) [PRMT] (3) protected parameter Real[3] preIndDpFixed_nominal.cU = {(log(preIndDpFixed_nominal.k1) - preIndDpFixed_nominal.a) / ((preIndDpFixed_nominal.yU ^ 2.0 + 1.0) - 2.0 * preIndDpFixed_nominal.yU), ((-(preIndDpFixed_nominal.b * 2.0 + preIndDpFixed_nominal.a * 2.0)) * preIndDpFixed_nominal.yU + preIndDpFixed_nominal.yU ^ 2.0 * preIndDpFixed_nominal.b + preIndDpFixed_nominal.yU * 2.0 * log(preIndDpFixed_nominal.k1) + preIndDpFixed_nominal.b) / (-((1.0 + preIndDpFixed_nominal.yU ^ 2.0) - preIndDpFixed_nominal.yU * 2.0)), (preIndDpFixed_nominal.b + preIndDpFixed_nominal.b * preIndDpFixed_nominal.yU ^ 2.0 + log(preIndDpFixed_nominal.k1) * preIndDpFixed_nominal.yU ^ 2.0 + preIndDpFixed_nominal.yU * (-(2.0 * preIndDpFixed_nominal.a + 2.0 * preIndDpFixed_nominal.b)) + preIndDpFixed_nominal.a) / ((preIndDpFixed_nominal.yU ^ 2.0 + 1.0) - 2.0 * preIndDpFixed_nominal.yU)} (fixed = {true for $i1 in 1:3}) (66) [PRMT] (3) protected parameter Real[3] preIndDpFixed_nominal.cL = {(log(preIndDpFixed_nominal.k0) - (preIndDpFixed_nominal.a + preIndDpFixed_nominal.b)) / preIndDpFixed_nominal.yL ^ 2.0, ((2.0 * preIndDpFixed_nominal.b + preIndDpFixed_nominal.a * 2.0) - (preIndDpFixed_nominal.yL * preIndDpFixed_nominal.b + log(preIndDpFixed_nominal.k0) * 2.0)) / preIndDpFixed_nominal.yL, log(preIndDpFixed_nominal.k0)} (fixed = {true for $i1 in 1:3}) (67) [PRMT] (1) protected parameter Real preIndDpFixed_nominal.kU = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preIndDpFixed_nominal.yU, preIndDpFixed_nominal.a, preIndDpFixed_nominal.b, preIndDpFixed_nominal.cL, preIndDpFixed_nominal.cU, preIndDpFixed_nominal.yL, preIndDpFixed_nominal.yU) ^ 2.0 (fixed = true) (68) [PRMT] (1) protected parameter Real preIndDpFixed_nominal.kL = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preIndDpFixed_nominal.yL, preIndDpFixed_nominal.a, preIndDpFixed_nominal.b, preIndDpFixed_nominal.cL, preIndDpFixed_nominal.cU, preIndDpFixed_nominal.yL, preIndDpFixed_nominal.yU) ^ 2.0 (fixed = true) (69) [PRMT] (1) protected parameter Real preIndDpFixed_nominal.facRouDuc = if preIndDpFixed_nominal.roundDuct then 0.8862269254527579 else 1.0 (fixed = true) (70) [PRMT] (1) protected parameter Real preIndDpFixed_nominal.rho_default = Buildings.Fluid.Actuators.Dampers.Examples.Damper.preIndDpFixed_nominal.Medium.density(preIndDpFixed_nominal.sta_default) (fixed = true, start = 1.0, min = 0.0, max = 1e5, nominal = 1.0) (71) [PRMT] (1) final parameter Real preIndDpFixed_nominal.kFixed = if preIndDpFixed_nominal.dpFixed_nominal > 1e-15 then preIndDpFixed_nominal.m_flow_nominal / sqrt(preIndDpFixed_nominal.dpFixed_nominal) else 1e60 (fixed = true) (72) [PRMT] (1) final parameter Real preIndDpFixed_nominal.k0 = preIndDpFixed_nominal.rho_default * 2.0 * (preIndDpFixed_nominal.A / preIndDpFixed_nominal.kDamMin) ^ 2.0 (fixed = true, min = 0.0) (73) [PRMT] (1) final parameter Real preIndDpFixed_nominal.A = preIndDpFixed_nominal.m_flow_nominal / (preIndDpFixed_nominal.v_nominal * preIndDpFixed_nominal.rho_default) (fixed = true) (74) [PRMT] (1) final parameter Real preIndDpFixed_nominal.v_nominal = ((2.0 * preIndDpFixed_nominal.dpDamper_nominal) / (preIndDpFixed_nominal.rho_default * preIndDpFixed_nominal.k1)) ^ 0.5 (fixed = true) (75) [PRMT] (1) protected final parameter Real preIndDpFixed_nominal.dp_nominal_pos = abs(preIndDpFixed_nominal.dp_nominal) (fixed = true) (76) [PRMT] (1) protected final parameter Real preIndDpFixed_nominal.m_flow_nominal_pos = abs(preIndDpFixed_nominal.m_flow_nominal) (fixed = true) (77) [PRMT] (1) protected parameter Real preIndDpFixed_nominal.eta_default = Buildings.Fluid.Actuators.Dampers.Examples.Damper.preIndDpFixed_nominal.Medium.dynamicViscosity(preIndDpFixed_nominal.sta_default) (fixed = true, min = 0.0) (78) [PRMT] (1) final parameter Real preIndDpFixed_nominal.m_flow_turbulent = if preIndDpFixed_nominal.use_deltaM then preIndDpFixed_nominal.m_flow_nominal * preIndDpFixed_nominal.deltaM else preIndDpFixed_nominal.facRouDuc * preIndDpFixed_nominal.ReC * preIndDpFixed_nominal.eta_default * sqrt(preIndDpFixed_nominal.A) (fixed = true, min = 0.0) (79) [PRMT] (1) final parameter Real preIndDpFixed_nominal.dp_nominal = preIndDpFixed_nominal.dpDamper_nominal + preIndDpFixed_nominal.dpFixed_nominal (fixed = true) (80) [PRMT] (1) final parameter Real preIndDpFixed_nominal.m_flow_small = 1e-4 * abs(preIndDpFixed_nominal.m_flow_nominal) (fixed = true, min = 0.0) (81) [PRMT] (1) protected parameter Real res.kTotMin = if res.dpFixed_nominal > 1e-15 then sqrt(1.0 / (1.0 / res.kDamMin ^ 2.0 + 1.0 / res.kFixed ^ 2.0)) else res.kDamMin (fixed = true) (82) [PRMT] (1) protected parameter Real res.kDamMin = res.l * res.kDamMax (fixed = true) (83) [PRMT] (1) protected parameter Real res.kTotMax = if res.dpFixed_nominal > 1e-15 then sqrt(1.0 / (1.0 / res.kDamMax ^ 2.0 + 1.0 / res.kFixed ^ 2.0)) else res.kDamMax (fixed = true) (84) [PRMT] (1) protected parameter Real res.kDamMax = ((res.rho_default * 2.0) / res.k1) ^ 0.5 * res.A (fixed = true) (85) [PRMT] (3) protected parameter Real[3] res.cU = {(log(res.k1) - res.a) / ((res.yU ^ 2.0 + 1.0) - 2.0 * res.yU), ((-(res.b * 2.0 + res.a * 2.0)) * res.yU + res.yU ^ 2.0 * res.b + res.yU * 2.0 * log(res.k1) + res.b) / (-((1.0 + res.yU ^ 2.0) - res.yU * 2.0)), (res.b + res.b * res.yU ^ 2.0 + log(res.k1) * res.yU ^ 2.0 + res.yU * (-(2.0 * res.a + 2.0 * res.b)) + res.a) / ((res.yU ^ 2.0 + 1.0) - 2.0 * res.yU)} (fixed = {true for $i1 in 1:3}) (86) [PRMT] (3) protected parameter Real[3] res.cL = {(log(res.k0) - (res.a + res.b)) / res.yL ^ 2.0, ((2.0 * res.b + res.a * 2.0) - (res.yL * res.b + log(res.k0) * 2.0)) / res.yL, log(res.k0)} (fixed = {true for $i1 in 1:3}) (87) [PRMT] (1) protected parameter Real res.kU = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(res.yU, res.a, res.b, res.cL, res.cU, res.yL, res.yU) ^ 2.0 (fixed = true) (88) [PRMT] (1) protected parameter Real res.kL = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(res.yL, res.a, res.b, res.cL, res.cU, res.yL, res.yU) ^ 2.0 (fixed = true) (89) [PRMT] (1) protected parameter Real res.facRouDuc = if res.roundDuct then 0.8862269254527579 else 1.0 (fixed = true) (90) [PRMT] (1) protected parameter Real res.rho_default = Buildings.Fluid.Actuators.Dampers.Examples.Damper.res.Medium.density(res.sta_default) (fixed = true, start = 1.0, min = 0.0, max = 1e5, nominal = 1.0) (91) [PRMT] (1) final parameter Real res.kFixed = if res.dpFixed_nominal > 1e-15 then res.m_flow_nominal / sqrt(res.dpFixed_nominal) else 1e60 (fixed = true) (92) [PRMT] (1) final parameter Real res.k0 = res.rho_default * 2.0 * (res.A / res.kDamMin) ^ 2.0 (fixed = true, min = 0.0) (93) [PRMT] (1) final parameter Real res.A = res.m_flow_nominal / (res.v_nominal * res.rho_default) (fixed = true) (94) [PRMT] (1) final parameter Real res.v_nominal = ((2.0 * res.dpDamper_nominal) / (res.rho_default * res.k1)) ^ 0.5 (fixed = true) (95) [PRMT] (1) protected final parameter Real res.dp_nominal_pos = abs(res.dp_nominal) (fixed = true) (96) [PRMT] (1) protected final parameter Real res.m_flow_nominal_pos = abs(res.m_flow_nominal) (fixed = true) (97) [PRMT] (1) protected parameter Real res.eta_default = Buildings.Fluid.Actuators.Dampers.Examples.Damper.res.Medium.dynamicViscosity(res.sta_default) (fixed = true, min = 0.0) (98) [PRMT] (1) final parameter Real res.m_flow_turbulent = if res.use_deltaM then res.m_flow_nominal * res.deltaM else res.facRouDuc * res.ReC * res.eta_default * sqrt(res.A) (fixed = true, min = 0.0) (99) [PRMT] (1) final parameter Real res.dp_nominal = res.dpDamper_nominal + res.dpFixed_nominal (fixed = true) (100) [PRMT] (1) final parameter Real res.m_flow_small = 1e-4 * abs(res.m_flow_nominal) (fixed = true, min = 0.0) System Equations (114/344) **************************** (1) [ARRY] (13) preInd.invSplDer = $FUN_30 ($RES_SIM_8) (2) [ARRY] (13) preInd.ySupSpl = preInd.ySupSpl_raw[preInd.idx_sorted] ($RES_SIM_9) (3) [ARRY] (13) preIndFrom_dp.invSplDer = $FUN_26 ($RES_SIM_19) (4) [ARRY] (13) preIndFrom_dp.ySupSpl = preIndFrom_dp.ySupSpl_raw[preIndFrom_dp.idx_sorted] ($RES_SIM_20) (5) [ARRY] (13) preIndDpFixed_nominal.invSplDer = $FUN_22 ($RES_SIM_30) (6) [ARRY] (13) preIndDpFixed_nominal.ySupSpl = preIndDpFixed_nominal.ySupSpl_raw[preIndDpFixed_nominal.idx_sorted] ($RES_SIM_31) (7) [ALGO] (0) ($RES_SIM_33) (7) [----] Modelica.Fluid.Utilities.checkBoundary("Air", {"water", "air"}, false, true, sin.X_in_internal, "Boundary_pT"); (8) [ALGO] (0) ($RES_SIM_35) (8) [----] Modelica.Fluid.Utilities.checkBoundary("Air", {"water", "air"}, false, true, sou.X_in_internal, "Boundary_pT"); (9) [ARRY] (13) preInd.idx_sorted = $FUN_28 ($RES_$AUX_226) (10) [ARRY] (13) preInd.kSupSpl = $FUN_27 ($RES_$AUX_225) (11) [ARRY] (13) preIndFrom_dp.idx_sorted = $FUN_24 ($RES_$AUX_224) (12) [ARRY] (13) preIndFrom_dp.kSupSpl = $FUN_23 ($RES_$AUX_223) (13) [ARRY] (13) preIndDpFixed_nominal.idx_sorted = $FUN_20 ($RES_$AUX_222) (14) [ARRY] (13) preIndDpFixed_nominal.kSupSpl = $FUN_19 ($RES_$AUX_221) (15) [SCAL] (1) res.rho = res.rho_default ($RES_BND_381) (16) [SCAL] (1) sou.p_in_internal = sou.p ($RES_BND_380) (17) [SCAL] (1) sou.T_in_internal = sou.T ($RES_BND_379) (18) [SCAL] (1) sin.p_in_internal = sin.p ($RES_BND_378) (19) [SCAL] (1) sin.T_in_internal = sin.T ($RES_BND_377) (20) [SCAL] (1) preIndDpFixed_nominal.rho = preIndDpFixed_nominal.rho_default ($RES_BND_376) (21) [SCAL] (1) preIndFrom_dp.rho = preIndFrom_dp.rho_default ($RES_BND_375) (22) [SCAL] (1) preInd.rho = preInd.rho_default ($RES_BND_374) (23) [SCAL] (1) preInd.coeff2 = 1/preInd.coeff1 ($RES_BND_373) (24) [SCAL] (1) preInd.coeff1 = (preInd.l2 * preInd.m_flow_nominal) / preInd.dpDamper_nominal ($RES_BND_372) (25) [FOR-] (13) ($RES_BND_370) (25) [----] for $i1 in 1:13 loop (25) [----] [SCAL] (1) preInd.kSupSpl_raw[$i1] = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preInd.ySupSpl_raw[$i1], preInd.a, preInd.b, preInd.cL, preInd.cU, preInd.yL, preInd.yU) ^ 2.0 ($RES_BND_371) (25) [----] end for; (26) [ARRY] (13) preInd.ySupSpl_raw = {1.0, 1.0 + 0.25 * ((-1.0) + preInd.yU), 1.0 + 0.5 * ((-1.0) + preInd.yU), 1.0 + 0.75 * ((-1.0) + preInd.yU), 1.0 + ((-1.0) + preInd.yU), preInd.yU - 0.3333333333333333 * (preInd.yU - preInd.yL), 0.5 * (preInd.yU + preInd.yL), preInd.yU - 0.6666666666666666 * (preInd.yU - preInd.yL), preInd.yL, preInd.yL - 0.25 * preInd.yL, preInd.yL - 0.5 * preInd.yL, preInd.yL - 0.75 * preInd.yL, preInd.yL - preInd.yL} ($RES_BND_369) (27) [SCAL] (1) preInd.kTotMin = if preInd.dpFixed_nominal > 1e-15 then sqrt(1/(1/preInd.kDamMin ^ 2.0 + 1/preInd.kFixed ^ 2.0)) else preInd.kDamMin ($RES_BND_368) (28) [SCAL] (1) preInd.kDamMin = preInd.l * preInd.kDamMax ($RES_BND_367) (29) [SCAL] (1) preInd.kTotMax = if preInd.dpFixed_nominal > 1e-15 then sqrt(1/(1/preInd.kDamMax ^ 2.0 + 1/preInd.kFixed ^ 2.0)) else preInd.kDamMax ($RES_BND_366) (30) [SCAL] (1) preInd.kDamMax = ((2.0 * preInd.rho_default) / preInd.k1) ^ 0.5 * preInd.A ($RES_BND_365) (31) [ARRY] (3) preInd.cU = {(log(preInd.k1) - preInd.a) / ((1.0 + preInd.yU ^ 2.0) - 2.0 * preInd.yU), -((preInd.yU ^ 2.0 * preInd.b + 2.0 * preInd.yU * log(preInd.k1) + preInd.b) - (2.0 * preInd.b + 2.0 * preInd.a) * preInd.yU) / ((1.0 + preInd.yU ^ 2.0) - 2.0 * preInd.yU), ((preInd.b + preInd.b * preInd.yU ^ 2.0 + log(preInd.k1) * preInd.yU ^ 2.0 + preInd.a) - preInd.yU * (2.0 * preInd.a + 2.0 * preInd.b)) / ((1.0 + preInd.yU ^ 2.0) - 2.0 * preInd.yU)} ($RES_BND_364) (32) [ARRY] (3) preInd.cL = {(log(preInd.k0) - (preInd.a + preInd.b)) / preInd.yL ^ 2.0, ((2.0 * preInd.b + 2.0 * preInd.a) - (preInd.yL * preInd.b + 2.0 * log(preInd.k0))) / preInd.yL, log(preInd.k0)} ($RES_BND_363) (33) [SCAL] (1) preInd.kU = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preInd.yU, preInd.a, preInd.b, preInd.cL, preInd.cU, preInd.yL, preInd.yU) ^ 2.0 ($RES_BND_362) (34) [SCAL] (1) preInd.kL = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preInd.yL, preInd.a, preInd.b, preInd.cL, preInd.cU, preInd.yL, preInd.yU) ^ 2.0 ($RES_BND_361) (35) [SCAL] (1) preInd.facRouDuc = if preInd.roundDuct then 0.8862269254527579 else 1.0 ($RES_BND_360) (36) [SCAL] (1) preInd.rho_default = 1.1843079200592153e-5 * preInd.sta_default.p ($RES_BND_359) (37) [SCAL] (1) preInd.kFixed = if preInd.dpFixed_nominal > 1e-15 then preInd.m_flow_nominal / sqrt(preInd.dpFixed_nominal) else 1e60 ($RES_BND_358) (38) [SCAL] (1) preInd.k0 = 2.0 * preInd.rho_default * (preInd.A / preInd.kDamMin) ^ 2.0 ($RES_BND_357) (39) [SCAL] (1) preInd.A = preInd.m_flow_nominal / (preInd.v_nominal * preInd.rho_default) ($RES_BND_356) (40) [SCAL] (1) preInd.v_nominal = ((2.0 * preInd.dpDamper_nominal) / (preInd.rho_default * preInd.k1)) ^ 0.5 ($RES_BND_355) (41) [SCAL] (1) preInd.dp_nominal_pos = abs(preInd.dp_nominal) ($RES_BND_354) (42) [SCAL] (1) preInd.m_flow_nominal_pos = abs(preInd.m_flow_nominal) ($RES_BND_353) (43) [SCAL] (1) preInd.eta_default = 3.88335940547e-6 + 4.89493640395e-8 * preInd.sta_default.T ($RES_BND_352) (44) [SCAL] (1) preInd.m_flow_turbulent = if preInd.use_deltaM then preInd.m_flow_nominal * preInd.deltaM else preInd.facRouDuc * preInd.ReC * preInd.eta_default * sqrt(preInd.A) ($RES_BND_351) (45) [SCAL] (1) preInd.dp_nominal = preInd.dpDamper_nominal + preInd.dpFixed_nominal ($RES_BND_350) (46) [SCAL] (1) preInd.m_flow_small = 1e-4 * abs(preInd.m_flow_nominal) ($RES_BND_349) (47) [SCAL] (1) preIndFrom_dp.coeff2 = 1/preIndFrom_dp.coeff1 ($RES_BND_348) (48) [SCAL] (1) preIndFrom_dp.coeff1 = (preIndFrom_dp.l2 * preIndFrom_dp.m_flow_nominal) / preIndFrom_dp.dpDamper_nominal ($RES_BND_347) (49) [FOR-] (13) ($RES_BND_345) (49) [----] for $i1 in 1:13 loop (49) [----] [SCAL] (1) preIndFrom_dp.kSupSpl_raw[$i1] = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preIndFrom_dp.ySupSpl_raw[$i1], preIndFrom_dp.a, preIndFrom_dp.b, preIndFrom_dp.cL, preIndFrom_dp.cU, preIndFrom_dp.yL, preIndFrom_dp.yU) ^ 2.0 ($RES_BND_346) (49) [----] end for; (50) [ARRY] (13) preIndFrom_dp.ySupSpl_raw = {1.0, 1.0 + 0.25 * ((-1.0) + preIndFrom_dp.yU), 1.0 + 0.5 * ((-1.0) + preIndFrom_dp.yU), 1.0 + 0.75 * ((-1.0) + preIndFrom_dp.yU), 1.0 + ((-1.0) + preIndFrom_dp.yU), preIndFrom_dp.yU - 0.3333333333333333 * (preIndFrom_dp.yU - preIndFrom_dp.yL), 0.5 * (preIndFrom_dp.yU + preIndFrom_dp.yL), preIndFrom_dp.yU - 0.6666666666666666 * (preIndFrom_dp.yU - preIndFrom_dp.yL), preIndFrom_dp.yL, preIndFrom_dp.yL - 0.25 * preIndFrom_dp.yL, preIndFrom_dp.yL - 0.5 * preIndFrom_dp.yL, preIndFrom_dp.yL - 0.75 * preIndFrom_dp.yL, preIndFrom_dp.yL - preIndFrom_dp.yL} ($RES_BND_344) (51) [SCAL] (1) preIndFrom_dp.kTotMin = if preIndFrom_dp.dpFixed_nominal > 1e-15 then sqrt(1/(1/preIndFrom_dp.kDamMin ^ 2.0 + 1/preIndFrom_dp.kFixed ^ 2.0)) else preIndFrom_dp.kDamMin ($RES_BND_343) (52) [SCAL] (1) preIndFrom_dp.kDamMin = preIndFrom_dp.l * preIndFrom_dp.kDamMax ($RES_BND_342) (53) [SCAL] (1) preIndFrom_dp.kTotMax = if preIndFrom_dp.dpFixed_nominal > 1e-15 then sqrt(1/(1/preIndFrom_dp.kDamMax ^ 2.0 + 1/preIndFrom_dp.kFixed ^ 2.0)) else preIndFrom_dp.kDamMax ($RES_BND_341) (54) [SCAL] (1) preIndFrom_dp.kDamMax = ((2.0 * preIndFrom_dp.rho_default) / preIndFrom_dp.k1) ^ 0.5 * preIndFrom_dp.A ($RES_BND_340) (55) [ARRY] (3) preIndFrom_dp.cU = {(log(preIndFrom_dp.k1) - preIndFrom_dp.a) / ((1.0 + preIndFrom_dp.yU ^ 2.0) - 2.0 * preIndFrom_dp.yU), -((preIndFrom_dp.yU ^ 2.0 * preIndFrom_dp.b + 2.0 * preIndFrom_dp.yU * log(preIndFrom_dp.k1) + preIndFrom_dp.b) - (2.0 * preIndFrom_dp.b + 2.0 * preIndFrom_dp.a) * preIndFrom_dp.yU) / ((1.0 + preIndFrom_dp.yU ^ 2.0) - 2.0 * preIndFrom_dp.yU), ((preIndFrom_dp.b + preIndFrom_dp.b * preIndFrom_dp.yU ^ 2.0 + log(preIndFrom_dp.k1) * preIndFrom_dp.yU ^ 2.0 + preIndFrom_dp.a) - preIndFrom_dp.yU * (2.0 * preIndFrom_dp.a + 2.0 * preIndFrom_dp.b)) / ((1.0 + preIndFrom_dp.yU ^ 2.0) - 2.0 * preIndFrom_dp.yU)} ($RES_BND_339) (56) [ARRY] (3) preIndFrom_dp.cL = {(log(preIndFrom_dp.k0) - (preIndFrom_dp.a + preIndFrom_dp.b)) / preIndFrom_dp.yL ^ 2.0, ((2.0 * preIndFrom_dp.b + 2.0 * preIndFrom_dp.a) - (preIndFrom_dp.yL * preIndFrom_dp.b + 2.0 * log(preIndFrom_dp.k0))) / preIndFrom_dp.yL, log(preIndFrom_dp.k0)} ($RES_BND_338) (57) [SCAL] (1) preIndFrom_dp.kU = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preIndFrom_dp.yU, preIndFrom_dp.a, preIndFrom_dp.b, preIndFrom_dp.cL, preIndFrom_dp.cU, preIndFrom_dp.yL, preIndFrom_dp.yU) ^ 2.0 ($RES_BND_337) (58) [SCAL] (1) preIndFrom_dp.kL = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preIndFrom_dp.yL, preIndFrom_dp.a, preIndFrom_dp.b, preIndFrom_dp.cL, preIndFrom_dp.cU, preIndFrom_dp.yL, preIndFrom_dp.yU) ^ 2.0 ($RES_BND_336) (59) [SCAL] (1) preIndFrom_dp.facRouDuc = if preIndFrom_dp.roundDuct then 0.8862269254527579 else 1.0 ($RES_BND_335) (60) [SCAL] (1) preIndFrom_dp.rho_default = 1.1843079200592153e-5 * preIndFrom_dp.sta_default.p ($RES_BND_334) (61) [SCAL] (1) preIndFrom_dp.kFixed = if preIndFrom_dp.dpFixed_nominal > 1e-15 then preIndFrom_dp.m_flow_nominal / sqrt(preIndFrom_dp.dpFixed_nominal) else 1e60 ($RES_BND_333) (62) [SCAL] (1) preIndFrom_dp.k0 = 2.0 * preIndFrom_dp.rho_default * (preIndFrom_dp.A / preIndFrom_dp.kDamMin) ^ 2.0 ($RES_BND_332) (63) [SCAL] (1) preIndFrom_dp.A = preIndFrom_dp.m_flow_nominal / (preIndFrom_dp.v_nominal * preIndFrom_dp.rho_default) ($RES_BND_331) (64) [SCAL] (1) preIndFrom_dp.v_nominal = ((2.0 * preIndFrom_dp.dpDamper_nominal) / (preIndFrom_dp.rho_default * preIndFrom_dp.k1)) ^ 0.5 ($RES_BND_330) (65) [SCAL] (1) preIndFrom_dp.dp_nominal_pos = abs(preIndFrom_dp.dp_nominal) ($RES_BND_329) (66) [SCAL] (1) preIndFrom_dp.m_flow_nominal_pos = abs(preIndFrom_dp.m_flow_nominal) ($RES_BND_328) (67) [SCAL] (1) preIndFrom_dp.eta_default = 3.88335940547e-6 + 4.89493640395e-8 * preIndFrom_dp.sta_default.T ($RES_BND_327) (68) [SCAL] (1) preIndFrom_dp.m_flow_turbulent = if preIndFrom_dp.use_deltaM then preIndFrom_dp.m_flow_nominal * preIndFrom_dp.deltaM else preIndFrom_dp.facRouDuc * preIndFrom_dp.ReC * preIndFrom_dp.eta_default * sqrt(preIndFrom_dp.A) ($RES_BND_326) (69) [SCAL] (1) preIndFrom_dp.dp_nominal = preIndFrom_dp.dpDamper_nominal + preIndFrom_dp.dpFixed_nominal ($RES_BND_325) (70) [SCAL] (1) preIndFrom_dp.m_flow_small = 1e-4 * abs(preIndFrom_dp.m_flow_nominal) ($RES_BND_324) (71) [SCAL] (1) preIndDpFixed_nominal.coeff2 = 1/preIndDpFixed_nominal.coeff1 ($RES_BND_323) (72) [SCAL] (1) preIndDpFixed_nominal.coeff1 = (preIndDpFixed_nominal.l2 * preIndDpFixed_nominal.m_flow_nominal) / preIndDpFixed_nominal.dpDamper_nominal ($RES_BND_322) (73) [FOR-] (13) ($RES_BND_320) (73) [----] for $i1 in 1:13 loop (73) [----] [SCAL] (1) preIndDpFixed_nominal.kSupSpl_raw[$i1] = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preIndDpFixed_nominal.ySupSpl_raw[$i1], preIndDpFixed_nominal.a, preIndDpFixed_nominal.b, preIndDpFixed_nominal.cL, preIndDpFixed_nominal.cU, preIndDpFixed_nominal.yL, preIndDpFixed_nominal.yU) ^ 2.0 ($RES_BND_321) (73) [----] end for; (74) [ARRY] (13) preIndDpFixed_nominal.ySupSpl_raw = {1.0, 1.0 + 0.25 * ((-1.0) + preIndDpFixed_nominal.yU), 1.0 + 0.5 * ((-1.0) + preIndDpFixed_nominal.yU), 1.0 + 0.75 * ((-1.0) + preIndDpFixed_nominal.yU), 1.0 + ((-1.0) + preIndDpFixed_nominal.yU), preIndDpFixed_nominal.yU - 0.3333333333333333 * (preIndDpFixed_nominal.yU - preIndDpFixed_nominal.yL), 0.5 * (preIndDpFixed_nominal.yU + preIndDpFixed_nominal.yL), preIndDpFixed_nominal.yU - 0.6666666666666666 * (preIndDpFixed_nominal.yU - preIndDpFixed_nominal.yL), preIndDpFixed_nominal.yL, preIndDpFixed_nominal.yL - 0.25 * preIndDpFixed_nominal.yL, preIndDpFixed_nominal.yL - 0.5 * preIndDpFixed_nominal.yL, preIndDpFixed_nominal.yL - 0.75 * preIndDpFixed_nominal.yL, preIndDpFixed_nominal.yL - preIndDpFixed_nominal.yL} ($RES_BND_319) (75) [SCAL] (1) preIndDpFixed_nominal.kTotMin = if preIndDpFixed_nominal.dpFixed_nominal > 1e-15 then sqrt(1/(1/preIndDpFixed_nominal.kDamMin ^ 2.0 + 1/preIndDpFixed_nominal.kFixed ^ 2.0)) else preIndDpFixed_nominal.kDamMin ($RES_BND_318) (76) [SCAL] (1) preIndDpFixed_nominal.kDamMin = preIndDpFixed_nominal.l * preIndDpFixed_nominal.kDamMax ($RES_BND_317) (77) [SCAL] (1) preIndDpFixed_nominal.kTotMax = if preIndDpFixed_nominal.dpFixed_nominal > 1e-15 then sqrt(1/(1/preIndDpFixed_nominal.kDamMax ^ 2.0 + 1/preIndDpFixed_nominal.kFixed ^ 2.0)) else preIndDpFixed_nominal.kDamMax ($RES_BND_316) (78) [SCAL] (1) preIndDpFixed_nominal.kDamMax = ((2.0 * preIndDpFixed_nominal.rho_default) / preIndDpFixed_nominal.k1) ^ 0.5 * preIndDpFixed_nominal.A ($RES_BND_315) (79) [ARRY] (3) preIndDpFixed_nominal.cU = {(log(preIndDpFixed_nominal.k1) - preIndDpFixed_nominal.a) / ((1.0 + preIndDpFixed_nominal.yU ^ 2.0) - 2.0 * preIndDpFixed_nominal.yU), -((preIndDpFixed_nominal.yU ^ 2.0 * preIndDpFixed_nominal.b + 2.0 * preIndDpFixed_nominal.yU * log(preIndDpFixed_nominal.k1) + preIndDpFixed_nominal.b) - (2.0 * preIndDpFixed_nominal.b + 2.0 * preIndDpFixed_nominal.a) * preIndDpFixed_nominal.yU) / ((1.0 + preIndDpFixed_nominal.yU ^ 2.0) - 2.0 * preIndDpFixed_nominal.yU), ((preIndDpFixed_nominal.b + preIndDpFixed_nominal.b * preIndDpFixed_nominal.yU ^ 2.0 + log(preIndDpFixed_nominal.k1) * preIndDpFixed_nominal.yU ^ 2.0 + preIndDpFixed_nominal.a) - preIndDpFixed_nominal.yU * (2.0 * preIndDpFixed_nominal.a + 2.0 * preIndDpFixed_nominal.b)) / ((1.0 + preIndDpFixed_nominal.yU ^ 2.0) - 2.0 * preIndDpFixed_nominal.yU)} ($RES_BND_314) (80) [ARRY] (3) preIndDpFixed_nominal.cL = {(log(preIndDpFixed_nominal.k0) - (preIndDpFixed_nominal.a + preIndDpFixed_nominal.b)) / preIndDpFixed_nominal.yL ^ 2.0, ((2.0 * preIndDpFixed_nominal.b + 2.0 * preIndDpFixed_nominal.a) - (preIndDpFixed_nominal.yL * preIndDpFixed_nominal.b + 2.0 * log(preIndDpFixed_nominal.k0))) / preIndDpFixed_nominal.yL, log(preIndDpFixed_nominal.k0)} ($RES_BND_313) (81) [SCAL] (1) preIndDpFixed_nominal.kU = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preIndDpFixed_nominal.yU, preIndDpFixed_nominal.a, preIndDpFixed_nominal.b, preIndDpFixed_nominal.cL, preIndDpFixed_nominal.cU, preIndDpFixed_nominal.yL, preIndDpFixed_nominal.yU) ^ 2.0 ($RES_BND_312) (82) [SCAL] (1) preIndDpFixed_nominal.kL = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(preIndDpFixed_nominal.yL, preIndDpFixed_nominal.a, preIndDpFixed_nominal.b, preIndDpFixed_nominal.cL, preIndDpFixed_nominal.cU, preIndDpFixed_nominal.yL, preIndDpFixed_nominal.yU) ^ 2.0 ($RES_BND_311) (83) [SCAL] (1) preIndDpFixed_nominal.facRouDuc = if preIndDpFixed_nominal.roundDuct then 0.8862269254527579 else 1.0 ($RES_BND_310) (84) [SCAL] (1) preIndDpFixed_nominal.rho_default = 1.1843079200592153e-5 * preIndDpFixed_nominal.sta_default.p ($RES_BND_309) (85) [SCAL] (1) preIndDpFixed_nominal.kFixed = if preIndDpFixed_nominal.dpFixed_nominal > 1e-15 then preIndDpFixed_nominal.m_flow_nominal / sqrt(preIndDpFixed_nominal.dpFixed_nominal) else 1e60 ($RES_BND_308) (86) [SCAL] (1) preIndDpFixed_nominal.k0 = 2.0 * preIndDpFixed_nominal.rho_default * (preIndDpFixed_nominal.A / preIndDpFixed_nominal.kDamMin) ^ 2.0 ($RES_BND_307) (87) [SCAL] (1) preIndDpFixed_nominal.A = preIndDpFixed_nominal.m_flow_nominal / (preIndDpFixed_nominal.v_nominal * preIndDpFixed_nominal.rho_default) ($RES_BND_306) (88) [SCAL] (1) preIndDpFixed_nominal.v_nominal = ((2.0 * preIndDpFixed_nominal.dpDamper_nominal) / (preIndDpFixed_nominal.rho_default * preIndDpFixed_nominal.k1)) ^ 0.5 ($RES_BND_305) (89) [SCAL] (1) preIndDpFixed_nominal.dp_nominal_pos = abs(preIndDpFixed_nominal.dp_nominal) ($RES_BND_304) (90) [SCAL] (1) preIndDpFixed_nominal.m_flow_nominal_pos = abs(preIndDpFixed_nominal.m_flow_nominal) ($RES_BND_303) (91) [SCAL] (1) preIndDpFixed_nominal.eta_default = 3.88335940547e-6 + 4.89493640395e-8 * preIndDpFixed_nominal.sta_default.T ($RES_BND_302) (92) [SCAL] (1) preIndDpFixed_nominal.m_flow_turbulent = if preIndDpFixed_nominal.use_deltaM then preIndDpFixed_nominal.m_flow_nominal * preIndDpFixed_nominal.deltaM else preIndDpFixed_nominal.facRouDuc * preIndDpFixed_nominal.ReC * preIndDpFixed_nominal.eta_default * sqrt(preIndDpFixed_nominal.A) ($RES_BND_301) (93) [SCAL] (1) preIndDpFixed_nominal.dp_nominal = preIndDpFixed_nominal.dpDamper_nominal + preIndDpFixed_nominal.dpFixed_nominal ($RES_BND_300) (94) [SCAL] (1) preIndDpFixed_nominal.m_flow_small = 1e-4 * abs(preIndDpFixed_nominal.m_flow_nominal) ($RES_BND_299) (95) [SCAL] (1) res.kTotMin = if res.dpFixed_nominal > 1e-15 then sqrt(1/(1/res.kDamMin ^ 2.0 + 1/res.kFixed ^ 2.0)) else res.kDamMin ($RES_BND_298) (96) [SCAL] (1) res.kDamMin = res.l * res.kDamMax ($RES_BND_297) (97) [SCAL] (1) res.kTotMax = if res.dpFixed_nominal > 1e-15 then sqrt(1/(1/res.kDamMax ^ 2.0 + 1/res.kFixed ^ 2.0)) else res.kDamMax ($RES_BND_296) (98) [SCAL] (1) res.kDamMax = ((2.0 * res.rho_default) / res.k1) ^ 0.5 * res.A ($RES_BND_295) (99) [ARRY] (3) res.cU = {(log(res.k1) - res.a) / ((1.0 + res.yU ^ 2.0) - 2.0 * res.yU), -((res.yU ^ 2.0 * res.b + 2.0 * res.yU * log(res.k1) + res.b) - (2.0 * res.b + 2.0 * res.a) * res.yU) / ((1.0 + res.yU ^ 2.0) - 2.0 * res.yU), ((res.b + res.b * res.yU ^ 2.0 + log(res.k1) * res.yU ^ 2.0 + res.a) - res.yU * (2.0 * res.a + 2.0 * res.b)) / ((1.0 + res.yU ^ 2.0) - 2.0 * res.yU)} ($RES_BND_294) (100) [ARRY] (3) res.cL = {(log(res.k0) - (res.a + res.b)) / res.yL ^ 2.0, ((2.0 * res.b + 2.0 * res.a) - (res.yL * res.b + 2.0 * log(res.k0))) / res.yL, log(res.k0)} ($RES_BND_293) (101) [SCAL] (1) res.kU = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(res.yU, res.a, res.b, res.cL, res.cU, res.yL, res.yU) ^ 2.0 ($RES_BND_292) (102) [SCAL] (1) res.kL = Buildings.Fluid.Actuators.BaseClasses.exponentialDamper(res.yL, res.a, res.b, res.cL, res.cU, res.yL, res.yU) ^ 2.0 ($RES_BND_291) (103) [SCAL] (1) res.facRouDuc = if res.roundDuct then 0.8862269254527579 else 1.0 ($RES_BND_290) (104) [SCAL] (1) res.rho_default = 1.1843079200592153e-5 * res.sta_default.p ($RES_BND_289) (105) [SCAL] (1) res.kFixed = if res.dpFixed_nominal > 1e-15 then res.m_flow_nominal / sqrt(res.dpFixed_nominal) else 1e60 ($RES_BND_288) (106) [SCAL] (1) res.k0 = 2.0 * res.rho_default * (res.A / res.kDamMin) ^ 2.0 ($RES_BND_287) (107) [SCAL] (1) res.A = res.m_flow_nominal / (res.v_nominal * res.rho_default) ($RES_BND_286) (108) [SCAL] (1) res.v_nominal = ((2.0 * res.dpDamper_nominal) / (res.rho_default * res.k1)) ^ 0.5 ($RES_BND_285) (109) [SCAL] (1) res.dp_nominal_pos = abs(res.dp_nominal) ($RES_BND_284) (110) [SCAL] (1) res.m_flow_nominal_pos = abs(res.m_flow_nominal) ($RES_BND_283) (111) [SCAL] (1) res.eta_default = 3.88335940547e-6 + 4.89493640395e-8 * res.sta_default.T ($RES_BND_282) (112) [SCAL] (1) res.m_flow_turbulent = if res.use_deltaM then res.m_flow_nominal * res.deltaM else res.facRouDuc * res.ReC * res.eta_default * sqrt(res.A) ($RES_BND_281) (113) [SCAL] (1) res.dp_nominal = res.dpDamper_nominal + res.dpFixed_nominal ($RES_BND_280) (114) [SCAL] (1) res.m_flow_small = 1e-4 * abs(res.m_flow_nominal) ($RES_BND_279) Error: Internal error NBInitialization.main failed to apply modules!