Nonlinear dynamics of continuous and discrete models of tall buildings