A new multiscale tool for simulating smart-grid energy management based on a systemic approach. (September 2021)