Hello,
The 'get system' output shows the total memory available, i.e. the actual physical memory on the device.
The 'get mem' output does not add up to the total memory displayed by the "get system" output.
Please see below KB:
https://kb.juniper.net/InfoCenter/index?page=content&id=KB19945&actp=search
Regards,
Rushi