﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4365	Count number of equations correctly when using inner/outer variables in algorithm	Jan Kokert	Adrian Pop	"
I recently became familiar with the inner/outer statement which is basically a global variable and will prevent your hierarchical models from too many connectors.
But unfortunatally, it seems that OM does not correctly count the number of equations in conjunction with the {{{inner}}}/{{{outer}}} statement in an {{{algorithm}}}.

For consolidation please check the following model.

{{{
#!modelica
package TestAlg
  model Top
    inner Real a;    
    Sub1 s1;
    
  initial algorithm
      a := 0;      
    
  algorithm
    when time > 1 then
      a := 1;
    end when;
  end Top;

  
  model Sub1
    outer Real a;    
  algorithm
    when time > 2 then
      a := 2;
    end when;
  end Sub1;

end TestAlg;
}}}
It will result in an error message, that there are '''too many equations''' defined. To verify that the multiple algorithms ok, you can move lines 19..21 into the top model.

This issue could be related to #4138 (Lookup and Modifiers). I appreciate a feedback if this is really a defect or if it is just not intended by the MSL specification and if you could fix it soon. Thanks!"	defect	closed	high	1.12.0	Frontend		fixed		
