Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Error after running the simulation #17

Open
knraj opened this issue Sep 4, 2018 · 9 comments
Open

Error after running the simulation #17

knraj opened this issue Sep 4, 2018 · 9 comments

Comments

@knraj
Copy link

knraj commented Sep 4, 2018

Hi Vincent,

I have run the simulation. But the processing did not happen as there were errors written to the swmm.out log file which are as follows: AS per your suggestion am posting the error into the github as an open issue
ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 113 of [TIMESERIES] section:
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 0) 0.0

ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 114 of [TIMESERIES] section:
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 15) 40.0

ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 115 of [TIMESERIES] section:
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 0) 40.0

ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 116 of [TIMESERIES] section:
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 15) 0.0

ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 117 of [TIMESERIES] section:
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 12, 0) 0.0

ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 118 of [TIMESERIES] section:
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 0) 0.0

ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 119 of [TIMESERIES] section:
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 15) 45.0

ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 120 of [TIMESERIES] section:
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 0) 45.0

ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 121 of [TIMESERIES] section:
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 15) 0.0

ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 122 of [TIMESERIES] section:
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 12, 0) 0.0

ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 123 of [TIMESERIES] section:
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 0) 0.0

ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 124 of [TIMESERIES] section:
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 15) 50.0

ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 125 of [TIMESERIES] section:
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 0) 50.0

ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 126 of [TIMESERIES] section:
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 15) 0.0

ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 127 of [TIMESERIES] section:
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 12, 0) 0.0

Please kind guide me as to how to resolve the above issue. Would be highly grateful to you as I want to complete the end to end processing.

@vmora
Copy link
Contributor

vmora commented Sep 4, 2018

Can you look at the .inp file that has been generated at the [TIMESERIES] section. There is apparently a problem there.

@knraj
Copy link
Author

knraj commented Sep 4, 2018

I have opened the swmm.imp file. By default the following error file with the following errors got displayed:
Also in the QGIS Processing section the following errors were displayed:
Uncaught error while executing algorithm
Traceback (most recent call last):
File "C:/PROGRA1/QGIS21.18/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py", line 203, in execute
self.processAlgorithm(progress)
File "C:/Users/NAGARAJU/.qgis2/python/plugins\qgis-swmm\SwmmAlgorithm.py", line 324, in processAlgorithm
raise RuntimeError('There were errors, look into logs for details')
RuntimeError: There were errors, look into logs for details

The swmm.inp error file details:

Error Report for File C:\Users\NAGARAJU.qgis2\processing\outputs\swmm.inp

Error 201 at line 5:
[OPTIONS]
FLOW_UNITS CFS

Error 201 at line 6:
[OPTIONS]
INFILTRATION HORTON

Error 201 at line 7:
[OPTIONS]
FLOW_ROUTING DYNWAVE

Error 201 at line 8:
[OPTIONS]
START_DATE 01/01/1988

Error 201 at line 9:
[OPTIONS]
START_TIME 00:00:00

Error 201 at line 10:
[OPTIONS]
REPORT_START_DATE 01/01/1988

Error 201 at line 11:
[OPTIONS]
REPORT_START_TIME 00:00:00

Error 201 at line 12:
[OPTIONS]
END_DATE 01/01/1988

Error 201 at line 13:
[OPTIONS]
END_TIME 08:00:00

Error 201 at line 14:
[OPTIONS]
SWEEP_START 01/01

Error 201 at line 15:
[OPTIONS]
SWEEP_END 12/31

45 more errors found in file.

@knraj
Copy link
Author

knraj commented Sep 4, 2018

There is a dateformat incompatibility between Postgres database (where the dateformat appears correct) and the table loaded within QGIS. Now while running the simulation, I deselect timeseries, I get the following error:

Uncaught error while executing algorithm
Traceback (most recent call last):
File "C:/PROGRA1/QGIS21.18/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py", line 203, in execute
self.processAlgorithm(progress)
File "C:/Users/NAGARAJU/.qgis2/python/plugins\qgis-swmm\SwmmAlgorithm.py", line 396, in processAlgorithm
feature['Time'] = convert_date(tbl[0])+' '+tbl[1]
File "C:/Users/NAGARAJU/.qgis2/python/plugins\qgis-swmm\SwmmAlgorithm.py", line 66, in convert_date
if not m : raise RuntimeError
RuntimeError

@vmora
Copy link
Contributor

vmora commented Sep 4, 2018

What do you mean by "deselect timeseries" ?

@knraj
Copy link
Author

knraj commented Sep 4, 2018

I have not selected the timeseries object as part of the simulation run.

@vmora
Copy link
Contributor

vmora commented Sep 4, 2018

I think it's mandatory because the case without timeseries is not handled.

@knraj
Copy link
Author

knraj commented Sep 4, 2018

If I select the timeseries the date format within QGIS is incompatible with the following format: YYYY-mm-dd HH:mm:ss. The timeseries table within QGIS has a different datetime format which I think the python program is not able to convert as it is not in the standard format.

@vmora
Copy link
Contributor

vmora commented Sep 4, 2018

Can't it be converted to the proper format ?

@knraj
Copy link
Author

knraj commented Sep 6, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants