Balancing Flexible Production and Consumption of Energy using Resource Timed Automata | IEEE Conference Publication | IEEE Xplore