﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3834	Compiler type mismatch error when converting Real to Integer.	stephan.fevrier@…	somebody	"Model verification returned:
'''[21] 21:33:08 Translation Error'''
[Modelica.Fluid.Pipes: 1608:7-1608:23]: Got type mismatch error, but matching types Real[0].
This is a ***COMPILER BUG***, please report it to https://trac.openmodelica.org/OpenModelica.

appeared after modification of integer() function in clause:

{{{
extends Modelica.Fluid.Pipes.DynamicPipe(
redeclare replaceable package Medium = Modelica.Media.Water.StandardWater 
constrainedby Modelica.Media.Interfaces.PartialMedium, 
final heatTransfer.k=(lambda_insul*2*Modelica.Constants.pi)/Modelica.Math.log((outsideDiaInsul/2)/(outsideDiaPipe/2)), 
final diameter = insideDiaPipe, 
final use_HeatTransfer = true, 
nNodes=integer(Modelica.SIunits.Conversions.to_unit1(length)/12));
}}}
"	defect	closed	high		Frontend	v1.10.0-dev-nightly	invalid	compiler bug, type mismatch, real, integer	
