Opened 5 years ago

Closed 4 years ago

#5741 closed defect (fixed)

Disabling tearing breaks code generation in power system model

Reported by: casella Owned by: AnHeuermann
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 follow-up: Changed 5 years ago by 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.

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

comment:2 in reply to: ↑ 1 Changed 5 years ago by casella

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 Changed 5 years ago by AnHeuermann

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

comment:4 Changed 5 years ago by casella

Ping!

Thanks!

comment:5 Changed 5 years ago by AnHeuermann

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 Changed 5 years ago by casella

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

comment:7 Changed 4 years ago by casella

  • Resolution set to fixed
  • Status changed from new to closed

The documentation was updated in PR #630

Note: See TracTickets for help on using tickets.