﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5624	if else ODE and Algebraic Equation	Matheus Campanini Mughrabi <matheus.mughrabi@…>	Lennart Ochel	"Hello, everyone!

I am facing a problem with a model I`m developing in OpenModelica and I created I simpler example to show the issue:

model teste
  Real x;
equation
  if time<1000 then
    der(x) = 10;
  else
    x = -5;
  end if;    
end teste;

So what happens is that when ""time = 1000"" the simulation stops, I imagine it`s a discontinuity issue. Does anybody know how to solve this problem?

Thank you!"	discussion	new	high	Future	Backend	v1.13.2		If Else ODE Algebraic	Karim Adbdelhak Andreas Heuermann
