﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1244	Can't find matching inner	Peter Aronsson	Peter Aronsson	"After looking more into this example I have actually managed to simplify it and triggered the problem (thus reopening the issue). 

Consider the following package:
{{{
package MyPackage
  package Effects
    package Internal
      model ParticleEffect2
        outer MyPackage.UpdateVisualization myEnvironment1;
      end ParticleEffect2;

    end Internal;

    model ParticleEffect1
      MyPackage.Effects.Internal.ParticleEffect2 particleEffect2;
    end ParticleEffect1;

  end Effects;

  package Examples
    package Effects
      model ParticleEffect
        MyPackage.Effects.ParticleEffect1 particleEffect1;
        inner MyPackage.UpdateVisualization updateVisualization;
      end ParticleEffect;

    end Effects;

  end Examples;

  model UpdateVisualization
  end UpdateVisualization;

end MyPackage;
}}}
Checking of MyPackage.Examples.Effects.ParticleEffect works fine:
{{{
Check of MyPackage.Examples.Effects.ParticleEffect completed successfully.
Class MyPackage.Examples.Effects.ParticleEffect has 0 equation(s) and 0 variable(s).
0 of these are trivial equation(s).
}}}
However, if UpdateVisualization is not an empty class:
{{{
  model UpdateVisualization
    parameter Real x=1;
    parameter Real y=3;
  end UpdateVisualization;
}}}
Then we fail to find the matching inner:
{{{
[44] 18:09:04 Validation of class MyPackage.Examples.Effects.ParticleEffect
[<interactive>:11:7-11:65:readonly] Warning: Variable particleEffect1.particleEffect2: No corresponding 'inner' declaration found for component particleEffect1.particleEffect2.myEnvironment1 declared as 'outer '. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration.

Check of MyPackage.Examples.Effects.ParticleEffect completed.
Class MyPackage.Examples.Effects.ParticleEffect has 0 equation(s) and 0 variable(s) whereof 2 variables declared as 'outer'
}}}

This is a simplified version of a typical model from DLRs Visualization library."	defect	closed	critical	Red October			worksforme		Peter Aronsson Adrian Pop
