Challenge in running des_example in Dragonfly

Hi there,
@chris
I tried to run des_example in Dragonfly but I faced the following error:

Usage: uo_des build-sys-param [OPTIONS] SYS_PARAM_FILENAME SCENARIO_FILE
FEATURE_FILE [MODEL_TYPE]
Try ‘uo_des build-sys-param -h’ for help.
Error: Got unexpected extra argument (time_series)
Failed to translate DES to Modelica.
No results were found at:
C:\Users\bmohs\simulation\Buffalo_Development_DES\run\honeybee_scenario\des_modelica
Traceback (most recent call last):
File “C:\Program Files\ladybug_tools\python\lib\runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “C:\Program Files\ladybug_tools\python\lib\runpy.py”, line 86, in run_code
exec(code, run_globals)
File "C:\Program Files\ladybug_tools\python\Scripts\uo_des.exe_main
.py", line 7, in
File “C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py”, line 1130, in call
return self.main(*args, **kwargs)
File “C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py”, line 1055, in main
rv = self.invoke(ctx)
File “C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py”, line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py”, line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py”, line 760, in invoke
return __callback(*args, **kwargs)
File “C:\Program Files\ladybug_tools\python\lib\site-packages\management\uo_des.py”, line 162, in create_model
gmt = GeoJsonModelicaTranslator(
File “C:\Program Files\ladybug_tools\python\lib\site-packages\geojson_modelica_translator\geojson_modelica_translator.py”, line 155, in init
self._system_parameters = SystemParameters(sys_params_filepath)
File “C:\Program Files\ladybug_tools\python\lib\site-packages\geojson_modelica_translator\system_parameters\system_parameters.py”, line 61, in init
raise Exception(f"Invalid system parameter file. Errors: {errors}“)
Exception: Invalid system parameter file. Errors: [”‘weather’ is a required property"]
Runtime error (PythonException): Failed to translate DES to Modelica.
No results were found at:
C:\Users\bmohs\simulation\Buffalo_Development_DES\run\honeybee_scenario\des_modelica
Traceback (most recent call last):
File “C:\Program Files\ladybug_tools\python\lib\runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “C:\Program Files\ladybug_tools\python\lib\runpy.py”, line 86, in run_code
exec(code, run_globals)
File "C:\Program Files\ladybug_tools\python\Scripts\uo_des.exe_main
.py", line 7, in
File “C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py”, line 1130, in call
return self.main(*args, **kwargs)
File “C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py”, line 1055, in main
rv = self.invoke(ctx)
File “C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py”, line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py”, line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py”, line 760, in invoke
return __callback(*args, **kwargs)
File “C:\Program Files\ladybug_tools\python\lib\site-packages\management\uo_des.py”, line 162, in create_model
gmt = GeoJsonModelicaTranslator(
File “C:\Program Files\ladybug_tools\python\lib\site-packages\geojson_modelica_translator\geojson_modelica_translator.py”, line 155, in init
self._system_parameters = SystemParameters(sys_params_filepath)
File “C:\Program Files\ladybug_tools\python\lib\site-packages\geojson_modelica_translator\system_parameters\system_parameters.py”, line 61, in init
raise Exception(f"Invalid system parameter file. Errors: {errors}“)
Exception: Invalid system parameter file. Errors: [”‘weather’ is a required property"]
Traceback:
line 642, in run_des_modelica, “C:\Program Files\ladybug_tools\python\Lib\site-packages\dragonfly_energy\run.py”
line 160, in script

I would appreciate it if you could kindly assist me to solve the challenge

Thank you very much for your time and assistance

Sincerely
Behnam

Hey @behnammmohseni ,

It looks like you are using an older version of that sample file with a newer installation of Ladybug Tools. Because the DES workflows have been heavily refactored in the last few months, I recommend running the LB Versioner to make sure that you have the latest development version.

Then you should use the latest version of that sample file here on the dragonfly-grasshopper repo.

Also note that, to use the URBANopt DES workflows, you must have Docker Desktop installed and running on your system:

Note that Docker is free as long as you are not using it in the context of a large company for which you are working.

1 Like

Hello @chris,

Hello,
I am a new user of dragonfly/urbanopt/modelica. I tried to run the DES example included in LadyBug and the simulation seemed to complete. However, when I check the DES results folder, I only see the “stdout.log” file, while the others are missing. The “stdout.log” file reads as follows:

true
true
true
“”
record SimulationResult
resultFile = “”,
simulationOptions = “startTime = 17280000.0, stopTime = 17366400.0, numberOfIntervals = 960, tolerance = 1e-06, method = ‘dassl’, fileNamePrefix = ‘des_modelica.Districts.DistrictEnergySystem’, options = ‘’, outputFormat = ‘mat’, variableFilter = ‘.*’, cflags = ‘’, simflags = ‘’”,
messages = “Failed to build model: des_modelica.Districts.DistrictEnergySystem”,
timeFrontend = 0.0,
timeBackend = 0.0,
timeSimCode = 0.0,
timeTemplates = 0.0,
timeCompile = 0.0,
timeSimulation = 0.0,
timeTotal = 0.0
end SimulationResult;
"[/var/lib/jenkins3/ws/LINUX_BUILDS/tmp.build/openmodelica-1.22.1/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1089:9-1089:67:writable] Error: Internal error NFCeval.evalBinaryMul failed to evaluate ‘0.0 / 0.0 * 0.0025‘
"

Do you have any clues about what is wrong? I would really appreciate your guidance.

I am using:
LadyBug 1.8, Docker Hub, Buildings 12.1.0, OpenModelica 1.26 (nightly build)

Thanks.