﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5033	Lookup issue with NF and weird error message	Francesco Casella	Per Östlund	"Please consider the following test case (also attached)
{{{
package TestOuter

partial model PartialFluid
  constant Real c = 1;
  partial function fBase
    input Real u;
    output Real y;
  end fBase;
end PartialFluid;

model MyFluid
  extends PartialFluid;
  function f
    extends fBase;
  algorithm
    y := 3*u;
  end f;
end MyFluid;

model System
  replaceable model FluidModel = MyFluid constrainedby PartialFluid;
  FluidModel fluid;
end System;

model Component
  outer System system;
  Real a = system.fluid.f(3);
end Component;

model Model
  Component c;
  inner System system;
end Model;

end TestOuter;
}}}
Instantiating {{{TestOuter.Model}}} returns
{{{
[1] 11:36:06 Scripting Error
Internal error: no tokens left to replace %s with. 
Given message was: Illegal access of class 'f' via component 'system.fluid.f' when looking for '%s'. 


[2] 11:36:06 Translation Error
[TestOuter: 27:3-27:29]: 
}}}
This looks like a bug with a pretty low-level error reporting - I don't have the foggiest clue what {{{%s}}} stands for, but I guess you do :)
"	defect	closed	high	2.0.0	New Instantiation		fixed		Andrea Bartolini
