Advances in energy-saving technology is main way to achieve carbon neutrality. With the development of digital twin, building the physical-virtual data space for improving energy management capacity of enterprises has received tremendous attention. The energy behaviour model implementing accurate simulation and prediction of energy state is the core meta-model of energy-efficient manufacturing digital twin (EMDT). The widely used state-based energy modelling assumes constant power in operation state and approximately fits the energy behaviour without considering uncertain operation environment, resulting in energy behaviour distortion. A data-driven hybrid petri-net (DDHPN) inspired by both the state-based energy modelling and machine learning was developed for establishing the energy behaviour meta-model. Gaussian kernel extreme learning machine is proposed to fit the instantaneous firing speed of energy consumption continuous transitions in DDHPN. DDHPN-based energy behaviour model is driven by physical data under real-time working conditions, operating parameters, and production load for generating a virtual data space of energy management. Finally, DDHPN was integrated into the EMDT model using unified modelling language. The application in extrusion process and die casting process show that the presented model has higher accuracy in energy behaviour prediction. Furthermore, a digital-twin-based energy management prototype system for extrusion workshop demonstrates its potential.