Memory usage grows on SQL Server Analysis Services 2012 until cubes fail to process
From a comment by Robin Blondon:

I tested with with SP1 through SP4 and it looks like SP4 is the only one that has this issue. I submitted a bug report On Azure Feedback.

The suggested advice would be to upgrade to a newer version of SQL Server Analysis Services, since SQL Server 2012 is out of mainstream support: