This is an encouraging story but the headline is very misleading. It would be more accurate to say, "Portugal's ELECTRICITY GENERATION runs for four days straight on renewable energy alone."
In Portugal (as in most Western European countries), electricity accounts for about 20% of energy consumption (source: Eurostat). Transport and heating are still almost totally dependant on non-renewable fossil fuels. So there's a long way to go.