Change log levels for post-contingency and action messages in Fast DC Security Analysis#1222
Merged
jeandemanged merged 10 commits intomainfrom Apr 18, 2025
Merged
Change log levels for post-contingency and action messages in Fast DC Security Analysis#1222jeandemanged merged 10 commits intomainfrom
jeandemanged merged 10 commits intomainfrom
Conversation
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Hadrien-Godard
previously approved these changes
Apr 11, 2025
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Hadrien-Godard
previously approved these changes
Apr 11, 2025
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
vidaldid-rte
approved these changes
Apr 14, 2025
Hadrien-Godard
approved these changes
Apr 15, 2025
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
No, but the development is based on the collaborative work of #1169, aiming to improve the performance of the fast DC SA.
What kind of change does this PR introduce?
In default and fast DC security analyses, the logs indicating the start and end of a post-contingency or post-operator strategy simulation are at the
INFOlevel. For the fast DC SA, these logs are changed to theDEBUGlevel.What is the current behavior?
Currently, the logs are displayed via method calls defined in the


AbstractSecurityAnalysisclass, which log at theINFOlevel. This represents about 5% of the CPU time for a fast DC SA run, and slows down the total execution time.Since the computation cost is roughly the same for all contingencies in fast DC SA, these logs should be displayed at a higher level of detail.
What is the new behavior (if this is a feature change)?
The logging methods in the
AbstractSecurityAnalysisclass have been modified so that the log level is configurable. In the fast DC SA, the log level is now set toDEBUG, which makes the logs cleaner and improves performances.The
DEBUGlevel was chosen to keep the logs consistent with those related to active power distribution, when overriding pre-contingency states in the fast DC SA (the following logs are from the unit testWoodburyDcSecurityAnalysisWithActionsTest.testSaDcPhaseTapChangerTapPositionChangeWithConnectivityBreak).Does this PR introduce a breaking change or deprecate an API?
If yes, please check if the following requirements are fulfilled
What changes might users need to make in their application due to this PR? (migration steps)
To enable the display of detailed logs for post-contingency and post-operator strategy simulations in fast DC Security Analysis, you can set the
com.powsybl.openloadflow.sa.AbstractSecurityAnalysislogger to DEBUG in your logging configuration file. For better performance, it is recommended to avoid enabling these logs. It should be used only when needed for debugging or detailed analysis.Other information: