From 054ba3f8d682ff06541d950c81951cd273ca555c Mon Sep 17 00:00:00 2001 From: Thomas Beutlich Date: Mon, 20 Jan 2025 21:11:27 +0100 Subject: [PATCH] refs #4482: Print values in assertion message of VariableLimiter --- Modelica/Blocks/Nonlinear.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modelica/Blocks/Nonlinear.mo b/Modelica/Blocks/Nonlinear.mo index 57cb86023f..d0ed27a171 100644 --- a/Modelica/Blocks/Nonlinear.mo +++ b/Modelica/Blocks/Nonlinear.mo @@ -105,7 +105,7 @@ a lot by removing one strong nonlinearity from the initialization problem. protected Real simplifiedExpr "Simplified expression for homotopy-based initialization"; equation - assert(limit1 >= limit2, "Input signals are not consistent: limit1 < limit2"); + assert(limit1 >= limit2, "Input signals are not consistent: limit1 = " + String(limit1, significantDigits=14) + " < limit2 = " + String(limit2, significantDigits=14)); simplifiedExpr = (if homotopyType == Types.VariableLimiterHomotopy.Linear then u else if homotopyType == Types.VariableLimiterHomotopy.Fixed then ySimplified else 0);