The URBANopt simulation stars but fails to run on Windows

Well, weird… but I just gave another path to the folder (to a folder on the desktop) and, even though the command prompt never closed, the simulation seemed to run. Got some results

Anyways… I am sending the command prompt that never finished. Seemed odd, as if the simulation directory does not exist (at least it is what is written). I really don’t understand, just got confused.

Hey @Thiago_Goes ,

Thanks for the full description here. I think the problem might actually result from the . in your Username. I will try to recreate this case when I get the chance and see if I can implement a fix on the Dragonfly/Ladybug Tools end. It’s possible that this issue is within URBANopt CLI end, in which case I will let the developers at NREL know and we can hopefully get it fixed in the next release.

Thanks, @chris.
If possible, let me know.

Hey @Thiago_Goes ,

I tried running some tests on my end but I am actually not sure what was originally happening here. I was not able to recreate the error by using a simulation folder like yours:

Furthermore, I can see that everything seems to be succeeding in the very last screenshot you posted even though everything is running out of a project folder with your unsername in the path.

Are you still able to recreate your original issue at all? If not, we might just have to chalk this one up to an odd fluke that seems to resolve tiself.

The command prompt never closes. If I do, the run urbanopt component gets the sqls. However, both the results reader give me an error. The first time I got the results (which generated the plot) I in fact closed the command prompt before finishing all 13 buildings.

The sql to EUI reader gives me the following error:

  1. Solution exception:index out of range: 0

And the aritimetic operation:

  1. Solution exception:Length of DataCollections must match in order to add them together. 12 != 6

I don’t know if it is supposed to be like this, but there are 13 branches, but some have multiple results

Ah, Ok. It seems like you just didn’t wait for the simulation to finish. On a high-end machine, the simulation can finish in 5-10 minutes but it will take somewhere between 30 minutes to an hour to finish on a typical laptop. Did you wait that long for the simulation to be done?

I am not sure.
I defenetly waited around 20 min or so. All the 13 folders ran. The last line is DONE, result = true.
I don’t know if I have to wait after that. Should I?

Just to replicate the case that I got dragonfly to plot some results, after the first 6 simulations are done and the command prompt starts another 6, I get no warnings or errors. However there are only six simulations.

I will keep on running a hour or so an post it here

Yeah… that was it. :man_facepalming:t4:

It does a few lines of “DONE, Result = true” before it finishes.
So it works, as long as I define a folder path different than the default.

Thanks for all your patience, @chris

1 Like

I am also getting the same error from URBANOpt now. It was running fine yesterday. I ran versioner and today I am getting:

  1. Solution exception:The URBANopt simulation failed to run.
    No results were found at:
    C:\Users\Username\simulation\project\run\honeybee_scenario

It seems this is becoming a common error for people over the last month. @chris you already pushed a change for this correct? Is there a reason the versioner would not be correcting the run.py problem?
demo.gh (382.0 KB)
This is a file that could use a sync, but even after syncing components I get the same error. I use a PC. I tried going back to 1.4.1, then letting versioner decide. Nothing has worked to get me beyond this error so far. I am also getting a ddy file error with the new 1.4.2 component for download epw.

Carrying this thread on here: URBANOpt not working after LB Versioner run

The demo.gh file ran fine for me both before and after running the Versioner. You can see my explanation for what I think could have happened on that other post where you continued things.

I have same problem when run URBANopt,how do you gave another path to thefolder?

I tried to install this manually.But there was a problem in the last step.

@Thiago_Goes @chris
hi, Thiago & Chris. I have the same problem.
Can you tell me how you solved this problem Thanks

i copy the folder to desktop not solve this problem~ :sob:

Whether I didn’t generate the problem caused by this folder(\run\honeybee_scenario)

I had the same problem, but when I put the file on the desktop, the problem didn’t resolve

Same issue. How to resolve it in LB Tools 1.6?

When i changed the file path am getting like this.

There’s a good chance that this issue is the result of the bug here that has been fixed and the patch is available via the LB Versioner component:

@vijesh 's second issue seems a bit different but the message is indicating that the SQL result file is open in another program and has been locked. So I assume that closing that other program should allow the results to be read from the SQL file.