Numerical solution of penalty formulations for constrained mechanical systems using heterogeneous multiscale methods Article in Journal of Computational and Applied Mathematics (May 2014)