Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled") translateModel(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 103.1 kB / 16.42 MB, free: 6.043 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.001065/0.001065, allocations: 195.2 kB / 17.36 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.8842/0.8842, allocations: 143.1 MB / 434.3 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.241e-05/2.244e-05, allocations: 2.281 kB / 0.596 GB, free: 12.47 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled): time 0.003368/0.003406, allocations: 3.229 MB / 0.5992 GB, free: 9.242 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002892/0.006313, allocations: 2.552 MB / 0.6016 GB, free: 6.688 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002463/0.006574, allocations: 7.938 kB / 0.6017 GB, free: 6.68 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003861/0.006968, allocations: 100.4 kB / 0.6018 GB, free: 6.582 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004144/0.007393, allocations: 200.7 kB / 0.6019 GB, free: 6.387 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.008457, allocations: 492.7 kB / 0.6024 GB, free: 5.91 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007125/0.00918, allocations: 0.8328 MB / 0.6032 GB, free: 5.086 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003603/0.009549, allocations: 256.6 kB / 0.6035 GB, free: 4.832 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003181/0.009874, allocations: 295 kB / 0.6038 GB, free: 4.543 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003567/0.01024, allocations: 339.3 kB / 0.6041 GB, free: 4.211 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.783e-05/0.01033, allocations: 73.81 kB / 0.6041 GB, free: 4.141 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004058/0.01074, allocations: 355.6 kB / 0.6045 GB, free: 3.793 MB / 446.1 MB Notification: Performance of combineBinaries: time 0.0004593/0.01121, allocations: 0.9586 MB / 0.6054 GB, free: 2.824 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001765/0.0114, allocations: 0.5503 MB / 0.606 GB, free: 2.266 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.708e-05/0.01149, allocations: 96.67 kB / 0.6061 GB, free: 2.172 MB / 446.1 MB Notification: Performance of FrontEnd: time 6.537e-05/0.01156, allocations: 19.88 kB / 0.6061 GB, free: 2.152 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 157 (106) * Number of variables: 157 (109) Notification: Performance of Bindings: time 0.00198/0.01355, allocations: 2.786 MB / 0.6088 GB, free: 15.28 MB / 462.1 MB Notification: Performance of FunctionAlias: time 0.0002528/0.01381, allocations: 208.6 kB / 0.609 GB, free: 15.08 MB / 462.1 MB Notification: Performance of Early Inline: time 0.001825/0.01564, allocations: 1.927 MB / 0.6109 GB, free: 13.13 MB / 462.1 MB Notification: Performance of simplify1: time 0.0001191/0.01579, allocations: 111.9 kB / 0.611 GB, free: 13.02 MB / 462.1 MB Notification: Performance of Alias: time 0.002748/0.01854, allocations: 2.291 MB / 0.6132 GB, free: 10.55 MB / 462.1 MB Notification: Performance of simplify2: time 0.0001234/0.01868, allocations: 79.89 kB / 0.6133 GB, free: 10.47 MB / 462.1 MB Notification: Performance of Events: time 0.0003414/0.01903, allocations: 210.3 kB / 0.6135 GB, free: 10.26 MB / 462.1 MB Notification: Performance of Detect States: time 0.0007511/0.01979, allocations: 472.6 kB / 0.6139 GB, free: 9.785 MB / 462.1 MB Notification: Performance of Partitioning: time 0.0006369/0.02044, allocations: 0.5463 MB / 0.6145 GB, free: 9.219 MB / 462.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency R3C2_1.fLUXsurf.DIRN could not be divided by the body size 4 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (4) {R3C2_1.fLUXsurf.DIFH, R3C2_1.fLUXsurf.DIRN, R3C2_1.fLUXsurf.DIRH, R3C2_1.fLUXsurf.GLOH} = R3C2_1.fLUXsurf.G[1:4] ($RES_SIM_62) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (78/138) *************************** (1) [ALGB] (1) protected Real meteofile.GLOH (2) [ALGB] (1) Real meteofile.T_sky.T (start = 288.15, min = 0.0, nominal = 300.0) (3) [ALGB] (1) Real R3C2_1.res_Rf.dT (4) [ALGB] (1) flow Real R3C2_1.Ts.port.Q_flow (5) [ALGB] (1) protected Real meteofile.DIFH (6) [ALGB] (1) Real add1.y (7) [ALGB] (1) protected Real R3C2_1.fLUXsurf.f (8) [ALGB] (1) Real meteofile.toKelvinTrosee.Celsius (9) [ALGB] (1) flow Real R3C2_1.res_Ro.port_b.Q_flow (10) [ALGB] (1) protected Real meteofile.DIRH (11) [DISS] (1) protected Real meteofile.CoupleFlux (12) [DISC] (11) Boolean[11] $SEV_11[$i1] (13) [DER-] (1) Real $DER.R3C2_1.Ts.T (14) [ALGB] (1) protected Real meteofile.DIRN (15) [ALGB] (1) Real[1] meteofile.combiTimeTable1.y (16) [ALGB] (1) flow Real R3C2_1.res_Rsi.port_b.Q_flow (17) [DER-] (1) Real $DER.R3C2_1.Tint.T (18) [ALGB] (2) protected Real[2] meteofile.FluxMeteo (19) [ALGB] (2) protected Real[2] meteofile.AzHaut (20) [ALGB] (1) Real $FUN_8 (21) [DER-] (1) Real $DER.PI1.x (22) [DISS] (1) protected Real meteofile.d0 (23) [ALGB] (1) Real $FUN_7 (24) [ALGB] (1) Real $FUN_6 (25) [ALGB] (1) Real $FUN_5 (26) [ALGB] (3) Real[3] meteofile.Hygro (27) [ALGB] (1) protected Real R3C2_1.cosi = R3C2_1.fLUXsurf.FluxIncExt[3] (28) [ALGB] (1) Real $FUN_4 (29) [ALGB] (3) Real[3] $FUN_3 (30) [ALGB] (1) flow Real R3C2_1.Qs.port.Q_flow (31) [DISS] (1) protected Real meteofile.h0 (32) [ALGB] (1) Real $FUN_1 (33) [ALGB] (1) Real meteofile.combiTimeTable.u1 = meteofile.combiTimeTable.delta_t * integer(meteofile.combiTimeTable.u / meteofile.combiTimeTable.delta_t) + meteofile.combiTimeTable.delta_t / 2.0 (34) [ALGB] (10) Real[10] meteofile.G (35) [ALGB] (1) Real PI1.y (36) [DISS] (1) protected Real meteofile.longitude (37) [ALGB] (3) Real[3] R3C2_1.fLUXsurf.FluxIncExt (38) [DISS] (1) protected Real meteofile.t0 (39) [ALGB] (1) Real R3C2_1.Qs.Q_flow (40) [ALGB] (1) flow Real meteofile.prescribedTseche.port.Q_flow (41) [ALGB] (1) flow Real R3C2_1.Tint.port.Q_flow (42) [ALGB] (1) flow Real R3C2_1.AI.port.Q_flow (43) [ALGB] (1) Real R3C2_1.res_Rsi.dT (44) [ALGB] (2) Real[2] meteofile.V (45) [DISC] (1) Boolean $SEV_16 (46) [DISS] (1) protected Real meteofile.latitude (47) [DISC] (1) Boolean $SEV_15 (48) [DISC] (1) Boolean $SEV_14 (49) [DISC] (1) Boolean $SEV_13 (50) [ALGB] (1) Real R3C2_1.Tint.der_T (start = 0.0) (51) [ALGB] (1) Real meteofile.toKelvinTseche.Celsius (52) [ALGB] (1) protected Real R3C2_1.fLUXsurf.AI (53) [ALGB] (3) Real[3] R3C2_1.fLUXsurf.AzHSol (54) [ALGB] (1) Real R3C2_1.fLUXsurf.DIRN (55) [ALGB] (1) protected Real R3C2_1.TransDir (56) [ALGB] (1) Real R3C2_1.fLUXsurf.DIRH (57) [ALGB] (1) Real R3C2_1.fLUXsurf.DiffusSol (58) [DISC] (1) Boolean $SEV_9 (59) [DISC] (1) Boolean $SEV_8 (60) [ALGB] (10) Real[10] R3C2_1.G (61) [DISC] (1) Boolean $SEV_7 (62) [ALGB] (1) protected Real R3C2_1.fLUXsurf.I0 (63) [ALGB] (1) Real R3C2_1.res_Ro.dT (64) [DISC] (1) Boolean $SEV_6 (65) [DISC] (1) Boolean $SEV_5 (66) [ALGB] (1) flow Real R3C2_1.res_Rf.port_b.Q_flow (67) [DISC] (1) Boolean $SEV_4 (68) [ALGB] (1) Real R3C2_1.fLUXsurf.DIFH (69) [ALGB] (1) Real R3C2_1.fLUXsurf.sin_h (70) [ALGB] (1) Real R3C2_1.Ts.der_T (start = 0.0) (71) [ALGB] (1) Real R3C2_1.fLUXsurf.GLOH (72) [ALGB] (1) Real meteofile.combiTimeTable.u (73) [ALGB] (11) Real[11] meteofile.combiTimeTable.y (74) [ALGB] (10) Real[10] R3C2_1.fLUXsurf.G (75) [ALGB] (1) flow Real R3C2_1.Qch.port.Q_flow (76) [ALGB] (1) protected Real meteofile.ps (77) [ALGB] (1) Real R3C2_1.fLUXsurf.cosi (78) [ALGB] (3) protected Real[3] meteofile.CosDir System Equations (75/138) *************************** (1) [SCAL] (1) R3C2_1.Qs.Q_flow = R3C2_1.S * (R3C2_1.TrDif * R3C2_1.fLUXsurf.FluxIncExt[1] + R3C2_1.TransDir * R3C2_1.fLUXsurf.FluxIncExt[2]) ($RES_SIM_53) (2) [SCAL] (1) R3C2_1.TransDir = if noEvent($SEV_13) then if noEvent($SEV_14) then R3C2_1.TrDir else 2.5 * R3C2_1.cosi * R3C2_1.TrDir * (1.0 - 0.625 * R3C2_1.cosi) else 0.0 ($RES_SIM_54) (3) [SCAL] (1) R3C2_1.fLUXsurf.AzHSol[3] = R3C2_1.fLUXsurf.DiffusSol ($RES_SIM_55) (4) [SCAL] (1) meteofile.prescribedTseche.port.Q_flow + R3C2_1.res_Rf.port_b.Q_flow + R3C2_1.res_Ro.port_b.Q_flow = 0.0 ($RES_SIM_91) (5) [SCAL] (1) R3C2_1.fLUXsurf.AzHSol[2] = R3C2_1.fLUXsurf.G[10] ($RES_SIM_56) (6) [SCAL] (1) (R3C2_1.res_Rsi.port_b.Q_flow + R3C2_1.Qs.port.Q_flow + R3C2_1.Ts.port.Q_flow) - R3C2_1.res_Ro.port_b.Q_flow = 0.0 ($RES_SIM_92) (7) [SCAL] (1) R3C2_1.fLUXsurf.AzHSol[1] = R3C2_1.fLUXsurf.G[9] ($RES_SIM_57) (8) [SCAL] (1) (R3C2_1.Tint.port.Q_flow + R3C2_1.AI.port.Q_flow + R3C2_1.Qch.port.Q_flow) - (R3C2_1.res_Rsi.port_b.Q_flow + R3C2_1.res_Rf.port_b.Q_flow) = 0.0 ($RES_SIM_93) (9) [SCAL] (1) R3C2_1.fLUXsurf.FluxIncExt[3] = R3C2_1.fLUXsurf.cosi ($RES_SIM_58) (10) [SCAL] (1) R3C2_1.fLUXsurf.FluxIncExt[2] = if noEvent($SEV_15) then if $SEV_16 then max(0.0, R3C2_1.fLUXsurf.cosi) * max(0.0, R3C2_1.fLUXsurf.DIRN) else max(0.0, R3C2_1.fLUXsurf.cosi) * max(0.0, R3C2_1.fLUXsurf.DIRN) + max(0.0, (R3C2_1.fLUXsurf.DIFH * R3C2_1.fLUXsurf.cosi * R3C2_1.fLUXsurf.AI) / R3C2_1.fLUXsurf.sin_h) else 0.0 ($RES_SIM_59) (11) [ARRY] (10) meteofile.G = R3C2_1.G ($RES_SIM_96) (12) [SCAL] (1) meteofile.AzHaut[2] = $FUN_5 ($RES_$AUX_139) (13) [SCAL] (1) meteofile.AzHaut[1] = $FUN_4 ($RES_$AUX_138) (14) [ARRY] (3) meteofile.CosDir = $FUN_3 ($RES_$AUX_137) (15) [SCAL] (1) meteofile.combiTimeTable1.y[1] = meteofile.V[2] ($RES_SIM_104) (16) [SCAL] (1) $FUN_1 = Modelica.Blocks.Tables.Internal.getTable1DValueNoDer2(meteofile.combiTimeTable1.tableID, 1, meteofile.combiTimeTable.u) ($RES_$AUX_136) (17) [SCAL] (1) meteofile.ps = BuildSysPro.BoundaryConditions.Weather.Functions.CalculPs(meteofile.Hygro[1]) ($RES_$AUX_135) (18) [SCAL] (1) R3C2_1.fLUXsurf.FluxIncExt[1] = if $SEV_16 then max(0.0, R3C2_1.fLUXsurf.coef2 * R3C2_1.fLUXsurf.DIFH) + R3C2_1.fLUXsurf.DiffusSol else max(0.0, (1.0 + R3C2_1.fLUXsurf.f * R3C2_1.fLUXsurf.coef3) * (1.0 - R3C2_1.fLUXsurf.AI) * R3C2_1.fLUXsurf.coef2 * R3C2_1.fLUXsurf.DIFH) + R3C2_1.fLUXsurf.DiffusSol ($RES_SIM_60) (19) [TUPL] (5) ($FUN_3, $FUN_4, $FUN_5) = BuildSysPro.BoundaryConditions.Solar.Utilities.CosDirSunVectorHeightAz(meteofile.t0, time, meteofile.longitude, meteofile.latitude) ($RES_$AUX_134) (20) [SCAL] (1) meteofile.combiTimeTable.y[4] = meteofile.toKelvinTrosee.Celsius ($RES_SIM_107) (21) [SCAL] (1) R3C2_1.fLUXsurf.DiffusSol = max(0.0, R3C2_1.fLUXsurf.GLOH * R3C2_1.fLUXsurf.coef1 * R3C2_1.fLUXsurf.albedo) ($RES_SIM_61) (22) [SCAL] (1) $FUN_6 = floor(1.1574074074074073e-5 * (time + R3C2_1.fLUXsurf.G[5])) ($RES_$AUX_133) (23) [SCAL] (1) meteofile.combiTimeTable.y[3] = meteofile.toKelvinTseche.Celsius ($RES_SIM_108) (24) [ARRY] (4) {R3C2_1.fLUXsurf.DIFH, R3C2_1.fLUXsurf.DIRN, R3C2_1.fLUXsurf.DIRH, R3C2_1.fLUXsurf.GLOH} = R3C2_1.fLUXsurf.G[1:4] ($RES_SIM_62) (25) [SCAL] (1) $FUN_7 = cos(0.9863013698630136 * (1.0 + $FUN_6)) ($RES_$AUX_132) (26) [SCAL] (1) $FUN_8 = sqrt(R3C2_1.fLUXsurf.DIRH / R3C2_1.fLUXsurf.GLOH) ($RES_$AUX_131) (27) [SCAL] (1) R3C2_1.Qs.port.Q_flow = -R3C2_1.Qs.Q_flow * (1.0 + R3C2_1.Qs.alpha * (R3C2_1.Ts.T - R3C2_1.Qs.T_ref)) ($RES_SIM_64) (28) [SCAL] (1) meteofile.combiTimeTable.u = mod(time, meteofile.Tbouclage) ($RES_$AUX_130) (29) [SCAL] (1) R3C2_1.res_Ro.dT = R3C2_1.Ts.T - (273.15 + meteofile.toKelvinTseche.Celsius) ($RES_SIM_67) (30) [SCAL] (1) -R3C2_1.res_Ro.port_b.Q_flow = R3C2_1.res_Ro.dT / R3C2_1.res_Ro.R ($RES_SIM_68) (31) [SCAL] (1) meteofile.combiTimeTable.y[8] = meteofile.V[1] ($RES_SIM_111) (32) [ARRY] (10) R3C2_1.G = R3C2_1.fLUXsurf.G ($RES_SIM_112) (33) [SCAL] (1) R3C2_1.cosi = R3C2_1.fLUXsurf.FluxIncExt[3] ($RES_BND_125) (34) [SCAL] (1) meteofile.combiTimeTable.u1 = meteofile.combiTimeTable.delta_t * integer(meteofile.combiTimeTable.u / meteofile.combiTimeTable.delta_t) + 0.5 * meteofile.combiTimeTable.delta_t ($RES_BND_126) (35) [SCAL] (1) meteofile.T_sky.T = 273.15 + meteofile.combiTimeTable.y[5] ($RES_SIM_31) (36) [SCAL] (1) meteofile.Hygro[3] = meteofile.combiTimeTable.y[7] ($RES_SIM_32) (37) [SCAL] (1) meteofile.Hygro[2] = meteofile.combiTimeTable.y[6] ($RES_SIM_33) (38) [SCAL] (1) meteofile.Hygro[1] = 273.15 + meteofile.combiTimeTable.y[3] ($RES_SIM_34) (39) [SCAL] (1) R3C2_1.res_Rf.dT = R3C2_1.Tint.T - (273.15 + meteofile.toKelvinTseche.Celsius) ($RES_SIM_71) (40) [SCAL] (1) meteofile.FluxMeteo[2] = meteofile.combiTimeTable.y[2] ($RES_SIM_36) (41) [SCAL] (1) -R3C2_1.res_Rf.port_b.Q_flow = R3C2_1.res_Rf.dT / R3C2_1.res_Rf.R ($RES_SIM_72) (42) [SCAL] (1) meteofile.FluxMeteo[1] = meteofile.combiTimeTable.y[1] ($RES_SIM_37) (43) [WHEN] (1)when initial() then (43) [----] meteofile.CoupleFlux := if meteofile.TypeMeteo == 4 then meteofile.DonneesPerso.CoupleFlux else 2.0 (43) [----] end when; (44) [WHEN] (1)when initial() then (44) [----] meteofile.t0 := 86400.0 * (meteofile.d0 - 1.0) + 3600.0 * meteofile.h0 (44) [----] end when; (45) [SCAL] (1) R3C2_1.res_Rsi.dT = R3C2_1.Tint.T - R3C2_1.Ts.T ($RES_SIM_75) (46) [SCAL] (1) -R3C2_1.res_Rsi.port_b.Q_flow = R3C2_1.res_Rsi.dT / R3C2_1.res_Rsi.R ($RES_SIM_76) (47) [SCAL] (1) R3C2_1.Qch.port.Q_flow = -PI1.y * (1.0 + R3C2_1.Qch.alpha * (R3C2_1.Tint.T - R3C2_1.Qch.T_ref)) ($RES_SIM_77) (48) [SCAL] (1) R3C2_1.AI.port.Q_flow = 0.0 ($RES_SIM_78) (49) [SCAL] (1) $SEV_4 = meteofile.CoupleFlux < 1.5 ($RES_EVT_151) (50) [SCAL] (1) R3C2_1.Ts.C * $DER.R3C2_1.Ts.T = R3C2_1.Ts.port.Q_flow ($RES_SIM_79) (51) [SCAL] (1) $SEV_5 = meteofile.CosDir[1] > 0.01 ($RES_EVT_152) (52) [SCAL] (1) $SEV_6 = meteofile.CoupleFlux < 2.5 ($RES_EVT_153) (53) [SCAL] (1) $SEV_7 = meteofile.CosDir[1] > 0.0 ($RES_EVT_154) (54) [SCAL] (1) $SEV_8 = meteofile.CoupleFlux < 3.5 ($RES_EVT_155) (55) [SCAL] (1) $SEV_9 = meteofile.CoupleFlux < 4.5 ($RES_EVT_156) (56) [FOR-] (11) ($RES_EVT_158) (56) [----] for $i1 in 1:11 loop (56) [----] [SCAL] (1) $SEV_11[$i1] = meteofile.combiTimeTable.option[$i1] == 0 ($RES_EVT_159) (56) [----] end for; (57) [WHEN] (1)when initial() then (57) [----] meteofile.latitude := meteofile.combiTimeTable.y[10] (57) [----] end when; (58) [WHEN] (1)when initial() then (58) [----] meteofile.longitude := BuildSysPro.BoundaryConditions.Weather.Functions.ConvertLongitude(meteofile.ChoixEst, meteofile.combiTimeTable.y[11]) (58) [----] end when; (59) [WHEN] (1)when initial() then (59) [----] meteofile.d0 := if meteofile.TypeMeteo == 4 then meteofile.DonneesPerso.d0 else 1.0 (59) [----] end when; (60) [WHEN] (1)when initial() then (60) [----] meteofile.h0 := if meteofile.TypeMeteo == 4 then meteofile.DonneesPerso.h0 else if meteofile.TypeMeteo == 1 then 0.0 else -1.0 (60) [----] end when; (61) [SCAL] (1) meteofile.combiTimeTable1.y[1] = $FUN_1 ($RES_SIM_44) (62) [SCAL] (1) R3C2_1.Ts.der_T = $DER.R3C2_1.Ts.T ($RES_SIM_80) (63) [SCAL] (1) R3C2_1.Tint.C * $DER.R3C2_1.Tint.T = R3C2_1.Tint.port.Q_flow ($RES_SIM_82) (64) [SCAL] (1) R3C2_1.Tint.der_T = $DER.R3C2_1.Tint.T ($RES_SIM_83) (65) [FOR-] (11) ($RES_SIM_49) (65) [----] for $i1 in 1:11 loop (65) [----] [SCAL] (1) meteofile.combiTimeTable.y[$i1] = BuildSysPro.BuildingStock.RnCm.Examples.R3C2_PIControlled.meteofile.combiTimeTable.getTableValue(meteofile.combiTimeTable.tableID, $i1, if $SEV_11[$i1] then meteofile.combiTimeTable.u1 else meteofile.combiTimeTable.u, meteofile.combiTimeTable.tableOnFileRead) ($RES_SIM_50) (65) [----] end for; (66) [SCAL] (1) $SEV_13 = R3C2_1.cosi > 0.0 ($RES_EVT_161) (67) [SCAL] (1) $SEV_14 = R3C2_1.cosi > 0.8 ($RES_EVT_162) (68) [SCAL] (1) $SEV_15 = R3C2_1.fLUXsurf.sin_h > 0.01 ($RES_EVT_163) (69) [SCAL] (1) $SEV_16 = R3C2_1.fLUXsurf.diffus_isotrope == 1 ($RES_EVT_164) (70) [-IF-] (4)if $SEV_4 then (70) [----] [SCAL] (1) meteofile.DIRN = if noEvent($SEV_5) then min(0.7 ^ (1.0 / meteofile.CosDir[1]) * 1367.0, meteofile.DIRH / meteofile.CosDir[1]) else 0.0 ($RES_SIM_9) (70) [----] [SCAL] (1) meteofile.DIRH = meteofile.GLOH - meteofile.DIFH ($RES_SIM_10) (70) [----] [SCAL] (1) meteofile.DIFH = meteofile.FluxMeteo[2] ($RES_SIM_11) (70) [----] [SCAL] (1) meteofile.GLOH = meteofile.FluxMeteo[1] ($RES_SIM_12) (70) [----] elseif $SEV_6 then (70) [----] [SCAL] (1) meteofile.GLOH = meteofile.DIRH + meteofile.DIFH ($RES_SIM_13) (70) [----] [SCAL] (1) meteofile.DIRH = if $SEV_7 then meteofile.DIRN * meteofile.CosDir[1] else 0.0 ($RES_SIM_14) (70) [----] [SCAL] (1) meteofile.DIFH = meteofile.FluxMeteo[2] ($RES_SIM_15) (70) [----] [SCAL] (1) meteofile.DIRN = meteofile.FluxMeteo[1] ($RES_SIM_16) (70) [----] elseif $SEV_8 then (70) [----] [SCAL] (1) meteofile.DIRN = if noEvent($SEV_5) then min(0.7 ^ (1.0 / meteofile.CosDir[1]) * 1367.0, meteofile.DIRH / meteofile.CosDir[1]) else 0.0 ($RES_SIM_17) (70) [----] [SCAL] (1) meteofile.GLOH = meteofile.DIRH + meteofile.DIFH ($RES_SIM_18) (70) [----] [SCAL] (1) meteofile.DIRH = meteofile.FluxMeteo[2] ($RES_SIM_19) (70) [----] [SCAL] (1) meteofile.DIFH = meteofile.FluxMeteo[1] ($RES_SIM_20) (70) [----] elseif $SEV_9 then (70) [----] [SCAL] (1) meteofile.DIFH = meteofile.GLOH - meteofile.DIRH ($RES_SIM_21) (70) [----] [SCAL] (1) meteofile.DIRN = if noEvent($SEV_5) then min(0.7 ^ (1.0 / meteofile.CosDir[1]) * 1367.0, meteofile.DIRH / meteofile.CosDir[1]) else 0.0 ($RES_SIM_22) (70) [----] [SCAL] (1) meteofile.DIRH = meteofile.FluxMeteo[2] ($RES_SIM_23) (70) [----] [SCAL] (1) meteofile.GLOH = meteofile.FluxMeteo[1] ($RES_SIM_24) (70) [----] else (70) [----] [SCAL] (1) meteofile.DIFH = meteofile.GLOH - meteofile.DIRH ($RES_SIM_25) (70) [----] [SCAL] (1) meteofile.DIRH = if $SEV_7 then meteofile.DIRN * meteofile.CosDir[1] else 0.0 ($RES_SIM_26) (70) [----] [SCAL] (1) meteofile.DIRN = meteofile.FluxMeteo[2] ($RES_SIM_27) (70) [----] [SCAL] (1) meteofile.GLOH = meteofile.FluxMeteo[1] ($RES_SIM_28) (70) [----] end if; (71) [ARRY] (10) meteofile.G[:] = {meteofile.DIFH, meteofile.DIRN, meteofile.DIRH, meteofile.GLOH, meteofile.t0, meteofile.CosDir[1], meteofile.CosDir[2], meteofile.CosDir[3], meteofile.AzHaut[1], meteofile.AzHaut[2]} ($RES_SIM_7) (72) [SCAL] (1) $DER.PI1.x = add1.y / PI1.T ($RES_SIM_4) (73) [SCAL] (1) PI1.y = PI1.k * (PI1.x + add1.y) ($RES_SIM_3) (74) [SCAL] (1) add1.y = add1.k1 * R3C2_1.Tint.T + 295.15 * add1.k2 ($RES_SIM_2) (75) [ALGO] (5) ($RES_SIM_1) (75) [----] R3C2_1.fLUXsurf.sin_h := R3C2_1.fLUXsurf.G[6]; (75) [----] R3C2_1.fLUXsurf.cosi := max(0.0, R3C2_1.fLUXsurf.m * R3C2_1.fLUXsurf.G[7] + R3C2_1.fLUXsurf.l * R3C2_1.fLUXsurf.G[6] + R3C2_1.fLUXsurf.n * R3C2_1.fLUXsurf.G[8]); (75) [----] R3C2_1.fLUXsurf.I0 := max(0.0, (1.0 + 0.033 * $FUN_7) * 1367.0 * R3C2_1.fLUXsurf.sin_h); (75) [----] R3C2_1.fLUXsurf.AI := if noEvent(R3C2_1.fLUXsurf.sin_h > 0.0) then R3C2_1.fLUXsurf.DIRH / R3C2_1.fLUXsurf.I0 else 0.0; (75) [----] R3C2_1.fLUXsurf.f := if noEvent(R3C2_1.fLUXsurf.DIRH > 0.0 and R3C2_1.fLUXsurf.GLOH > 0.0) then $FUN_8 else 0.0;