Holes in the spectrum of functions generating affine systems