Minimal realizations under controllability