The code was ignoring exceptions that occurred in subprocesses. Changed this to fail on the first exception detected.
There was hard-coded logic to pick a volt-var control function based on a 5 kW PVSystem capacity. Made the the control function and threshold configurable.
Set defaults for OpenDSS text parsing. The code was failing in cases where the number of phases was not set explicitly.