﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3638	Parameters based on externally read parameters are not calculated correctly	Christian Kral <dr.christian.kral@…>	Willi Braun	"Please consider the following example:

{{{
model ReadingParameters
  parameter String inputFile = Modelica.Utilities.Files.loadResource(""modelica://ReadingParameters/input.dat"") ""Input data file"";
  parameter Modelica.SIunits.Voltage V1 = KeyWordIO.readRealParameter(inputFile, ""V1"");
  parameter Modelica.SIunits.Voltage V2 = KeyWordIO.readRealParameter(inputFile, ""V2"");
  final parameter Real n12 = V1 / V2;
end ReadingParameters;
}}}

This example relies on the same library to read parameters from external files, as included in #3625. 

Please run the attached example. It reads the data file ""input.dat"" from which the values V1 = 1000 and V2 = 100 are obtained. In this case the ratio n12 = V1/V2 is calculated correctly: n12 = 10

Now, in the data file change the second lint to V2 = 1000, make a right click on the result file in the Variable Browser and ""re-simulate"" (not re-compile). Then, the new parameters are read correctly, i.e., V1 = 1000 and V2 = 1000. However, the original parameter n12 = 10 remains unchanged, even though n12 should be equal to 1."	defect	assigned	high	Future	Run-time				
