﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4636	Incorrect report of Arraytype mismatch	georg.schneider@…	Per Östlund	"Hello!

I encountered some buggy behaviour when checking a model in our library BuildingControlLib. We defined an array in a submodel as (pseudo modelica syntax)

model myModelA
   Real myArrayName[:,5] ;
end myModelA;

and modified it by some similar defined array

model myModelB 
   myModelA inst( myArrayName = myArrayB );
   Real myArrayB[:,5];
end myModelB;

As far as I know it is equally allowed to define an array either

Real[:,5] myArray ;

or

Real myArray[:,5] ;

Please correct me if I am wrong and it would be interesting if this is a bug or not. The model runs fine in Dymola 2017.


The library is hosted on github: https://github.com/TechnicalBuildingSystems/BuildingControlLib

The error occurs when checking model 

BuildingControlLib.BuildingControl.VDI3813.ApplicationFunctions.Examples.TesterTimeProgramEnergyMode

With error message in OMEdit console: 

Type mismatch in modifier of component timeProgramEnergyMode.functionality.weeklyScheduleinputIntervalsAndValue, declared type Real[:,5], got modifier timeProgramEnergyMode.functionality.PAR_WSCH of type #T_UNKNOWN#.

"	defect	closed	high	2.0.0	New Instantiation	v1.13.0-dev-nightly	fixed	Array	
