Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Fluid.Actuators.Dampers.Examples.Damper") translateModel(Buildings.Fluid.Actuators.Dampers.Examples.Damper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001349/0.001349, allocations: 107.6 kB / 16.37 MB, free: 6.367 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.001236/0.001236, allocations: 191 kB / 17.31 MB, free: 5.91 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.369/1.369, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.818/1.818, allocations: 292.3 MB / 0.5496 GB, free: 17.53 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.757e-05/2.759e-05, allocations: 2.281 kB / 0.6728 GB, free: 5.941 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.Damper): time 0.6509/0.6509, allocations: 182.4 MB / 0.851 GB, free: 41.91 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01653/0.6675, allocations: 8.873 MB / 0.8596 GB, free: 40.95 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003175/0.6707, allocations: 32.34 kB / 0.8597 GB, free: 40.93 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001882/0.6726, allocations: 466.5 kB / 0.8601 GB, free: 40.76 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.006623/0.6793, allocations: 1.555 MB / 0.8616 GB, free: 40.39 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.007357/0.6867, allocations: 2.052 MB / 0.8636 GB, free: 39.94 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.004489/0.6912, allocations: 2.59 MB / 0.8662 GB, free: 38.87 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001576/0.6928, allocations: 1.115 MB / 0.8672 GB, free: 38.47 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001692/0.6945, allocations: 1.066 MB / 0.8683 GB, free: 38.09 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.6956, allocations: 1.032 MB / 0.8693 GB, free: 37.69 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0002075/0.6958, allocations: 135.1 kB / 0.8694 GB, free: 37.69 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003321/0.6991, allocations: 1.678 MB / 0.8711 GB, free: 36.89 MB / 0.6544 GB Notification: Performance of combineBinaries: time 0.001717/0.7008, allocations: 2.857 MB / 0.8738 GB, free: 34.94 MB / 0.6544 GB Notification: Performance of replaceArrayConstructors: time 0.0006759/0.7015, allocations: 1.45 MB / 0.8753 GB, free: 33.9 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0003239/0.7018, allocations: 200.1 kB / 0.8755 GB, free: 33.8 MB / 0.6544 GB Notification: Performance of FrontEnd: time 0.0002441/0.7021, allocations: 44.53 kB / 0.8755 GB, free: 33.79 MB / 0.6544 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.004056/0.7062, allocations: 5.984 MB / 0.8813 GB, free: 29.45 MB / 0.6544 GB Notification: Performance of FunctionAlias: time 0.0006418/0.7068, allocations: 0.6203 MB / 0.8819 GB, free: 29.04 MB / 0.6544 GB Notification: Performance of Early Inline: time 0.004566/0.7114, allocations: 6.273 MB / 0.8881 GB, free: 24.57 MB / 0.6544 GB Notification: Performance of simplify1: time 0.0004803/0.7119, allocations: 0.5581 MB / 0.8886 GB, free: 24.25 MB / 0.6544 GB Notification: Performance of Alias: time 0.003918/0.7158, allocations: 3.839 MB / 0.8924 GB, free: 21.4 MB / 0.6544 GB Notification: Performance of simplify2: time 0.0005388/0.7164, allocations: 0.556 MB / 0.8929 GB, free: 21.08 MB / 0.6544 GB Notification: Performance of Events: time 0.00081/0.7172, allocations: 0.9501 MB / 0.8938 GB, free: 20.38 MB / 0.6544 GB Notification: Performance of Detect States: time 0.0007406/0.7179, allocations: 1.201 MB / 0.895 GB, free: 19.41 MB / 0.6544 GB Notification: Performance of Partitioning: time 0.001286/0.7192, allocations: 1.645 MB / 0.8966 GB, free: 18.02 MB / 0.6544 GB Notification: Performance of Causalize: time 0.008452/0.7277, allocations: 9.173 MB / 0.9056 GB, free: 13.1 MB / 0.6544 GB Notification: Performance of After Index Reduction Inline: time 0.003477/0.7312, allocations: 4.844 MB / 0.9103 GB, free: 8.637 MB / 0.6544 GB Notification: Performance of Inline: time 0.01089/0.7421, allocations: 11.64 MB / 0.9217 GB, free: 13.06 MB / 0.67 GB Notification: Performance of Partitioning: time 0.0003403/0.7425, allocations: 231.7 kB / 0.9219 GB, free: 12.81 MB / 0.67 GB Notification: Performance of Cleanup: time 0.00146/0.7439, allocations: 1.173 MB / 0.923 GB, free: 11.64 MB / 0.67 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!