Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ void testLiteratureBasedIeee57() {
Network n = testValid("/illinois/literature-based", "IEEE 57 bus.RAW");
// Check that lines and transformers with duplicated ids are correctly imported
assertNotNull(n.getLine("L-24-25-1 "));
assertNotNull(n.getLine("L-24-25-10"));
assertNotNull(n.getTwoWindingsTransformer("T-4-18-1 "));
assertNotNull(n.getTwoWindingsTransformer("T-4-18-10"));
}

@Test
Expand All @@ -65,19 +63,12 @@ void testLiteratureBasedIeeeRts96() {
void testLiteratureBasedIeee118() {
Network n = testValid("/illinois/literature-based", "IEEE 118 Bus.RAW");
assertNotNull(n.getLine("L-42-49-1 "));
assertNotNull(n.getLine("L-42-49-10"));
assertNotNull(n.getLine("L-77-80-1 "));
assertNotNull(n.getLine("L-77-80-10"));
assertNotNull(n.getLine("L-49-66-1 "));
assertNotNull(n.getLine("L-49-66-10"));
assertNotNull(n.getLine("L-49-54-1 "));
assertNotNull(n.getLine("L-49-54-10"));
assertNotNull(n.getLine("L-89-92-1 "));
assertNotNull(n.getLine("L-89-92-10"));
assertNotNull(n.getLine("L-56-59-1 "));
assertNotNull(n.getLine("L-56-59-10"));
assertNotNull(n.getLine("L-89-90-1 "));
assertNotNull(n.getLine("L-89-90-10"));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,37 +231,22 @@ void importSubstationWithThreeBusesAtTheSameNominalVoltageInTwoDifferentAreas()
void importTest14BusesDuplicateIds() throws IOException {
Network n = importTest("IEEE_14_buses_duplicate_ids", "IEEE_14_buses_duplicate_ids.raw", false);
assertNotNull(n.getLoad("B2-L1 "));
assertNotNull(n.getLoad("B2-L10"));
assertNotNull(n.getGenerator("B1-G1 "));
assertNotNull(n.getGenerator("B1-G10"));
assertNotNull(n.getShuntCompensator("B9-SH 1"));
assertNotNull(n.getShuntCompensator("B9-SH 0"));
assertNotNull(n.getLine("L-13-14-1 "));
assertNotNull(n.getLine("L-14-13-10"));
assertNotNull(n.getLine("L-13-14-11"));
assertNotNull(n.getTwoWindingsTransformer("T-4-7-1 "));
assertNotNull(n.getTwoWindingsTransformer("T-7-4-10"));
assertNotNull(n.getTwoWindingsTransformer("T-4-7-11"));
}

@Test
void importTest14BusesDuplicateIdsV35() throws IOException {
Network n = importTest("IEEE_14_buses_duplicate_ids_rev35", "IEEE_14_buses_duplicate_ids_rev35.raw", false);
assertNotNull(n.getLoad("B2-L1 "));
assertNotNull(n.getLoad("B2-L10"));
assertNotNull(n.getGenerator("B1-G1 "));
assertNotNull(n.getGenerator("B1-G10"));
assertNotNull(n.getShuntCompensator("B9-SH 1"));
assertNotNull(n.getShuntCompensator("B9-SH 0"));
assertNotNull(n.getShuntCompensator("B1-SwSH1"));
assertNotNull(n.getShuntCompensator("B1-SwSH10"));
assertNotNull(n.getLine("L-1-2-1 "));
assertNotNull(n.getLine("L-1-2-10"));
assertNotNull(n.getLine("L-2-1-11"));
assertNotNull(n.getLine("L-2-1-1 "));
assertNotNull(n.getTwoWindingsTransformer("T-4-7-1 "));
assertNotNull(n.getTwoWindingsTransformer("T-4-7-10"));
assertNotNull(n.getStaticVarCompensator("FactsDevice-FACTS_DVCE_1"));
assertNotNull(n.getStaticVarCompensator("FactsDevice-FACTS_DVCE_0"));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
08/19/93 UW ARCHIVE 100.0 1962 W IEEE 14 Bus Test Case

1,'Bus 1 ', 138.0000,3, 1, 1, 1,1.06000, 0.0000
2,'Bus 2 ', 138.0000,2, 1, 1, 1,1.04500, -4.9826
2,'Bus 2 ', 139.0000,1, 2, 3, 4,1.05500, -14.9826
3,'Bus 3 ', 138.0000,2, 1, 1, 1,1.01000, -12.7250
4,'Bus 4 ', 138.0000,1, 1, 1, 1,1.01767, -10.3128
5,'Bus 5 ', 138.0000,1, 1, 1, 1,1.01951, -8.7738
Expand All @@ -15,8 +15,10 @@
12,'Bus 12 ', 138.0000,1, 1, 1, 1,1.05519, -15.0755
13,'Bus 13 ', 138.0000,1, 1, 1, 1,1.05038, -15.1562
14,'Bus 14 ', 138.0000,1, 1, 1, 1,1.03553, -16.0336
2,'Bus 2 v2 ', 138.0000,2, 1, 1, 1,1.04500, -4.9826

0 / END OF BUS DATA, BEGIN LOAD DATA
2,'1 ',1, 1, 1, 21.700, 12.700, 0.000, 0.000, 0.000, -0.000, 1,1
2,'1 ',0, 2, 3, 25.700, 22.700, 10.000, 10.000, 10.000, 10.000, 2,0
2,'1 ',1, 1, 1, 21.700, 12.700, 0.000, 0.000, 0.000, -0.000, 1,1
3,'1 ',1, 1, 1, 94.200, 19.000, 0.000, 0.000, 0.000, -0.000, 1,1
4,'1 ',1, 1, 1, 47.800, -3.900, 0.000, 0.000, 0.000, -0.000, 1,1
Expand All @@ -29,7 +31,7 @@
13,'1 ',1, 1, 1, 13.500, 5.800, 0.000, 0.000, 0.000, -0.000, 1,1
14,'1 ',1, 1, 1, 14.900, 5.000, 0.000, 0.000, 0.000, -0.000, 1,1
0 / END OF LOAD DATA, BEGIN FIXED SHUNT DATA
9,' 1', 1, 0.000, 19.000
9,' 1', 0, 5.000, 25.000
9,' 1', 1, 0.000, 19.000
0 / END OF FIXED SHUNT DATA, BEGIN GENERATOR DATA
1,'1 ', 232.392, -16.549, 0.000, 0.000,1.06000, 0, 615.000, 0.00000, 1.00000, 0.00000, 0.00000,1.00000,1, 100.0, 10000.000,-10000.000, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000,0, 1.0000
Expand All @@ -55,19 +57,19 @@
9, 14,'1 ', 0.12711, 0.27038,0.00000, 0.00, 0.00, 0.00, 0.00000, 0.00000, 0.00000, 0.00000,1,1, 0.0, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000
10, 11,'1 ', 0.08205, 0.19207,0.00000, 0.00, 0.00, 0.00, 0.00000, 0.00000, 0.00000, 0.00000,1,1, 0.0, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000
12, 13,'1 ', 0.22092, 0.19988,0.00000, 0.00, 0.00, 0.00, 0.00000, 0.00000, 0.00000, 0.00000,1,1, 0.0, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000
13, 14,'1 ', 0.17093, 0.34802,0.00000, 0.00, 0.00, 0.00, 0.00000, 0.00000, 0.00000, 0.00000,1,1, 0.0, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000
14, 13,'1 ', 0.17093, 0.34802,0.00000, 0.00, 0.00, 0.00, 0.00000, 0.00000, 0.00000, 0.00000,1,1, 0.0, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000
13, 14,'1 ', 1.17093, 1.34802,1.00000, 0.00, 0.00, 0.00, 0.00000, 0.00000, 0.00000, 0.00000,1,1, 0.0, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000
14, 13,'1 ', 2.17093, 2.34802,2.00000, 0.00, 0.00, 0.00, 0.00000, 0.00000, 0.00000, 0.00000,1,1, 0.0, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000
13, 14,'1 ', 0.17093, 0.34802,0.00000, 0.00, 0.00, 0.00, 0.00000, 0.00000, 0.00000, 0.00000,1,1, 0.0, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000
0 / END OF BRANCH DATA, BEGIN TRANSFORMER DATA
4, 7, 0,'1 ',1,1,1, 0.00000, 0.00000,2,' ',1, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000
4, 7, 0,'1 ',1,1,1, 0.00000, 0.00000,2,'v1 ',1, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000
0.00000, 0.20912, 100.00
0.97800, 0.000, 0.000, 0.00, 0.00, 0.00,0, 0, 1.50000, 0.51000, 1.50000, 0.51000,159, 0, 0.00000, 0.00000
1.00000, 0.000
7, 4, 0,'1 ',1,1,1, 0.00000, 0.00000,2,' ',1, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000
7, 4, 0,'1 ',1,1,1, 0.00000, 0.00000,2,'v2 ',1, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000
0.00000, 0.20912, 100.00
0.97800, 0.000, 0.000, 0.00, 0.00, 0.00,0, 0, 1.50000, 0.51000, 1.50000, 0.51000,159, 0, 0.00000, 0.00000
1.00000, 0.000
4, 7, 0,'1 ',1,1,1, 0.00000, 0.00000,2,' ',1, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000
4, 7, 0,'1 ',1,1,1, 0.00000, 0.00000,2,'v3 ',1, 1,1.0000, 0,1.0000, 0,1.0000, 0,1.0000
0.00000, 0.20912, 100.00
0.97800, 0.000, 0.000, 0.00, 0.00, 0.00,0, 0, 1.50000, 0.51000, 1.50000, 0.51000,159, 0, 0.00000, 0.00000
1.00000, 0.000
Expand All @@ -80,7 +82,8 @@
0.93200, 0.000, 0.000, 0.00, 0.00, 0.00,0, 0, 1.50000, 0.51000, 1.50000, 0.51000,159, 0, 0.00000, 0.00000
1.00000, 0.000
0 / END OF TRANSFORMER DATA, BEGIN AREA DATA
1, 2, 0.000, 999.990,'IEEE14 '
1, 3, 10.000, 99.990,'IEEE14 '
1, 2, 0.000, 999.990,'IEEE14 v2 '
0 / END OF AREA DATA, BEGIN TWO-TERMINAL DC DATA
0 / END OF TWO-TERMINAL DC DATA, BEGIN VOLTAGE SOURCE CONVERTER DATA
0 / END OF VOLTAGE SOURCE CONVERTER DATA, BEGIN IMPEDANCE CORRECTION DATA
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,20 @@
<iidm:busBreakerTopology>
<iidm:bus id="B1" name="Bus 1 " v="146.28" angle="0.0"/>
</iidm:busBreakerTopology>
<iidm:generator id="B1-G1 " energySource="OTHER" minP="-10000.0" maxP="10000.0" voltageRegulatorOn="false" targetP="232.392" targetV="146.28" targetQ="-16.549" bus="B1" connectableBus="B1">
<iidm:minMaxReactiveLimits minQ="0.0" maxQ="0.0"/>
</iidm:generator>
<iidm:generator id="B1-G10" energySource="OTHER" minP="-10000.0" maxP="10000.0" voltageRegulatorOn="false" targetP="0.392" targetV="146.28" targetQ="-0.549" bus="B1" connectableBus="B1">
<iidm:generator id="B1-G1 " energySource="OTHER" minP="-10000.0" maxP="10000.0" voltageRegulatorOn="false" targetP="0.392" targetV="146.28" targetQ="-0.549" bus="B1" connectableBus="B1">
<iidm:minMaxReactiveLimits minQ="0.0" maxQ="0.0"/>
</iidm:generator>
</iidm:voltageLevel>
</iidm:substation>
<iidm:substation id="S2">
<iidm:voltageLevel id="VL2" nominalV="138.0" topologyKind="BUS_BREAKER">
<iidm:busBreakerTopology>
<iidm:bus id="B2" name="Bus 2 " v="144.20999999999998" angle="-4.9826"/>
<iidm:bus id="B2" name="Bus 2 v2 " v="144.20999999999998" angle="-4.9826"/>
</iidm:busBreakerTopology>
<iidm:generator id="B2-G1 " energySource="OTHER" minP="-10000.0" maxP="10000.0" voltageRegulatorOn="true" targetP="40.0" targetV="144.20999999999998" targetQ="43.556" bus="B2" connectableBus="B2">
<iidm:minMaxReactiveLimits minQ="-40.0" maxQ="50.0"/>
</iidm:generator>
<iidm:load id="B2-L1 " loadType="UNDEFINED" p0="21.7" q0="12.7" bus="B2" connectableBus="B2"/>
<iidm:load id="B2-L10" loadType="UNDEFINED" p0="21.7" q0="12.7" bus="B2" connectableBus="B2"/>
</iidm:voltageLevel>
</iidm:substation>
<iidm:substation id="S3">
Expand All @@ -48,21 +44,8 @@
<iidm:shunt id="B9-SH 1" sectionCount="1" voltageRegulatorOn="false" bus="B9" connectableBus="B9">
<iidm:shuntLinearModel bPerSection="9.976895610165932E-4" gPerSection="0.0" maximumSectionCount="1"/>
</iidm:shunt>
<iidm:shunt id="B9-SH 0" sectionCount="1" voltageRegulatorOn="false" bus="B9" connectableBus="B9">
<iidm:shuntLinearModel bPerSection="9.976895610165932E-4" gPerSection="0.0" maximumSectionCount="1"/>
</iidm:shunt>
</iidm:voltageLevel>
<iidm:twoWindingsTransformer id="T-4-7-1 " r="0.0" x="39.8248128" g="0.0" b="0.0" ratedU1="138.0" ratedU2="138.0" voltageLevelId1="VL4-7-9" bus1="B4" connectableBus1="B4" voltageLevelId2="VL4-7-9" bus2="B7" connectableBus2="B7">
<iidm:ratioTapChanger lowTapPosition="0" tapPosition="0" loadTapChangingCapabilities="false">
<iidm:step r="0.0" x="0.0" g="-4.3515999999999995" b="-4.3515999999999995" rho="1.0224948875255624"/>
</iidm:ratioTapChanger>
</iidm:twoWindingsTransformer>
<iidm:twoWindingsTransformer id="T-7-4-10" r="0.0" x="39.8248128" g="0.0" b="0.0" ratedU1="138.0" ratedU2="138.0" voltageLevelId1="VL4-7-9" bus1="B7" connectableBus1="B7" voltageLevelId2="VL4-7-9" bus2="B4" connectableBus2="B4">
<iidm:ratioTapChanger lowTapPosition="0" tapPosition="0" loadTapChangingCapabilities="false">
<iidm:step r="0.0" x="0.0" g="-4.3515999999999995" b="-4.3515999999999995" rho="1.0224948875255624"/>
</iidm:ratioTapChanger>
</iidm:twoWindingsTransformer>
<iidm:twoWindingsTransformer id="T-4-7-11" r="0.0" x="39.8248128" g="0.0" b="0.0" ratedU1="138.0" ratedU2="138.0" voltageLevelId1="VL4-7-9" bus1="B4" connectableBus1="B4" voltageLevelId2="VL4-7-9" bus2="B7" connectableBus2="B7">
<iidm:twoWindingsTransformer id="T-4-7-1 " name="v3 " r="0.0" x="39.8248128" g="0.0" b="0.0" ratedU1="138.0" ratedU2="138.0" voltageLevelId1="VL4-7-9" bus1="B4" connectableBus1="B4" voltageLevelId2="VL4-7-9" bus2="B7" connectableBus2="B7">
<iidm:ratioTapChanger lowTapPosition="0" tapPosition="0" loadTapChangingCapabilities="false">
<iidm:step r="0.0" x="0.0" g="-4.3515999999999995" b="-4.3515999999999995" rho="1.0224948875255624"/>
</iidm:ratioTapChanger>
Expand Down Expand Up @@ -141,11 +124,11 @@
<iidm:load id="B14-L1 " loadType="UNDEFINED" p0="14.9" q0="5.0" bus="B14" connectableBus="B14"/>
</iidm:voltageLevel>
</iidm:substation>
<iidm:line id="L-1-2-1 " name="Bus 1_Bus 2_1 " r="3.6907272" x="11.2683348" g1="0.0" b1="1.3862633900441084E-4" g2="0.0" b2="1.3862633900441084E-4" voltageLevelId1="VL1" bus1="B1" connectableBus1="B1" voltageLevelId2="VL2" bus2="B2" connectableBus2="B2"/>
<iidm:line id="L-1-2-1 " name="Bus 1_Bus 2 v2_1 " r="3.6907272" x="11.2683348" g1="0.0" b1="1.3862633900441084E-4" g2="0.0" b2="1.3862633900441084E-4" voltageLevelId1="VL1" bus1="B1" connectableBus1="B1" voltageLevelId2="VL2" bus2="B2" connectableBus2="B2"/>
<iidm:line id="L-1-5-1 " name="Bus 1_Bus 5_1 " r="10.2894732" x="42.475737599999995" g1="0.0" b1="1.2917454316320101E-4" g2="0.0" b2="1.2917454316320101E-4" voltageLevelId1="VL1" bus1="B1" connectableBus1="B1" voltageLevelId2="VL5-6" bus2="B5" connectableBus2="B5"/>
<iidm:line id="L-2-3-1 " name="Bus 2_Bus 3_1 " r="8.9487756" x="37.7014068" g1="0.0" b1="1.1499684940138626E-4" g2="0.0" b2="1.1499684940138626E-4" voltageLevelId1="VL2" bus1="B2" connectableBus1="B2" voltageLevelId2="VL3" bus2="B3" connectableBus2="B3"/>
<iidm:line id="L-2-4-1 " name="Bus 2_Bus 4_1 " r="11.066468400000002" x="33.578380800000005" g1="0.0" b1="8.926696072253729E-5" g2="0.0" b2="8.926696072253729E-5" voltageLevelId1="VL2" bus1="B2" connectableBus1="B2" voltageLevelId2="VL4-7-9" bus2="B4" connectableBus2="B4"/>
<iidm:line id="L-2-5-1 " name="Bus 2_Bus 5_1 " r="10.845557999999999" x="33.1137072" g1="0.0" b1="9.084226002940558E-5" g2="0.0" b2="9.084226002940558E-5" voltageLevelId1="VL2" bus1="B2" connectableBus1="B2" voltageLevelId2="VL5-6" bus2="B5" connectableBus2="B5"/>
<iidm:line id="L-2-3-1 " name="Bus 2 v2_Bus 3_1 " r="8.9487756" x="37.7014068" g1="0.0" b1="1.1499684940138626E-4" g2="0.0" b2="1.1499684940138626E-4" voltageLevelId1="VL2" bus1="B2" connectableBus1="B2" voltageLevelId2="VL3" bus2="B3" connectableBus2="B3"/>
<iidm:line id="L-2-4-1 " name="Bus 2 v2_Bus 4_1 " r="11.066468400000002" x="33.578380800000005" g1="0.0" b1="8.926696072253729E-5" g2="0.0" b2="8.926696072253729E-5" voltageLevelId1="VL2" bus1="B2" connectableBus1="B2" voltageLevelId2="VL4-7-9" bus2="B4" connectableBus2="B4"/>
<iidm:line id="L-2-5-1 " name="Bus 2 v2_Bus 5_1 " r="10.845557999999999" x="33.1137072" g1="0.0" b1="9.084226002940558E-5" g2="0.0" b2="9.084226002940558E-5" voltageLevelId1="VL2" bus1="B2" connectableBus1="B2" voltageLevelId2="VL5-6" bus2="B5" connectableBus2="B5"/>
<iidm:line id="L-3-4-1 " name="Bus 3_Bus 4_1 " r="12.761384399999999" x="32.5709532" g1="0.0" b1="3.3606385213190505E-5" g2="0.0" b2="3.3606385213190505E-5" voltageLevelId1="VL3" bus1="B3" connectableBus1="B3" voltageLevelId2="VL4-7-9" bus2="B4" connectableBus2="B4"/>
<iidm:line id="L-4-5-1 " name="Bus 4_Bus 5_1 " r="2.542374" x="8.0194284" g1="0.0" b1="0.0" g2="0.0" b2="0.0" voltageLevelId1="VL4-7-9" bus1="B4" connectableBus1="B4" voltageLevelId2="VL5-6" bus2="B5" connectableBus2="B5"/>
<iidm:line id="L-6-11-1 " name="Bus 6_Bus 11_1 " r="18.087991199999998" x="37.878516" g1="0.0" b1="0.0" g2="0.0" b2="0.0" voltageLevelId1="VL5-6" bus1="B6" connectableBus1="B6" voltageLevelId2="VL11" bus2="B11" connectableBus2="B11"/>
Expand All @@ -158,9 +141,7 @@
<iidm:line id="L-10-11-1 " name="Bus 10_Bus 11_1 " r="15.625601999999999" x="36.577810799999995" g1="0.0" b1="0.0" g2="0.0" b2="0.0" voltageLevelId1="VL10" bus1="B10" connectableBus1="B10" voltageLevelId2="VL11" bus2="B11" connectableBus2="B11"/>
<iidm:line id="L-12-13-1 " name="Bus 12_Bus 13_1 " r="42.0720048" x="38.0651472" g1="0.0" b1="0.0" g2="0.0" b2="0.0" voltageLevelId1="VL12" bus1="B12" connectableBus1="B12" voltageLevelId2="VL13" bus2="B13" connectableBus2="B13"/>
<iidm:line id="L-13-14-1 " name="Bus 13_Bus 14_1 " r="32.5519092" x="66.2769288" g1="0.0" b1="0.0" g2="0.0" b2="0.0" voltageLevelId1="VL13" bus1="B13" connectableBus1="B13" voltageLevelId2="VL14" bus2="B14" connectableBus2="B14"/>
<iidm:line id="L-14-13-10" name="Bus 14_Bus 13_10" r="32.5519092" x="66.2769288" g1="0.0" b1="0.0" g2="0.0" b2="0.0" voltageLevelId1="VL14" bus1="B14" connectableBus1="B14" voltageLevelId2="VL13" bus2="B13" connectableBus2="B13"/>
<iidm:line id="L-13-14-11" name="Bus 13_Bus 14_11" r="32.5519092" x="66.2769288" g1="0.0" b1="0.0" g2="0.0" b2="0.0" voltageLevelId1="VL13" bus1="B13" connectableBus1="B13" voltageLevelId2="VL14" bus2="B14" connectableBus2="B14"/>
<iidm:area id="A1" name="IEEE14 " areaType="ControlArea" interchangeTarget="0.0">
<iidm:area id="A1" name="IEEE14 v2 " areaType="ControlArea" interchangeTarget="0.0">
<iidm:voltageLevelRef id="VL1"/>
<iidm:voltageLevelRef id="VL2"/>
<iidm:voltageLevelRef id="VL3"/>
Expand Down
Loading