-MachineDico = {'Bastia_Bastia_syn_Gr_HVDC_SACOI_50MW': {'Q': 4.0, 'EXNAME': 'Bastia_Bastia_90.0KV', 'NAME': 'HVDC_SACOI_50MW', 'QMAX': 48.0, 'NUMBER': 150, 'PMIN': -50.0, 'P': 50.0, 'QMIN': -48.0, 'ID': 'HVDC_SACOI_50MW', 'PMAX': 50.0}, 'Caldanicci_Caldanicci_genstat_Gr_Caldanicci_PV': {'Q': 0.0, 'EXNAME': 'Caldanicci_Caldanicci_90.0KV', 'NAME': 'Caldanicci_PV', 'QMAX': 0.0, 'NUMBER': 152, 'PMIN': 0.0, 'P': 3.0, 'QMIN': 0.0, 'ID': 'Caldanicci_PV', 'PMAX': 10.0}, 'Ocana_Ocana_syn_Gr_PONT_VANNA': {'Q': 4.988999843597412, 'EXNAME': 'Ocana_Ocana_90.0KV', 'NAME': 'PONT_VANNA', 'QMAX': 0.0, 'NUMBER': 164, 'PMIN': 0.0, 'P': 8.0, 'QMIN': 0.0, 'ID': 'PONT_VANNA', 'PMAX': 8.0}, 'IleRousse_IleRousse_genstat_Gr_IleRousse_PV': {'Q': 0.0, 'EXNAME': 'IleRousse_IleRousse_90.0KV', 'NAME': 'IleRousse_PV', 'QMAX': 0.0, 'NUMBER': 160, 'PMIN': 0.0, 'P': 1.5, 'QMIN': 0.0, 'ID': 'IleRousse_PV', 'PMAX': 5.0}, 'Cervione_Cervione_genstat_Gr_CERVIONE_BT_PV': {'Q': 0.0, 'EXNAME': 'Cervione_Cervione_90.0KV', 'NAME': 'CERVIONE_BT_PV', 'QMAX': 0.0, 'NUMBER': 155, 'PMIN': 0.0, 'P': 0.6000000238418579, 'QMIN': 0.0, 'ID': 'CERVIONE_BT_PV', 'PMAX': 2.0}, 'Vazzio_Vazzio_syn_Gr_Vazzio_TAC': {'Q': 3.0380001068115234, 'EXNAME': 'Vazzio_Vazzio_90.0KV', 'NAME': 'Vazzio_TAC', 'QMAX': 12.369999885559082, 'NUMBER': 476, 'PMIN': 0.0, 'P': 0.0, 'QMIN': -10.24000072479248, 'ID': 'Vazzio_TAC', 'PMAX': 20.0}, 'Sovenzia_Sovenzia_syn_Gr_SOVENZ_G': {'Q': 4.163000106811523, 'EXNAME': 'Sovenzia_Sovenzia_90.0KV', 'NAME': 'SOVENZ_G', 'QMAX': 0.0, 'NUMBER': 174, 'PMIN': 0.0, 'P': 15.0, 'QMIN': 0.0, 'ID': 'SOVENZ_G', 'PMAX': 15.0}, 'Lucciana_Lucciana_syn_Gr_LUCCIANA_HTB': {'Q': 0.0, 'EXNAME': 'Lucciana_Lucciana_90.0KV', 'NAME': 'LUCCIANA_HTB', 'QMAX': 0.0, 'NUMBER': 162, 'PMIN': 10.0, 'P': 0.0, 'QMIN': 0.0, 'ID': 'LUCCIANA_HTB', 'PMAX': 50.0}, 'Castirla_Castirla_syn_Gr_CASTI_G2': {'Q': 5.25, 'EXNAME': 'Castirla_Castirla_90.0KV', 'NAME': 'CASTI_G2', 'QMAX': 0.0, 'NUMBER': 154, 'PMIN': 0.0, 'P': 5.0, 'QMIN': 0.0, 'ID': 'CASTI_G2', 'PMAX': 14.5}, 'Calvi_Calvi_genstat_Gr_Calvi_EOL': {'Q': 0.0, 'EXNAME': 'Calvi_Calvi_90.0KV', 'NAME': 'Calvi_EOL', 'QMAX': 0.0, 'NUMBER': 153, 'PMIN': 0.0, 'P': 1.5, 'QMIN': 0.0, 'ID': 'Calvi_EOL', 'PMAX': 5.0}, 'Propriano_Propriano_genstat_Gr_Propriano_PV': {'Q': 0.0, 'EXNAME': 'Propriano_Propriano_90.0KV', 'NAME': 'Propriano_PV', 'QMAX': 0.0, 'NUMBER': 168, 'PMIN': 0.0, 'P': 1.5, 'QMIN': 0.0, 'ID': 'Propriano_PV', 'PMAX': 5.0}, 'Lucciana_Lucciana_syn_Gr_CASA2': {'Q': 3.0380001068115234, 'EXNAME': 'Lucciana_Lucciana_90.0KV', 'NAME': 'CASA2', 'QMAX': 12.369999885559082, 'NUMBER': 162, 'PMIN': 0.0, 'P': 17.100000381469727, 'QMIN': -10.24000072479248, 'ID': 'CASA2', 'PMAX': 17.100000381469727}, 'Ocana_Ocana_syn_Gr_OCA_G3': {'Q': 2.7890000343322754, 'EXNAME': 'Ocana_Ocana_90.0KV', 'NAME': 'OCA_G3', 'QMAX': 0.0, 'NUMBER': 164, 'PMIN': 0.0, 'P': 4.0, 'QMIN': 0.0, 'ID': 'OCA_G3', 'PMAX': 4.0}, 'Ocana_Ocana_syn_Gr_OCA_G2': {'Q': 2.7890000343322754, 'EXNAME': 'Ocana_Ocana_90.0KV', 'NAME': 'OCA_G2', 'QMAX': 0.0, 'NUMBER': 164, 'PMIN': 0.0, 'P': 5.25, 'QMIN': 0.0, 'ID': 'OCA_G2', 'PMAX': 5.25}, 'Ocana_Ocana_syn_Gr_OCA_G1': {'Q': 2.7909998893737793, 'EXNAME': 'Ocana_Ocana_90.0KV', 'NAME': 'OCA_G1', 'QMAX': 0.0, 'NUMBER': 164, 'PMIN': 0.0, 'P': 2.0, 'QMIN': 0.0, 'ID': 'OCA_G1', 'PMAX': 8.100000381469727}, 'Vazzio_Vazzio_syn_Gr_VAZ_G1': {'Q': 3.622999906539917, 'EXNAME': 'Vazzio_Vazzio_90.0KV', 'NAME': 'VAZ_G1', 'QMAX': 12.369999885559082, 'NUMBER': 476, 'PMIN': 5.0, 'P': 10.0, 'QMIN': -10.24000072479248, 'ID': 'VAZ_G1', 'PMAX': 17.100000381469727}, 'SainteLucie_SainteLucie_genstat_Gr_SaintLucie_PV': {'Q': 0.0, 'EXNAME': 'SainteLucie_SainteLucie_90.0KV', 'NAME': 'SaintLucie_PV', 'QMAX': 0.0, 'NUMBER': 170, 'PMIN': 0.0, 'P': 3.0, 'QMIN': 0.0, 'ID': 'SaintLucie_PV', 'PMAX': 10.0}, 'Lucciana_Lucciana_syn_Gr_LUCCIANA_HTB_2': {'Q': 0.0, 'EXNAME': 'Lucciana_Lucciana_90.0KV', 'NAME': 'LUCCIANA_HTB_2', 'QMAX': 0.0, 'NUMBER': 162, 'PMIN': 10.0, 'P': 0.0, 'QMIN': 0.0, 'ID': 'LUCCIANA_HTB_2', 'PMAX': 50.0}, 'Vazzio_Vazzio_syn_Gr_VAZ_G2': {'Q': 3.622999906539917, 'EXNAME': 'Vazzio_Vazzio_90.0KV', 'NAME': 'VAZ_G2', 'QMAX': 12.369999885559082, 'NUMBER': 476, 'PMIN': 5.0, 'P': 10.0, 'QMIN': -10.24000072479248, 'ID': 'VAZ_G2', 'PMAX': 17.100000381469727}, 'Vazzio_Vazzio_syn_Gr_VAZ_G5': {'Q': 3.622999906539917, 'EXNAME': 'Vazzio_Vazzio_90.0KV', 'NAME': 'VAZ_G5', 'QMAX': 12.369999885559082, 'NUMBER': 476, 'PMIN': 5.0, 'P': 10.0, 'QMIN': -10.24000072479248, 'ID': 'VAZ_G5', 'PMAX': 17.100000381469727}, 'Vazzio_Vazzio_syn_Gr_VAZ_G4': {'Q': 3.622999906539917, 'EXNAME': 'Vazzio_Vazzio_90.0KV', 'NAME': 'VAZ_G4', 'QMAX': 12.369999885559082, 'NUMBER': 476, 'PMIN': 5.0, 'P': 10.0, 'QMIN': -10.24000072479248, 'ID': 'VAZ_G4', 'PMAX': 17.100000381469727}, 'Vazzio_Vazzio_syn_Gr_VAZ_G6': {'Q': 3.622999906539917, 'EXNAME': 'Vazzio_Vazzio_90.0KV', 'NAME': 'VAZ_G6', 'QMAX': 12.369999885559082, 'NUMBER': 476, 'PMIN': 5.0, 'P': 10.0, 'QMIN': -10.24000072479248, 'ID': 'VAZ_G6', 'PMAX': 17.100000381469727}, 'Lucciana_Lucciana_syn_Gr_CASA7': {'Q': 3.0380001068115234, 'EXNAME': 'Lucciana_Lucciana_90.0KV', 'NAME': 'CASA7', 'QMAX': 12.369999885559082, 'NUMBER': 162, 'PMIN': 0.0, 'P': 17.100000381469727, 'QMIN': -10.24000072479248, 'ID': 'CASA7', 'PMAX': 17.100000381469727}, 'Lucciana_Lucciana_syn_Gr_CASA6': {'Q': 3.0380001068115234, 'EXNAME': 'Lucciana_Lucciana_90.0KV', 'NAME': 'CASA6', 'QMAX': 12.369999885559082, 'NUMBER': 162, 'PMIN': 0.0, 'P': 17.100000381469727, 'QMIN': -10.24000072479248, 'ID': 'CASA6', 'PMAX': 17.100000381469727}, 'Lucciana_Lucciana_syn_Gr_CASA5': {'Q': 3.0380001068115234, 'EXNAME': 'Lucciana_Lucciana_90.0KV', 'NAME': 'CASA5', 'QMAX': 12.369999885559082, 'NUMBER': 162, 'PMIN': 0.0, 'P': 17.100000381469727, 'QMIN': -10.24000072479248, 'ID': 'CASA5', 'PMAX': 17.100000381469727}, 'Lucciana_Lucciana_syn_Gr_CASA4': {'Q': 3.0380001068115234, 'EXNAME': 'Lucciana_Lucciana_90.0KV', 'NAME': 'CASA4', 'QMAX': 12.369999885559082, 'NUMBER': 162, 'PMIN': 0.0, 'P': 17.100000381469727, 'QMIN': -10.24000072479248, 'ID': 'CASA4', 'PMAX': 17.100000381469727}, 'Lucciana_Lucciana_syn_Gr_CASA3': {'Q': 3.0380001068115234, 'EXNAME': 'Lucciana_Lucciana_90.0KV', 'NAME': 'CASA3', 'QMAX': 12.369999885559082, 'NUMBER': 162, 'PMIN': 0.0, 'P': 17.100000381469727, 'QMIN': -10.24000072479248, 'ID': 'CASA3', 'PMAX': 17.100000381469727}, 'Castirla_Castirla_syn_Gr_CASTI_G1': {'Q': 5.25, 'EXNAME': 'Castirla_Castirla_90.0KV', 'NAME': 'CASTI_G1', 'QMAX': 0.0, 'NUMBER': 154, 'PMIN': 0.0, 'P': 5.0, 'QMIN': 0.0, 'ID': 'CASTI_G1', 'PMAX': 14.5}, 'Lucciana_Lucciana_syn_Gr_CASA1': {'Q': 3.0380001068115234, 'EXNAME': 'Lucciana_Lucciana_90.0KV', 'NAME': 'CASA1', 'QMAX': 12.369999885559082, 'NUMBER': 162, 'PMIN': 0.0, 'P': 17.100000381469727, 'QMIN': -10.24000072479248, 'ID': 'CASA1', 'PMAX': 17.100000381469727}, 'Tolla_Tolla_syn_Gr_TOLLA_G1': {'Q': 2.180000066757202, 'EXNAME': 'Tolla_Tolla_90.0KV', 'NAME': 'TOLLA_G1', 'QMAX': 7.0, 'NUMBER': 475, 'PMIN': 0.0, 'P': 4.5, 'QMIN': -7.0, 'ID': 'TOLLA_G1', 'PMAX': 4.5}, 'Taglio_Taglio_genstat_Gr_Taglio_PV': {'Q': 0.0, 'EXNAME': 'Taglio_Taglio_90.0KV', 'NAME': 'Taglio_PV', 'QMAX': 0.0, 'NUMBER': 473, 'PMIN': 0.0, 'P': 3.0, 'QMIN': 0.0, 'ID': 'Taglio_PV', 'PMAX': 10.0}, 'Sisco_Sisco_genstat_Gr_Sisco_1_EOL': {'Q': 0.0, 'EXNAME': 'Sisco_Sisco_90.0KV', 'NAME': 'Sisco_1_EOL', 'QMAX': 0.0, 'NUMBER': 173, 'PMIN': 0.0, 'P': 1.9500000476837158, 'QMIN': 0.0, 'ID': 'Sisco_1_EOL', 'PMAX': 6.5}, 'Propriano_Propriano_syn_Gr_RIZZANESE1': {'Q': 2.811000108718872, 'EXNAME': 'Propriano_Propriano_90.0KV', 'NAME': 'RIZZANESE1', 'QMAX': 0.0, 'NUMBER': 168, 'PMIN': 0.0, 'P': 10.0, 'QMIN': 0.0, 'ID': 'RIZZANESE1', 'PMAX': 27.5}, 'Propriano_Propriano_syn_Gr_RIZZANESE2': {'Q': 2.811000108718872, 'EXNAME': 'Propriano_Propriano_90.0KV', 'NAME': 'RIZZANESE2', 'QMAX': 0.0, 'NUMBER': 168, 'PMIN': 0.0, 'P': 10.0, 'QMIN': 0.0, 'ID': 'RIZZANESE2', 'PMAX': 27.5}, 'Terminal_syn_Gr_PROPRIA_BT': {'Q': 0.6240000128746033, 'EXNAME': 'Terminal_90.0KV', 'NAME': 'PROPRIA_BT', 'QMAX': 0.0, 'NUMBER': 474, 'PMIN': 0.0, 'P': 1.899999976158142, 'QMIN': 0.0, 'ID': 'PROPRIA_BT', 'PMAX': 1.899999976158142}, 'Sampolo_Sampolo_syn_Gr_SAMPO_G2': {'Q': 8.279000282287598, 'EXNAME': 'Sampolo_Sampolo_90.0KV', 'NAME': 'SAMPO_G2', 'QMAX': 0.0, 'NUMBER': 172, 'PMIN': 0.0, 'P': 10.0, 'QMIN': 0.0, 'ID': 'SAMPO_G2', 'PMAX': 21.5}, 'Bonifacio_Bonifacio_syn_Gr_HVAC_SARCO_100MW': {'Q': 4.0, 'EXNAME': 'Bonifacio_Bonifacio_90.0KV', 'NAME': 'HVAC_SARCO_100MW', 'QMAX': 48.0, 'NUMBER': 151, 'PMIN': -50.0, 'P': 50.0, 'QMIN': -48.0, 'ID': 'HVAC_SARCO_100MW', 'PMAX': 50.0}, 'Lucciana_Lucciana_syn_Gr_LUCCIANA_BT': {'Q': 0.5260000228881836, 'EXNAME': 'Lucciana_Lucciana_90.0KV', 'NAME': 'LUCCIANA_BT', 'QMAX': 0.0, 'NUMBER': 162, 'PMIN': 5.0, 'P': 12.0, 'QMIN': 0.0, 'ID': 'LUCCIANA_BT', 'PMAX': 12.0}, 'Sampolo_Sampolo_syn_Gr_SAMPO_G1': {'Q': 8.279000282287598, 'EXNAME': 'Sampolo_Sampolo_90.0KV', 'NAME': 'SAMPO_G1', 'QMAX': 0.0, 'NUMBER': 172, 'PMIN': 0.0, 'P': 10.0, 'QMIN': 0.0, 'ID': 'SAMPO_G1', 'PMAX': 21.5}, 'Vazzio_Vazzio_syn_Gr_VAZ_G3': {'Q': 3.622999906539917, 'EXNAME': 'Vazzio_Vazzio_90.0KV', 'NAME': 'VAZ_G3', 'QMAX': 12.369999885559082, 'NUMBER': 476, 'PMIN': 5.0, 'P': 10.0, 'QMIN': -10.24000072479248, 'ID': 'VAZ_G3', 'PMAX': 17.100000381469727}, 'Corte_Corte_genstat_Gr_Corte_PV': {'Q': 0.0, 'EXNAME': 'Corte_Corte_90.0KV', 'NAME': 'Corte_PV', 'QMAX': 0.0, 'NUMBER': 157, 'PMIN': 0.0, 'P': 1.5, 'QMIN': 0.0, 'ID': 'Corte_PV', 'PMAX': 10.0}, 'Oletta_Oletta_genstat_Gr_Oletta_PV': {'Q': 0.0, 'EXNAME': 'Oletta_Oletta_90.0KV', 'NAME': 'Oletta_PV', 'QMAX': 0.0, 'NUMBER': 165, 'PMIN': 0.0, 'P': 1.5, 'QMIN': 0.0, 'ID': 'Oletta_PV', 'PMAX': 5.0}, 'Morosaglia_Morosaglia_genstat_Gr_Morosoglia_PV': {'Q': 0.0, 'EXNAME': 'Morosaglia_Morosaglia_90.0KV', 'NAME': 'Morosoglia_PV', 'QMAX': 0.0, 'NUMBER': 163, 'PMIN': 0.0, 'P': 1.5, 'QMIN': 0.0, 'ID': 'Morosoglia_PV', 'PMAX': 5.0}, 'Bonifacio_Bonifacio_genstat_Gr_Bonifaccio_PV': {'Q': 0.0, 'EXNAME': 'Bonifacio_Bonifacio_90.0KV', 'NAME': 'Bonifaccio_PV', 'QMAX': 0.0, 'NUMBER': 151, 'PMIN': 0.0, 'P': 3.0, 'QMIN': 0.0, 'ID': 'Bonifaccio_PV', 'PMAX': 10.0}, 'Tolla_Tolla_syn_Gr_TOLLA_G2': {'Q': 2.180000066757202, 'EXNAME': 'Tolla_Tolla_90.0KV', 'NAME': 'TOLLA_G2', 'QMAX': 10.0, 'NUMBER': 475, 'PMIN': 0.0, 'P': 4.5, 'QMIN': -10.0, 'ID': 'TOLLA_G2', 'PMAX': 4.5}, 'Tolla_Tolla_syn_Gr_TOLLA_G3': {'Q': 3.7799999713897705, 'EXNAME': 'Tolla_Tolla_90.0KV', 'NAME': 'TOLLA_G3', 'QMAX': 0.0, 'NUMBER': 475, 'PMIN': 0.0, 'P': 7.0, 'QMIN': 0.0, 'ID': 'TOLLA_G3', 'PMAX': 7.0}, 'Vazzio_Vazzio_syn_Gr_VAZ_G11': {'Q': 0.0, 'EXNAME': 'Vazzio_Vazzio_90.0KV', 'NAME': 'VAZ_G11', 'QMAX': 12.369999885559082, 'NUMBER': 476, 'PMIN': 5.0, 'P': 10.0, 'QMIN': -10.24000072479248, 'ID': 'VAZ_G11', 'PMAX': 17.100000381469727}, 'Vazzio_Vazzio_syn_Gr_VAZ_G10': {'Q': 0.0, 'EXNAME': 'Vazzio_Vazzio_90.0KV', 'NAME': 'VAZ_G10', 'QMAX': 12.369999885559082, 'NUMBER': 476, 'PMIN': 5.0, 'P': 10.0, 'QMIN': -10.24000072479248, 'ID': 'VAZ_G10', 'PMAX': 17.100000381469727}, 'Vazzio_Vazzio_syn_Gr_VAZ_G12': {'Q': 0.0, 'EXNAME': 'Vazzio_Vazzio_90.0KV', 'NAME': 'VAZ_G12', 'QMAX': 12.369999885559082, 'NUMBER': 476, 'PMIN': 5.0, 'P': 10.0, 'QMIN': -10.24000072479248, 'ID': 'VAZ_G12', 'PMAX': 17.100000381469727}, 'Sisco_Sisco_genstat_Gr_Sisco_2_EOL': {'Q': 0.0, 'EXNAME': 'Sisco_Sisco_90.0KV', 'NAME': 'Sisco_2_EOL', 'QMAX': 0.0, 'NUMBER': 173, 'PMIN': 0.0, 'P': 1.9500000476837158, 'QMIN': 0.0, 'ID': 'Sisco_2_EOL', 'PMAX': 6.5}, 'Furiani_Furiani_genstat_Gr_Furiani_PV': {'Q': 0.0, 'EXNAME': 'Furiani_Furiani_90.0KV', 'NAME': 'Furiani_PV', 'QMAX': 0.0, 'NUMBER': 158, 'PMIN': 0.0, 'P': 1.5, 'QMIN': 0.0, 'ID': 'Furiani_PV', 'PMAX': 5.0}, 'Lucciana_Lucciana_genstat_Gr_Lucciana_PV': {'Q': 0.0, 'EXNAME': 'Lucciana_Lucciana_90.0KV', 'NAME': 'Lucciana_PV', 'QMAX': 0.0, 'NUMBER': 162, 'PMIN': 0.0, 'P': 0.6000000238418579, 'QMIN': 0.0, 'ID': 'Lucciana_PV', 'PMAX': 2.0}, 'Loretto_Loretto_genstat_Gr_Loretto_PV': {'Q': 0.0, 'EXNAME': 'Loretto_Loretto_90.0KV', 'NAME': 'Loretto_PV', 'QMAX': 0.0, 'NUMBER': 161, 'PMIN': 0.0, 'P': 1.5, 'QMIN': 0.0, 'ID': 'Loretto_PV', 'PMAX': 5.0}, 'Corsica_Corsica_syn_Gr_CORSICA_G': {'Q': 3.0360000133514404, 'EXNAME': 'Corsica_Corsica_90.0KV', 'NAME': 'CORSICA_G', 'QMAX': 0.0, 'NUMBER': 156, 'PMIN': 0.0, 'P': 8.0, 'QMIN': 0.0, 'ID': 'CORSICA_G', 'PMAX': 13.0}, 'Sisco_Sisco_genstat_Gr_Sisco_PV': {'Q': 0.0, 'EXNAME': 'Sisco_Sisco_90.0KV', 'NAME': 'Sisco_PV', 'QMAX': 0.0, 'NUMBER': 173, 'PMIN': 0.0, 'P': 3.0, 'QMIN': 0.0, 'ID': 'Sisco_PV', 'PMAX': 10.0}, 'Calvi_Calvi_genstat_Gr_Calvi_PV': {'Q': 0.0, 'EXNAME': 'Calvi_Calvi_90.0KV', 'NAME': 'Calvi_PV', 'QMAX': 0.0, 'NUMBER': 153, 'PMIN': 0.0, 'P': 1.5, 'QMIN': 0.0, 'ID': 'Calvi_PV', 'PMAX': 5.0}, 'Ghisonaccia_Ghisonaccia_genstat_Gr_Gisonaccia_PV': {'Q': 0.0, 'EXNAME': 'Ghisonaccia_Ghisonaccia_90.0KV', 'NAME': 'Gisonaccia_PV', 'QMAX': 0.0, 'NUMBER': 159, 'PMIN': 0.0, 'P': 3.0, 'QMIN': 0.0, 'ID': 'Gisonaccia_PV', 'PMAX': 10.0}}
-LoadDico = {'Aspretto_Aspretto_Lo1': {'EXNAME': 'Aspretto_Aspretto_90.0KV', 'NAME': 'Load 1', 'NUMBER': 149, 'Q': 11.850000381469727, 'P': 47.400001525878906, 'ID': 1}, 'Pietrosella_Pietrosella_Lo1': {'EXNAME': 'Pietrosella_Pietrosella_90.0KV', 'NAME': 'Load 15', 'NUMBER': 166, 'Q': 2.799999952316284, 'P': 11.199999809265137, 'ID': 1}, 'PorteVecchio_PorteVecchio_Lo1': {'EXNAME': 'PorteVecchio_PorteVecchio_90.0KV', 'NAME': 'Load 16', 'NUMBER': 167, 'Q': 10.0, 'P': 40.0, 'ID': 1}, 'Sagone_Sagone_Lo1': {'EXNAME': 'Sagone_Sagone_90.0KV', 'NAME': 'Load 18', 'NUMBER': 169, 'Q': 4.400000095367432, 'P': 17.0, 'ID': 1}, 'Lucciana_Lucciana_Lo2': {'EXNAME': 'Lucciana_Lucciana_90.0KV', 'NAME': 'Load 9', 'NUMBER': 162, 'Q': 7.28000020980835, 'P': 29.100000381469727, 'ID': 2}, 'Bonifacio_Bonifacio_Lo1': {'EXNAME': 'Bonifacio_Bonifacio_90.0KV', 'NAME': 'Load 3', 'NUMBER': 151, 'Q': 4.0, 'P': 16.0, 'ID': 1}, 'IleRousse_IleRousse_Lo1': {'EXNAME': 'IleRousse_IleRousse_90.0KV', 'NAME': 'Load 7', 'NUMBER': 160, 'Q': 6.5, 'P': 26.0, 'ID': 1}, 'Calvi_Calvi_Lo1': {'EXNAME': 'Calvi_Calvi_90.0KV', 'NAME': 'Load 11', 'NUMBER': 153, 'Q': 5.0, 'P': 20.0, 'ID': 1}, 'Propriano_Propriano_Lo1': {'EXNAME': 'Propriano_Propriano_90.0KV', 'NAME': 'Load 17', 'NUMBER': 168, 'Q': 4.849999904632568, 'P': 19.399999618530273, 'ID': 1}, 'Ghisonaccia_Ghisonaccia_Lo1': {'EXNAME': 'Ghisonaccia_Ghisonaccia_90.0KV', 'NAME': 'Load 6', 'NUMBER': 159, 'Q': 7.900000095367432, 'P': 31.799999237060547, 'ID': 1}, 'Loretto_Loretto_Lo1': {'EXNAME': 'Loretto_Loretto_90.0KV', 'NAME': 'Load 8', 'NUMBER': 161, 'Q': 10.0, 'P': 41.0, 'ID': 1}, 'Oletta_Oletta_Lo1': {'EXNAME': 'Oletta_Oletta_90.0KV', 'NAME': 'Load 14', 'NUMBER': 165, 'Q': 2.200000047683716, 'P': 8.899999618530273, 'ID': 1}, 'Morosaglia_Morosaglia_Lo1': {'EXNAME': 'Morosaglia_Morosaglia_90.0KV', 'NAME': 'Load 12', 'NUMBER': 163, 'Q': 1.600000023841858, 'P': 6.400000095367432, 'ID': 1}, 'SainteMarieSicche_SainteMarieSicche_Lo1': {'EXNAME': 'SainteMarieSicche_SainteMarieSicche_90.0KV', 'NAME': 'Load 19', 'NUMBER': 171, 'Q': 1.649999976158142, 'P': 6.599999904632568, 'ID': 1}, 'Caldanicci_Caldanicci_Lo1': {'EXNAME': 'Caldanicci_Caldanicci_90.0KV', 'NAME': 'Load 4', 'NUMBER': 152, 'Q': 9.25, 'P': 37.0, 'ID': 1}, 'Lucciana_Lucciana_Lo1': {'EXNAME': 'Lucciana_Lucciana_90.0KV', 'NAME': 'Load 10', 'NUMBER': 162, 'Q': 0.0, 'P': 0.0, 'ID': 1}, 'Ocana_Ocana_Lo1': {'EXNAME': 'Ocana_Ocana_90.0KV', 'NAME': 'Load 13', 'NUMBER': 164, 'Q': 2.6500000953674316, 'P': 10.600000381469727, 'ID': 1}, 'Sisco_Sisco_Lo1': {'EXNAME': 'Sisco_Sisco_90.0KV', 'NAME': 'Load 20', 'NUMBER': 173, 'Q': 2.5, 'P': 10.0, 'ID': 1}, 'Corte_Corte_Lo1': {'EXNAME': 'Corte_Corte_90.0KV', 'NAME': 'Load 5', 'NUMBER': 157, 'Q': 4.949999809265137, 'P': 19.799999237060547, 'ID': 1}, 'Bastia_Bastia_Lo1': {'EXNAME': 'Bastia_Bastia_90.0KV', 'NAME': 'Load 2', 'NUMBER': 150, 'Q': 11.800000190734863, 'P': 47.20000076293945, 'ID': 1}}
-LineDico = {'Taglio_Taglio_Cervione_Cervione_CERVIONE_TAGLIO_Li': {'TONAME': 'Cervione_Cervione', 'FROMNUMBER': 473, 'FROMEXNAME': 'Taglio_Taglio_90.0', 'FROMNAME': 'Taglio_Taglio', 'TOEXNAME': 'Cervione_Cervione_90.0', 'TONUMBER': 155, 'ID': 'CERVIONE_TAGLIO'}, 'Lucciana_Lucciana_Taglio_Taglio_CASAMOZZA_TAGLIO_Li': {'TONAME': 'Taglio_Taglio', 'FROMNUMBER': 162, 'FROMEXNAME': 'Lucciana_Lucciana_90.0', 'FROMNAME': 'Lucciana_Lucciana', 'TOEXNAME': 'Taglio_Taglio_90.0', 'TONUMBER': 473, 'ID': 'CASAMOZZA_TAGLIO'}, 'Calvi_Calvi_IleRousse_IleRousse_CALVI_ILE_ROUSSE_Li': {'TONAME': 'IleRousse_IleRousse', 'FROMNUMBER': 153, 'FROMEXNAME': 'Calvi_Calvi_90.0', 'FROMNAME': 'Calvi_Calvi', 'TOEXNAME': 'IleRousse_IleRousse_90.0', 'TONUMBER': 160, 'ID': 'CALVI_ILE_ROUSSE'}, 'Sampolo_Sampolo_Corte_Corte_CORTE_SAMPOLO_Li': {'TONAME': 'Corte_Corte', 'FROMNUMBER': 172, 'FROMEXNAME': 'Sampolo_Sampolo_90.0', 'FROMNAME': 'Sampolo_Sampolo', 'TOEXNAME': 'Corte_Corte_90.0', 'TONUMBER': 157, 'ID': 'CORTE_SAMPOLO'}, 'Loretto_Loretto_Aspretto_Aspretto_ASPRETTO_LORETTO_Li': {'TONAME': 'Aspretto_Aspretto', 'FROMNUMBER': 161, 'FROMEXNAME': 'Loretto_Loretto_90.0', 'FROMNAME': 'Loretto_Loretto', 'TOEXNAME': 'Aspretto_Aspretto_90.0', 'TONUMBER': 149, 'ID': 'ASPRETTO_LORETTO'}, 'Caldanicci_Caldanicci_Vazzio_Vazzio_CALDANICCIA_VAZZIO_Li': {'TONAME': 'Vazzio_Vazzio', 'FROMNUMBER': 152, 'FROMEXNAME': 'Caldanicci_Caldanicci_90.0', 'FROMNAME': 'Caldanicci_Caldanicci', 'TOEXNAME': 'Vazzio_Vazzio_90.0', 'TONUMBER': 476, 'ID': 'CALDANICCIA_VAZZIO'}, 'PorteVecchio_PorteVecchio_Bonifacio_Bonifacio_BONIFACCIO_PO_VO1_Li': {'TONAME': 'Bonifacio_Bonifacio', 'FROMNUMBER': 167, 'FROMEXNAME': 'PorteVecchio_PorteVecchio_90.0', 'FROMNAME': 'PorteVecchio_PorteVecchio', 'TOEXNAME': 'Bonifacio_Bonifacio_90.0', 'TONUMBER': 151, 'ID': 'BONIFACCIO_PO_VO1'}, 'Ocana_Ocana_SainteMarieSicche_SainteMarieSicche_OCANA_ZSSS6_Li': {'TONAME': 'SainteMarieSicche_SainteMarieSicche', 'FROMNUMBER': 164, 'FROMEXNAME': 'Ocana_Ocana_90.0', 'FROMNAME': 'Ocana_Ocana', 'TOEXNAME': 'SainteMarieSicche_SainteMarieSicche_90.0', 'TONUMBER': 171, 'ID': 'OCANA_ZSSS6'}, 'Tolla_Tolla_Ocana_Ocana_OCANA_TOLLA2_Li': {'TONAME': 'Ocana_Ocana', 'FROMNUMBER': 475, 'FROMEXNAME': 'Tolla_Tolla_90.0', 'FROMNAME': 'Tolla_Tolla', 'TOEXNAME': 'Ocana_Ocana_90.0', 'TONUMBER': 164, 'ID': 'OCANA_TOLLA2'}, 'Corte_Corte_Morosaglia_Morosaglia_CORTE_MOROSAGLIA_Li': {'TONAME': 'Morosaglia_Morosaglia', 'FROMNUMBER': 157, 'FROMEXNAME': 'Corte_Corte_90.0', 'FROMNAME': 'Corte_Corte', 'TOEXNAME': 'Morosaglia_Morosaglia_90.0', 'TONUMBER': 163, 'ID': 'CORTE_MOROSAGLIA'}, 'IleRousse_IleRousse_Castirla_Castirla_CASTIRLA_ILE_ROUSSE_Li': {'TONAME': 'Castirla_Castirla', 'FROMNUMBER': 160, 'FROMEXNAME': 'IleRousse_IleRousse_90.0', 'FROMNAME': 'IleRousse_IleRousse', 'TOEXNAME': 'Castirla_Castirla_90.0', 'TONUMBER': 154, 'ID': 'CASTIRLA_ILE_ROUSSE'}, 'Lucciana_Lucciana_Furiani_Furiani_FURIANI_LUCCIANA1_Li': {'TONAME': 'Furiani_Furiani', 'FROMNUMBER': 162, 'FROMEXNAME': 'Lucciana_Lucciana_90.0', 'FROMNAME': 'Lucciana_Lucciana', 'TOEXNAME': 'Furiani_Furiani_90.0', 'TONUMBER': 158, 'ID': 'FURIANI_LUCCIANA1'}, 'Bonifacio_Bonifacio_PorteVecchio_PorteVecchio_BONIFACCIO_PO_VO2_Li': {'TONAME': 'PorteVecchio_PorteVecchio', 'FROMNUMBER': 151, 'FROMEXNAME': 'Bonifacio_Bonifacio_90.0', 'FROMNAME': 'Bonifacio_Bonifacio', 'TOEXNAME': 'PorteVecchio_PorteVecchio_90.0', 'TONUMBER': 167, 'ID': 'BONIFACCIO_PO_VO2'}, 'Ocana_Ocana_Caldanicci_Caldanicci_CALDANICCIA_OCANA_Li': {'TONAME': 'Caldanicci_Caldanicci', 'FROMNUMBER': 164, 'FROMEXNAME': 'Ocana_Ocana_90.0', 'FROMNAME': 'Ocana_Ocana', 'TOEXNAME': 'Caldanicci_Caldanicci_90.0', 'TONUMBER': 152, 'ID': 'CALDANICCIA_OCANA'}, 'Castirla_Castirla_Corte_Corte_CASTIRLA_CORTE_Li': {'TONAME': 'Corte_Corte', 'FROMNUMBER': 154, 'FROMEXNAME': 'Castirla_Castirla_90.0', 'FROMNAME': 'Castirla_Castirla', 'TOEXNAME': 'Corte_Corte_90.0', 'TONUMBER': 157, 'ID': 'CASTIRLA_CORTE'}, 'Vazzio_Vazzio_Loretto_Loretto_LORETO_VAZZIO_Li': {'TONAME': 'Loretto_Loretto', 'FROMNUMBER': 476, 'FROMEXNAME': 'Vazzio_Vazzio_90.0', 'FROMNAME': 'Vazzio_Vazzio', 'TOEXNAME': 'Loretto_Loretto_90.0', 'TONUMBER': 161, 'ID': 'LORETO_VAZZIO'}, 'Bastia_Bastia_Furiani_Furiani_BASTIA_FURIANI1_Li': {'TONAME': 'Furiani_Furiani', 'FROMNUMBER': 150, 'FROMEXNAME': 'Bastia_Bastia_90.0', 'FROMNAME': 'Bastia_Bastia', 'TOEXNAME': 'Furiani_Furiani_90.0', 'TONUMBER': 158, 'ID': 'BASTIA_FURIANI1'}, 'Sagone_Sagone_Sovenzia_Sovenzia_SAGONE_SOVENZIA_Li': {'TONAME': 'Sovenzia_Sovenzia', 'FROMNUMBER': 169, 'FROMEXNAME': 'Sagone_Sagone_90.0', 'FROMNAME': 'Sagone_Sagone', 'TOEXNAME': 'Sovenzia_Sovenzia_90.0', 'TONUMBER': 174, 'ID': 'SAGONE_SOVENZIA'}, 'Ghisonaccia_Ghisonaccia_SainteLucie_SainteLucie_GHISONACCIA_STE_LUCIE_Li': {'TONAME': 'SainteLucie_SainteLucie', 'FROMNUMBER': 159, 'FROMEXNAME': 'Ghisonaccia_Ghisonaccia_90.0', 'FROMNAME': 'Ghisonaccia_Ghisonaccia', 'TOEXNAME': 'SainteLucie_SainteLucie_90.0', 'TONUMBER': 170, 'ID': 'GHISONACCIA_STE_LUCIE'}, 'Furiani_Furiani_Oletta_Oletta_FURIANI_ZI_OLETTA_Li': {'TONAME': 'Oletta_Oletta', 'FROMNUMBER': 158, 'FROMEXNAME': 'Furiani_Furiani_90.0', 'FROMNAME': 'Furiani_Furiani', 'TOEXNAME': 'Oletta_Oletta_90.0', 'TONUMBER': 165, 'ID': 'FURIANI_ZI_OLETTA'}, 'Vazzio_Vazzio_Ocana_Ocana_OCANA_VAZZIO_Li': {'TONAME': 'Ocana_Ocana', 'FROMNUMBER': 476, 'FROMEXNAME': 'Vazzio_Vazzio_90.0', 'FROMNAME': 'Vazzio_Vazzio', 'TOEXNAME': 'Ocana_Ocana_90.0', 'TONUMBER': 164, 'ID': 'OCANA_VAZZIO'}, 'Ocana_Ocana_Corte_Corte_CORTE_OCANA_Li': {'TONAME': 'Corte_Corte', 'FROMNUMBER': 164, 'FROMEXNAME': 'Ocana_Ocana_90.0', 'FROMNAME': 'Ocana_Ocana', 'TOEXNAME': 'Corte_Corte_90.0', 'TONUMBER': 157, 'ID': 'CORTE_OCANA'}, 'IleRousse_IleRousse_Oletta_Oletta_ILE_ROUSSE_ZI_OLETTA_Li': {'TONAME': 'Oletta_Oletta', 'FROMNUMBER': 160, 'FROMEXNAME': 'IleRousse_IleRousse_90.0', 'FROMNAME': 'IleRousse_IleRousse', 'TOEXNAME': 'Oletta_Oletta_90.0', 'TONUMBER': 165, 'ID': 'ILE_ROUSSE_ZI_OLETTA'}, 'Corsica_Corsica_Sovenzia_Sovenzia_CORSCIA_SOVENZIA_Li': {'TONAME': 'Sovenzia_Sovenzia', 'FROMNUMBER': 156, 'FROMEXNAME': 'Corsica_Corsica_90.0', 'FROMNAME': 'Corsica_Corsica', 'TOEXNAME': 'Sovenzia_Sovenzia_90.0', 'TONUMBER': 174, 'ID': 'CORSCIA_SOVENZIA'}, 'Bastia_Bastia_Furiani_Furiani_BASTIA_FURIANI2_Li': {'TONAME': 'Furiani_Furiani', 'FROMNUMBER': 150, 'FROMEXNAME': 'Bastia_Bastia_90.0', 'FROMNAME': 'Bastia_Bastia', 'TOEXNAME': 'Furiani_Furiani_90.0', 'TONUMBER': 158, 'ID': 'BASTIA_FURIANI2'}, 'Furiani_Furiani_Sisco_Sisco_FURIANI_SISCO_Li': {'TONAME': 'Sisco_Sisco', 'FROMNUMBER': 158, 'FROMEXNAME': 'Furiani_Furiani_90.0', 'FROMNAME': 'Furiani_Furiani', 'TOEXNAME': 'Sisco_Sisco_90.0', 'TONUMBER': 173, 'ID': 'FURIANI_SISCO'}, 'Ghisonaccia_Ghisonaccia_Sampolo_Sampolo_GHISONACCIA_SAMPOLO_Li': {'TONAME': 'Sampolo_Sampolo', 'FROMNUMBER': 159, 'FROMEXNAME': 'Ghisonaccia_Ghisonaccia_90.0', 'FROMNAME': 'Ghisonaccia_Ghisonaccia', 'TOEXNAME': 'Sampolo_Sampolo_90.0', 'TONUMBER': 172, 'ID': 'GHISONACCIA_SAMPOLO'}, 'Lucciana_Lucciana_Furiani_Furiani_FURIANI_LUCCIANA2_Li': {'TONAME': 'Furiani_Furiani', 'FROMNUMBER': 162, 'FROMEXNAME': 'Lucciana_Lucciana_90.0', 'FROMNAME': 'Lucciana_Lucciana', 'TOEXNAME': 'Furiani_Furiani_90.0', 'TONUMBER': 158, 'ID': 'FURIANI_LUCCIANA2'}, 'Cervione_Cervione_Ghisonaccia_Ghisonaccia_CERVIONE_GHISONACCIA_Li': {'TONAME': 'Ghisonaccia_Ghisonaccia', 'FROMNUMBER': 155, 'FROMEXNAME': 'Cervione_Cervione_90.0', 'FROMNAME': 'Cervione_Cervione', 'TOEXNAME': 'Ghisonaccia_Ghisonaccia_90.0', 'TONUMBER': 159, 'ID': 'CERVIONE_GHISONACCIA'}, 'Propriano_Propriano_SainteMarieSicche_SainteMarieSicche_PROPRIANO_ZSSS6_Li': {'TONAME': 'SainteMarieSicche_SainteMarieSicche', 'FROMNUMBER': 168, 'FROMEXNAME': 'Propriano_Propriano_90.0', 'FROMNAME': 'Propriano_Propriano', 'TOEXNAME': 'SainteMarieSicche_SainteMarieSicche_90.0', 'TONUMBER': 171, 'ID': 'PROPRIANO_ZSSS6'}, 'Pietrosella_Pietrosella_Ocana_Ocana_OCANA_PIETROSELLA_Li': {'TONAME': 'Ocana_Ocana', 'FROMNUMBER': 166, 'FROMEXNAME': 'Pietrosella_Pietrosella_90.0', 'FROMNAME': 'Pietrosella_Pietrosella', 'TOEXNAME': 'Ocana_Ocana_90.0', 'TONUMBER': 164, 'ID': 'OCANA_PIETROSELLA'}, 'PorteVecchio_PorteVecchio_Propriano_Propriano_PRORIANO_PO_VO_Li': {'TONAME': 'Propriano_Propriano', 'FROMNUMBER': 167, 'FROMEXNAME': 'PorteVecchio_PorteVecchio_90.0', 'FROMNAME': 'PorteVecchio_PorteVecchio', 'TOEXNAME': 'Propriano_Propriano_90.0', 'TONUMBER': 168, 'ID': 'PRORIANO_PO_VO'}, 'SainteLucie_SainteLucie_PorteVecchio_PorteVecchio_PO_VO_STE_LUCIE_Li': {'TONAME': 'PorteVecchio_PorteVecchio', 'FROMNUMBER': 170, 'FROMEXNAME': 'SainteLucie_SainteLucie_90.0', 'FROMNAME': 'SainteLucie_SainteLucie', 'TOEXNAME': 'PorteVecchio_PorteVecchio_90.0', 'TONUMBER': 167, 'ID': 'PO_VO_STE_LUCIE'}, 'Aspretto_Aspretto_Vazzio_Vazzio_ASPRETTO_VAZZIO_Li': {'TONAME': 'Vazzio_Vazzio', 'FROMNUMBER': 149, 'FROMEXNAME': 'Aspretto_Aspretto_90.0', 'FROMNAME': 'Aspretto_Aspretto', 'TOEXNAME': 'Vazzio_Vazzio_90.0', 'TONUMBER': 476, 'ID': 'ASPRETTO_VAZZIO'}, 'Propriano_Propriano_Pietrosella_Pietrosella_PIETROSELLA_PROPRIANO_Li': {'TONAME': 'Pietrosella_Pietrosella', 'FROMNUMBER': 168, 'FROMEXNAME': 'Propriano_Propriano_90.0', 'FROMNAME': 'Propriano_Propriano', 'TOEXNAME': 'Pietrosella_Pietrosella_90.0', 'TONUMBER': 166, 'ID': 'PIETROSELLA_PROPRIANO'}, 'Lucciana_Lucciana_Morosaglia_Morosaglia_CASAMOZZA_MOROSAGLIA_Li': {'TONAME': 'Morosaglia_Morosaglia', 'FROMNUMBER': 162, 'FROMEXNAME': 'Lucciana_Lucciana_90.0', 'FROMNAME': 'Lucciana_Lucciana', 'TOEXNAME': 'Morosaglia_Morosaglia_90.0', 'TONUMBER': 163, 'ID': 'CASAMOZZA_MOROSAGLIA'}, 'Tolla_Tolla_Ocana_Ocana_OCANA_TOLLA1_Li': {'TONAME': 'Ocana_Ocana', 'FROMNUMBER': 475, 'FROMEXNAME': 'Tolla_Tolla_90.0', 'FROMNAME': 'Tolla_Tolla', 'TOEXNAME': 'Ocana_Ocana_90.0', 'TONUMBER': 164, 'ID': 'OCANA_TOLLA1'}, 'Sagone_Sagone_Loretto_Loretto_LORETO_SAGONE_Li': {'TONAME': 'Loretto_Loretto', 'FROMNUMBER': 169, 'FROMEXNAME': 'Sagone_Sagone_90.0', 'FROMNAME': 'Sagone_Sagone', 'TOEXNAME': 'Loretto_Loretto_90.0', 'TONUMBER': 161, 'ID': 'LORETO_SAGONE'}, 'Castirla_Castirla_Corsica_Corsica_CASTIRLA_CORSICA_Li': {'TONAME': 'Corsica_Corsica', 'FROMNUMBER': 154, 'FROMEXNAME': 'Castirla_Castirla_90.0', 'FROMNAME': 'Castirla_Castirla', 'TOEXNAME': 'Corsica_Corsica_90.0', 'TONUMBER': 156, 'ID': 'CASTIRLA_CORSICA'}}
-TransfoDico = {'Terminal_Propriano_Propriano_2_Winding_Transformer_Tr': {'TONAME': 'Propriano_Propriano', 'FROMNUMBER': 474, '#WIND': 2, 'FROMEXNAME': 'Terminal_110.0', 'FROMNAME': 'Terminal', 'TOEXNAME': 'Propriano_Propriano90.0', 'TONUMBER': 168, 'ID': '2-Winding Transformer'}}
+MachineDico = {'WIND30__Gr1': {'PMIN': 0.0, 'EXNAME': 'WIND30 30.000', 'NAME': 'WIND30', 'NUMBER': 18, 'QMAX': 0.0, 'Q': 0.0, 'P': 20.0, 'QMIN': 0.0, 'ID': '1 ', 'PMAX': 20.0}, 'NDIESELG1__Gr1': {'PMIN': 0.0, 'EXNAME': 'NDIESELG1 11.000', 'NAME': 'NDIESELG1', 'NUMBER': 6, 'QMAX': 10.235971450805664, 'Q': 0.14257816970348358, 'P': 10.647665023803711, 'QMIN': -7.048243522644043, 'ID': '1 ', 'PMAX': 17.100000381469727}, 'HYDRO30__Gr1': {'PMIN': 0.0, 'EXNAME': 'HYDRO30 30.000', 'NAME': 'HYDRO30', 'NUMBER': 16, 'QMAX': 24.0, 'Q': 0.0001832990237744525, 'P': 40.0, 'QMIN': 0.0, 'ID': '1 ', 'PMAX': 40.0}, 'SOLAR30__Gr1': {'PMIN': 0.0, 'EXNAME': 'SOLAR30 30.000', 'NAME': 'SOLAR30', 'NUMBER': 19, 'QMAX': 0.0, 'Q': 0.0, 'P': 15.000000953674316, 'QMIN': 0.0, 'ID': '1 ', 'PMAX': 15.000000953674316}, 'NDIESELG3__Gr1': {'PMIN': 0.0, 'EXNAME': 'NDIESELG3 11.000', 'NAME': 'NDIESELG3', 'NUMBER': 8, 'QMAX': 10.235971450805664, 'Q': 0.14257816970348358, 'P': 10.647665023803711, 'QMIN': -7.048243522644043, 'ID': '1 ', 'PMAX': 17.100000381469727}, 'NDIESELG2__Gr1': {'PMIN': 0.0, 'EXNAME': 'NDIESELG2 11.000', 'NAME': 'NDIESELG2', 'NUMBER': 7, 'QMAX': 10.235971450805664, 'Q': 0.14257816970348358, 'P': 10.647665023803711, 'QMIN': -7.048243522644043, 'ID': '1 ', 'PMAX': 17.100000381469727}, 'NDIESELG4__Gr1': {'PMIN': 0.0, 'EXNAME': 'NDIESELG4 11.000', 'NAME': 'NDIESELG4', 'NUMBER': 9, 'QMAX': 10.235971450805664, 'Q': 0.14257816970348358, 'P': 10.647665023803711, 'QMIN': -7.048243522644043, 'ID': '1 ', 'PMAX': 17.100000381469727}, 'ODIESELG2__Gr1': {'PMIN': 0.0, 'EXNAME': 'ODIESELG2 11.000', 'NAME': 'ODIESELG2', 'NUMBER': 2, 'QMAX': 8.220000267028809, 'Q': 3.820113182067871, 'P': 4.771888484356168e-07, 'QMIN': -6.849999904632568, 'ID': '1 ', 'PMAX': 13.699999809265137}, 'ODIESELG4__Gr1': {'PMIN': 0.0, 'EXNAME': 'ODIESELG4 11.000', 'NAME': 'ODIESELG4', 'NUMBER': 4, 'QMAX': 8.220000267028809, 'Q': 3.820113182067871, 'P': 4.771888484356168e-07, 'QMIN': -6.849999904632568, 'ID': '1 ', 'PMAX': 13.699999809265137}, 'ODIESELG3__Gr1': {'PMIN': 0.0, 'EXNAME': 'ODIESELG3 11.000', 'NAME': 'ODIESELG3', 'NUMBER': 3, 'QMAX': 8.220000267028809, 'Q': 3.820113182067871, 'P': 4.771888484356168e-07, 'QMIN': -6.849999904632568, 'ID': '1 ', 'PMAX': 13.699999809265137}, 'ODIESELG1__Gr1': {'PMIN': 0.0, 'EXNAME': 'ODIESELG1 11.000', 'NAME': 'ODIESELG1', 'NUMBER': 1, 'QMAX': 8.220000267028809, 'Q': 3.8200631141662598, 'P': 4.771888484356168e-07, 'QMIN': -6.849999904632568, 'ID': '1 ', 'PMAX': 13.699999809265137}}
+LoadDico = {'ODIESEL__Lo1': {'EXNAME': 'ODIESEL 30.000', 'NAME': 'ODIESEL', 'NUMBER': 5, 'Q': 14.5, 'P': 30.000001907348633, 'ID': '1 '}, 'CITYB30__Lo1': {'EXNAME': 'CITYB30 30.000', 'NAME': 'CITYB30', 'NUMBER': 12, 'Q': 24.5, 'P': 50.0, 'ID': '1 '}, 'CITYD30__Lo1': {'EXNAME': 'CITYD30 30.000', 'NAME': 'CITYD30', 'NUMBER': 15, 'Q': 7.25, 'P': 15.000000953674316, 'ID': '1 '}, 'CITYC30__Lo1': {'EXNAME': 'CITYC30 30.000', 'NAME': 'CITYC30', 'NUMBER': 14, 'Q': 9.75, 'P': 20.0, 'ID': '1 '}}
+LineDico = {'NDIESEL__HYDRO90__Li1': {'TONAME': 'HYDRO90', 'FROMNUMBER': 10, 'FROMEXNAME': 'NDIESEL 90.000', 'FROMNAME': 'NDIESEL', 'TOEXNAME': 'HYDRO90 90.000', 'TONUMBER': 17, 'ID': '1 '}, 'CITYC90__SOLAR90__Li1': {'TONAME': 'SOLAR90', 'FROMNUMBER': 13, 'FROMEXNAME': 'CITYC90 90.000', 'FROMNAME': 'CITYC90', 'TOEXNAME': 'SOLAR90 90.000', 'TONUMBER': 20, 'ID': '1 '}, 'NDIESEL__CITYB90__Li1': {'TONAME': 'CITYB90', 'FROMNUMBER': 10, 'FROMEXNAME': 'NDIESEL 90.000', 'FROMNAME': 'NDIESEL', 'TOEXNAME': 'CITYB90 90.000', 'TONUMBER': 11, 'ID': '1 '}, 'NDIESEL__CITYB90__Li2': {'TONAME': 'CITYB90', 'FROMNUMBER': 10, 'FROMEXNAME': 'NDIESEL 90.000', 'FROMNAME': 'NDIESEL', 'TOEXNAME': 'CITYB90 90.000', 'TONUMBER': 11, 'ID': '2 '}, 'CITYC90__HYDRO90__Li1': {'TONAME': 'HYDRO90', 'FROMNUMBER': 13, 'FROMEXNAME': 'CITYC90 90.000', 'FROMNAME': 'CITYC90', 'TOEXNAME': 'HYDRO90 90.000', 'TONUMBER': 17, 'ID': '1 '}, 'ODIESEL__JUNCTION30__Li1': {'TONAME': 'JUNCTION30', 'FROMNUMBER': 5, 'FROMEXNAME': 'ODIESEL 30.000', 'FROMNAME': 'ODIESEL', 'TOEXNAME': 'JUNCTION30 30.000', 'TONUMBER': 21, 'ID': '1 '}, 'CITYB90__CITYC90__Li1': {'TONAME': 'CITYC90', 'FROMNUMBER': 11, 'FROMEXNAME': 'CITYB90 90.000', 'FROMNAME': 'CITYB90', 'TOEXNAME': 'CITYC90 90.000', 'TONUMBER': 13, 'ID': '1 '}, 'WIND30__JUNCTION30__Li1': {'TONAME': 'JUNCTION30', 'FROMNUMBER': 18, 'FROMEXNAME': 'WIND30 30.000', 'FROMNAME': 'WIND30', 'TOEXNAME': 'JUNCTION30 30.000', 'TONUMBER': 21, 'ID': '1 '}, 'CITYD30__JUNCTION30__Li1': {'TONAME': 'JUNCTION30', 'FROMNUMBER': 15, 'FROMEXNAME': 'CITYD30 30.000', 'FROMNAME': 'CITYD30', 'TOEXNAME': 'JUNCTION30 30.000', 'TONUMBER': 21, 'ID': '1 '}, 'HYDRO90__SOLAR90__Li1': {'TONAME': 'SOLAR90', 'FROMNUMBER': 17, 'FROMEXNAME': 'HYDRO90 90.000', 'FROMNAME': 'HYDRO90', 'TOEXNAME': 'SOLAR90 90.000', 'TONUMBER': 20, 'ID': '1 '}, 'CITYD30__SOLAR30__Li1': {'TONAME': 'SOLAR30', 'FROMNUMBER': 15, 'FROMEXNAME': 'CITYD30 30.000', 'FROMNAME': 'CITYD30', 'TOEXNAME': 'SOLAR30 30.000', 'TONUMBER': 19, 'ID': '1 '}, 'HYDRO30__WIND30__Li2': {'TONAME': 'WIND30', 'FROMNUMBER': 16, 'FROMEXNAME': 'HYDRO30 30.000', 'FROMNAME': 'HYDRO30', 'TOEXNAME': 'WIND30 30.000', 'TONUMBER': 18, 'ID': '2 '}, 'HYDRO30__WIND30__Li1': {'TONAME': 'WIND30', 'FROMNUMBER': 16, 'FROMEXNAME': 'HYDRO30 30.000', 'FROMNAME': 'HYDRO30', 'TOEXNAME': 'WIND30 30.000', 'TONUMBER': 18, 'ID': '1 '}}
+TransfoDico = {'ODIESELG2__ODIESEL__Tr1': {'TONAME': 'ODIESEL', 'FROMNUMBER': 2, '#WIND': 2, 'FROMEXNAME': 'ODIESELG2 11.000', 'FROMNAME': 'ODIESELG2', 'TOEXNAME': 'ODIESEL 30.000', 'TONUMBER': 5, 'ID': '1 '}, 'NDIESELG3__NDIESEL__Tr1': {'TONAME': 'NDIESEL', 'FROMNUMBER': 8, '#WIND': 2, 'FROMEXNAME': 'NDIESELG3 11.000', 'FROMNAME': 'NDIESELG3', 'TOEXNAME': 'NDIESEL 90.000', 'TONUMBER': 10, 'ID': '1 '}, 'ODIESEL__NDIESEL__Tr1': {'TONAME': 'NDIESEL', 'FROMNUMBER': 5, '#WIND': 2, 'FROMEXNAME': 'ODIESEL 30.000', 'FROMNAME': 'ODIESEL', 'TOEXNAME': 'NDIESEL 90.000', 'TONUMBER': 10, 'ID': '1 '}, 'SOLAR30__SOLAR90__Tr1': {'TONAME': 'SOLAR90', 'FROMNUMBER': 19, '#WIND': 2, 'FROMEXNAME': 'SOLAR30 30.000', 'FROMNAME': 'SOLAR30', 'TOEXNAME': 'SOLAR90 90.000', 'TONUMBER': 20, 'ID': '1 '}, 'NDIESELG2__NDIESEL__Tr1': {'TONAME': 'NDIESEL', 'FROMNUMBER': 7, '#WIND': 2, 'FROMEXNAME': 'NDIESELG2 11.000', 'FROMNAME': 'NDIESELG2', 'TOEXNAME': 'NDIESEL 90.000', 'TONUMBER': 10, 'ID': '1 '}, 'HYDRO30__HYDRO90__Tr1': {'TONAME': 'HYDRO90', 'FROMNUMBER': 16, '#WIND': 2, 'FROMEXNAME': 'HYDRO30 30.000', 'FROMNAME': 'HYDRO30', 'TOEXNAME': 'HYDRO90 90.000', 'TONUMBER': 17, 'ID': '1 '}, 'CITYC90__CITYC30__Tr1': {'TONAME': 'CITYC30', 'FROMNUMBER': 13, '#WIND': 2, 'FROMEXNAME': 'CITYC90 90.000', 'FROMNAME': 'CITYC90', 'TOEXNAME': 'CITYC30 30.000', 'TONUMBER': 14, 'ID': '1 '}, 'NDIESELG1__NDIESEL__Tr1': {'TONAME': 'NDIESEL', 'FROMNUMBER': 6, '#WIND': 2, 'FROMEXNAME': 'NDIESELG1 11.000', 'FROMNAME': 'NDIESELG1', 'TOEXNAME': 'NDIESEL 90.000', 'TONUMBER': 10, 'ID': '1 '}, 'HYDRO30__HYDRO90__Tr2': {'TONAME': 'HYDRO90', 'FROMNUMBER': 16, '#WIND': 2, 'FROMEXNAME': 'HYDRO30 30.000', 'FROMNAME': 'HYDRO30', 'TOEXNAME': 'HYDRO90 90.000', 'TONUMBER': 17, 'ID': '2 '}, 'CITYB90__CITYB30__Tr1': {'TONAME': 'CITYB30', 'FROMNUMBER': 11, '#WIND': 2, 'FROMEXNAME': 'CITYB90 90.000', 'FROMNAME': 'CITYB90', 'TOEXNAME': 'CITYB30 30.000', 'TONUMBER': 12, 'ID': '1 '}, 'CITYB90__CITYB30__Tr2': {'TONAME': 'CITYB30', 'FROMNUMBER': 11, '#WIND': 2, 'FROMEXNAME': 'CITYB90 90.000', 'FROMNAME': 'CITYB90', 'TOEXNAME': 'CITYB30 30.000', 'TONUMBER': 12, 'ID': '2 '}, 'HYDRO30__HYDRO90__Tr3': {'TONAME': 'HYDRO90', 'FROMNUMBER': 16, '#WIND': 2, 'FROMEXNAME': 'HYDRO30 30.000', 'FROMNAME': 'HYDRO30', 'TOEXNAME': 'HYDRO90 90.000', 'TONUMBER': 17, 'ID': '3 '}, 'SOLAR30__SOLAR90__Tr2': {'TONAME': 'SOLAR90', 'FROMNUMBER': 19, '#WIND': 2, 'FROMEXNAME': 'SOLAR30 30.000', 'FROMNAME': 'SOLAR30', 'TOEXNAME': 'SOLAR90 90.000', 'TONUMBER': 20, 'ID': '2 '}, 'ODIESELG3__ODIESEL__Tr1': {'TONAME': 'ODIESEL', 'FROMNUMBER': 3, '#WIND': 2, 'FROMEXNAME': 'ODIESELG3 11.000', 'FROMNAME': 'ODIESELG3', 'TOEXNAME': 'ODIESEL 30.000', 'TONUMBER': 5, 'ID': '1 '}, 'NDIESELG4__NDIESEL__Tr1': {'TONAME': 'NDIESEL', 'FROMNUMBER': 9, '#WIND': 2, 'FROMEXNAME': 'NDIESELG4 11.000', 'FROMNAME': 'NDIESELG4', 'TOEXNAME': 'NDIESEL 90.000', 'TONUMBER': 10, 'ID': '1 '}, 'ODIESELG4__ODIESEL__Tr1': {'TONAME': 'ODIESEL', 'FROMNUMBER': 4, '#WIND': 2, 'FROMEXNAME': 'ODIESELG4 11.000', 'FROMNAME': 'ODIESELG4', 'TOEXNAME': 'ODIESEL 30.000', 'TONUMBER': 5, 'ID': '1 '}, 'ODIESELG1__ODIESEL__Tr1': {'TONAME': 'ODIESEL', 'FROMNUMBER': 1, '#WIND': 2, 'FROMEXNAME': 'ODIESELG1 11.000', 'FROMNAME': 'ODIESELG1', 'TOEXNAME': 'ODIESEL 30.000', 'TONUMBER': 5, 'ID': '1 '}}
MotorDico = {}
-Dico ={'DIRECTORY': {'Python3_path': 'C:\\Anaconda3', 'pfd_file': 'F:/PSEN_MERGED_V8_PF_0409/Modele_Corse_PSEN_ElmSynOutserv2.pfd', 'results_folder': 'F:/PSEN_MERGED_V8_PF_0409', 'PF_path': 'C:\\Program Files\\DIgSILENT\\PowerFactory 2017 SP1\\Python\\3.5'}, 'PF_PARAMETERS': {'UNIT_COMMITMENT': True, 'LS_Q_CONVERGENCE_CRITERIA': False, 'DECIMAL_SEPARATOR': ',', 'ALGORITHM': 'Optimum Power Flow', 'OBJECTIVE_FUNCTION': 'MINIMISATION_OF_COST', 'NON_COST_OPTIMAL_SOLUTION_ALLOWED': True, 'ITERATION_INTERIOR': 700, 'LOCK_TAPS': True, 'LOAD_SHEDDING_ALLOWED': True}, 'CORRELATION': {'CorrelationMatrix': ["['load']", '[1.0]']}, 'DISTRIBUTIONload': {'Load': ['Aspretto_Aspretto_Lo1', 'Bastia_Bastia_Lo1', 'Bonifacio_Bonifacio_Lo1', 'Caldanicci_Caldanicci_Lo1', 'Calvi_Calvi_Lo1', 'Corte_Corte_Lo1', 'Ghisonaccia_Ghisonaccia_Lo1', 'IleRousse_IleRousse_Lo1', 'Loretto_Loretto_Lo1', 'Lucciana_Lucciana_Lo1', 'Lucciana_Lucciana_Lo2', 'Morosaglia_Morosaglia_Lo1', 'Ocana_Ocana_Lo1', 'Oletta_Oletta_Lo1', 'Pietrosella_Pietrosella_Lo1', 'PorteVecchio_PorteVecchio_Lo1', 'Propriano_Propriano_Lo1', 'Sagone_Sagone_Lo1', 'SainteMarieSicche_SainteMarieSicche_Lo1', 'Sisco_Sisco_Lo1'], 'A': 0.75, 'B': 0.98, 'Activated': True, 'Sampling': 'Same sample for all loads', 'ComponentType': 'Load', 'Law': 'Uniform', 'Type': 'Load Level'}, 'SIMULATION': {'NUMBER_PACKAGE': 1, 'SIZE_PACKAGE': 4}}
\ No newline at end of file
+Dico ={'DIRECTORY': {'PSSPY_path': 'C:\\Program Files (x86)\\PTI\\PSSE34\\PSSPY27', 'PSSE_path': 'C:\\Program Files (x86)\\PTI\\PSSE34\\PSSBIN', 'sav_file': 'X:/Small Grid PSSE/TestIsland_2015_OPF - Areas.sav', 'results_folder': 'X:/Small Grid PSSE/Results'}, 'PSSE_PARAMETERS': {'UNIT_COMMITMENT': True, 'I_MAX': 'RateA', 'DECIMAL_SEPARATOR': '.', 'FUEL_COST': True, 'ALGORITHM': 'Optimum Power Flow', 'MVAR_COST': False, 'ITERATION_LIMIT': 20, 'SAVE_CASE_BEFORE_UNIT_COMMITMENT': False, 'LOCK_TAPS': True, 'LOADSHEDDING_COST': False}, 'CORRELATION': {'CorrelationMatrix': ["['load']", '[1.0]']}, 'DISTRIBUTIONload': {'Load': ['CITYB30__Lo1', 'CITYC30__Lo1', 'CITYD30__Lo1', 'ODIESEL__Lo1'], 'A': 0.8, 'B': 0.9, 'Activated': True, 'Sampling': 'Same sample for all loads', 'ComponentType': 'Load', 'Law': 'Uniform', 'Type': 'Load Level'}, 'SIMULATION': {'NUMBER_PACKAGE': 1, 'SIZE_PACKAGE': 10}}
\ No newline at end of file
-Dico ={'CONTINGENCY_PROCESSING': {'XLS_file': 'X:/Etudes/DEWA_SOLAR/DEWA_2018/tir6/results/N_20180626_15h01m34/SAVE/ACCCResults_N2_N1_400_impact132/N2 Voltage 0.csv', 'TabList': ['N2 Voltage 0'], "'Component_List_For_N2 Voltage 0'": ['MSJA', 'LOGS', 'TWRKIFAF', 'OPRTUNTY', 'KCLY', 'IPRK', 'MANAZIL', 'HORN', 'JAFZ', 'CONTAINR', 'TCGY-132 KV', 'SDJZ', 'MRTC', 'CNST', 'THEMEPRK', 'MOBILITY', 'HMLI', 'JABL', 'JABLQUAY', 'AVIATION', 'HSPL', 'DIFC', 'TIJOORI', 'BBAYCREK', 'TPRK', 'SUSTAIN', 'JFZW', 'JARA', 'EMRT', 'EMRD', 'DUBAIWTC', 'DIWL', 'GLSN', 'DOHAROAD', 'SHIPMENT', 'DGAS', 'JEBELHILS', 'JIND', 'MINA', 'JFZS-132 KV', 'FHDI', 'FCTR', 'HTEC', 'SAADAST', 'BBAY', 'DISP', 'DESIGNDS', 'DLFF', 'ODMT', 'SHEFAA', 'JAFN', 'BKRA-132 KV', 'FINCNTRD', 'KHORDXB', 'DLPO', 'DTWN', 'DICB', 'BRES', 'BSNSTOWR', 'JAAC', 'MNTKHORA'], "'Contingency_List_For_N2 Voltage 0'": ['TRSD_400_KV__TCGY_TRSD_S4__LI1__BKRA_400_KV__BKRA_DREP_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__ENPO_400_KV__ENPO_W_S1__A__LI1', 'HRSR_400_KV__BKRA_HRSR_S1__LI1__TCGY_400_KV__TCGY_TRSD_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__HSTA__BKRA_HSTA_S3__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__MSTA__M_GRDN_S1__A__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__GSTA__MRKD_GSTA_S3__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__HSTA_NHDA_S1__HSTA_NHDA_S2__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__BKRA_400_KV__BKRA_HSTA_S1__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__LSTA__JFZS_L_S2__B__LI2', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__HSTA__HSTA_NHDA_S1__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__BRSH_400_KV__DREP_BRSH_S2__LI1', 'TCGY_400_KV__TCGY_JFZS_S1__LI1__JFZS_400_KV__JFZS_TRSD_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__HSYANCOAL__HN_TGY_S1__B__LI2', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__HSYANCOAL__HN_TGY_S1__A__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__GRDN_400_KV__M_GRDN_S1__A__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__HSYANCOAL__HN_TGY_S1__B__LI2', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__NHDA_400_KV__MBCH_400_KV__LIC1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__MSTA__M_GRDN_S1__A__LI1', 'TCGY_400_KV__HN_TGY_S1__B__LI2__NHDA_400_KV__TRSD_NHDA_S2__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__MRKD_400_KV__MRKD_GSTA_S1__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__NHDA_400_KV__TRSD_NHDA_S2__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__TRSD_400_KV__TRSD_HSTA_S5__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__HSYANCOAL__MBR_HN_S2__A__LI2', 'GSTA__HRSR_GSTA_S4__LI1__TCGY_400_KV__TCGY_TRSD_S1__LI1', 'ENPO_400_KV__GRDN_400_KV__LI2__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TCGY_400_KV__HN_TGY_S1__B__LI2__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__MBRSOL_1__A__HRSR_MBR_S4__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__ENPO_400_KV__GRDN_400_KV__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__LSTA__LSTA_BRSH_S2__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__BRSH_400_KV__LSTA_BRSH_S2__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__TRSD_400_KV__TRSD_HSTA_S5__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__TRSD_400_KV__TRSD_NHDA_S1__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__CARX_400KV__CARX_MBR_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__MSTA__NAJM_MSTA_S2__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__NHDA_400_KV__HSTA_NHDA_S2__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__DREP__DREP_BRSH_S2__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__CARX_400KV__CARX_MBR_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__NAJM_400KV__NAJM_MSTA_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__MBRSOL_1__A__CARX_MBR_S4__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__JFZS_400_KV__JFZS_L_S1__B__LI2', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__DREP__BKRA_DREP_S4__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__HSYANCOAL__MBR_HN_S2__A__LI2', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__JFZS_400_KV__JFZS_L_S1__A__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__TRSD_400_KV__JFZS_TRSD_S4__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__DREP__BKRA_DREP_S4__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__MRKD_400_KV__MRKD_NAJM_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__BKRA_400_KV__BKRA_HRSR_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__JFZS_400_KV__JFZS_L_S1__A__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__ENPO_400_KV__GRDN_400_KV__LI1', 'NAJM_400KV__MRKD_NAJM_S1__LI1__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TCGY_400_KV__HN_TGY_S1__A__LI1__TRSD_400_KV__TRSD_NHDA_S1__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__HSTA__HSTA_NHDA_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__NAJM_MSTA_S1__NAJM_MSTA_S2__LI1', 'GRDN_400_KV__M_GRDN_S1__A__LI1__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__MUSH_400_KV__MBCH_400_KV__LIC1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__TCGY_400_KV__TCGY_JFZS_S1__LI1', 'TCGY_400_KV__HN_TGY_S1__A__LI1__TRSD_400_KV__TRSD_HSTA_S5__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__GSTA__DREP__LIR1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__HSYANCOAL__MBR_HN_S2__B__LI1', 'MRKD_400_KV__BKRA_400_KV__LI2__TCGY_400_KV__TCGY_TRSD_S1__LI1', 'MRKD_400_KV__BKRA_400_KV__LI1__TCGY_400_KV__TCGY_TRSD_S1__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__LSTA__LSTA_BRSH_S2__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__MRKD_400_KV__MRKD_NAJM_S1__LI1', 'TCGY_400_KV__TCGY_JFZS_S1__LI1__TRSD_400_KV__TRSD_NHDA_S1__LI1', 'TCGY_400_KV__HN_TGY_S1__B__LI2__TRSD_400_KV__JFZS_TRSD_S4__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__MUSH_400_KV__MBCH_400_KV__LIC1', 'ENPO_400_KV__ENPO_W_S1__A__LI1__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'MBRSOL_1__A__HRSR_MBR_S4__LI1__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__LSTA__MSTA__LIR1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__HSTA_NHDA_S1__HSTA_NHDA_S2__LI1', 'TCGY_400_KV__HN_TGY_S1__A__LI1__NHDA_400_KV__TRSD_NHDA_S2__LI1', 'TCGY_400_KV__HN_TGY_S1__B__LI2__TRSD_400_KV__TRSD_HSTA_S5__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__JFZS_400_KV__JFZS_L_S1__B__LI2', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__BRSH_400_KV__DREP_BRSH_S2__LI1', 'LSTA__JFZS_L_S2__A__LI1__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__MBRSOL_1__A__MBR_HN_S1__B__LI2', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__JFZS_400_KV__JFZS_TRSD_S1__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__NAJM_400KV__NAJM_MSTA_S1__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__MUSH_400_KV__CARX_400KV__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__MUSH_400_KV__CARX_400KV__LI2', 'MRKD_400_KV__BKRA_400_KV__LI1__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__HRSR_400_KV__HRSR_MBR_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__TRSD_400_KV__TRSD_NHDA_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__DREP__DREP_BRSH_S2__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__MSTA__NAJM_MSTA_S2__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__TCGY_400_KV__HN_TGY_S1__A__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__BRSH_400_KV__LSTA_BRSH_S2__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__NAJM_400KV__BRSH_400_KV__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__NAJM_400KV__BRSH_400_KV__LI2', 'MBRSOL_1__A__MBR_HN_S1__A__LI1__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__JFZS_400_KV__JFZS_TRSD_S1__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__NHDA_400_KV__HSTA_NHDA_S2__LI1', 'HSTA__TRSD_HSTA_S5__LI1__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__HSTA__TRSD_HSTA_S5__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__BKRA_400_KV__BKRA_DREP_S1__LI1', 'MBRSOL_1__A__MBR_HN_S1__A__LI1__TCGY_400_KV__TCGY_TRSD_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__LSTA__JFZS_L_S2__B__LI2', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__NHDA_400_KV__MBCH_400_KV__LIC1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__DREP__MSTA__LIR1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__HSYANCOAL__MBR_HN_S2__B__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__HRSR_400_KV__HRSR_GSTA_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__LSTA__JFZS_L_S2__A__LI1', 'CARX_400KV__HRSR_CARX_S1__LI1__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__NAJM_400KV__MRKD_NAJM_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__HRSR_400_KV__HRSR_MBR_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__GRDN_400_KV__M_GRDN_S1__B__LI2', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__BKRA_400_KV__BKRA_HSTA_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__DREP__MSTA__LIR1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__HSYANCOAL__HN_TGY_S1__A__LI1', 'GSTA__LSTA__LIR1__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__TRSD_400_KV__JFZS_TRSD_S4__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__GSTA__LSTA__LIR1', 'TCGY_400_KV__HN_TGY_S1__B__LI2__JFZS_400_KV__JFZS_TRSD_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__MSTA__M_GRDN_S1__B__LI2', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__HRSR_400_KV__HRSR_GSTA_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__LSTA__MSTA__LIR1', 'TCGY_400_KV__HN_TGY_S1__A__LI1__JFZS_400_KV__JFZS_TRSD_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__MUSH_400_KV__CARX_400KV__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__TCGY_400_KV__TCGY_JFZS_S1__LI1', 'HRSR_400_KV__BKRA_HRSR_S1__LI1__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__MUSH_400_KV__CARX_400KV__LI2', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__GRDN_400_KV__M_GRDN_S1__B__LI2', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__ENPO_400_KV__ENPO_W_S1__B__LI2', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__MBRSOL_1__A__MBR_HN_S1__B__LI2', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__GSTA__MRKD_GSTA_S3__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__NHDA_400_KV__TRSD_NHDA_S2__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__MSTA__M_GRDN_S1__B__LI2', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__NAJM_400KV__BRSH_400_KV__LI2', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__NAJM_400KV__BRSH_400_KV__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__HRSR_400_KV__HRSR_CARX_S1__LI1', 'MRKD_400_KV__BKRA_400_KV__LI2__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__GSTA__DREP__LIR1', 'MBRSOL_1__A__CARX_MBR_S4__LI1__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__ENPO_400_KV__ENPO_W_S1__B__LI2', 'ENPO_400_KV__GRDN_400_KV__LI2__TCGY_400_KV__TCGY_TRSD_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__CARX_400KV__HRSR_CARX_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__TCGY_400_KV__HN_TGY_S1__B__LI2', 'TCGY_400_KV__HN_TGY_S1__B__LI2__TRSD_400_KV__TRSD_NHDA_S1__LI1', 'TCGY_400_KV__TCGY_JFZS_S1__LI1__TRSD_400_KV__TRSD_HSTA_S5__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__BKRA_400_KV__BKRA_HRSR_S1__LI1', 'GSTA__HRSR_GSTA_S4__LI1__TRSD_400_KV__TCGY_TRSD_S4__LI1', 'TCGY_400_KV__TCGY_JFZS_S1__LI1__NHDA_400_KV__TRSD_NHDA_S2__LI1', 'TRSD_400_KV__TCGY_TRSD_S4__LI1__HSTA__BKRA_HSTA_S3__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__MRKD_400_KV__MRKD_GSTA_S1__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__TCGY_400_KV__HN_TGY_S1__A__LI1', 'TCGY_400_KV__TCGY_TRSD_S1__LI1__HRSR_400_KV__HRSR_CARX_S1__LI1']}, 'CONTINGENCY_SELECTION': {'N1TransformersList': [], 'TripLines': True, 'N1LinesList': [], 'N1BusesList': [], 'TripBuses': False, 'N1AreaList': [], 'TripTransfos': True, 'TripGenerators': True}, 'CASE_SELECTION': {'TransformersList': [], 'PSEN_results_csvfile': 'X:/Etudes/DEWA_SOLAR/DEWA_2018/tir6/results/N_20180626_15h01m34/CleanedData.csv', 'DecimalSeparator': '.', 'NewCsvFile': 'CleanedData.csv', 'PSSPY_path': 'C:\\Program Files (x86)\\PTI\\PSSE34\\PSSPY27', 'BusesList': [], 'PSEN_results_csvfile_cleaned': False, 'MaxDepth': 5, 'LinesList': [], 'PSSE_path': 'C:\\Program Files (x86)\\PTI\\PSSE34\\PSSBIN', 'PSEN_results_folder': 'X:/Etudes/DEWA_SOLAR/DEWA_2018/tir6/results/N_20180626_15h01m34', 'OutputNewCsv': False, 'AreaList': []}, 'CONTINGENCY_OPTIONS': {'SolutionMethod': '1 - FNSL', 'AdjustSwitchedShunts': '0 - Disable', 'Vmin': 0.9, 'FlowLimitTransformers': 120, 'Tolerance': 0.5, 'VarLimits': 99, 'FlowLimitLines': 120, 'FlatStart': False, 'AdjustDCtaps': '0 - Disable', 'output_file_format': 'xls', 'AdjustTaps': '1 - Stepping', 'Vmax': 1.1, 'ContingencyRate': 'a', 'DispatchMode': '1 - Reserve'}, 'N_PROCESSING_OPTIONS': {'Output_bus_values': True, 'Output_transformer_values': True, 'Output_lines_values': True}}
\ No newline at end of file
+Dico ={'CONTINGENCY_PROCESSING': {'XLS_file': 'X:/Small Grid PSSE/Results/N_20181023_09h45m10/ACCCresults/test Voltage 0.csv', "'Component_List_For_test Voltage 0'": ['CITYC90', 'HYDRO90', 'NDIESEL'], 'TabList': ['test Voltage 0'], "'Contingency_List_For_test Voltage 0'": ['NDIESEL__HYDRO90__LI1', 'CITYC90__SOLAR90__LI1', 'NDIESELG3__NDIESEL__TR1', 'NDIESEL__CITYB90__LI1', 'NDIESEL__CITYB90__LI2', 'CITYC90__HYDRO90__LI1', 'NDIESELG2__NDIESEL__TR1', 'CITYB90__CITYC90__LI1', 'CITYC90__CITYC30__TR1', 'NDIESELG1__NDIESEL__TR1', 'HYDRO30__HYDRO90__TR2', 'HYDRO30__HYDRO90__TR1', 'NDIESELG4__NDIESEL__TR1', 'HYDRO30__HYDRO90__TR3', 'HYDRO90__SOLAR90__LI1', 'ODIESEL__NDIESEL__TR1']}, 'CONTINGENCY_SELECTION': {'N1TransformersList': [], 'TripLines': True, 'csv_file': 'X:/Small Grid PSSE/Results/N_20181023_09h45m10/cont.csv', 'N1LinesList': ['90.0'], 'N1BusesList': ['90.0'], 'SelectionMethod': 'CaseSelectionFromFile', 'case_name': 'test', 'TripBuses': False, 'N1AreaList': ['1'], 'TripTransfos': False, 'TripGenerators': False}, 'CASE_SELECTION': {'TransformersList': [], 'PSEN_results_csvfile': 'X:/Small Grid PSSE/Results/N_20181023_09h45m10/simulationDClog_complete_09h45m10.csv', 'DecimalSeparator': '.', 'NewCsvFile': 'CleanedData.csv', 'PSSPY_path': 'C:\\Program Files (x86)\\PTI\\PSSE34\\PSSPY27', 'BusesList': ['90.0'], 'PSEN_results_csvfile_cleaned': False, 'MaxDepth': 5, 'LinesList': ['30.0', '90.0'], 'PSSE_path': 'C:\\Program Files (x86)\\PTI\\PSSE34\\PSSBIN', 'PSEN_results_folder': 'X:/Small Grid PSSE/Results/N_20181023_09h45m10', 'OutputNewCsv': False, 'AreaList': ['1']}, 'CONTINGENCY_OPTIONS': {'SolutionMethod': '1 - FNSL', 'AdjustSwitchedShunts': '0 - Disable', 'Vmin': 0.99, 'FlowLimitTransformers': 100, 'Tolerance': 0.5, 'VarLimits': 99, 'FlowLimitLines': 90, 'FlatStart': False, 'AdjustDCtaps': '0 - Disable', 'output_file_format': 'csv', 'AdjustTaps': '1 - Stepping', 'Vmax': 1.01, 'ContingencyRate': 'a', 'DispatchMode': '1 - Reserve'}}
\ No newline at end of file