Opened 5 years ago

Closed 5 years ago

#5741 closed defect (fixed)

Disabling tearing breaks code generation in power system model

Reported by: Francesco Casella Owned by: Andreas Heuermann
Priority: critical Milestone: 1.14.1
Component: Backend Version:
Keywords: Cc:

Description

Please try to run the PowerGrids.Examples.IEEE14bus.IEEE14busStaticNetwork model with --tearingMethod=noTearing or with --maxSizeNonlinearTearing=2. Some red lines zip by during C compilation, and eventually the compilation process fails.

I guess there is something wrong related to the handling of tearing, please check.

Thanks!

Change History (7)

comment:1 by Andreas Heuermann, 5 years ago

Please try --tearingMethod=minimalTearing. When disabling tearing discrete variables can remain inside loops, which will break in code-generation or at simulation time. Minimal tearing will only tear discrete variables from loops and should supersede noTearing.

I couldn't find PowerGrids so I couldn't test if it actually works.

in reply to:  1 comment:2 by Francesco Casella, 5 years ago

Replying to AnHeuermann:

Please try --tearingMethod=minimalTearing. When disabling tearing discrete variables can remain inside loops, which will break in code-generation or at simulation time. Minimal tearing will only tear discrete variables from loops and should supersede noTearing.

OK. Please add a comment about this to the documentation
because it is by no means obvious.

I couldn't find PowerGrids so I couldn't test if it actually works.

I should have sent it to you by e-mail, but now I can check myself, don't worry.

Thanks!

comment:3 by Andreas Heuermann, 5 years ago

Yes, the documentation is quite wrong. I'll update it.

comment:4 by Francesco Casella, 5 years ago

Ping!

Thanks!

comment:5 by Andreas Heuermann, 5 years ago

See PR #360.

Where would be a good place for a more precise and detailed explanation? Maybe I'll just link my presentation from this years ModelicaWorkshop behind the explanation of the flag.

comment:6 by Francesco Casella, 5 years ago

See comment in the pull request. A link to an online document and/or to doi's of papers is just fine.

comment:7 by Francesco Casella, 5 years ago

Resolution: fixed
Status: newclosed

The documentation was updated in PR #630

Note: See TracTickets for help on using tickets.