"We leave here with very good feelings".
Lopetegui, though, highlighted the strengths of Germany as both European giants extended unbeaten runs that date back to Euro 2016.
Germany next face Brazil in Berlin on Tuesday, while Spain host Argentina in Madrid in another battle of World Cup heavyweights.
Spain substitute Diego Costa had chance to snatch a late victor but he could not convert and the two countries - who could meet again in the World Cup semi-finals - ended up sharing the honours.
Germany's Thomas Mueller celebrates after scoring during an worldwide friendly soccer match between Germany and Spain.
Brazil play Germany in the next match while Russian Federation meet France.
Hummels was at fault for the opening goal, leaving too much space for Iniesta to tuck the ball behind the German defence.
The visitors controlled the ball but failed to extend the lead as David Silva squandered a good chance from inside the box with 18 minutes played.
But as Germany gradually gained control the hosts levelled in stunning fashion in the 35th minute.
The second half started in the same action-packed way as the first. His fierce shot from outside the area was pushed around the post by De Gea's fantastic save.
Ter Stegen was outstanding on Spain's best chance, a shot from point-blank by Isco, while De Gea deftly handed a strike by Ilkay Gndogan.
"Both teams will have more to show by the time the World Cup comes around".
Inter Milan full-back Miranda scored the opener while Barcelona midfield pair Philippe Coutinho and Paulinho scored one apiece at Moscow's renovated Luzhniki stadium where the World Cup final will be played.
"I'm happy with the performance of the whole team, although there were things that were more positive than others in the match". Holland won't take part in the Worlc Cup and there dismal form continued as the Three Lions edged them past in the match through a solitary goal from Jesse Lingard.