Optimization of renewable energy for buildings with energy storages and 15-minute power balance | Synapse