The error message tells that a certain .par file cannot be opened. This can be an access right conflict.

First, outcomment the NumCores line in trend.c. Maybe it is a conflict with a parallel running process.
Next, check if that file exists in the data folder. If so, delete it. Maybe it was locked by a previous process.

Then try again and post if the problem still persists.