Molecular dynamics simulations of nanopillar compression