﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3477	Problem with simplified algorithms in certain cases	Lennart Ochel	Lennart Ochel	"Some simplifications on algorithms may have the result that output variables disappear. This is probably one of the simplest test cases to show the issue:
{{{#!mo
model M
  Real x;
algorithm 
  if initial() then
    x := cos(time);
  end if;
end M;
}}}


This is the error dump:
{{{
[Compiler/SimCode/SimCodeUtil.mo:5122:7-5122:164:writable] Error: Internal error Inverse Algorithm needs to be solved for {x} in
algorithm
Discrete variables are not supported yet.
[Compiler/SimCode/SimCodeUtil.mo:5127:7-5127:88:writable] Error: Internal error function createSingleAlgorithmCode failed
[Compiler/SimCode/SimCodeUtil.mo:456:5-456:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]
}}}
"	defect	closed	high	1.9.4	Backend		fixed		
