Microscopic calculation of pion production in nucleus-nucleus collisions around 1 GeV·A