powsybl / pypowsybl

A PowSyBl and Python integration based on GraalVM native image
Mozilla Public License 2.0
52 stars 10 forks source link

Reduce Network is not working #736

Open vlgmarchesini opened 2 months ago

vlgmarchesini commented 2 months ago

Describe the current behavior

When I call the function network.reduce, it pops out an error: 'PyPowsyblError: Parent tie line WTREBI5 XTR_HN51 1 + XTR_HN51 0HNOVI51 1 should be removed before the child dangling line'

Regardless of filtering by ids, voltage levels, and setting 'with_dangling_lines' to True or False, the error persists.

I tested with several different Common Grid Model uct files and the same error appears. Once I remove all tielines that are not in the interest area. It works...

Describe the expected behavior

I would expect to reduce the problem size (interest area) an decrease time to run load flow and security analysis.

Describe the steps

No response

Environment

No response

Relevant Log Output

No response

Extra Information

I think it is a bug in the wrapper.

annetill commented 1 month ago

https://github.com/powsybl/powsybl-core/issues/3026

geofjamg commented 1 month ago

@vlgmarchesini this issue will be solved in next release thanks to https://github.com/powsybl/powsybl-core/pull/3038