﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5476	BE tries to generate non-existent boolean attributes when disabling tearing	Andreas Heuermann	Karim Adbdelhak	"When tearing is disabled, the backend generates code that assumes boolean variables have attributes like min, max or nominal.

Steps to reproduce:
Disabeling tearing with `--tearingMethod=noTearing` and simulate a model with booleans, like `Modelica.Electrical.Analog.Examples.Rectifier`

Error message:
{{{
gcc  -Os -falign-functions -fno-ipa-pure-const -mstackrealign -msse2 -mfpmath=sse     -I""d:/workspace/OpenModelica/build/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_Electrical_Analog_Examples_Rectifier -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=6 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o Modelica.Electrical.Analog.Examples.Rectifier_04set.o Modelica.Electrical.Analog.Examples.Rectifier_04set.c
Modelica.Electrical.Analog.Examples.Rectifier_02nls.c: In function 'initializeStaticDataNLS145':
Modelica.Electrical.Analog.Examples.Rectifier_02nls.c:109:92: error: 'BOOLEAN_ATTRIBUTE {aka struct BOOLEAN_ATTRIBUTE}' has no member named 'nominal'
   sysData->nominal[i] = data->modelData->booleanVarsData[0].attribute /* IdealDiode1.off */.nominal;
                                                                                            ^
Modelica.Electrical.Analog.Examples.Rectifier_02nls.c:110:92: error: 'BOOLEAN_ATTRIBUTE {aka struct BOOLEAN_ATTRIBUTE}' has no member named 'min'
   sysData->min[i]     = data->modelData->booleanVarsData[0].attribute /* IdealDiode1.off */.min;
                                                                                            ^
Modelica.Electrical.Analog.Examples.Rectifier_02nls.c:111:92: error: 'BOOLEAN_ATTRIBUTE {aka struct BOOLEAN_ATTRIBUTE}' has no member named 'max'
   sysData->max[i++]   = data->modelData->booleanVarsData[0].attribute /* IdealDiode1.off */.max;
                                                                                            ^
}}}
"	defect	closed	high	1.16.0	Backend	v1.14.0-dev-nightly	fixed	Boolean attributes tearing noTearing	
