﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5057	[NF] Bad handling of derived function from builtin functions	Adrian Pop	Per Östlund	"
When handling models of this type with the NF
{{{#!mo
model Atan2  
  partial model M  ""Meter 2 terminal base, 3-phase dq0"" 
  protected
    function atan2 = Modelica.Math.atan2;
  end M;

  model X  
    extends M;
    parameter Real a = 1;
    parameter Real b = 2;
    parameter Real z = atan2(a, b);
  end X;

  X x;
end Atan2;
}}}

The function Atan2.X.atan2 is missing from the generated code.

I tried to fix it with PR: https://github.com/OpenModelica/OMCompiler/pull/2585
but that brought up other problems.

This affects the PowerSystems library."	defect	closed	high	1.13.0	New Instantiation		fixed		
