The impure annotation should not be needed.
function impureFunction output Real y; end impureFunction;