﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3873	Matrix Compiler Bug	jalpanchal@…	Jal Panchal	"Received a Compiler Bug while calculating Symmetric matrix using symmetric() Operator.

Please refer to code below;
{{{#!mo
model MathTest

	Real x[Boolean];
	Real y;
	Real z[1,7]  ;
	Real a[2,2,3];
	Real b[2] = {1,2};
	Real c[2] = {8, 4};
	Real d[3] = {5,7,9};
	Integer e[3,3] = [1,5,7;78,67,7;8,65,4];
	Integer f[3,3];
	
	
	
equation

  x = {78,56};
  
  y = scalar(x[0]);
  
  z = 3.0*{1:0.2:2.2};
  
  a = {i*c[j]*d[k] for k in 1:3, j in 1:2, i in 1:2}; 
  
  f = symmetric(e);
  
end MathTest;
}}}

ERROR MESSAGE:
{{{
[MathTest: 25:3-25:19]: Got type mismatch error, but matching types Integer[3, 3].
This is a ***COMPILER BUG***, please report it to https://trac.openmodelica.org/OpenModelica.
}}}"	defect	new	high	1.10.0	Build Environment	v1.9.4			
