The model of the space-time analogy in the optimization of the renovation order of buildings