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

Revision history [back]

The issue here is that changes made to the model in the arguments section are not persisted (a clone of the model is passed into the arguments method rather than the actual model). So when you set the name of that schedule in the arguments section, the schedule name changes in the cloned model but not in the model you are working with. When the model is passed into the run method the schedule has the original name.

The other note is that you should not change the name of the alwaysOffDiscreteSchedule, the model finds that schedule by name so if you change the name the model will not find it and will create a new one. I would suggest making the default be either the d_auto_fan_sch.name (without your changes) or make it be some key like "New Schedule". If "New Schedule" is passed in, you can clone the alwaysOffDiscreteSchedule, change it's name, and use that for your needs.