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

getConnectableBus throws AssertionError #1051

Closed
jeandemanged opened this issue Dec 4, 2019 · 1 comment
Closed

getConnectableBus throws AssertionError #1051

jeandemanged opened this issue Dec 4, 2019 · 1 comment

Comments

@jeandemanged
Copy link
Member

  • Do you want to request a feature or report a bug?
    A bug

  • What is the current behavior?
    For some Terminals, calling getConnectableBus() results in an AssertionError being thrown. Seems to happen for dead substations.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
    See attached minimal IIDM file. Calling getConnectableBus() on the generator's Terminal reproduces the issue.

small.zip

  • What is the expected behavior?
    No AssertionError being thrown, getConnectableBus() returns null (as it was the case in previous 2.6.0 release)

  • Please tell us about your environment:

    • PowSyBl Version: 3.0.0
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, spectrum, etc)
    java.lang.AssertionError: Should not happen at com.powsybl.iidm.network.impl.NodeBreakerVoltageLevel$CalculatedBusTopology.getConnectableBus(NodeBreakerVoltageLevel.java:405) at com.powsybl.iidm.network.impl.NodeTerminal$3.getConnectableBus(NodeTerminal.java:72) at com.powsybl.iidm.network.impl.NodeTerminal$3.getConnectableBus(NodeTerminal.java:63)

@miovd
Copy link
Contributor

miovd commented Dec 4, 2019

Hi,

This issue should be resolved in next release, the commit to correct it has been merged: ed24b0d (PR #1008)

@miovd miovd closed this as completed Dec 4, 2019
@miovd miovd reopened this Dec 4, 2019
@miovd miovd closed this as completed Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants