﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1420	Array constants are reconstructed in every time step	Martin Sjölund	Martin Sjölund	"{{{class A
  constant Real i[:] = fill(1, 10000);
  Real r = min(j*time for j in i);
end A;}}}

This will cause the array constant to be created in every single time step. The same goes for functions that take a lookup array + index.

Implementation tips: Use the common subexpression elimination that is performed for functions right now. We need something similar; but for Modelica arrays you need to do a top-down traversal instead of bottom-up due to the way arrays are represented in the C runtime."	defect	closed	high				fixed		Martin Sjölund
