﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6186	"Assert triggered during initialization despite ""not initial()""  if-statement"	Andreas Heuermann	Andreas Heuermann	"When formulating an assert that is not allowed to be checked during initialization omc will check it any way and the assert triggers.

See following example:
{{{
loadString(""
model missingInitial
  Real x;
equation
  x = time;
  if not initial() then
    assert(not x==0, \""This assert is not allowed to trigger during initalization.\"",level=AssertionLevel.warning);
  end if;
end missingInitial;
""); getErrorString();

setCommandLineOptions(""-d=newInst,optdaedump --removeSimpleEquations=none""); getErrorString();
simulate(missingInitial); getErrorString();
}}}
{{{
assert            | warning | The following assertion has been violated during initialization at time 0.000000
|                 | |       | not x == 0.0
assert            | warning | This assert is not allowed to trigger during initalization.
LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
LOG_SUCCESS       | info    | The simulation finished successfully.
}}}"	defect	assigned	high		Backend	v1.17.0-dev		assert, initial, algorithm	Karim Adbdelhak
