Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Error in lowerWhenEqn - What's wrong there?

Error in lowerWhenEqn - What's wrong there?

Hi All,

i wanted to continue to work on a "old" model which worked fine a few month ago. Now i have this problem.

/cat /tmp/omshell.log
- DAELow.lowerWhenEqn: Error in lowerWhenEqn.
when time >= myFifo.nextWriteEvent OR myFifo.interrupt ...

There are the corresponding code snippets.

Code:


  when (time >= nextWriteEvent or interrupt) then
    for i in 1:Nout loop //index auch uebergeben
      dvarout[i] = varout[i];
      numwritten[i] = fifoOutReal(fd_out, dvarout[i], i, Nout+1); //write2fifo
    end for;
    if interrupt then
      timewritten = fifoOutReal(fd_out, time, 0, Nout+1);  // send SimTime
    else
      timewritten = fifoOutReal(fd_out, nextWriteEvent, 0, Nout+1);  // send SimTime==nextWriteEvent
    end if;
    nextReadEvent = time + CompTime;
  end when;

This was an interface to a external controller application.

Any idea what may be wrong there??

There are 0 guests and 0 other users also viewing this topic
You are here: