Using DC loadflows, when outaging a PST through pypowsybl.security, the loadflow results are incorrect. Using net.remove_elements to remove the PST completely from the grid gives the correct post-outage loadflows, however the result in the security module are different. I am reasonably certain that the results using remove_elements are the correct ones as they match with our internal lodf based computation.
Describe the expected behavior
Loadflows p1_sec and p1_ref are equal up to floating point precision.
Describe the current behavior
Using DC loadflows, when outaging a PST through pypowsybl.security, the loadflow results are incorrect. Using net.remove_elements to remove the PST completely from the grid gives the correct post-outage loadflows, however the result in the security module are different. I am reasonably certain that the results using remove_elements are the correct ones as they match with our internal lodf based computation.
Describe the expected behavior
Loadflows p1_sec and p1_ref are equal up to floating point precision.
Describe the steps
Code to replicate available in this gist.
Environment
Relevant Log Output
Extra Information
No response