You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
within PVSystems.dss file the following error occurs:
PVSystem.solar_1.phases: Value (0) cannot be zero
Complete error on running DISCO
Running DISCO...
ERROR running DISCO: 2022-10-28 15:26:38,958 - ERROR [disco.cli.upgrade_cost_analysis upgrade_cost_analysis.py:227] : Unexpected error in upgrade cost analysis job=REopt_baseline_scenario
Traceback (most recent call last):
File "C:\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\disco\cli\upgrade_cost_analysis.py", line 221, in run
run_job(job, config, jobs_output_dir, file_log_level)
File "C:\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\disco\cli\upgrade_cost_analysis.py", line 308, in run_job
simulation.run(
File "C:\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\disco\extensions\upgrade_simulation\upgrade_simulation.py", line 125, in run
determine_thermal_upgrades(
File "C:\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\jade\utils\timing_utils.py", line 130, in timed_
return _timed_func(collector, func, *args, **kwargs)
File "C:\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\jade\utils\timing_utils.py", line 139, in _timed_func
return func(*args, **kwargs)
File "C:\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\disco\extensions\upgrade_simulation\upgrades\automated_thermal_upgrades.py", line 48, in determine_thermal_upgrades
simulation_params = reload_dss_circuit(dss_file_list=initial_dss_file_list, commands_list=None, **initial_simulation_params)
File "C:\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\jade\utils\timing_utils.py", line 130, in timed_
return _timed_func(collector, func, *args, **kwargs)
File "C:\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\jade\utils\timing_utils.py", line 139, in _timed_func
return func(*args, **kwargs)
File "C:\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\disco\extensions\upgrade_simulation\upgrades\common_functions.py", line 65, in reload_dss_circuit
check_dss_run_command(f"Redirect '{dss_file}'")
File "C:\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\disco\extensions\upgrade_simulation\upgrades\common_functions.py", line 1362, in check_dss_run_command
result = dss.Text.Command(f"{command_string}")
File "C:\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\opendssdirect\Text.py", line 17, in Command
CheckForError()
File "C:\urbanopt-cli\example_files\python_deps\python-3.10\lib\site-packages\dss\_cffi_api_util.py", line 128, in _check_for_error
raise DSSException(error_num, self._get_string(self._lib.Error_Get_Description()))
dss._cffi_api_util.DSSException: (#2020031) PVSystem.solar_1.phases: Value (0) cannot be zero.
[file: "C:\urbanopt-cli\disco_example_project\run\reopt_baseline_scenario\opendss\dss_files\PVSystems.dss", line: 1]
[file: "C:\urbanopt-cli\disco_example_project\run\reopt_baseline_scenario\opendss\dss_files\Master.dss", line: 12]
Hi,
A bit of context about why this error message was introduced: previously this invalid phases=0 was being silently ignored and the phases value was left as the previously set value, or default value (3).
You could see that by running the .dss script and then inspecting the elements through one of the APIs.
This kind of issue is usually a conversion error and blows up sooner or later.
I'd recommend either investigating why phases=0 is being used in the first place (doesn't make much sense but there could be more context I'm not aware). If the intention is to leave phases at the default value, just removing phases=0 would do that.
To replicate the error:
In the URBANopt cli,
within PVSystems.dss file the following error occurs:
PVSystem.solar_1.phases: Value (0) cannot be zero
Complete error on running DISCO
attached PVSystems.dss:
The text was updated successfully, but these errors were encountered: