﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5979	OMEdit dies when checking model with mutually recursive constants	John Tinnerholm	Per Östlund	"Consider the following model 


{{{
package UT
  constant Real CONST1 = CONST2 * 3;
  constant Real CONST2 = CONST1 + 3;
  function f
    output Real ro;
  algorithm
    ro := CONST1 + CONST2;
  end f;
end UT;

}}}

I am on Windows using 
OpenModelica v1.16.0-dev-170-g3af6123f8 (64-bit)

If I do check model using the new frontend from the GUI OMEdit dies without prompting the user. It seems to do this no matter if I use NF or OF. 

If I run the regular 

omc test.mo

I get the expected error message:

{{{

C:\Users\johti17\Documents>omc test.mo
Error processing file: test.mo
Error: Cyclically dependent constants or parameters found in scope UT: {CONST2,CONST1} (ignore with -d=ignoreCycles).
Error: Error occurred while flattening model UT

# Error encountered! Exiting...
# Please check the error message and the flags.

Execution failed!

}}}

Thanks to Martin who made me test it:) "	defect	closed	critical	1.16.0	OMEdit	v1.16.0-dev	fixed		Martin Sjölund Adrian Pop Per Östlund Adeel Asghar
