Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change test 12.15.6 #969

Merged
merged 2 commits into from
Apr 22, 2024
Merged
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 @@ -291,13 +291,13 @@ Feature: US 12.15: export different reason per perimeter in SWE CNE

@fast @cne-export @mock
Scenario: US 12.15.6: CNE export with angles, no angle results
# Copy of 12.15.4 with extra angle CNEC but no angle values in RAO result
# Should not fail. Should instead skip angle CNECs, thus expected CNE is the same as 12.5.4
# Copy of 12.15.4 with extra angle CNEC but no angle values in RAO result and a secure RAO
# Should not fail. Should instead skip angle CNECs, thus expected CNE is the same as 12.5.4 (but secure)
Given network file is "epic12/nordic32.xiidm"
Given crac file is "epic12/CIM_12_15_5.xml"
Given crac creation parameters file is "epic12/CimCracCreationParameters_MonitorLeftSide.json"
Given configuration file is "epic12/raoParametersSweIDCC_minObjectiveDisabled2P.json"
Given RaoResult file is "epic12/RaoResult_12_15_4.json"
Given RaoResult file is "epic12/RaoResult_12_15_6.json"
When I import data at "2021-04-02 05:00"
And I export SWE CNE
Then the exported CNE file is the same as "epic12/ExpectedCNE_12_15_4.xml"
Then the exported CNE file is the same as "epic12/ExpectedCNE_12_15_6.xml"
141 changes: 141 additions & 0 deletions tests/src/test/resources/files/cne/epic12/ExpectedCNE_12_15_6.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CriticalNetworkElement_MarketDocument xsi:schemaLocation="iec62325-451-n-cne_v2_3.xsd" xmlns="urn:iec62325.351:tc57wg16:451-n:cnedocument:2:3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<mRID>documentId</mRID>
<revisionNumber>3</revisionNumber>
<type>B06</type>
<process.processType>A48</process.processType>
<sender_MarketParticipant.mRID codingScheme="A01">senderId</sender_MarketParticipant.mRID>
<sender_MarketParticipant.marketRole.type>A44</sender_MarketParticipant.marketRole.type>
<receiver_MarketParticipant.mRID codingScheme="A01">receiverId</receiver_MarketParticipant.mRID>
<receiver_MarketParticipant.marketRole.type>A36</receiver_MarketParticipant.marketRole.type>
<createdDateTime>2023-01-30T15:58:09Z</createdDateTime>
<time_Period.timeInterval>
<start>2019-04-01T13:09Z</start>
<end>2019-04-01T14:09Z</end>
</time_Period.timeInterval>
<TimeSeries>
<mRID>CNE_RAO_CASTOR-TimeSeries-1</mRID>
<businessType>B54</businessType>
<curveType>A01</curveType>
<Period>
<timeInterval>
<start>2021-04-02T03:00Z</start>
<end>2021-04-02T04:00Z</end>
</timeInterval>
<resolution>PT60M</resolution>
<Point>
<position>1</position>
<Constraint_Series>
<mRID>1ddcfad-29bb-4ef1-828f-ed7065fd8928</mRID>
<businessType>B56</businessType>
</Constraint_Series>
<Constraint_Series>
<mRID>db4a7e0-dde6-4cc3-9ca5-4816d6f26491</mRID>
<businessType>B56</businessType>
<Contingency_Series>
<mRID>CO_N1012_N1014</mRID>
<name>CO_N1012_N1014</name>
</Contingency_Series>
</Constraint_Series>
<Constraint_Series>
<mRID>b893392-32ed-4569-8bcf-f022fb4c5933</mRID>
<businessType>B56</businessType>
<Contingency_Series>
<mRID>CO_N1012_N4012</mRID>
<name>CO_N1012_N4012</name>
</Contingency_Series>
</Constraint_Series>
<Constraint_Series>
<mRID>ab18126-3240-4a1d-808a-2884cd09875f</mRID>
<businessType>B57</businessType>
<Monitored_Series>
<mRID>CNE_N1011_N1013</mRID>
<name>CNE_N1011_N1013</name>
<RegisteredResource>
<mRID codingScheme="A02">N1011___-N1013___-1_AC</mRID>
<name>N1011_N1013</name>
<in_AggregateNode.mRID codingScheme="A02">N1011____VL</in_AggregateNode.mRID>
<out_AggregateNode.mRID codingScheme="A02">N1013____VL</out_AggregateNode.mRID>
<Measurements>
<measurementType>A01</measurementType>
<unitSymbol>AMP</unitSymbol>
<positiveFlowIn>A02</positiveFlowIn>
<analogValues.value>1076</analogValues.value>
</Measurements>
<Measurements>
<measurementType>A02</measurementType>
<unitSymbol>AMP</unitSymbol>
<positiveFlowIn>A02</positiveFlowIn>
<analogValues.value>1000</analogValues.value>
</Measurements>
</RegisteredResource>
</Monitored_Series>
</Constraint_Series>
<Constraint_Series>
<mRID>e1fc140-be92-4ed1-bf9a-befe09ab1553</mRID>
<businessType>B57</businessType>
<Contingency_Series>
<mRID>CO_N1012_N1014</mRID>
<name>CO_N1012_N1014</name>
</Contingency_Series>
<Monitored_Series>
<mRID>CNE_N1013_N1014</mRID>
<name>CNE_N1013_N1014</name>
<RegisteredResource>
<mRID codingScheme="A02">N1013___-N1014___-1_AC</mRID>
<name>N1013_N1014</name>
<in_AggregateNode.mRID codingScheme="A02">N1013____VL</in_AggregateNode.mRID>
<out_AggregateNode.mRID codingScheme="A02">N1014____VL</out_AggregateNode.mRID>
<Measurements>
<measurementType>A01</measurementType>
<unitSymbol>AMP</unitSymbol>
<positiveFlowIn>A02</positiveFlowIn>
<analogValues.value>700</analogValues.value>
</Measurements>
<Measurements>
<measurementType>A13</measurementType>
<unitSymbol>AMP</unitSymbol>
<positiveFlowIn>A02</positiveFlowIn>
<analogValues.value>500</analogValues.value>
</Measurements>
</RegisteredResource>
</Monitored_Series>
</Constraint_Series>
<Constraint_Series>
<mRID>5ac608b-32a2-46da-b497-5eb07774e9cd</mRID>
<businessType>B57</businessType>
<Contingency_Series>
<mRID>CO_N1012_N4012</mRID>
<name>CO_N1012_N4012</name>
</Contingency_Series>
<Monitored_Series>
<mRID>CNE_N1013_N1014</mRID>
<name>CNE_N1013_N1014</name>
<RegisteredResource>
<mRID codingScheme="A02">N1013___-N1014___-1_AC</mRID>
<name>N1013_N1014</name>
<in_AggregateNode.mRID codingScheme="A02">N1013____VL</in_AggregateNode.mRID>
<out_AggregateNode.mRID codingScheme="A02">N1014____VL</out_AggregateNode.mRID>
<Measurements>
<measurementType>A01</measurementType>
<unitSymbol>AMP</unitSymbol>
<positiveFlowIn>A02</positiveFlowIn>
<analogValues.value>1919</analogValues.value>
</Measurements>
<Measurements>
<measurementType>A13</measurementType>
<unitSymbol>AMP</unitSymbol>
<positiveFlowIn>A02</positiveFlowIn>
<analogValues.value>500</analogValues.value>
</Measurements>
</RegisteredResource>
</Monitored_Series>
</Constraint_Series>
<Reason>
<code>Z13</code>
<text>Network is secure</text>
</Reason>
</Point>
</Period>
</TimeSeries>
</CriticalNetworkElement_MarketDocument>
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"type" : "RAO_RESULT",
"version" : "1.3",
"info" : "Generated by FARAO http://farao-community.github.io",
"computationStatus" : "default",
"costResults" : {
"initial" : {
"functionalCost" : 1419.4
},
"afterPRA" : {
"functionalCost" : 1419.4,
"virtualCost" : {
"sensitivity-fallback-cost" : 0.0,
"sensitivity-failure-cost" : 0.0
}
},
"afterARA" : {
"functionalCost" : 1419.4,
"virtualCost" : {
"sensitivity-fallback-cost" : 0.0,
"sensitivity-failure-cost" : 0.0
}
},
"afterCRA" : {
"functionalCost" : -1419.4,
"virtualCost" : {
"sensitivity-fallback-cost" : 0.0,
"sensitivity-failure-cost" : 0.0
}
}
},
"computationStatusMap" : [ {
"computationStatus" : "DEFAULT",
"instant" : "preventive"
}, {
"computationStatus" : "DEFAULT",
"instant" : "curative",
"contingency" : "CO_N1012_N1014"
}, {
"computationStatus" : "DEFAULT",
"instant" : "curative",
"contingency" : "CO_N1012_N4012"
} ],
"flowCnecResults" : [ {
"flowCnecId" : "N1011_N1013 - preventive",
"initial" : {
"ampere" : {
"margin" : -75.64,
"leftSide" : {
"flow" : -1075.64
}
}
},
"afterPRA" : {
"ampere" : {
"margin" : -75.64,
"leftSide" : {
"flow" : -1075.64
}
}
}
}, {
"flowCnecId" : "N1013_N1014 - CO_N1012_N1014 - curative",
"initial" : {
"ampere" : {
"margin" : -199.95,
"leftSide" : {
"flow" : -699.95
}
}
},
"afterPRA" : {
"ampere" : {
"margin" : -199.95,
"leftSide" : {
"flow" : -699.95
}
}
},
"afterARA" : {
"ampere" : {
"margin" : -199.95,
"leftSide" : {
"flow" : -699.95
}
}
},
"afterCRA" : {
"ampere" : {
"margin" : -199.95,
"leftSide" : {
"flow" : -699.95
}
}
}
}, {
"flowCnecId" : "N1013_N1014 - CO_N1012_N4012 - curative",
"initial" : {
"ampere" : {
"margin" : -1419.4,
"leftSide" : {
"flow" : -1919.4
}
}
},
"afterPRA" : {
"ampere" : {
"margin" : -1419.4,
"leftSide" : {
"flow" : -1919.4
}
}
},
"afterARA" : {
"ampere" : {
"margin" : -1419.4,
"leftSide" : {
"flow" : -1919.4
}
}
},
"afterCRA" : {
"ampere" : {
"margin" : 1419.4,
"leftSide" : {
"flow" : -1919.4
}
}
}
} ],
"angleCnecResults" : [ ],
"voltageCnecResults" : [ ],
"networkActionResults" : [ ],
"rangeActionResults" : [ ]
}
Loading