A Flexible High Level Modelling Methodology For Power And Energy Consumption