4

Is there a fix or workaround for El Capitan breaking EnergyPlus?

I'm not a Mac user myself, but I've now had a couple of people ask me about EnergyPlus failing to run under El Capitan.

It seems like it's related to EnergyPlus putting files in /usr/bin and El Capitan no longer allowing that (the "rootless" / System Integrity Protection feature).

Is there a fix/workaround available for this?

This is a particular concern for me as I'm trying to get Eppy's wrapper for the EnergyPlus CLI working cross-platform and want to know if there is either a solution I can add to the wrapper, or at least what I need to add to the documentation so that Mac users can fix the issue for themselves.

Jamie Bull's avatar
5.1k
Jamie Bull
asked 2016-01-11 04:31:02 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2016-01-11 11:24:57 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

7

Another workaround is to use the Command Line Interface (CLI), present since EnergyPlus 8.3. This is also the preferred method to invoke EnergyPlus.

To see all the command line options run /Applications/EnergyPlus-8-3-0/energyplus -h

For a typical simulation:

/Applications/EnergyPlus-8-4-0/energyplus -w /Applications/EnergyPlus-8-4-0/WeatherData/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw /Applications/EnergyPlus-8-4-0/ExampleFiles/RefBldgMediumOfficeNew2004_Chicago.idf

I have also created an EnergyPlus issue.

MarkAdams's avatar
1.8k
MarkAdams
answered 2016-01-11 07:16:25 -0500
edit flag offensive 0 remove flag delete link

Comments

Great. Sounds like we won't have any trouble with Eppy then as this is what we do already.

Jamie Bull's avatar Jamie Bull (2016-01-11 08:01:01 -0500) edit
add a comment see more comments
2

This is a far-from-ideal workaround from one of the people having difficulties:

I think I’ve found a work around now which came from a related problem someone posted about on unmethours a while back [this one?], so it doesn’t come up if you search for El Capitan.

I think there is probably a much more elegant solution but I am currently running it from the application folder using terminal with some extra steps below:

1) Edited the runenergyplus file to comment out the lines which tell it to delete some files after running (otherwise it runs the first time but not again as it can’t then find the files)

#Delete additional files
#for filename in $LINK_NAMES Energy+.ini eplusout.end;
#do
#  if [ -f $filename ]; then
#    rm $filename
#  fi
#done

2) Set the environment variable before running:

export ENERGYPLUS_DIR=/Applications/EnergyPlus-8-3-0

3) Run the file from terminal specifying the locations:

"/Applications/EnergyPlus-8-3-0/runenergyplus" "/Applications/EnergyPlus-8-3-0/modelrun16010501.idf" “GBR_LONDON_GATWICK_IWEC.epw"

This is all very clumsy and I am sure that a bit more judicious editing of the runenergyplus script would be a better answer but I don’t really have the time or skills to do that and this seems to be working.

As the user says, there must be a better solution than this!

Jamie Bull's avatar
5.1k
Jamie Bull
answered 2016-01-11 06:49:07 -0500, updated 2016-05-17 18:27:41 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments