﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4543	Cyclically dependent constants or parameters ?	dr.christian.kral@…	Per Östlund	"Please consider the following package

{{{
package TestPackage
  record Rec
    Real a=1;
    Real b;
  end Rec;

  model TestRec1
    parameter TestPackage.Rec rec(b = 2 * a);
    parameter Real a = rec.a;
  end TestRec1;

  model TestRec2
    parameter TestPackage.Rec rec(b = 2 * rec.a);
    parameter Real a = rec.a;
  end TestRec2;
end TestPackage;
}}}

In my opinion the implementation of TestRec1 and TestRec2 are identical, since {{{a = rec.a}}} in both cases.

Check of TestRec1
{{{
Cyclically dependent constants or parameters found in scope TestPackage.TestRec1: {a,rec}.
Error occurred while flattening model TestPackage.TestRec1
}}}

Check of TestRec2
{{{
Check of TestPackage.TestRec2 completed successfully.
}}}

I suppose this is a bug

{{{
OMEdit 1.13.0~dev-7-g5ab8668
Connected to OpenModelica 1.13.0~dev-126-g1311439
Linux Mint 18.2 64bit
}}}"	defect	closed	high	2.0.0	New Instantiation		fixed		Per Östlund Martin Sjölund
