Getting information about simulation errors

  • karooga
  • Topic Author
More
10 Nov 2014 10:35 #2680 by karooga
Hi Paul,

Is there a way to get more information about the cause of a simulation error?

When I use mpsimulate, the simulation appears to run to completion but then it falls over (i.e. mpsimulate returns false). I suspect it is an ill-formed weather file, but I have no way of knowing with some certainty.

Regards
Paul

Please Log in or Create an account to join the conversation.

  • pgilman
More
10 Nov 2014 14:23 #2681 by pgilman
Replied by pgilman on topic Getting information about simulation errors
Dear Paul,

Unfortunately, SamUL's error reporting options are limited. In the new version of SAM, we're replacing SamUL with the LK scripting language which offers better error reporting than SamUL.

For now, you might try running the simulation in SAM to see if the errors it reports are any more informative. Also, if you suspect the problem is with the weather file, you might try running your script with a different weather file that you know is good. Again, in the new version of SAM, we've improved the weather file reader so that it does a better job of reading weather files with small formatting problems that caused the old reader to fail, and also is better at reporting problems with weather files.

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

  • karooga
  • Topic Author
More
11 Nov 2014 07:54 #2682 by karooga
Replied by karooga on topic Getting information about simulation errors
Hi Paul,

Thanks for your reply and your on going support. :-)

I'm pretty sure it is the weather file that was causing the problem, so I've moved to a weather set that I have more confidence in.

Now what I'm seeing now is that the output that is being generated with my SAM script is identical for all locations. I've based the script on the sample ZSAM file that demonstrates mpsimulate usage in SamUL. Very straight forward, only changing the climate.location. When extracting the results I'm using resetoutputsource. While I am specifying the correct run number and simulation case, it's almost as though it keeps pulling data from the base case with the same default settings. The other theory I had was that the Excel Data Exchange part of my case model was some how interfering or not available when running from SamUL. I couldn't find anything in the help documentation to support this idea though.

Interestingly when I had a problem with the weather file, the model would run to completion before indicating that there was any problem (mpsimulate() == false).

regards
Paul

Please Log in or Create an account to join the conversation.

Moderators: pgilman
Powered by Kunena Forum