Opened 8 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 Changed 7 years ago by casella
- Component changed from *unknown* to Frontend
comment:2 Changed 7 years ago by sjoelund.se
- Milestone Future deleted
- Resolution set to invalid
- Status changed from new to closed
Closing due to lack of input
Can you please provide a complete test model to reproduce the problem, attach it, and then set the milestone to 2.0.0?
Thanks!