Opened 15 years ago

Last modified 14 years ago

#1118 closed defect (worksforme)

Stack overflow when using Matrix in connector

Reported by: Schubert TUD Owned by: Schubert TUD
Priority: high Milestone:
Component: Instantiation Version: 1.4.5
Keywords: Cc: Schubert TUD,

Description

Dear all,

when trying to simulate the simple model given below, the omc fails with a stack overflow.
The model consists of a connector which in turn consists of 3x3 Matrix. The stack overflow
occurs if a matrix element is set equal to a "variable" expression, like cos(phi) as in the example below.
If every element is a constant (e.g. identity), everything is fine.

Regards,

Christian

PS: Here is the model:

connector con

Real A[3,3];

end con;

model Test  

Real phi(start=1);

con o;

equation

der(phi)=1;

o.A = {{cos(phi),0,0}, {0,1,0}, {0,0,1}};

end Test;

PPS: Find attached the out.txt which shows all errors thrown by the omc.

Attachments (1)

out.txt (185.6 KB ) - added by Schubert TUD 15 years ago.

Download all attachments as: .zip

Change History (2)

by Schubert TUD, 15 years ago

Attachment: out.txt added

comment:1 by AlexeyLebedev, 15 years ago

It works for me

Note: See TracTickets for help on using tickets.