A penalized version of the local minimization scheme for rate-independent systems. (May 2021)