Portugal's population is 8x smaller than Germany, though, so the production is actually similar.
At the same time, Portugal does not pollute the environment as much with huge coal plants, and does not run any nuclear reactors. So Portugal has largely solved their energy problems, while Germany still has a long way to go.
The major problem for Germany (and France, England, US, and the large developing nations like India, Brazil and China) is the amount of energy consumed by large industries. This is the most important factor, since covering the electricity needs of an average home is pretty easy nowadays -- it's the huge factories which are difficult to run on renewables, at least at this moment.
Still, countries like Austria, Portugal, but also Sweden and Denmark, show that going renewable is a good direction. There are still huge obstacles to be overcome and the solutions will have to involve more responsible approach to energy.