@@ -102,6 +102,10 @@ private ReporterModel forCourcirc(@NonNull final ReporterModel reporterModel) {
102
102
ReportWrapper logsTransientReactanceTooLowSummary = null ;
103
103
TypedValue logsTransientReactanceTooLowSeverity = null ;
104
104
105
+ long logsTransientReactanceUndefinedCount = 0L ;
106
+ ReportWrapper logsTransientReactanceUndefinedSummary = null ;
107
+ TypedValue logsTransientReactanceUndefinedSeverity = null ;
108
+
105
109
long logsSimulatingShortCircuitLocatedCount = 0L ;
106
110
ReportWrapper logsSimulatingShortCircuitLocatedSummary = null ;
107
111
TypedValue logsSimulatingShortCircuitLocatedSeverity = null ;
@@ -121,6 +125,15 @@ private ReporterModel forCourcirc(@NonNull final ReporterModel reporterModel) {
121
125
}
122
126
copyReportAsTrace (newReporter , report );
123
127
logsTransientReactanceTooLowCount ++;
128
+ } else if (StringUtils .endsWith (report .getDefaultMessage (), " : transient reactance undefined ==> generator ignored" )) {
129
+ //we match line "X.ABCDEF2 : transient reactance undefined ==> generator ignored"
130
+ if (logsTransientReactanceUndefinedSummary == null ) {
131
+ logsTransientReactanceUndefinedSummary = new ReportWrapper ();
132
+ newReporter .report (logsTransientReactanceUndefinedSummary );
133
+ logsTransientReactanceUndefinedSeverity = report .getValue (Report .REPORT_SEVERITY_KEY );
134
+ }
135
+ copyReportAsTrace (newReporter , report );
136
+ logsTransientReactanceUndefinedCount ++;
124
137
} else if (StringUtils .startsWith (report .getDefaultMessage (), "Simulating : short-circuit located on node " )) {
125
138
//we match line "Simulating : short-circuit located on node .BRIDGE_0"
126
139
if (logsSimulatingShortCircuitLocatedSummary == null ) {
@@ -153,6 +166,13 @@ private ReporterModel forCourcirc(@NonNull final ReporterModel reporterModel) {
153
166
Map .of (Report .REPORT_SEVERITY_KEY , ObjectUtils .defaultIfNull (logsTransientReactanceTooLowSeverity , TypedValue .WARN_SEVERITY ),
154
167
"nb" , new TypedValue (logsTransientReactanceTooLowCount , TypedValue .UNTYPED ))));
155
168
}
169
+ log .debug ("Found {} lines in courcirc logs matching \" MYNODE : transient reactance undefined ==> generator ignored\" " , logsTransientReactanceUndefinedCount );
170
+ if (logsTransientReactanceUndefinedSummary != null ) {
171
+ logsTransientReactanceUndefinedSummary .setReport (new Report ("transientReactanceUndefinedSummary" ,
172
+ "${nb} node(s) with transient reactance undefined ==> generator ignored" ,
173
+ Map .of (Report .REPORT_SEVERITY_KEY , ObjectUtils .defaultIfNull (logsTransientReactanceUndefinedSeverity , TypedValue .WARN_SEVERITY ),
174
+ "nb" , new TypedValue (logsTransientReactanceUndefinedCount , TypedValue .UNTYPED ))));
175
+ }
156
176
log .debug ("Found {} lines in courcirc logs matching \" Simulating : short-circuit located on node MYNODE\" " , logsSimulatingShortCircuitLocatedCount );
157
177
if (logsSimulatingShortCircuitLocatedSummary != null ) {
158
178
logsSimulatingShortCircuitLocatedSummary .setReport (new Report ("simulatingShortCircuitLocatedNodeSummary" ,
0 commit comments