Within the linear theory of elastic-plastic body we carried out the modeling of technological process of annealing: slow heating stage, the holding stage under constant temperature and slow cooling step. Holding stage is simulated with consideration of creeping properties of materials. Boundary value problems are examined and patterns responsible for the removal of residual stresses at temperature influence are described. An analytical solution is found. It is proved that the holding stage is essential for describing the process of residual stress relief.