﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1955	Parameter values lost	Teemu Lempinen	Adrian Pop	"There is a problem with the following model and OpenModelica-revision-14082:
{{{
model ParameterTestModel

    class Inside_class
        parameter Real A1 = 2.0;
    end Inside_class;

    Inside_class Inside;
	
    parameter Real Var2 = Inside.A1;
    Real Var1( start=0,  fixed=true);
equation
    der(Var1) = Var2;
end ParameterTestModel;
}}}

The value of Var2 is lost. It is not in the result file and init.xml contains the following:


{{{
  <ScalarVariable
    name = ""Var2""
    valueReference = ""1003""
    variability = ""parameter"" isDiscrete = ""false""
    causality = ""internal""
    alias = ""noAlias""
    classIndex = ""1"" classType = ""rPar""
    fileName = ""ParameterTestModel.mo"" startLine = ""9"" startColumn = ""5"" endLine = ""9"" endColumn = ""36"" fileWritable = ""true"">
    <Real useStart=""false"" start=""0.0"" fixed=""true"" useNominal=""false"" nominal=""1.0"" min=""-1.7976931348623157E+308"" max=""1.7976931348623157E+308""   />
  </ScalarVariable>
}}}

The simulation runs OK and the value of Var1 is correct, but the value of Var2 is not recorded anywhere. I would like to read all results and parameter values after simulation, previous versions (1.8.1) store the value to start=""2.0"" in init.xml."	defect	closed	high	1.9.0	Backend	trunk	fixed		
