Print the main menu in overridden node page
If you want to render the menu for sitemap purpose, better to use the "Sitemap" module

Configuration page from this link

admin/config/search/sitemap


You can see the below screen on configuration page,



Just check the menu, which you want to display in sitemap.

After this you can access your page with /sitemap url and you can see your menu there on that page.