Nonlinear analysis of an historical building under earthquake loading