﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4161	Wrong type mismatch error when handling parameter records	Christian Kral <dr.christian.kral@…>	Adrian Pop	"Please consider the library [https://github.com/christiankral/PhotoVoltaics PhotoVoltaics] hosted on GitHub. Download version [https://github.com/christiankral/PhotoVoltaics/tree/fd497d190a03616bcb2a6d416c18309f9da2ef37 fd497d1] to demonstrate the following issue:

Check or try to simulate the model {{{PhotoVoltaics.Testing.SimpleResistor}}}. An error is triggered:

{{{
[1] 18:05:08 Translation Error
[PhotoVoltaics: 36:50-36:71]: Type mismatch in binding ns = 48.0, expected subtype of Integer, got type Real.

[2] 18:05:08 Translation Error
Error occurred while flattening model PhotoVoltaics.Testing.SimpleResistor
}}}

This error is obviously not correct, since there is never any real number assigned to the {{{Integer parameter ns}}}. This simulation example shall have no errors and checks OK with Dymola. 



The issue applies to OpenModelica 1.11.0~dev-468-g26ce3a2 used under Linux Mint 18. "	defect	closed	high	1.19.0	New Instantiation	v1.11.0	fixed		Per Östlund
