Question-and-Answer Resource for the Building Energy Modeling Community
Get s tarted with the Help page
Ask Your Question

Revision history [back]

I'm pretty sure it's an ASCII to UTF-8 problem, which PAT unfortunately keeps exhibiting over time. I've ran into it more than I would have liked to, and I also found out that that having IDF comments with special characters (such as in my case (see link to issue #2671 below), or ° in yours) can produce a crash.

This is similar to this question and the associated opened Github PAT issue#84, and this old issue on OpenStudio Issue#2671 that I had opened.

The error message is informative provided that you can decipher it:

Found error in state 'ep_measures' with message ["\"\\xB0\" from ASCII-8BIT to UTF-8...

From a cursory look at your DOE_FullServiceRestaurant/in.idf file, you have special characters in IDF comments for your design days:

! Using Design Conditions from "Climate Design Data 2009 ASHRAE Handbook"
! Sacramento Metropolitan Ap_CA_USA Extreme Annual Wind Speeds, 1%=10.4m/s, 2.5%=8.7m/s, 5%=7.8m/s
! Sacramento Metropolitan Ap_CA_USA Extreme Annual Temperatures, Max Drybulb=-2.7°C Min Drybulb=41.3°C

Try removing all of these where you find a ° and re-run your PAT analysis. I don't have time to test it but I genuinely believe it'll fix your problem...

TL;DR: Try removing all of special characters (non-ASCII), in your case all the degree signs °, and re-run your PAT analysis. I don't have time to test it but I genuinely believe it'll fix your problem...


I'm pretty sure it's an ASCII to UTF-8 problem, which PAT unfortunately keeps exhibiting over time. I've ran into it more than I would have liked to, and I also found out that that having IDF comments with special characters (such as in my case (see link to issue #2671 below), or ° in yours) can produce a crash.

This is similar to this question and the associated opened Github PAT issue#84, that I just commented on to include this question, and this old issue on OpenStudio Issue#2671 that I had opened.

The error message is informative provided that you can decipher it:

Found error in state 'ep_measures' with message ["\"\\xB0\" from ASCII-8BIT to UTF-8...

xb0 is the hex code for the degree sign °.

From a cursory look at your DOE_FullServiceRestaurant/in.idf DOE_FullServiceRestaurant/in.idf file, the only non-ascii characters you have special characters are the design sign, and they appear in IDF comments for your design days:days, eg:

! Using Design Conditions from "Climate Design Data 2009 ASHRAE Handbook"
! Sacramento Metropolitan Ap_CA_USA Extreme Annual Wind Speeds, 1%=10.4m/s, 2.5%=8.7m/s, 5%=7.8m/s
! Sacramento Metropolitan Ap_CA_USA Extreme Annual Temperatures, Max Drybulb=-2.7°C Min Drybulb=41.3°C

Try removing Tip: You can use a text editor that supports regular expressions (I use ViM, but most editors such as notepad++ on Windows do support it), and use the regex pattern [^\x00-\x7F] to search for all of these where non-ascii characters and can replace them with blanks or whatever you find a ° and re-run your PAT analysis. I don't have time to test it but I genuinely believe it'll fix your problem...

see fit.