﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5674	The NF does not count variables correctly when conditional components are involved	Francesco Casella	Per Östlund	"Consider the following test model
{{{
model Test
  extends Modelica.Blocks.Interfaces.SO;
  parameter Boolean use_u = true;
  Modelica.Blocks.Interfaces.RealInput u if use_u;
protected
  Modelica.Blocks.Interfaces.RealInput u_internal;
equation
  y = u_internal;
  connect(u, u_internal) ""Automatically removed if u is disabled"";
  if not use_u then
    u_internal = 0;
  end if;
end Test;
}}}
The model is balanced and works correctly. However, if I check it I get:
{{{
Class Test has 2 equation(s) and 1 variable(s).
}}}

I understand the reason is that the NF ignores the fact that {{{u_internal}}} is protected and thus incorrectly removes it from the set of unknown variables."	defect	closed	high	1.16.0	New Instantiation		fixed		
