diff --git a/Model_Library b/Model_Library
index bb535eb1c0d4a227071cc94ed34d7b6f7cf28108..fe0a9e7983c6dd0a727fec829f981425b99f1c55 160000
--- a/Model_Library
+++ b/Model_Library
@@ -1 +1 @@
-Subproject commit bb535eb1c0d4a227071cc94ed34d7b6f7cf28108
+Subproject commit fe0a9e7983c6dd0a727fec829f981425b99f1c55
diff --git a/input_files/convert_input_files_refactoring_part_2.py b/input_files/convert_input_files_refactoring_part_2.py
new file mode 100644
index 0000000000000000000000000000000000000000..9222d52901c12bcb48fbc76ece9bebd01f4019a0
--- /dev/null
+++ b/input_files/convert_input_files_refactoring_part_2.py
@@ -0,0 +1,99 @@
+"""
+This script inspects the input files and modifies them such that they adhere to the new input file specification used by the framework after merge of merge request !TODO Refactoring Part 2.
+"""
+
+import os.path
+import pandas as pd
+import math
+
+def read_matrix(df):
+    matrix = []
+    for i in df.index:
+        matrix_row = []
+        for j in df.index:
+            matrix_row.append(df[df["comp_name"][j]][i])
+        matrix.append(matrix_row)
+    return matrix
+
+def read_components(df):
+    components = {}
+    for i in df.index:
+        components[df["comp_name"][i]] = i
+    return components
+
+def compare_components(comp_1, comp_2):
+    different = False
+    for column in ['comp_name', 'comp_type', 'model', 'min_size', 'max_size', 'current_size']:
+        if comp_1[column] != comp_2[column]:
+            if not math.isnan(comp_1[column]) and not math.isnan(comp_2[column]):
+                different = True
+                break
+    return different
+
+def get_connected_components(matrix, components, comp):
+    connected_components = []
+    for component in components:
+        if get_connection(matrix, components, comp, component) == 1:
+            connected_components.append(component)
+    return connected_components
+
+def get_connection(matrix, components, comp_from, comp_to):
+    return matrix[components[comp_from]][components[comp_to]]
+
+changed_topologies = []
+invalid_topologies = []
+for dirpath, dirnames, filenames in os.walk(".\\input_files"):
+    topology_here = False
+    matrix_files = []
+    for filename in filenames:
+        if filename.find('matrix') and filename.endswith('.csv') and (filename.find('elec') is not -1):
+            topology_here = True
+            matrix_files.append((filename, 'electricity'))
+        if filename.find('matrix') and filename.endswith('.csv') and (filename.find('gas') is not -1):
+            topology_here = True
+            matrix_files.append((filename, 'gas'))
+        if filename.find('matrix') and filename.endswith('.csv') and (filename.find('hydro') is not -1):
+            topology_here = True
+            matrix_files.append((filename, 'hydrogen'))
+        if filename.find('matrix') and filename.endswith('.csv') and (filename.find('therm') is not -1):
+            topology_here = True
+            matrix_files.append((filename, 'heat'))
+    if topology_here:
+        try:
+            print(f"Inspecting topology {dirpath}")
+            file_contents = []
+            for matrix_file, sector in matrix_files:
+                df = pd.read_csv(os.path.join(dirpath, matrix_file))
+                file_contents.append((df, read_matrix(df), read_components(df), sector))
+            all_components = pd.DataFrame(columns = ['comp_name', 'comp_type', 'model', 'min_size', 'max_size', 'current_size'])
+            all_connections = pd.DataFrame(columns = ['sector', 'comp_from', 'comp_to'])
+            for df, matrix, components, sector in file_contents:
+                for component in components:
+                    if component not in all_components.loc[:]['comp_name']:
+                        all_components.loc[component] = df.loc[components[component]][['comp_name', 'comp_type', 'model', 'min_size', 'max_size', 'current_size']]
+                    else:
+                        if compare_components(all_components.loc[component], df.loc[components[component]][['comp_name', 'comp_type', 'model', 'min_size', 'max_size', 'current_size']]):
+                            raise KeyError
+                    for connected_component in get_connected_components(matrix, components, component):
+                        all_connections = pd.concat([all_connections, pd.Series({'sector': sector, 'comp_from': component, 'comp_to': connected_component}).to_frame().T], ignore_index = True)
+            changed_topologies.append(dirpath)
+            all_components.to_csv(os.path.join(dirpath, "temp.csv"), index = False)
+            df_str = pd.read_csv(os.path.join(dirpath, "temp.csv"), dtype = str, keep_default_na = False)
+            for i in all_components.columns:
+                counter = 0
+                for j in all_components.index:
+                    if issubclass(type(all_components[i][j]), float):
+                        if len(df_str[i][counter]) != 0 and df_str[i][counter].endswith(".0"):
+                            df_str[i][counter] = f"{all_components[i][j]:.0f}"
+                    counter += 1
+            df_str.to_csv(os.path.join(dirpath, "components.csv"), index = False)
+            os.remove(os.path.join(dirpath, "temp.csv"))
+            all_connections.to_csv(os.path.join(dirpath, "connections.csv"), index = False)
+            for matrix_file, sector in matrix_files:
+                os.remove(os.path.join(dirpath, matrix_file))
+        except KeyError:
+            invalid_topologies.append(dirpath)
+for directory in changed_topologies:
+    print(f"Modified topology {directory}!")
+for file in invalid_topologies:
+    print(f"Topology {file} breaks some part of the input file specification!")
diff --git a/input_files/models/district_models/example_CA/components.csv b/input_files/models/district_models/example_CA/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..a37e648d2765651ae7d3ac9c3ff0b12904b32a4f
--- /dev/null
+++ b/input_files/models/district_models/example_CA/components.csv
@@ -0,0 +1,5 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+inv_pv_bat,Inverter,STP-7000TL-20,0,20,0
+battery,LiionBattery,BAT1,0,6,6
+grd,StandardACGrid,GRD1,1000,1000,1000
+elec_cns,StandardElectricalConsumption,CNS1,1000,1000,0
diff --git a/input_files/models/district_models/example_CA/connections.csv b/input_files/models/district_models/example_CA/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..d13d507156fffd8ce828d6c4b432daf9d8bb0a8b
--- /dev/null
+++ b/input_files/models/district_models/example_CA/connections.csv
@@ -0,0 +1,7 @@
+sector,comp_from,comp_to
+electricity,inv_pv_bat,battery
+electricity,inv_pv_bat,grd
+electricity,inv_pv_bat,elec_cns
+electricity,battery,inv_pv_bat
+electricity,grd,inv_pv_bat
+electricity,grd,elec_cns
diff --git a/input_files/models/district_models/example_CA/elec_matrix.csv b/input_files/models/district_models/example_CA/elec_matrix.csv
deleted file mode 100644
index 2ac712600082b9ce6e4524a08bf81d224af2feab..0000000000000000000000000000000000000000
--- a/input_files/models/district_models/example_CA/elec_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,inv_pv_bat,battery,grd,elec_cns
-inv_pv_bat,Inverter,STP-7000TL-20,0,20,0,0,1,1,1
-battery,LiionBattery,BAT1,0,6,6,1,0,0,0
-grd,StandardACGrid,GRD1,1000,1000,1000,1,0,0,1
-elec_cns,StandardElectricalConsumption,CNS1,1000,1000,0,0,0,0,0
diff --git a/input_files/models/district_models/example_community/components.csv b/input_files/models/district_models/example_community/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..a0c503a3b1881a05608a9a14d5783641ce1ed540
--- /dev/null
+++ b/input_files/models/district_models/example_community/components.csv
@@ -0,0 +1,6 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,6,6,6
+inv_pv_bat,Inverter,STP-7000TL-20,0,20,0
+battery,LiionBattery,BAT1,6,6,6
+grd,StandardACGrid,GRD1,1000,1000,1000
+elec_cns,StandardElectricalConsumption,CNS1,1000,1000,0
diff --git a/input_files/models/district_models/example_community/connections.csv b/input_files/models/district_models/example_community/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..e451eec732b897a226572bb91176416c0bdf9240
--- /dev/null
+++ b/input_files/models/district_models/example_community/connections.csv
@@ -0,0 +1,8 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv_bat
+electricity,inv_pv_bat,battery
+electricity,inv_pv_bat,grd
+electricity,inv_pv_bat,elec_cns
+electricity,battery,inv_pv_bat
+electricity,grd,inv_pv_bat
+electricity,grd,elec_cns
diff --git a/input_files/models/district_models/example_community/elec_matrix.csv b/input_files/models/district_models/example_community/elec_matrix.csv
deleted file mode 100644
index f072d2fea74caf87564656c41c00a5bc1b9b9a79..0000000000000000000000000000000000000000
--- a/input_files/models/district_models/example_community/elec_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv_bat,battery,grd,elec_cns
-pv_roof,StandardPVGenerator,PV2,6,6,6,0,1,0,0,0
-inv_pv_bat,Inverter,STP-7000TL-20,0,20,0,0,0,1,1,1
-battery,LiionBattery,BAT1,6,6,6,0,1,0,0,0
-grd,StandardACGrid,GRD1,1000,1000,1000,0,1,0,0,1
-elec_cns,StandardElectricalConsumption,CNS1,1000,1000,0,0,0,0,0,0
diff --git a/input_files/models/district_models/jbr_test_ca/components.csv b/input_files/models/district_models/jbr_test_ca/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..a0c503a3b1881a05608a9a14d5783641ce1ed540
--- /dev/null
+++ b/input_files/models/district_models/jbr_test_ca/components.csv
@@ -0,0 +1,6 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,6,6,6
+inv_pv_bat,Inverter,STP-7000TL-20,0,20,0
+battery,LiionBattery,BAT1,6,6,6
+grd,StandardACGrid,GRD1,1000,1000,1000
+elec_cns,StandardElectricalConsumption,CNS1,1000,1000,0
diff --git a/input_files/models/district_models/jbr_test_ca/connections.csv b/input_files/models/district_models/jbr_test_ca/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..e451eec732b897a226572bb91176416c0bdf9240
--- /dev/null
+++ b/input_files/models/district_models/jbr_test_ca/connections.csv
@@ -0,0 +1,8 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv_bat
+electricity,inv_pv_bat,battery
+electricity,inv_pv_bat,grd
+electricity,inv_pv_bat,elec_cns
+electricity,battery,inv_pv_bat
+electricity,grd,inv_pv_bat
+electricity,grd,elec_cns
diff --git a/input_files/models/district_models/jbr_test_ca/elec_matrix.csv b/input_files/models/district_models/jbr_test_ca/elec_matrix.csv
deleted file mode 100644
index f072d2fea74caf87564656c41c00a5bc1b9b9a79..0000000000000000000000000000000000000000
--- a/input_files/models/district_models/jbr_test_ca/elec_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv_bat,battery,grd,elec_cns
-pv_roof,StandardPVGenerator,PV2,6,6,6,0,1,0,0,0
-inv_pv_bat,Inverter,STP-7000TL-20,0,20,0,0,0,1,1,1
-battery,LiionBattery,BAT1,6,6,6,0,1,0,0,0
-grd,StandardACGrid,GRD1,1000,1000,1000,0,1,0,0,1
-elec_cns,StandardElectricalConsumption,CNS1,1000,1000,0,0,0,0,0,0
diff --git a/input_files/models/district_models/jbr_test_comm/components.csv b/input_files/models/district_models/jbr_test_comm/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..a0c503a3b1881a05608a9a14d5783641ce1ed540
--- /dev/null
+++ b/input_files/models/district_models/jbr_test_comm/components.csv
@@ -0,0 +1,6 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,6,6,6
+inv_pv_bat,Inverter,STP-7000TL-20,0,20,0
+battery,LiionBattery,BAT1,6,6,6
+grd,StandardACGrid,GRD1,1000,1000,1000
+elec_cns,StandardElectricalConsumption,CNS1,1000,1000,0
diff --git a/input_files/models/district_models/jbr_test_comm/connections.csv b/input_files/models/district_models/jbr_test_comm/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..e451eec732b897a226572bb91176416c0bdf9240
--- /dev/null
+++ b/input_files/models/district_models/jbr_test_comm/connections.csv
@@ -0,0 +1,8 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv_bat
+electricity,inv_pv_bat,battery
+electricity,inv_pv_bat,grd
+electricity,inv_pv_bat,elec_cns
+electricity,battery,inv_pv_bat
+electricity,grd,inv_pv_bat
+electricity,grd,elec_cns
diff --git a/input_files/models/district_models/jbr_test_comm/elec_matrix.csv b/input_files/models/district_models/jbr_test_comm/elec_matrix.csv
deleted file mode 100644
index f072d2fea74caf87564656c41c00a5bc1b9b9a79..0000000000000000000000000000000000000000
--- a/input_files/models/district_models/jbr_test_comm/elec_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv_bat,battery,grd,elec_cns
-pv_roof,StandardPVGenerator,PV2,6,6,6,0,1,0,0,0
-inv_pv_bat,Inverter,STP-7000TL-20,0,20,0,0,0,1,1,1
-battery,LiionBattery,BAT1,6,6,6,0,1,0,0,0
-grd,StandardACGrid,GRD1,1000,1000,1000,0,1,0,0,1
-elec_cns,StandardElectricalConsumption,CNS1,1000,1000,0,0,0,0,0,0
diff --git a/input_files/models/prosumer_models/SCN0_CAT1/components.csv b/input_files/models/prosumer_models/SCN0_CAT1/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..37add2845104da8ceab6a52c2bc2a15796a4a455
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN0_CAT1/components.csv
@@ -0,0 +1,8 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+grd,StandardACGrid,GRD1,100000,100000,0
+elec_cns,StandardElectricalConsumption,CNS1,100000,100000,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,100000,100000,0
+therm_cns,HeatConsumption,HeatCNS1,100000,100000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,100000,100000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN0_CAT1/connections.csv b/input_files/models/prosumer_models/SCN0_CAT1/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..0e2d493c2bfd89dbc045e043548c77df8c6a63d5
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN0_CAT1/connections.csv
@@ -0,0 +1,6 @@
+sector,comp_from,comp_to
+electricity,grd,elec_cns
+gas,gas_grd,gas_boi
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN0_CAT1/elec_matrix.csv b/input_files/models/prosumer_models/SCN0_CAT1/elec_matrix.csv
deleted file mode 100644
index c396e2e2805bdb3a37a439e430d41a4f963b0781..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN0_CAT1/elec_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,grd,elec_cns
-grd,StandardACGrid,GRD1,100000,100000,0,0,1
-elec_cns,StandardElectricalConsumption,CNS1,100000,100000,0,0,0
diff --git a/input_files/models/prosumer_models/SCN0_CAT1/gas_matrix.csv b/input_files/models/prosumer_models/SCN0_CAT1/gas_matrix.csv
deleted file mode 100644
index 66b2202ca865704fb3d1b5878206bc0d46b92868..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN0_CAT1/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,100000,100000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN0_CAT1/therm_matrix.csv b/input_files/models/prosumer_models/SCN0_CAT1/therm_matrix.csv
deleted file mode 100644
index 7126041844dd308f44cee57628b1b88e152145c9..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN0_CAT1/therm_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,therm_cns,dhw_dmd,water_tes,gas_boi
-therm_cns,HeatConsumption,HeatCNS1,100000,100000,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,100000,100000,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV11/components.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV11/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..324121ea325cdace59b9e8266de983ee95d0713f
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV11/components.csv
@@ -0,0 +1,10 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,10,10,0
+inv_pv,BasicInverter,INVPV,10,10,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,10000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV11/connections.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV11/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..42d01f84dc19a15590e227b8ca095b52d8a648cf
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV11/connections.csv
@@ -0,0 +1,9 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,grd,elec_cns
+gas,gas_grd,gas_boi
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV11/elec_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV11/elec_matrix.csv
deleted file mode 100644
index efb04d08476a896632bd455316cda43550c53926..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV11/elec_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,grd,elec_cns
-pv_roof,StandardPVGenerator,PV2,10,10,0,0,1,0,0
-inv_pv,BasicInverter,INVPV,10,10,0,0,0,1,1
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,0,1
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV11/gas_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV11/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV11/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV11/therm_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV11/therm_matrix.csv
deleted file mode 100644
index 7f469290c513084b129bc19e4949cbfc904091f5..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV11/therm_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,therm_cns,dhw_dmd,water_tes,gas_boi
-therm_cns,HeatConsumption,HeatCNS1,10000,10000,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/components.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..833ddde47237ad413332ebac63e5539cc6d2982c
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/components.csv
@@ -0,0 +1,12 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,10,10,0
+inv_pv,BasicInverter,INVPV,10,10,0
+battery,LiionBattery,BAT1,10,10,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+inv_bat,BasicInverter,INVBAT,10,10,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,10000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/connections.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..b61eb9ccb526277ca029c4ba1f255b2aef7f90c2
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/connections.csv
@@ -0,0 +1,15 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,inv_pv,inv_bat
+electricity,battery,inv_bat
+electricity,grd,elec_cns
+electricity,grd,inv_bat
+electricity,inv_bat,battery
+electricity,inv_bat,grd
+electricity,inv_bat,elec_cns
+gas,gas_grd,gas_boi
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/elec_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/elec_matrix.csv
deleted file mode 100644
index 36cadbec855dae9c01482d6fb1ac48ff66ae0f84..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/elec_matrix.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,battery,grd,elec_cns,inv_bat
-pv_roof,StandardPVGenerator,PV2,10,10,0,0,1,0,0,0,0
-inv_pv,BasicInverter,INVPV,10,10,0,0,0,0,1,1,1
-battery,LiionBattery,BAT1,10,10,0,0,0,0,0,0,1
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,0,0,1,1
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0,0,0
-inv_bat,BasicInverter,INVBAT,10,10,0,0,0,1,1,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/gas_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/therm_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/therm_matrix.csv
deleted file mode 100644
index 7f469290c513084b129bc19e4949cbfc904091f5..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV12_BA/therm_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,therm_cns,dhw_dmd,water_tes,gas_boi
-therm_cns,HeatConsumption,HeatCNS1,10000,10000,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/components.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..4115b191e263d23cbd176c205598e8022b1af8ad
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/components.csv
@@ -0,0 +1,13 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,10,10,0
+inv_pv,BasicInverter,INVPV,10,10,0
+battery,LiionBattery,BAT1,10,10,0
+heat_pump,HeatPump,EHP1,10,10,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+inv_bat,BasicInverter,INVBAT,10,10,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/connections.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..da42e7d5fa6f2320ff7b1e5c9325a74e73c82bf3
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/connections.csv
@@ -0,0 +1,18 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,heat_pump
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,inv_pv,inv_bat
+electricity,battery,inv_bat
+electricity,grd,heat_pump
+electricity,grd,elec_cns
+electricity,inv_bat,battery
+electricity,inv_bat,heat_pump
+electricity,inv_bat,grd
+electricity,inv_bat,elec_cns
+gas,gas_grd,gas_boi
+heat,heat_pump,water_tes
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/elec_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/elec_matrix.csv
deleted file mode 100644
index 84e2567a8602082070bf85ae2e62e6b38de20cc9..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/elec_matrix.csv
+++ /dev/null
@@ -1,8 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,battery,heat_pump,grd,elec_cns,inv_bat
-pv_roof,StandardPVGenerator,PV2,10,10,0,0,1,0,0,0,0,0
-inv_pv,BasicInverter,INVPV,10,10,0,0,0,0,1,1,1,1
-battery,LiionBattery,BAT1,10,10,0,0,0,0,0,0,0,1
-heat_pump,HeatPump,EHP1,10,10,0,0,0,0,0,0,0,0
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,0,1,0,1,0
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0,0,0,0
-inv_bat,BasicInverter,INVBAT,10,10,0,0,0,1,1,1,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/gas_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/therm_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/therm_matrix.csv
deleted file mode 100644
index d9e02fac5073df08955777b37776ab97affe0472..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV13_BA_HP/therm_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,heat_pump,therm_cns,dhw_dmd,water_tes,gas_boi
-heat_pump,HeatPump,EHP1,,,,0,0,0,1,0
-therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/components.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..3c8eaceb6e068d4b05ca26c2ede7ad6017c44cc3
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/components.csv
@@ -0,0 +1,11 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,10,10,0
+inv_pv,BasicInverter,INVPV,10,10,0
+heat_pump,HeatPump,EHP1,10,10,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/connections.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..98920735b2ca5762af4fec9acc03b411d51b457e
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/connections.csv
@@ -0,0 +1,12 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,heat_pump
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,grd,heat_pump
+electricity,grd,elec_cns
+gas,gas_grd,gas_boi
+heat,heat_pump,water_tes
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/elec_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/elec_matrix.csv
deleted file mode 100644
index 793f401113266d7933bf1f20f249ea16eaae76eb..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/elec_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,heat_pump,grd,elec_cns
-pv_roof,StandardPVGenerator,PV2,10,10,0,0,1,0,0,0
-inv_pv,BasicInverter,INVPV,10,10,0,0,0,1,1,1
-heat_pump,HeatPump,EHP1,10,10,0,0,0,0,0,0
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,1,0,1
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/gas_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/therm_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/therm_matrix.csv
deleted file mode 100644
index d9e02fac5073df08955777b37776ab97affe0472..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/therm_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,heat_pump,therm_cns,dhw_dmd,water_tes,gas_boi
-heat_pump,HeatPump,EHP1,,,,0,0,0,1,0
-therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV31/components.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV31/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..88894d4b126e2d2400ddba21edc55cd3f41f9fe9
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV31/components.csv
@@ -0,0 +1,10 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,30,30,0
+inv_pv,BasicInverter,INVPV,30,30,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,10000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV31/connections.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV31/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..42d01f84dc19a15590e227b8ca095b52d8a648cf
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV31/connections.csv
@@ -0,0 +1,9 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,grd,elec_cns
+gas,gas_grd,gas_boi
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV31/elec_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV31/elec_matrix.csv
deleted file mode 100644
index a860982ecfcbf8ce7b7abd1f263bd934a762f795..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV31/elec_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,grd,elec_cns
-pv_roof,StandardPVGenerator,PV2,30,30,0,0,1,0,0
-inv_pv,BasicInverter,INVPV,30,30,0,0,0,1,1
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,0,1
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV31/gas_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV31/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV31/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV31/therm_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV31/therm_matrix.csv
deleted file mode 100644
index 7f469290c513084b129bc19e4949cbfc904091f5..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV31/therm_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,therm_cns,dhw_dmd,water_tes,gas_boi
-therm_cns,HeatConsumption,HeatCNS1,10000,10000,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/components.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..e5d63dd84626f61af74381b1fa6634320adc3d29
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/components.csv
@@ -0,0 +1,12 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,30,30,0
+inv_pv,BasicInverter,INVPV,30,30,0
+battery,LiionBattery,BAT1,10,10,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+inv_bat,BasicInverter,INVBAT,10,10,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,10000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/connections.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..b0145baced1e37bcc71ae9f838733f6c08297e67
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/connections.csv
@@ -0,0 +1,14 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,inv_pv,inv_bat
+electricity,battery,inv_bat
+electricity,grd,elec_cns
+electricity,inv_bat,battery
+electricity,inv_bat,grd
+electricity,inv_bat,elec_cns
+gas,gas_grd,gas_boi
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/elec_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/elec_matrix.csv
deleted file mode 100644
index 635295d45d00841f3b3194c1b2b7a024004e7417..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/elec_matrix.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,battery,grd,elec_cns,inv_bat
-pv_roof,StandardPVGenerator,PV2,30,30,0,0,1,0,0,0,0
-inv_pv,BasicInverter,INVPV,30,30,0,0,0,0,1,1,1
-battery,LiionBattery,BAT1,10,10,0,0,0,0,0,0,1
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,0,0,1,0
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0,0,0
-inv_bat,BasicInverter,INVBAT,10,10,0,0,0,1,1,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/gas_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/therm_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/therm_matrix.csv
deleted file mode 100644
index 7f469290c513084b129bc19e4949cbfc904091f5..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV32_BA/therm_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,therm_cns,dhw_dmd,water_tes,gas_boi
-therm_cns,HeatConsumption,HeatCNS1,10000,10000,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/components.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..fd87492d6c54366df72b7299656332cdfd5f9b9c
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/components.csv
@@ -0,0 +1,13 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,30,30,0
+inv_pv,BasicInverter,INVPV,30,30,0
+battery,LiionBattery,BAT1,10,10,0
+heat_pump,HeatPump,EHP1,10,10,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+inv_bat,BasicInverter,INVBAT,10,10,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/connections.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..da42e7d5fa6f2320ff7b1e5c9325a74e73c82bf3
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/connections.csv
@@ -0,0 +1,18 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,heat_pump
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,inv_pv,inv_bat
+electricity,battery,inv_bat
+electricity,grd,heat_pump
+electricity,grd,elec_cns
+electricity,inv_bat,battery
+electricity,inv_bat,heat_pump
+electricity,inv_bat,grd
+electricity,inv_bat,elec_cns
+gas,gas_grd,gas_boi
+heat,heat_pump,water_tes
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/elec_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/elec_matrix.csv
deleted file mode 100644
index 4e7f785c6275235e6a01954ff7886bfb7acd1ece..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/elec_matrix.csv
+++ /dev/null
@@ -1,8 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,battery,heat_pump,grd,elec_cns,inv_bat
-pv_roof,StandardPVGenerator,PV2,30,30,0,0,1,0,0,0,0,0
-inv_pv,BasicInverter,INVPV,30,30,0,0,0,0,1,1,1,1
-battery,LiionBattery,BAT1,10,10,0,0,0,0,0,0,0,1
-heat_pump,HeatPump,EHP1,10,10,0,0,0,0,0,0,0,0
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,0,1,0,1,0
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0,0,0,0
-inv_bat,BasicInverter,INVBAT,10,10,0,0,0,1,1,1,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/gas_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/therm_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/therm_matrix.csv
deleted file mode 100644
index d9e02fac5073df08955777b37776ab97affe0472..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV33_BA_HP/therm_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,heat_pump,therm_cns,dhw_dmd,water_tes,gas_boi
-heat_pump,HeatPump,EHP1,,,,0,0,0,1,0
-therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/components.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..8313995585b19d360c54545f8568cf47ddbd934a
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/components.csv
@@ -0,0 +1,11 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,30,30,0
+inv_pv,BasicInverter,INVPV,30,30,0
+heat_pump,HeatPump,EHP1,10,10,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/connections.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..98920735b2ca5762af4fec9acc03b411d51b457e
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/connections.csv
@@ -0,0 +1,12 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,heat_pump
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,grd,heat_pump
+electricity,grd,elec_cns
+gas,gas_grd,gas_boi
+heat,heat_pump,water_tes
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/elec_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/elec_matrix.csv
deleted file mode 100644
index 1badd2fc33131478f97c395ac67adaef5f44d8bb..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/elec_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,heat_pump,grd,elec_cns
-pv_roof,StandardPVGenerator,PV2,30,30,0,0,1,0,0,0
-inv_pv,BasicInverter,INVPV,30,30,0,0,0,1,1,1
-heat_pump,HeatPump,EHP1,10,10,0,0,0,0,0,0
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,1,0,1
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/gas_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/therm_matrix.csv b/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/therm_matrix.csv
deleted file mode 100644
index d9e02fac5073df08955777b37776ab97affe0472..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN2_CAT1_PV34_HP/therm_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,heat_pump,therm_cns,dhw_dmd,water_tes,gas_boi
-heat_pump,HeatPump,EHP1,,,,0,0,0,1,0
-therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1/components.csv b/input_files/models/prosumer_models/SCN3_CAT1/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..d29b5218d5100bb59edf66a35046095d29024a93
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1/components.csv
@@ -0,0 +1,8 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,10000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1/connections.csv b/input_files/models/prosumer_models/SCN3_CAT1/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..0e2d493c2bfd89dbc045e043548c77df8c6a63d5
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1/connections.csv
@@ -0,0 +1,6 @@
+sector,comp_from,comp_to
+electricity,grd,elec_cns
+gas,gas_grd,gas_boi
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN3_CAT1/elec_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1/elec_matrix.csv
deleted file mode 100644
index c5409f5c5043a13b40e2ca912579837e6e7f988f..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1/elec_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,grd,elec_cns
-grd,StandardACGrid,GRD1,10000,10000,0,0,1
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1/gas_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1/therm_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1/therm_matrix.csv
deleted file mode 100644
index 7f469290c513084b129bc19e4949cbfc904091f5..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1/therm_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,therm_cns,dhw_dmd,water_tes,gas_boi
-therm_cns,HeatConsumption,HeatCNS1,10000,10000,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV11/components.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV11/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..324121ea325cdace59b9e8266de983ee95d0713f
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV11/components.csv
@@ -0,0 +1,10 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,10,10,0
+inv_pv,BasicInverter,INVPV,10,10,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,10000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV11/connections.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV11/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..42d01f84dc19a15590e227b8ca095b52d8a648cf
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV11/connections.csv
@@ -0,0 +1,9 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,grd,elec_cns
+gas,gas_grd,gas_boi
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV11/elec_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV11/elec_matrix.csv
deleted file mode 100644
index efb04d08476a896632bd455316cda43550c53926..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV11/elec_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,grd,elec_cns
-pv_roof,StandardPVGenerator,PV2,10,10,0,0,1,0,0
-inv_pv,BasicInverter,INVPV,10,10,0,0,0,1,1
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,0,1
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV11/gas_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV11/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV11/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV11/therm_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV11/therm_matrix.csv
deleted file mode 100644
index 7f469290c513084b129bc19e4949cbfc904091f5..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV11/therm_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,therm_cns,dhw_dmd,water_tes,gas_boi
-therm_cns,HeatConsumption,HeatCNS1,10000,10000,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/components.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..833ddde47237ad413332ebac63e5539cc6d2982c
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/components.csv
@@ -0,0 +1,12 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,10,10,0
+inv_pv,BasicInverter,INVPV,10,10,0
+battery,LiionBattery,BAT1,10,10,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+inv_bat,BasicInverter,INVBAT,10,10,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,10000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/connections.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..b61eb9ccb526277ca029c4ba1f255b2aef7f90c2
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/connections.csv
@@ -0,0 +1,15 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,inv_pv,inv_bat
+electricity,battery,inv_bat
+electricity,grd,elec_cns
+electricity,grd,inv_bat
+electricity,inv_bat,battery
+electricity,inv_bat,grd
+electricity,inv_bat,elec_cns
+gas,gas_grd,gas_boi
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/elec_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/elec_matrix.csv
deleted file mode 100644
index 36cadbec855dae9c01482d6fb1ac48ff66ae0f84..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/elec_matrix.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,battery,grd,elec_cns,inv_bat
-pv_roof,StandardPVGenerator,PV2,10,10,0,0,1,0,0,0,0
-inv_pv,BasicInverter,INVPV,10,10,0,0,0,0,1,1,1
-battery,LiionBattery,BAT1,10,10,0,0,0,0,0,0,1
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,0,0,1,1
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0,0,0
-inv_bat,BasicInverter,INVBAT,10,10,0,0,0,1,1,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/gas_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/therm_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/therm_matrix.csv
deleted file mode 100644
index 7f469290c513084b129bc19e4949cbfc904091f5..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV12_BA/therm_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,therm_cns,dhw_dmd,water_tes,gas_boi
-therm_cns,HeatConsumption,HeatCNS1,10000,10000,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/components.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..4115b191e263d23cbd176c205598e8022b1af8ad
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/components.csv
@@ -0,0 +1,13 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,10,10,0
+inv_pv,BasicInverter,INVPV,10,10,0
+battery,LiionBattery,BAT1,10,10,0
+heat_pump,HeatPump,EHP1,10,10,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+inv_bat,BasicInverter,INVBAT,10,10,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/connections.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..6d228b6aeb02e5f5d937ac35607f2a5ce570a895
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/connections.csv
@@ -0,0 +1,19 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,heat_pump
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,inv_pv,inv_bat
+electricity,battery,inv_bat
+electricity,grd,heat_pump
+electricity,grd,elec_cns
+electricity,grd,inv_bat
+electricity,inv_bat,battery
+electricity,inv_bat,heat_pump
+electricity,inv_bat,grd
+electricity,inv_bat,elec_cns
+gas,gas_grd,gas_boi
+heat,heat_pump,water_tes
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/elec_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/elec_matrix.csv
deleted file mode 100644
index 7a62ea7c9c55b23281c458e64599733dbbf9c060..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/elec_matrix.csv
+++ /dev/null
@@ -1,8 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,battery,heat_pump,grd,elec_cns,inv_bat
-pv_roof,StandardPVGenerator,PV2,10,10,0,0,1,0,0,0,0,0
-inv_pv,BasicInverter,INVPV,10,10,0,0,0,0,1,1,1,1
-battery,LiionBattery,BAT1,10,10,0,0,0,0,0,0,0,1
-heat_pump,HeatPump,EHP1,10,10,0,0,0,0,0,0,0,0
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,0,1,0,1,1
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0,0,0,0
-inv_bat,BasicInverter,INVBAT,10,10,0,0,0,1,1,1,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/gas_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/therm_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/therm_matrix.csv
deleted file mode 100644
index d9e02fac5073df08955777b37776ab97affe0472..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV13_BA_HP/therm_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,heat_pump,therm_cns,dhw_dmd,water_tes,gas_boi
-heat_pump,HeatPump,EHP1,,,,0,0,0,1,0
-therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/components.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..3c8eaceb6e068d4b05ca26c2ede7ad6017c44cc3
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/components.csv
@@ -0,0 +1,11 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,10,10,0
+inv_pv,BasicInverter,INVPV,10,10,0
+heat_pump,HeatPump,EHP1,10,10,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/connections.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..98920735b2ca5762af4fec9acc03b411d51b457e
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/connections.csv
@@ -0,0 +1,12 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,heat_pump
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,grd,heat_pump
+electricity,grd,elec_cns
+gas,gas_grd,gas_boi
+heat,heat_pump,water_tes
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/elec_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/elec_matrix.csv
deleted file mode 100644
index 793f401113266d7933bf1f20f249ea16eaae76eb..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/elec_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,heat_pump,grd,elec_cns
-pv_roof,StandardPVGenerator,PV2,10,10,0,0,1,0,0,0
-inv_pv,BasicInverter,INVPV,10,10,0,0,0,1,1,1
-heat_pump,HeatPump,EHP1,10,10,0,0,0,0,0,0
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,1,0,1
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/gas_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/therm_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/therm_matrix.csv
deleted file mode 100644
index d9e02fac5073df08955777b37776ab97affe0472..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV14_HP/therm_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,heat_pump,therm_cns,dhw_dmd,water_tes,gas_boi
-heat_pump,HeatPump,EHP1,,,,0,0,0,1,0
-therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV31/components.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV31/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..88894d4b126e2d2400ddba21edc55cd3f41f9fe9
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV31/components.csv
@@ -0,0 +1,10 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,30,30,0
+inv_pv,BasicInverter,INVPV,30,30,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,10000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV31/connections.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV31/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..42d01f84dc19a15590e227b8ca095b52d8a648cf
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV31/connections.csv
@@ -0,0 +1,9 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,grd,elec_cns
+gas,gas_grd,gas_boi
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV31/elec_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV31/elec_matrix.csv
deleted file mode 100644
index a860982ecfcbf8ce7b7abd1f263bd934a762f795..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV31/elec_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,grd,elec_cns
-pv_roof,StandardPVGenerator,PV2,30,30,0,0,1,0,0
-inv_pv,BasicInverter,INVPV,30,30,0,0,0,1,1
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,0,1
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV31/gas_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV31/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV31/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV31/therm_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV31/therm_matrix.csv
deleted file mode 100644
index 7f469290c513084b129bc19e4949cbfc904091f5..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV31/therm_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,therm_cns,dhw_dmd,water_tes,gas_boi
-therm_cns,HeatConsumption,HeatCNS1,10000,10000,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/components.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..e5d63dd84626f61af74381b1fa6634320adc3d29
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/components.csv
@@ -0,0 +1,12 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,30,30,0
+inv_pv,BasicInverter,INVPV,30,30,0
+battery,LiionBattery,BAT1,10,10,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+inv_bat,BasicInverter,INVBAT,10,10,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,10000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/connections.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..b61eb9ccb526277ca029c4ba1f255b2aef7f90c2
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/connections.csv
@@ -0,0 +1,15 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,inv_pv,inv_bat
+electricity,battery,inv_bat
+electricity,grd,elec_cns
+electricity,grd,inv_bat
+electricity,inv_bat,battery
+electricity,inv_bat,grd
+electricity,inv_bat,elec_cns
+gas,gas_grd,gas_boi
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/elec_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/elec_matrix.csv
deleted file mode 100644
index 875add35ff453429b9db08ed5b2247d59aa6681a..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/elec_matrix.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,battery,grd,elec_cns,inv_bat
-pv_roof,StandardPVGenerator,PV2,30,30,0,0,1,0,0,0,0
-inv_pv,BasicInverter,INVPV,30,30,0,0,0,0,1,1,1
-battery,LiionBattery,BAT1,10,10,0,0,0,0,0,0,1
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,0,0,1,1
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0,0,0
-inv_bat,BasicInverter,INVBAT,10,10,0,0,0,1,1,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/gas_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/therm_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/therm_matrix.csv
deleted file mode 100644
index 7f469290c513084b129bc19e4949cbfc904091f5..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV32_BA/therm_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,therm_cns,dhw_dmd,water_tes,gas_boi
-therm_cns,HeatConsumption,HeatCNS1,10000,10000,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/components.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..fd87492d6c54366df72b7299656332cdfd5f9b9c
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/components.csv
@@ -0,0 +1,13 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,30,30,0
+inv_pv,BasicInverter,INVPV,30,30,0
+battery,LiionBattery,BAT1,10,10,0
+heat_pump,HeatPump,EHP1,10,10,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+inv_bat,BasicInverter,INVBAT,10,10,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/connections.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..6d228b6aeb02e5f5d937ac35607f2a5ce570a895
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/connections.csv
@@ -0,0 +1,19 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,heat_pump
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,inv_pv,inv_bat
+electricity,battery,inv_bat
+electricity,grd,heat_pump
+electricity,grd,elec_cns
+electricity,grd,inv_bat
+electricity,inv_bat,battery
+electricity,inv_bat,heat_pump
+electricity,inv_bat,grd
+electricity,inv_bat,elec_cns
+gas,gas_grd,gas_boi
+heat,heat_pump,water_tes
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/elec_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/elec_matrix.csv
deleted file mode 100644
index 05392accd4eff7d061af5f5fa903ec318b3f4b88..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/elec_matrix.csv
+++ /dev/null
@@ -1,8 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,battery,heat_pump,grd,elec_cns,inv_bat
-pv_roof,StandardPVGenerator,PV2,30,30,0,0,1,0,0,0,0,0
-inv_pv,BasicInverter,INVPV,30,30,0,0,0,0,1,1,1,1
-battery,LiionBattery,BAT1,10,10,0,0,0,0,0,0,0,1
-heat_pump,HeatPump,EHP1,10,10,0,0,0,0,0,0,0,0
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,0,1,0,1,1
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0,0,0,0
-inv_bat,BasicInverter,INVBAT,10,10,0,0,0,1,1,1,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/gas_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/therm_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/therm_matrix.csv
deleted file mode 100644
index d9e02fac5073df08955777b37776ab97affe0472..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV33_BA_HP/therm_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,heat_pump,therm_cns,dhw_dmd,water_tes,gas_boi
-heat_pump,HeatPump,EHP1,,,,0,0,0,1,0
-therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/components.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..8313995585b19d360c54545f8568cf47ddbd934a
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/components.csv
@@ -0,0 +1,11 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,30,30,0
+inv_pv,BasicInverter,INVPV,30,30,0
+heat_pump,HeatPump,EHP1,10,10,0
+grd,StandardACGrid,GRD1,10000,10000,0
+elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0
+gas_boi,GasBoiler,BOI1,10,10,0
+gas_grd,StandardGasGrid,GAS1,10000,10000,0
+therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0
+water_tes,HotWaterStorage,TES1,40,40,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/connections.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..98920735b2ca5762af4fec9acc03b411d51b457e
--- /dev/null
+++ b/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/connections.csv
@@ -0,0 +1,12 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv
+electricity,inv_pv,heat_pump
+electricity,inv_pv,grd
+electricity,inv_pv,elec_cns
+electricity,grd,heat_pump
+electricity,grd,elec_cns
+gas,gas_grd,gas_boi
+heat,heat_pump,water_tes
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
+heat,gas_boi,water_tes
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/elec_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/elec_matrix.csv
deleted file mode 100644
index 1badd2fc33131478f97c395ac67adaef5f44d8bb..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/elec_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv,heat_pump,grd,elec_cns
-pv_roof,StandardPVGenerator,PV2,30,30,0,0,1,0,0,0
-inv_pv,BasicInverter,INVPV,30,30,0,0,0,1,1,1
-heat_pump,HeatPump,EHP1,10,10,0,0,0,0,0,0
-grd,StandardACGrid,GRD1,10000,10000,0,0,0,1,0,1
-elec_cns,StandardElectricalConsumption,CNS1,10000,10000,0,0,0,0,0,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/gas_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/gas_matrix.csv
deleted file mode 100644
index 667ee9e0e31bb4e5ce69169a054f27202adc768e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boi,gas_grd
-gas_boi,GasBoiler,BOI1,10,10,0,0,0
-gas_grd,StandardGasGrid,GAS1,10000,10000,0,1,0
diff --git a/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/therm_matrix.csv b/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/therm_matrix.csv
deleted file mode 100644
index d9e02fac5073df08955777b37776ab97affe0472..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/SCN3_CAT1_PV34_HP/therm_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,heat_pump,therm_cns,dhw_dmd,water_tes,gas_boi
-heat_pump,HeatPump,EHP1,,,,0,0,0,1,0
-therm_cns,HeatConsumption,HeatCNS1,10000,1000000,0,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,10000,10000,0,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,40,40,0,0,1,1,0,0
-gas_boi,GasBoiler,BOI1,10,10,0,0,0,0,1,0
diff --git a/input_files/models/prosumer_models/jbr_test/components.csv b/input_files/models/prosumer_models/jbr_test/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..a0c503a3b1881a05608a9a14d5783641ce1ed540
--- /dev/null
+++ b/input_files/models/prosumer_models/jbr_test/components.csv
@@ -0,0 +1,6 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,6,6,6
+inv_pv_bat,Inverter,STP-7000TL-20,0,20,0
+battery,LiionBattery,BAT1,6,6,6
+grd,StandardACGrid,GRD1,1000,1000,1000
+elec_cns,StandardElectricalConsumption,CNS1,1000,1000,0
diff --git a/input_files/models/prosumer_models/jbr_test/connections.csv b/input_files/models/prosumer_models/jbr_test/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..e451eec732b897a226572bb91176416c0bdf9240
--- /dev/null
+++ b/input_files/models/prosumer_models/jbr_test/connections.csv
@@ -0,0 +1,8 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv_bat
+electricity,inv_pv_bat,battery
+electricity,inv_pv_bat,grd
+electricity,inv_pv_bat,elec_cns
+electricity,battery,inv_pv_bat
+electricity,grd,inv_pv_bat
+electricity,grd,elec_cns
diff --git a/input_files/models/prosumer_models/jbr_test/elec_matrix.csv b/input_files/models/prosumer_models/jbr_test/elec_matrix.csv
deleted file mode 100644
index f072d2fea74caf87564656c41c00a5bc1b9b9a79..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/jbr_test/elec_matrix.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv_bat,battery,grd,elec_cns
-pv_roof,StandardPVGenerator,PV2,6,6,6,0,1,0,0,0
-inv_pv_bat,Inverter,STP-7000TL-20,0,20,0,0,0,1,1,1
-battery,LiionBattery,BAT1,6,6,6,0,1,0,0,0
-grd,StandardACGrid,GRD1,1000,1000,1000,0,1,0,0,1
-elec_cns,StandardElectricalConsumption,CNS1,1000,1000,0,0,0,0,0,0
diff --git a/input_files/models/prosumer_models/mfh_quartal/components.csv b/input_files/models/prosumer_models/mfh_quartal/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..652eeb73c572f9070bf39ae5f4cba6725f07b0d2
--- /dev/null
+++ b/input_files/models/prosumer_models/mfh_quartal/components.csv
@@ -0,0 +1,18 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+grd,StandardACGrid,GRD1,1000,1000,0
+pv,StandardPVGenerator,PV2,0,30,0
+bat,LiionBattery,BAT1,1,1,0
+chp,CHP,CHP1,0,50,0
+ecns1,StandardElectricalConsumption,CNS1,1000,1000,0
+ecns2,StandardElectricalConsumption,CNS1,1000,1000,0
+ecns3,StandardElectricalConsumption,CNS1,1000,1000,0
+ecns4,StandardElectricalConsumption,CNS1,1000,1000,0
+ecns5,StandardElectricalConsumption,CNS1,1000,1000,0
+ecns6,StandardElectricalConsumption,CNS1,1000,1000,0
+gas_grd,StandardGasGrid,GAS1,1000,1000,0
+tcns1,HeatConsumption,HeatCNS1,1000,1000,0
+tcns2,HeatConsumption,HeatCNS1,1000,1000,0
+tcns3,HeatConsumption,HeatCNS1,1000,1000,0
+tcns4,HeatConsumption,HeatCNS1,1000,1000,0
+tcns5,HeatConsumption,HeatCNS1,1000,1000,0
+tcns6,HeatConsumption,HeatCNS1,1000,1000,0
diff --git a/input_files/models/prosumer_models/mfh_quartal/connections.csv b/input_files/models/prosumer_models/mfh_quartal/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..ec97f639b9888b7b3b1cc6fa066b67f9cfa1e723
--- /dev/null
+++ b/input_files/models/prosumer_models/mfh_quartal/connections.csv
@@ -0,0 +1,35 @@
+sector,comp_from,comp_to
+electricity,grd,ecns1
+electricity,grd,ecns2
+electricity,grd,ecns3
+electricity,grd,ecns4
+electricity,grd,ecns5
+electricity,grd,ecns6
+electricity,pv,grd
+electricity,pv,bat
+electricity,pv,ecns1
+electricity,pv,ecns2
+electricity,pv,ecns3
+electricity,pv,ecns4
+electricity,pv,ecns5
+electricity,pv,ecns6
+electricity,bat,ecns1
+electricity,bat,ecns2
+electricity,bat,ecns3
+electricity,bat,ecns4
+electricity,bat,ecns5
+electricity,bat,ecns6
+electricity,chp,grd
+electricity,chp,ecns1
+electricity,chp,ecns2
+electricity,chp,ecns3
+electricity,chp,ecns4
+electricity,chp,ecns5
+electricity,chp,ecns6
+gas,gas_grd,chp
+heat,chp,tcns1
+heat,chp,tcns2
+heat,chp,tcns3
+heat,chp,tcns4
+heat,chp,tcns5
+heat,chp,tcns6
diff --git a/input_files/models/prosumer_models/mfh_quartal/elec_matrix.csv b/input_files/models/prosumer_models/mfh_quartal/elec_matrix.csv
deleted file mode 100644
index 5d84ee4384bb28d6c1b321c0fea05e6a026865ad..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/mfh_quartal/elec_matrix.csv
+++ /dev/null
@@ -1,11 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,grd,pv,bat,chp,ecns1,ecns2,ecns3,ecns4,ecns5,ecns6
-grd,StandardACGrid,GRD1,1000,1000,0,0,0,0,0,1,1,1,1,1,1
-pv,StandardPVGenerator,PV2,0,30,0,1,0,1,0,1,1,1,1,1,1
-bat,LiionBattery,BAT1,1,1,0,0,0,0,0,1,1,1,1,1,1
-chp,CHP,CHP1,0,50,0,1,0,0,0,1,1,1,1,1,1
-ecns1,StandardElectricalConsumption,CNS1,1000,1000,0,0,0,0,0,0,0,0,0,0,0
-ecns2,StandardElectricalConsumption,CNS1,1000,1000,0,0,0,0,0,0,0,0,0,0,0
-ecns3,StandardElectricalConsumption,CNS1,1000,1000,0,0,0,0,0,0,0,0,0,0,0
-ecns4,StandardElectricalConsumption,CNS1,1000,1000,0,0,0,0,0,0,0,0,0,0,0
-ecns5,StandardElectricalConsumption,CNS1,1000,1000,0,0,0,0,0,0,0,0,0,0,0
-ecns6,StandardElectricalConsumption,CNS1,1000,1000,0,0,0,0,0,0,0,0,0,0,0
diff --git a/input_files/models/prosumer_models/mfh_quartal/gas_matrix.csv b/input_files/models/prosumer_models/mfh_quartal/gas_matrix.csv
deleted file mode 100644
index 2921720ae575c737d0f205a9f72da183127cff5d..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/mfh_quartal/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,chp,gas_grd
-chp,CHP,CHP1,0,50,0,0,0
-gas_grd,StandardGasGrid,GAS1,1000,1000,0,1,0
diff --git a/input_files/models/prosumer_models/mfh_quartal/therm_matrix.csv b/input_files/models/prosumer_models/mfh_quartal/therm_matrix.csv
deleted file mode 100644
index 6d564a0d50ee18c857ea9c3b43f726eb6eb23dee..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/mfh_quartal/therm_matrix.csv
+++ /dev/null
@@ -1,8 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,chp,tcns1,tcns2,tcns3,tcns4,tcns5,tcns6
-chp,CHP,CHP1,0,50,0,0,1,1,1,1,1,1
-tcns1,HeatConsumption,HeatCNS1,1000,1000,0,0,0,0,0,0,0,0
-tcns2,HeatConsumption,HeatCNS1,1000,1000,0,0,0,0,0,0,0,0
-tcns3,HeatConsumption,HeatCNS1,1000,1000,0,0,0,0,0,0,0,0
-tcns4,HeatConsumption,HeatCNS1,1000,1000,0,0,0,0,0,0,0,0
-tcns5,HeatConsumption,HeatCNS1,1000,1000,0,0,0,0,0,0,0,0
-tcns6,HeatConsumption,HeatCNS1,1000,1000,0,0,0,0,0,0,0,0
\ No newline at end of file
diff --git a/input_files/models/prosumer_models/office_pv_heatpump/components.csv b/input_files/models/prosumer_models/office_pv_heatpump/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..ad450a1781ebbf8cb72f3f4111f50ca015c30f08
--- /dev/null
+++ b/input_files/models/prosumer_models/office_pv_heatpump/components.csv
@@ -0,0 +1,10 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof,StandardPVGenerator,PV2,0,30,0
+inv_pv_bat,Inverter,STP-7000TL-20,0,30,0
+battery,LiionBattery,BAT1,0,1000,0
+heat_pump,HeatPump,EHP1,2,50,0
+grd,StandardACGrid,GRD1,1000,1000,0
+elec_cns,StandardElectricalConsumption,CNS1,1000,1000,0
+therm_cns,HeatConsumption,HeatCNS1,1000,1000,0
+dhw_dmd,HotWaterConsumption,HWCNS1,1000,1000,0
+water_tes,HotWaterStorage,TES1,10,93,0
diff --git a/input_files/models/prosumer_models/office_pv_heatpump/connections.csv b/input_files/models/prosumer_models/office_pv_heatpump/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..9fb0451f88f4548a01618c8add4d54e7415a68d2
--- /dev/null
+++ b/input_files/models/prosumer_models/office_pv_heatpump/connections.csv
@@ -0,0 +1,13 @@
+sector,comp_from,comp_to
+electricity,pv_roof,inv_pv_bat
+electricity,inv_pv_bat,battery
+electricity,inv_pv_bat,heat_pump
+electricity,inv_pv_bat,grd
+electricity,inv_pv_bat,elec_cns
+electricity,battery,inv_pv_bat
+electricity,grd,inv_pv_bat
+electricity,grd,heat_pump
+electricity,grd,elec_cns
+heat,heat_pump,water_tes
+heat,water_tes,therm_cns
+heat,water_tes,dhw_dmd
diff --git a/input_files/models/prosumer_models/office_pv_heatpump/elec_matrix.csv b/input_files/models/prosumer_models/office_pv_heatpump/elec_matrix.csv
deleted file mode 100644
index 51d563713936974eda2a41a665fe4485c81d93a9..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/office_pv_heatpump/elec_matrix.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof,inv_pv_bat,battery,heat_pump,grd,elec_cns
-pv_roof,StandardPVGenerator,PV2,0,30,0,0,1,0,0,0,0
-inv_pv_bat,Inverter,STP-7000TL-20,0,30,0,0,0,1,1,1,1
-battery,LiionBattery,BAT1,0,1000,0,0,1,0,0,0,0
-heat_pump,HeatPump,EHP1,2,50,0,0,0,0,0,0,0
-grd,StandardACGrid,GRD1,1000,1000,0,0,1,0,1,0,1
-elec_cns,StandardElectricalConsumption,CNS1,1000,1000,0,0,0,0,0,0,0
diff --git a/input_files/models/prosumer_models/office_pv_heatpump/therm_matrix.csv b/input_files/models/prosumer_models/office_pv_heatpump/therm_matrix.csv
deleted file mode 100644
index 3f54f72d2981ba422a521c1bdb61070f66b6d997..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/office_pv_heatpump/therm_matrix.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,heat_pump,therm_cns,dhw_dmd,water_tes
-heat_pump,HeatPump,EHP1,,,,0,0,0,1
-therm_cns,HeatConsumption,HeatCNS1,1000,1000,0,0,0,0,0
-dhw_dmd,HotWaterConsumption,HWCNS1,1000,1000,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,10,93,0,0,1,1,0
diff --git a/input_files/models/prosumer_models/swimmingPool/components.csv b/input_files/models/prosumer_models/swimmingPool/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..c6eef40a6fd56d1ca2aa28672121dedc5377adae
--- /dev/null
+++ b/input_files/models/prosumer_models/swimmingPool/components.csv
@@ -0,0 +1,15 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof1,StandardPVGenerator,Vitovolt300,0,800,0
+inv_pv_bat,Inverter,STP-7000TL-20,0,800,0
+battery,LiionBattery,BAT1,0,800,0
+grd,StandardACGrid,GRD1,0,800,0
+elec_cns,StandardElectricalConsumption,CNS1,0,800,0
+bhkw,BHKW,VTB200,0,800,0
+pv_roof2,StandardPVGenerator,Vitovolt300,0,30,0
+heat_pump,HeatPump,EHP1,0,800,0
+gas_grd,StandardGasGrid,GAS1,0,800,0
+gas_boiler,GasBoiler,BOI1,,,
+therm_cns,HeatConsumption,HeatCNS1,0,800,0
+water_tes,HotWaterStorage,TES1,0,800,0
+heat_grid,HeatGrid,HG1,0,800,0
+solar_therm_ge,SolarThermalCollector,Vitosol200_TypSV2G,0,800,0
diff --git a/input_files/models/prosumer_models/swimmingPool/connections.csv b/input_files/models/prosumer_models/swimmingPool/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..c67046ecf52db2d127419f4421e5618046476b4d
--- /dev/null
+++ b/input_files/models/prosumer_models/swimmingPool/connections.csv
@@ -0,0 +1,26 @@
+sector,comp_from,comp_to
+electricity,pv_roof1,inv_pv_bat
+electricity,inv_pv_bat,battery
+electricity,inv_pv_bat,grd
+electricity,inv_pv_bat,elec_cns
+electricity,inv_pv_bat,heat_pump
+electricity,battery,inv_pv_bat
+electricity,grd,elec_cns
+electricity,grd,heat_pump
+electricity,bhkw,inv_pv_bat
+electricity,bhkw,grd
+electricity,bhkw,elec_cns
+electricity,bhkw,heat_pump
+electricity,pv_roof2,inv_pv_bat
+gas,gas_grd,bhkw
+gas,gas_grd,gas_boiler
+heat,water_tes,therm_cns
+heat,heat_grid,therm_cns
+heat,bhkw,therm_cns
+heat,bhkw,water_tes
+heat,solar_therm_ge,therm_cns
+heat,solar_therm_ge,water_tes
+heat,gas_boiler,therm_cns
+heat,gas_boiler,water_tes
+heat,heat_pump,therm_cns
+heat,heat_pump,water_tes
diff --git a/input_files/models/prosumer_models/swimmingPool/elec_matrix.csv b/input_files/models/prosumer_models/swimmingPool/elec_matrix.csv
deleted file mode 100644
index 2952f8888013444be110460ef9c381c16f9f2eaf..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/swimmingPool/elec_matrix.csv
+++ /dev/null
@@ -1,10 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof1,inv_pv_bat,battery,grd,elec_cns,bhkw,pv_roof2,heat_pump
-pv_roof1,StandardPVGenerator,Vitovolt300,0,800,0,0,1,0,0,0,0,0,0
-inv_pv_bat,Inverter,STP-7000TL-20,0,800,0,0,0,1,1,1,0,0,1
-battery,LiionBattery,BAT1,0,800,0,0,1,0,0,0,0,0,0
-grd,StandardACGrid,GRD1,0,800,0,0,0,0,0,1,0,0,1
-elec_cns,StandardElectricalConsumption,CNS1,0,800,0,0,0,0,0,0,0,0,0
-bhkw,BHKW,VTB200,0,800,0,0,1,0,1,1,0,0,1
-pv_roof2,StandardPVGenerator,Vitovolt300,0,30,0,0,1,0,0,0,0,0,0
-heat_pump,HeatPump,EHP1,0,800,0,0,0,0,0,0,0,0,0
-
diff --git a/input_files/models/prosumer_models/swimmingPool/gas_matrix.csv b/input_files/models/prosumer_models/swimmingPool/gas_matrix.csv
deleted file mode 100644
index b8624eeae61df1dd114094b27342b3386a889104..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/swimmingPool/gas_matrix.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,bhkw,gas_grd,gas_boiler
-bhkw,BHKW,VTB200,,,,0,0,0
-gas_grd,StandardGasGrid,GAS1,0,800,0,1,0,1
-gas_boiler,GasBoiler,BOI1,,,,0,0,0
diff --git a/input_files/models/prosumer_models/swimmingPool/therm_matrix.csv b/input_files/models/prosumer_models/swimmingPool/therm_matrix.csv
deleted file mode 100644
index 7b918b07dfadb50b8420b31dd46e20f7d732f974..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/swimmingPool/therm_matrix.csv
+++ /dev/null
@@ -1,8 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,therm_cns,water_tes,heat_grid,bhkw,solar_therm_ge,gas_boiler,heat_pump
-therm_cns,HeatConsumption,HeatCNS1,0,800,0,0,0,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,0,800,0,1,0,0,0,0,0,0
-heat_grid,HeatGrid,HG1,0,800,0,1,0,0,0,0,0,0
-bhkw,BHKW,VTB200,,,,1,1,0,0,0,0,0
-solar_therm_ge,SolarThermalCollector,Vitosol200_TypSV2G,0,800,0,1,1,0,0,0,0,0
-gas_boiler,GasBoiler,BOI1,0,800,0,1,1,0,0,0,0,0
-heat_pump,HeatPump,EHP1,,,,1,1,0,0,0,0,0
diff --git a/input_files/models/prosumer_models/swimmingPool_CHP/components.csv b/input_files/models/prosumer_models/swimmingPool_CHP/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..291e8a1d9f704e3de9dfbb951f8c10609e9a91d4
--- /dev/null
+++ b/input_files/models/prosumer_models/swimmingPool_CHP/components.csv
@@ -0,0 +1,14 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof1,StandardPVGenerator,Vitovolt300,0,800,0
+inv_pv_bat,Inverter,STP-7000TL-20,0,800,0
+battery,LiionBattery,BAT1,0,800,0
+grd,StandardACGrid,GRD1,0,800,0
+elec_cns,StandardElectricalConsumption,CNS1,0,800,0
+bhkw,BHKW,VTB200,0,800,0
+pv_roof2,StandardPVGenerator,Vitovolt300,0,30,0
+gas_grd,StandardGasGrid,GAS1,0,800,0
+gas_boild,GasBoiler,BOI1,,,
+therm_cns,HeatConsumption,HeatCNS1,0,800,0
+water_tes,HotWaterStorage,TES1,0,800,0
+heat_grid,HeatGrid,HG1,0,800,0
+solar_therm_ge,SolarThermalCollector,Vitosol200_TypSV2G,0,800,0
diff --git a/input_files/models/prosumer_models/swimmingPool_CHP/connections.csv b/input_files/models/prosumer_models/swimmingPool_CHP/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..217b727aa515259640098009580f8419067dc1b0
--- /dev/null
+++ b/input_files/models/prosumer_models/swimmingPool_CHP/connections.csv
@@ -0,0 +1,21 @@
+sector,comp_from,comp_to
+electricity,pv_roof1,inv_pv_bat
+electricity,inv_pv_bat,battery
+electricity,inv_pv_bat,grd
+electricity,inv_pv_bat,elec_cns
+electricity,battery,inv_pv_bat
+electricity,grd,elec_cns
+electricity,bhkw,inv_pv_bat
+electricity,bhkw,grd
+electricity,bhkw,elec_cns
+electricity,pv_roof2,inv_pv_bat
+gas,gas_grd,bhkw
+gas,gas_grd,gas_boild
+heat,water_tes,therm_cns
+heat,heat_grid,therm_cns
+heat,bhkw,therm_cns
+heat,bhkw,water_tes
+heat,solar_therm_ge,therm_cns
+heat,solar_therm_ge,water_tes
+heat,gas_boild,therm_cns
+heat,gas_boild,water_tes
diff --git a/input_files/models/prosumer_models/swimmingPool_CHP/elec_matrix.csv b/input_files/models/prosumer_models/swimmingPool_CHP/elec_matrix.csv
deleted file mode 100644
index fe14ce1af60a1ca8e6932e9fc887f39f83d374ad..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/swimmingPool_CHP/elec_matrix.csv
+++ /dev/null
@@ -1,9 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof1,inv_pv_bat,battery,grd,elec_cns,bhkw,pv_roof2
-pv_roof1,StandardPVGenerator,Vitovolt300,0,800,0,0,1,0,0,0,0,0
-inv_pv_bat,Inverter,STP-7000TL-20,0,800,0.0,0,0,1,1,1,0,0
-battery,LiionBattery,BAT1,0,800,0,0,1,0,0,0,0,0
-grd,StandardACGrid,GRD1,0,800,0,0,0,0,0,1,0,0
-elec_cns,StandardElectricalConsumption,CNS1,0,800,0,0,0,0,0,0,0,0
-bhkw,BHKW,VTB200,0,800,0,0,1,0,1,1,0,0
-pv_roof2,StandardPVGenerator,Vitovolt300,0,30,0,0,1,0,0,0,0,0
-
diff --git a/input_files/models/prosumer_models/swimmingPool_CHP/gas_matrix.csv b/input_files/models/prosumer_models/swimmingPool_CHP/gas_matrix.csv
deleted file mode 100644
index eda9a94d54d94c4ceb96709d46eb8a6460ab784b..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/swimmingPool_CHP/gas_matrix.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,bhkw,gas_grd,gas_boild
-bhkw,BHKW,VTB200,,,,0,0,0
-gas_grd,StandardGasGrid,GAS1,0,800,0,1,0,1
-gas_boild,GasBoiler,BOI1,,,,0,0,0
diff --git a/input_files/models/prosumer_models/swimmingPool_CHP/therm_matrix.csv b/input_files/models/prosumer_models/swimmingPool_CHP/therm_matrix.csv
deleted file mode 100644
index 0ba297c669913ae736a8fc6b6a739ecaba67381a..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/swimmingPool_CHP/therm_matrix.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,therm_cns,water_tes,heat_grid,bhkw,solar_therm_ge,gas_boild
-therm_cns,HeatConsumption,HeatCNS1,0,800,0,0,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,0,800,0,1,0,0,0,0,0
-heat_grid,HeatGrid,HG1,0,800,0,1,0,0,0,0,0
-bhkw,BHKW,VTB200,,,,1,1,0,0,0,0
-solar_therm_ge,SolarThermalCollector,Vitosol200_TypSV2G,0,800,0,1,1,0,0,0,0
-gas_boild,GasBoiler,BOI1,0,800,0,1,1,0,0,0,0
diff --git a/input_files/models/prosumer_models/swimmingPool_HP/components.csv b/input_files/models/prosumer_models/swimmingPool_HP/components.csv
new file mode 100644
index 0000000000000000000000000000000000000000..1d70f9b7d2c125c95bde3b78a87c9c039526969e
--- /dev/null
+++ b/input_files/models/prosumer_models/swimmingPool_HP/components.csv
@@ -0,0 +1,14 @@
+comp_name,comp_type,model,min_size,max_size,current_size
+pv_roof1,StandardPVGenerator,Vitovolt300,0,800,0
+inv_pv_bat,Inverter,STP-7000TL-20,0,800,0
+battery,LiionBattery,BAT1,0,800,0
+grd,StandardACGrid,GRD1,0,800,0
+elec_cns,StandardElectricalConsumption,CNS1,0,800,0
+heat_pump,HeatPump,EHP1,0,800,0
+pv_roof2,StandardPVGenerator,Vitovolt300,0,800,0
+gas_boild,GasBoiler,BOI1,,,
+gas_grd,StandardGasGrid,GAS1,0,800,0
+therm_cns,HeatConsumption,HeatCNS1,0,800,0
+water_tes,HotWaterStorage,TES1,0,800,0
+solar_therm_ge,SolarThermalCollector,Vitosol200_TypSV2G,0,800,0
+heat_grid,HeatGrid,HG1,0,800,0
diff --git a/input_files/models/prosumer_models/swimmingPool_HP/connections.csv b/input_files/models/prosumer_models/swimmingPool_HP/connections.csv
new file mode 100644
index 0000000000000000000000000000000000000000..bac358763630c2943d0f83cc5223f22aea6b3a93
--- /dev/null
+++ b/input_files/models/prosumer_models/swimmingPool_HP/connections.csv
@@ -0,0 +1,21 @@
+sector,comp_from,comp_to
+electricity,pv_roof1,inv_pv_bat
+electricity,inv_pv_bat,battery
+electricity,inv_pv_bat,grd
+electricity,inv_pv_bat,elec_cns
+electricity,inv_pv_bat,heat_pump
+electricity,battery,inv_pv_bat
+electricity,grd,inv_pv_bat
+electricity,grd,elec_cns
+electricity,grd,heat_pump
+electricity,pv_roof2,inv_pv_bat
+gas,gas_grd,gas_boild
+heat,heat_pump,therm_cns
+heat,heat_pump,water_tes
+heat,water_tes,therm_cns
+heat,gas_boild,therm_cns
+heat,gas_boild,water_tes
+heat,solar_therm_ge,therm_cns
+heat,solar_therm_ge,water_tes
+heat,heat_grid,therm_cns
+heat,heat_grid,water_tes
diff --git a/input_files/models/prosumer_models/swimmingPool_HP/elec_matrix.csv b/input_files/models/prosumer_models/swimmingPool_HP/elec_matrix.csv
deleted file mode 100644
index 1d6cd4fa6c8f36086d463e7ed9a116c17e903c5d..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/swimmingPool_HP/elec_matrix.csv
+++ /dev/null
@@ -1,8 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,pv_roof1,inv_pv_bat,battery,grd,elec_cns,heat_pump,pv_roof2
-pv_roof1,StandardPVGenerator,Vitovolt300,0,800,0,0,1,0,0,0,0,0
-inv_pv_bat,Inverter,STP-7000TL-20,0,800,0,0,0,1,1,1,1,0
-battery,LiionBattery,BAT1,0,800,0,0,1,0,0,0,0,0
-grd,StandardACGrid,GRD1,0,800,0,0,1,0,0,1,1,0
-elec_cns,StandardElectricalConsumption,CNS1,0,800,0,0,0,0,0,0,0,0
-heat_pump,HeatPump,EHP1,0,800,0,0,0,0,0,0,0,0
-pv_roof2,StandardPVGenerator,Vitovolt300,0,800,0,0,1,0,0,0,0,0
diff --git a/input_files/models/prosumer_models/swimmingPool_HP/gas_matrix.csv b/input_files/models/prosumer_models/swimmingPool_HP/gas_matrix.csv
deleted file mode 100644
index bf5cf12badaf5ad6a61eec2dd895302e375424ae..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/swimmingPool_HP/gas_matrix.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,gas_boild,gas_grd
-gas_boild,GasBoiler,BOI1,,,,0,0
-gas_grd,StandardGasGrid,GAS1,0,800,0,1,0
diff --git a/input_files/models/prosumer_models/swimmingPool_HP/therm_matrix.csv b/input_files/models/prosumer_models/swimmingPool_HP/therm_matrix.csv
deleted file mode 100644
index aebab52b97a1af318fcf105edd1e95a1c6a59a6e..0000000000000000000000000000000000000000
--- a/input_files/models/prosumer_models/swimmingPool_HP/therm_matrix.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-comp_name,comp_type,model,min_size,max_size,current_size,heat_pump,therm_cns,water_tes,gas_boild,solar_therm_ge,heat_grid
-heat_pump,HeatPump,EHP1,,,,0,1,1,0,0,0
-therm_cns,HeatConsumption,HeatCNS1,0.0,800,0,0,0,0,0,0,0
-water_tes,HotWaterStorage,TES1,0,800,0,0,1,0,0,0,0
-gas_boild,GasBoiler,BOI1,0,800,0,0,1,1,0,0,0
-solar_therm_ge,SolarThermalCollector,Vitosol200_TypSV2G,0,800,0,0,1,1,0,0,0
-heat_grid,HeatGrid,HG1,0,800,0,0,1,1,0,0,0