﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1935	getNthInheritedClass is wrong for some models ...	Adrian Pop	Adrian Pop	"Hi,

Error report from Zsolt Lattmann:
{{{
//model MassWithStopAndFriction 
//""Sliding mass with hard stop and Stribeck friction""
//  extends PartialFrictionWithStop;
//  ...
//  extends Modelica.Thermal.HeatTransfer.Interfaces.PartialElementaryConditionalHeatPortWithoutT;
//  ...
//  encapsulated partial model PartialFrictionWithStop 
//     ""Base model of Coulomb friction elements with stop""
//     ...
//  end PartialFrictionWithStop;
//  ...
//end MassWithStopAndFriction;

loadModel(Modelica, {""3.2""});
getInheritanceCount(Modelica.Mechanics.Translational.Components.MassWithStopAndFriction);
getNthInheritedClass(Modelica.Mechanics.Translational.Components.MassWithStopAndFriction,1);
getNthInheritedClass(Modelica.Mechanics.Translational.Components.MassWithStopAndFriction,2);

// ------------  ============ Outprint when exectuted ============ ----------------
// C:\OpenModelica1.9.0\bin>omc MassWithStopAndFriction.mos
// true
// 2
// Modelica.Thermal.HeatTransfer.Interfaces.PartialElementaryConditionalHeatPortWithoutT
// Modelica.Thermal.HeatTransfer.Interfaces.PartialElementaryConditionalHeatPortWithoutT
}}}
The answer for the first should be PartialFrictionWithStop and for the second Modelica.Thermal.HeatTransfer.Interfaces.PartialElementaryConditionalHeatPortWithoutT. I believe it might be some issues with encapsulated classes and lookup."	defect	assigned	normal		Interactive Environment	trunk			Adrian Pop Adeel Asghar
