Opened 5 years ago

Last modified 5 years ago

#5572 new defect

Delay operator in a for loop of an algorithm section — at Version 2

Reported by: adrien.guironnet@… Owned by: somebody
Priority: high Milestone: Future
Component: Backend Version:
Keywords: Cc: alireza.masoom@…, ni.ding@…, Karim Adbdelhak, Andreas Heuermann

Description (last modified by Vitalij Ruge)

The following simple model using a delay operator in a for-loop inside an algorithm section is not handled by OpenModelica.

 model test3
     Real x=sin(377*time);
     Real z;
     parameter Real tau[:]={0.01,0.02};

  equation

  algorithm
     for k in 1: 2 loop
        z:=delay(x,tau[k]);

     end for;

    end test3;

original post:
https://stackoverflow.com/questions/56916012/error-due-to-delay-operator-in-algorithm-section

Change History (2)

comment:1 by Francesco Casella, 5 years ago

Is is possible to use equation instead of algorithm?

comment:2 by Vitalij Ruge, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.