Opened 5 years ago
Closed 4 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)
follow-up: 2 comment:1 by , 5 years ago
comment:2 by , 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 supersedenoTearing
.
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:5 by , 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 , 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 , 4 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The documentation was updated in PR #630
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 supersedenoTearing
.I couldn't find PowerGrids so I couldn't test if it actually works.