powsybl / powsybl-open-rao

A toolbox based on powsybl framework dedicated to power systems coordinated capacity calculation and security analysis projects
Mozilla Public License 2.0
17 stars 6 forks source link

Fix OFCC triggered after any outage #1078

Closed bqth29 closed 4 months ago

bqth29 commented 4 months ago

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? A bug was reported from the SWE CC process where an OnFlowConstraintInCountry auto remedial action with no contingency defined was systematically triggered after all outages whereas only some of them were actually creating an overload in the given country.

What is the new behavior (if this is a feature change)? The CNECs retrieved in the automaton simulator were not filtered on the state so this was corrected. Two Cucumber tests were added (one for ARA one for CRA) to ensure the problem is fixed.