Opened 9 years ago
Last modified 7 years ago
#3873 closed defect
Matrix Compiler Bug — at Initial Version
Reported by: | Owned by: | Jal Panchal | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Build Environment | Version: | v1.9.4-v1.9.x |
Keywords: | Cc: |
Description
Received a Compiler Bug while calculating Symmetric matrix using symmetric() Operator.
Please refer to code below;
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.