﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1229	Watchdog model fails on if-equations	Per Östlund	Per Östlund	"The attached model gives the following error message:
{{{
true
record SimulationResult
    resultFile = ""Simulation failed.
Error: The language feature if-equations is not supported. Suggested workaround: rewrite equations using if-expressions: equation
  if dm.watch_dog.battery_level > 0.0 then
  if dm.watch_dog.Operation_Modes.Region_0.Active.active OR dm.watch_dog.Operation_Modes.Region_0.Alarmed.active then
  der(dm.watch_dog.battery_level) = -1.0;
  else
  der(dm.watch_dog.battery_level) = 0.0;
  end if;
  else
  der(dm.watch_dog.battery_level) = 0.0;
  end if;

""
end SimulationResult;
}}}
If equations does normally work, since they are automatically rewritten to if-expressions, but in this case that seems to fail. The attached zip-file includes the model itself as well as a Word document that shows the settings and output in MathModelica."	defect	closed	high				fixed		Per Östlund AlexeyLebedev
