Long Term Simulations of Space Charge and Beam Loss Observed in the CERN Proton Synchrotron