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
  • Index
  • » Users
  • » Lars
  • » Profile

Posts

Posts

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.

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?

  • Index
  • » Users
  • » Lars
  • » Profile
You are here: