Opened 9 years ago

Closed 7 years ago

#3834 closed defect (invalid)

Compiler type mismatch error when converting Real to Integer.

Reported by: stephan.fevrier@… Owned by: somebody
Priority: high Milestone:
Component: Frontend Version: v1.10.0-dev-nightly
Keywords: compiler bug, type mismatch, real, integer Cc:

Description

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));

Change History (2)

comment:1 by Francesco Casella, 7 years ago

Component: *unknown*Frontend

Can you please provide a complete test model to reproduce the problem, attach it, and then set the milestone to 2.0.0?

Thanks!

comment:2 by Martin Sjölund, 7 years ago

Milestone: Future
Resolution: invalid
Status: newclosed

Closing due to lack of input

Note: See TracTickets for help on using tickets.