By the year 2030, Morocco would have invested $40 billion in projects aiming to develop the energy sector.