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

Compile Problems: Assertion failed: NULL == \

Compile Problems: Assertion failed: NULL == \

Hi, I try to compile a simple code

Code:

class Iteration_step


import Modelica.SIunits;
parameter SIunits.Time delta_t = 0.5;

constant Real a[:] = {4,2,6,-1,3,5,7,4,-3,-6};
Real x;
Integer j(start=1);

algorithm
    when sample(0, delta_t) then
    x := a[j];
    j := j + 1;   
    end when;

end Iteration_step;

but i get this errow message: Assertion failed: NULL == \

Has anybody an idea?

Re: Compile Problems: Assertion failed: NULL == \

What revision and OS of OpenModelica are you using? Everything runs fine for me on 64-bit Linux. Even valgrind doesn't complain.

Re: Compile Problems: Assertion failed: NULL == \

I used Modelica 1.9.0 Beta 2 revision 13495 on Windows7. Today I installed the newest version of Modelica 1.9.0 Beta 4 revision 15030 but the problem is still the same.

Re: Compile Problems: Assertion failed: NULL == \

Hello Lars

I get this error in Windows 7:

Assertion failed: NULL == "index out of bounds", file Iteration_step.c, line 341

Best regards
Koldo

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