Error while calculation

Actually I need to introduce randomness of materials in my soil volume. For that, I have divided my whole soil volume into 1000 different soil volumes as shown in the figure. I am trying to automate my model with help of python script. 

But when I am reaching the calculation stage and initiating the analysis. It used to project this error every time:

" An error occurred in the application".

Is it due to the complex model I have created or any other problem associated with my system.

I am also attaching bug report for reference. Please guide me on this:

2677.bugreport.txt

Any help will be highly appreciated.