pyswmm / pyswmm

Python Wrappers for SWMM
https://www.pyswmm.org
Other
291 stars 135 forks source link

ERROR 185:invalid parameter value for LID %s. #518

Closed noneaddress closed 4 months ago

noneaddress commented 8 months ago

Describe the bug when simulating a model with pyswmm, ERROR 185:invalid parameter value for LID %s. occured. The inp file runs without error in EPA Swmm 5.2 Software. I also tried to run the file using the dll file in python, and again there was no error. Here is the python code using dll file.

from RawSWMMApi import swQkSt as sw

sw.open('lid.inp',lid.rpt')
sw.start(1)
while True:
    print('go')
    if sw.step() == 0:
        break

sw.end()

To Reproduce

with Simulation("lid.inp") as sim:
    for sub in Subcatchments(sim):
        sub.width = math.sqrt((sub.area * 10000)

        i += 1
    for j in range(0, i): 
        LidGroups(sim)[f'S{j}'][0].unit_area = chromesome[j][0]
        LidGroups(sim)[f'S{j}'][0].full_width = math.sqrt(chromesome[j][0] / 2)

        a=0
    for step in sim:
        pass
    sim.report()

Here is the [LID_CONTROLS] section.

[LID_CONTROLS]
PermeablePavement            PP
PermeablePavement            SURFACE    0.0        0.0        0.025      1.5        5         
PermeablePavement            PAVEMENT   65         0.09       0          360        0         
PermeablePavement            STORAGE    200        0.5        450        0         
PermeablePavement           DRAIN      0          0.5        100        6 

GreenRoof        GR
GreenRoof        SURFACE    80         0.3        0.4        0.1        5         
GreenRoof        SOIL       150        0.5        0.2        0.085      18         10         110       
GreenRoof        DRAINMAT   80         0.5        0.1       

RainGarden       RG
RainGarden       SURFACE    100        0.3        0.15       0          5         
RainGarden       SOIL       600        0.5        0.2        0.086      18         10         110       
RainGarden       STORAGE    0          0.75       0.5        0         

Bio-RetentionCell BC
Bio-RetentionCell             SURFACE    100        0.2        0.15       0          5         
Bio-RetentionCell             SOIL       500        0.453      0.19       0.086      12         10         3.5       
Bio-RetentionCell             STORAGE    400        0.50       450        0         
Bio-RetentionCell             DRAIN      1.26       0.5        100        6                             

VegetativeSwale  VS
VegetativeSwale              SURFACE    300        0.2        0.15       1          3   

Here is the [LID_USAGE] section.

            [LID_USAGE]
            S0  PermeablePavement   1   39.69390816 3.079127964 0   0   0   *   *   0
            S0  GreenRoof   1   15.87756326 1.231651186 0   0   0   *   *   0
            S0  RainGarden  1   47.63268979 3.694953557 0   0   0   *   *   0
            S0  Bio-RetentionCell   1   31.75512653 2.463302371 0   0   0   *   *   0
            S0  VegetativeSwale 1   23.8163449  1.847476778 0   0   0   *   *   0
            S1  PermeablePavement   1   32.78092416 2.798184871 0   0   0   *   *   0
            S1  GreenRoof   1   13.11236966 1.119273949 0   0   0   *   *   0
            S1  RainGarden  1   39.33710899 3.357821846 0   0   0   *   *   0
            S1  Bio-RetentionCell   1   26.22473933 2.238547897 0   0   0   *   *   0
            S1  VegetativeSwale 1   19.6685545  1.678910923 0   0   0   *   *   0
            S2  PermeablePavement   1   44.37689733 3.255699217 0   0   0   *   *   0
            S2  GreenRoof   1   17.75075893 1.302279687 0   0   0   *   *   0
            S2  RainGarden  1   46  3.90683906  0   0   0   *   *   0
            S2  Bio-RetentionCell   1   30.50151786 2.604559373 0   0   0   *   *   0
            S2  VegetativeSwale 1   14.6261384  1.95341953  0   0   0   *   *   0
            S3  PermeablePavement   1   28.32093447 2.600875701 0   0   0   *   *   0
            S3  GreenRoof   1   11.32837379 1.04035028  0   0   0   *   *   0
            S3  RainGarden  1   33.98512136 3.121050841 0   0   0   *   *   0
            S3  Bio-RetentionCell   1   22.65674758 2.080700561 0   0   0   *   *   0
            S3  VegetativeSwale 1   14.99256068 1.560525421 0   0   0   *   *   0
            S4  PermeablePavement   1   189.326562  6.724679366 0   0   0   *   *   0
            S4  GreenRoof   1   75.7306248  2.689871747 0   0   0   *   *   0
            S4  RainGarden  1   0   8.06961524  0   0   0   *   *   0
            S4  Bio-RetentionCell   1   0   5.379743493 0   0   0   *   *   0
            S4  VegetativeSwale 1   0   4.03480762  0   0   0   *   *   0
            S5  PermeablePavement   1   12.26497162 1.711587403 0   0   0   *   *   0
            S5  GreenRoof   1   4.90598865  0.684634961 0   0   0   *   *   0
            S5  RainGarden  1   14.71796595 2.053904883 0   0   0   *   *   0
            S5  Bio-RetentionCell   1   9.811977299 1.369269922 0   0   0   *   *   0
            S5  VegetativeSwale 1   7.358982974 1.026952442 0   0   0   *   *   0
            S6  PermeablePavement   1   55.08087257 3.627155824 0   0   0   *   *   0
            S6  GreenRoof   1   22.03234903 1.45086233  0   0   0   *   *   0
            S6  RainGarden  1   66.09704708 4.352586989 0   0   0   *   *   0
            S6  Bio-RetentionCell   1   44.06469805 2.901724659 0   0   0   *   *   0
            S6  VegetativeSwale 1   33.04852354 2.176293494 0   0   0   *   *   0
            S7  PermeablePavement   1   0.222999484 0.230790398 0   0   0   *   *   0
            S7  GreenRoof   1   0.089199794 0.092316159 0   0   0   *   *   0
            S7  RainGarden  1   0.267599381 0.276948478 0   0   0   *   *   0
            S7  Bio-RetentionCell   1   0.178399587 0.184632319 0   0   0   *   *   0
            S7  VegetativeSwale 1   0.13379969  0.138474239 0   0   0   *   *   0
            S8  PermeablePavement   1   35.45691797 2.910156193 0   0   0   *   *   0
            S8  GreenRoof   1   14.18276719 1.164062477 0   0   0   *   *   0
            S8  RainGarden  1   42.54830156 3.492187431 0   0   0   *   *   0
            S8  Bio-RetentionCell   1   28.36553437 2.328124954 0   0   0   *   *   0
            S8  VegetativeSwale 1   18.27415078 1.746093716 0   0   0   *   *   0
            S9  PermeablePavement   1   198.0235419 6.877398977 0   0   0   *   *   0
            S9  GreenRoof   1   79.20941676 2.750959591 0   0   0   *   *   0
            S9  RainGarden  1   0   8.252878773 0   0   0   *   *   0
            S9  Bio-RetentionCell   1   0   5.501919182 0   0   0   *   *   0
            S9  VegetativeSwale 1   0   4.126439386 0   0   0   *   *   0
            S10 PermeablePavement   1   45.49189475 3.296346224 0   0   0   *   *   0
            S10 GreenRoof   1   18.1967579  1.318538489 0   0   0   *   *   0
            S10 RainGarden  1   54.59027369 3.955615468 0   0   0   *   *   0
            S10 Bio-RetentionCell   1   36.3935158  2.637076979 0   0   0   *   *   0
            S10 VegetativeSwale 1   27.29513685 1.977807734 0   0   0   *   *   0
            S11 PermeablePavement   1   99.2347704  4.868528787 0   0   0   *   *   0
            S11 GreenRoof   1   39.69390816 1.947411515 0   0   0   *   *   0
            S11 RainGarden  1   0   5.842234544 0   0   0   *   *   0
            S11 Bio-RetentionCell   1   0   3.89482303  0   0   0   *   *   0
            S11 VegetativeSwale 1   0   2.921117272 0   0   0   *   *   0
            S12 PermeablePavement   1   29.88193086 2.67159201  0   0   0   *   *   0
            S12 GreenRoof   1   11.95277234 1.068636804 0   0   0   *   *   0
            S12 RainGarden  1   35.85831703 3.205910412 0   0   0   *   *   0
            S12 Bio-RetentionCell   1   23.90554469 2.137273608 0   0   0   *   *   0
            S12 VegetativeSwale 1   17.92915852 1.602955206 0   0   0   *   *   0
            S13 PermeablePavement   1   13.60296853 1.802530634 0   0   0   *   *   0
            S13 GreenRoof   1   5.441187411 0.721012254 0   0   0   *   *   0
            S13 RainGarden  1   16.32356223 2.163036761 0   0   0   *   *   0
            S13 Bio-RetentionCell   1   10.88237482 1.442024507 0   0   0   *   *   0
            S13 VegetativeSwale 1   8.161781116 1.08151838  0   0   0   *   *   0
            S14 PermeablePavement   1   45.04589577 3.280147864 0   0   0   *   *   0
            S14 GreenRoof   1   18.01835831 1.312059146 0   0   0   *   *   0
            S14 RainGarden  1   54.05507492 3.936177437 0   0   0   *   *   0
            S14 Bio-RetentionCell   1   36.03671662 2.624118291 0   0   0   *   *   0
            S14 VegetativeSwale 1   27.02753746 1.968088718 0   0   0   *   *   0
            S15 PermeablePavement   1   19.6239546  2.165005844 0   0   0   *   *   0
            S15 GreenRoof   1   7.84958184  0.866002337 0   0   0   *   *   0
            S15 RainGarden  1   23.54874552 2.598007012 0   0   0   *   *   0
            S15 Bio-RetentionCell   1   15.69916368 1.732004675 0   0   0   *   *   0
            S15 VegetativeSwale 1   11.77437276 1.299003506 0   0   0   *   *   0
            S16 PermeablePavement   1   95.66677867 4.780203471 0   0   0   *   *   0
            S16 GreenRoof   1   38.26671147 1.912081388 0   0   0   *   *   0
            S16 RainGarden  1   114.8001344 5.736244165 0   0   0   *   *   0
            S16 Bio-RetentionCell   1   76.53342294 3.824162777 0   0   0   *   *   0
            S16 VegetativeSwale 1   52.4000672  2.868122083 0   0   0   *   *   0
            S17 PermeablePavement   1   47.72188959 3.376172464 0   0   0   *   *   0
            S17 GreenRoof   1   19.08875584 1.350468986 0   0   0   *   *   0
            S17 RainGarden  1   366.2662675 4.051406957 0   0   0   *   *   0
            S17 Bio-RetentionCell   1   24.17751167 2.700937971 0   0   0   *   *   0
            S17 VegetativeSwale 1   11.63313375 2.025703478 0   0   0   *   *   0
            S18 PermeablePavement   1   36.04589577 3.280147864 0   0   0   *   *   0
            S18 GreenRoof   1   23.01835831 1.312059146 0   0   0   *   *   0
            S18 RainGarden  1   36.05507492 3.936177437 0   0   0   *   *   0
            S18 Bio-RetentionCell   1   23.03671662 2.624118291 0   0   0   *   *   0
            S18 VegetativeSwale 1   12.02753746 1.968088718 0   0   0   *   *   0
            S19 PermeablePavement   1   47.4988901  3.368274973 0   0   0   *   *   0
            S19 GreenRoof   1   18.99955604 1.347309989 0   0   0   *   *   0
            S19 RainGarden  1   56.99866811 4.041929968 0   0   0   *   *   0
            S19 Bio-RetentionCell   1   37.99911208 2.694619979 0   0   0   *   *   0
            S19 VegetativeSwale 1   28.49933406 2.020964984 0   0   0   *   *   0
            S20 PermeablePavement   1   23.19194634 2.353609489 0   0   0   *   *   0
            S20 GreenRoof   1   9.276778536 0.941443796 0   0   0   *   *   0
            S20 RainGarden  1   27.83033561 2.824331387 0   0   0   *   *   0
            S20 Bio-RetentionCell   1   18.55355707 1.882887592 0   0   0   *   *   0
            S20 VegetativeSwale 1   13.9151678  1.412165694 0   0   0   *   *   0
            S21 PermeablePavement   1   44.59989681 3.263869114 0   0   0   *   *   0
            S21 GreenRoof   1   17.83995872 1.305547646 0   0   0   *   *   0
            S21 RainGarden  1   53.51987617 3.916642937 0   0   0   *   *   0
            S21 Bio-RetentionCell   1   35.67991745 2.611095292 0   0   0   *   *   0
            S21 VegetativeSwale 1   21.75993809 1.958321469 0   0   0   *   *   0
            S22 PermeablePavement   1   53.96587514 3.590256025 0   0   0   *   *   0
            S22 GreenRoof   1   21.58635005 1.43610241  0   0   0   *   *   0
            S22 RainGarden  1   62.75905016 4.308307231 0   0   0   *   *   0
            S22 Bio-RetentionCell   1   41.17270011 2.87220482  0   0   0   *   *   0
            S22 VegetativeSwale 1   20.37952508 2.154153615 0   0   0   *   *   0
            S23 PermeablePavement   1   52.85087772 3.552973021 0   0   0   *   *   0
            S23 GreenRoof   1   21.14035109 1.421189209 0   0   0   *   *   0
            S23 RainGarden  1   63.42105326 4.263567626 0   0   0   *   *   0
            S23 Bio-RetentionCell   1   42.28070218 2.842378417 0   0   0   *   *   0
            S23 VegetativeSwale 1   31.71052663 2.131783813 0   0   0   *   *   0
            S24 PermeablePavement   1   4.013990712 0.979160734 0   0   0   *   *   0
            S24 GreenRoof   1   0   0.391664294 0   0   0   *   *   0
            S24 RainGarden  1   4.816788854 1.174992881 0   0   0   *   *   0
            S24 Bio-RetentionCell   1   3.21119257  0.783328588 0   0   0   *   *   0
            S24 VegetativeSwale 1   2.408394427 0.587496441 0   0   0   *   *   0
            S25 PermeablePavement   1   4.013990712 0.979160734 0   0   0   *   *   0
            S25 GreenRoof   1   1.605596285 0.391664294 0   0   0   *   *   0
            S25 RainGarden  1   4.816788854 1.174992881 0   0   0   *   *   0
            S25 Bio-RetentionCell   1   3.21119257  0.783328588 0   0   0   *   *   0
            S25 VegetativeSwale 1   2.408394427 0.587496441 0   0   0   *   *   0
            S26 PermeablePavement   1   66.45384624 3.984059986 0   0   0   *   *   0
            S26 GreenRoof   1   26.5815385  1.593623995 0   0   0   *   *   0
            S26 RainGarden  1   79.74461549 4.780871984 0   0   0   *   *   0
            S26 Bio-RetentionCell   1   53.16307699 3.187247989 0   0   0   *   *   0
            S26 VegetativeSwale 1   39.87230774 2.390435992 0   0   0   *   *   0
            S27 PermeablePavement   1   26.09093964 2.496379846 0   0   0   *   *   0
            S27 GreenRoof   1   10.43637586 0.998551938 0   0   0   *   *   0
            S27 RainGarden  1   31.30912757 2.995655815 0   0   0   *   *   0
            S27 Bio-RetentionCell   1   20.87275171 1.997103877 0   0   0   *   *   0
            S27 VegetativeSwale 1   15.65456378 1.497827907 0   0   0   *   *   0
            S28 PermeablePavement   1   4.459989681 1.032126038 0   0   0   *   *   0
            S28 GreenRoof   1   0   0.412850415 0   0   0   *   *   0
            S28 RainGarden  1   5.351987617 1.238551246 0   0   0   *   *   0
            S28 Bio-RetentionCell   1   3.567991745 0.825700831 0   0   0   *   *   0
            S28 VegetativeSwale 1   2.675993809 0.619275623 0   0   0   *   *   0
            S29 PermeablePavement   1   4.459989681 1.032126038 0   0   0   *   *   0
            S29 GreenRoof   1   1.783995872 0.412850415 0   0   0   *   *   0
            S29 RainGarden  1   5.351987617 1.238551246 0   0   0   *   *   0
            S29 Bio-RetentionCell   1   3.567991745 0.825700831 0   0   0   *   *   0
            S29 VegetativeSwale 1   2.675993809 0.619275623 0   0   0   *   *   0
            S30 PermeablePavement   1   92.76778537 4.707218979 0   0   0   *   *   0
            S30 GreenRoof   1   37.10711415 1.882887592 0   0   0   *   *   0
            S30 RainGarden  1   79.3213424  5.648662775 0   0   0   *   *   0
            S30 Bio-RetentionCell   1   56.2142283  3.765775183 0   0   0   *   *   0
            S30 VegetativeSwale 1   28.66067122 2.824331387 0   0   0   *   *   0
            S31 PermeablePavement   1   70.24483748 4.096123229 0   0   0   *   *   0
            S31 GreenRoof   1   28.09793499 1.638449292 0   0   0   *   *   0
            S31 RainGarden  1   84.29380497 4.915347875 0   0   0   *   *   0
            S31 Bio-RetentionCell   1   56.19586998 3.276898583 0   0   0   *   *   0
            S31 VegetativeSwale 1   42.14690249 2.457673938 0   0   0   *   *   0
            S32 PermeablePavement   1   67.34584418 4.010709514 0   0   0   *   *   0
            S32 GreenRoof   1   26.93833767 1.604283806 0   0   0   *   *   0
            S32 RainGarden  1   80.81501301 4.812851417 0   0   0   *   *   0
            S32 Bio-RetentionCell   1   53.87667534 3.208567611 0   0   0   *   *   0
            S32 VegetativeSwale 1   40.40750651 2.406425708 0   0   0   *   *   0
            S33 PermeablePavement   1   67.34584418 4.010709514 0   0   0   *   *   0
            S33 GreenRoof   1   0   1.604283806 0   0   0   *   *   0
            S33 RainGarden  1   49.81501301 4.812851417 0   0   0   *   *   0
            S33 Bio-RetentionCell   1   32.87667534 3.208567611 0   0   0   *   *   0
            S33 VegetativeSwale 1   15.40750651 2.406425708 0   0   0   *   *   0
            S34 PermeablePavement   1   27.65193602 2.56997311  0   0   0   *   *   0
            S34 GreenRoof   1   11.06077441 1.027989244 0   0   0   *   *   0
            S34 RainGarden  1   33.18232322 3.083967732 0   0   0   *   *   0
            S34 Bio-RetentionCell   1   22.12154881 2.055978488 0   0   0   *   *   0
            S34 VegetativeSwale 1   16.59116161 1.541983866 0   0   0   *   *   0
            S35 PermeablePavement   1   49.50588546 3.438699488 0   0   0   *   *   0
            S35 GreenRoof   1   19.80235418 1.375479795 0   0   0   *   *   0
            S35 RainGarden  1   59.40706255 4.126439386 0   0   0   *   *   0
            S35 Bio-RetentionCell   1   39.60470837 2.750959591 0   0   0   *   *   0
            S35 VegetativeSwale 1   29.70353128 2.063219693 0   0   0   *   *   0
            S36 PermeablePavement   1   43.03890042 3.206242682 0   0   0   *   *   0
            S36 GreenRoof   1   17.21556017 1.282497073 0   0   0   *   *   0
            S36 RainGarden  1   51.6466805  3.847491219 0   0   0   *   *   0
            S36 Bio-RetentionCell   1   34.43112034 2.564994146 0   0   0   *   *   0
            S36 VegetativeSwale 1   25.82334025 1.923745609 0   0   0   *   *   0
            S37 PermeablePavement   1   14.27196698 1.846323187 0   0   0   *   *   0
            S37 GreenRoof   1   5.70878679  0.738529275 0   0   0   *   *   0
            S37 RainGarden  1   17.12636037 2.215587824 0   0   0   *   *   0
            S37 Bio-RetentionCell   1   11.41757358 1.477058549 0   0   0   *   *   0
            S37 VegetativeSwale 1   8.563180186 1.107793912 0   0   0   *   *   0
            S38 PermeablePavement   1   45.26889527 3.288257018 0   0   0   *   *   0
            S38 GreenRoof   1   18.10755811 1.315302807 0   0   0   *   *   0
            S38 RainGarden  1   27.32267432 3.945908422 0   0   0   *   *   0
            S38 Bio-RetentionCell   1   18.21511621 2.630605615 0   0   0   *   *   0
            S38 VegetativeSwale 1   8.16133716  1.972954211 0   0   0   *   *   0
            S39 PermeablePavement   1   6.02098607  1.199222087 0   0   0   *   *   0
            S39 GreenRoof   1   2.408394428 0.479688835 0   0   0   *   *   0
            S39 RainGarden  1   7.225183283 1.439066505 0   0   0   *   *   0
            S39 Bio-RetentionCell   1   4.816788856 0.95937767  0   0   0   *   *   0
            S39 VegetativeSwale 1   3.612591642 0.719533252 0   0   0   *   *   0
            S40 PermeablePavement   1   34.56492003 2.873317288 0   0   0   *   *   0
            S40 GreenRoof   1   13.82596801 1.149326915 0   0   0   *   *   0
            S40 RainGarden  1   41.47790404 3.447980745 0   0   0   *   *   0
            S40 Bio-RetentionCell   1   27.65193602 2.29865383  0   0   0   *   *   0
            S40 VegetativeSwale 1   20.73895202 1.723990373 0   0   0   *   *   0
            S41 PermeablePavement   1   16.27896234 1.971874028 0   0   0   *   *   0
            S41 GreenRoof   1   6.511584936 0.788749611 0   0   0   *   *   0
            S41 RainGarden  1   19.53475481 2.366248834 0   0   0   *   *   0
            S41 Bio-RetentionCell   1   13.02316987 1.577499223 0   0   0   *   *   0
            S41 VegetativeSwale 1   9.767377404 1.183124417 0   0   0   *   *   0
            S42 PermeablePavement   1   51.73588031 3.515294618 0   0   0   *   *   0
            S42 GreenRoof   1   20.69435212 1.406117847 0   0   0   *   *   0
            S42 RainGarden  1   44.08305637 4.218353542 0   0   0   *   *   0
            S42 Bio-RetentionCell   1   29.38870424 2.812235695 0   0   0   *   *   0
            S42 VegetativeSwale 1   14.04152818 2.109176771 0   0   0   *   *   0
            S43 PermeablePavement   1   30.10493034 2.681542108 0   0   0   *   *   0
            S43 GreenRoof   1   12.04197214 1.072616843 0   0   0   *   *   0
            S43 RainGarden  1   36.12591641 3.217850529 0   0   0   *   *   0
            S43 Bio-RetentionCell   1   24.08394427 2.145233686 0   0   0   *   *   0
            S43 VegetativeSwale 1   18.0629582  1.608925265 0   0   0   *   *   0
            S44 PermeablePavement   1   49.50588546 3.438699488 0   0   0   *   *   0
            S44 GreenRoof   1   19.80235418 1.375479795 0   0   0   *   *   0
            S44 RainGarden  1   59.40706255 4.126439386 0   0   0   *   *   0
            S44 Bio-RetentionCell   1   39.60470837 2.750959591 0   0   0   *   *   0
            S44 VegetativeSwale 1   29.70353128 2.063219693 0   0   0   *   *   0
            S45 PermeablePavement   1   6.02098607  1.199222087 0   0   0   *   *   0
            S45 GreenRoof   1   2.408394428 0.479688835 0   0   0   *   *   0
            S45 RainGarden  1   7.225183283 1.439066505 0   0   0   *   *   0
            S45 Bio-RetentionCell   1   4.816788856 0.95937767  0   0   0   *   *   0
            S45 VegetativeSwale 1   3.612591642 0.719533252 0   0   0   *   *   0
            S46 PermeablePavement   1   148.0716574 5.947052555 0   0   0   *   *   0
            S46 GreenRoof   1   59.22866295 2.378821022 0   0   0   *   *   0
            S46 RainGarden  1   97.6859889  7.136463066 0   0   0   *   *   0
            S46 Bio-RetentionCell   1   64.4573259  4.757642044 0   0   0   *   *   0
            S46 VegetativeSwale 1   31.84299443 3.568231533 0   0   0   *   *   0
            S47 PermeablePavement   1   35.45691797 2.910156193 0   0   0   *   *   0
            S47 GreenRoof   1   14.18276719 1.164062477 0   0   0   *   *   0
            S47 RainGarden  1   42.54830156 3.492187431 0   0   0   *   *   0
            S47 Bio-RetentionCell   1   28.36553437 2.328124954 0   0   0   *   *   0
            S47 VegetativeSwale 1   21.27415078 1.746093716 0   0   0   *   *   0
            S48 PermeablePavement   1   23.41494582 2.364897849 0   0   0   *   *   0
            S48 GreenRoof   1   9.365978328 0.94595914  0   0   0   *   *   0
            S48 RainGarden  1   28.09793498 2.837877419 0   0   0   *   *   0
            S48 Bio-RetentionCell   1   18.73195666 1.891918279 0   0   0   *   *   0
            S48 VegetativeSwale 1   14.04896749 1.418938709 0   0   0   *   *   0
            S49 PermeablePavement   1   39.02490971 3.053069995 0   0   0   *   *   0
            S49 GreenRoof   1   15.60996388 1.221227998 0   0   0   *   *   0
            S49 RainGarden  1   46.82989165 3.663683994 0   0   0   *   *   0
            S49 Bio-RetentionCell   1   31.21992776 2.442455996 0   0   0   *   *   0
            S49 VegetativeSwale 1   23.41494582 1.831841997 0   0   0   *   *   0
            S50 PermeablePavement   1   25.64494067 2.474951296 0   0   0   *   *   0
            S50 GreenRoof   1   10.25797627 0.989980518 0   0   0   *   *   0
            S50 RainGarden  1   30.7739288  2.969941555 0   0   0   *   *   0
            S50 Bio-RetentionCell   1   20.51595253 1.979961037 0   0   0   *   *   0
            S50 VegetativeSwale 1   15.3869644  1.484970777 0   0   0   *   *   0
            S51 PermeablePavement   1   74.25882819 4.211529562 0   0   0   *   *   0
            S51 GreenRoof   1   29.70353128 1.684611825 0   0   0   *   *   0
            S51 RainGarden  1   89.11059383 5.053835475 0   0   0   *   *   0
            S51 Bio-RetentionCell   1   59.40706255 3.36922365  0   0   0   *   *   0
            S51 VegetativeSwale 1   44.55529691 2.526917737 0   0   0   *   *   0

And each catchment has rainfall input. Expected behavior the inp runs without error. Screenshots image

**Desktop (please complete the following information):

Additional context Add any other context about the problem here.

bemcdonnell commented 8 months ago

@noneaddress, from that failed model run, what does that RPT file say about the error? I’m guessing your optimizer is setting a value that is not okay with SWMM.

noneaddress commented 8 months ago

@bemcdonnell ,thank you very much for your reply. Here is the RPT file generated by python code using dll file without optimization.

  EPA STORM WATER MANAGEMENT MODEL - VERSION 5.2 (Build 5.2.4)
  ------------------------------------------------------------

SWMM 
WARNING 09: time series interval greater than recording interval for Rain Gage RG1
WARNING 01: wet weather time step reduced to recording interval for Rain Gage RG1
WARNING 07: routing time step reduced to the wet weather time step 
*************
Element Count
*************
Number of rain gages ...... 1
Number of subcatchments ... 52
Number of nodes ........... 53
Number of links ........... 52
Number of pollutants ...... 0
Number of land uses ....... 0
*******************
LID Control Summary
*******************
                                 No. of        Unit        Unit      % Area    % Imperv      % Perv
Subcatchment     LID Control      Units        Area       Width     Covered     Treated     Treated
---------------------------------------------------------------------------------------------------
S0               VegetativeSwale      1       23.82        1.85        3.24        0.00        0.00
S0               Bio-RetentionCell     1       31.76        2.46        4.32        0.00        0.00
S0               RainGarden           1       47.63        3.69        6.48        0.00        0.00
S0               GreenRoof            1       15.88        1.23        2.16        0.00        0.00
S0               PermeablePavement     1       39.69        3.08        5.40        0.00        0.00
S1               VegetativeSwale      1       19.67        1.68        2.95        0.00        0.00
S1               Bio-RetentionCell     1       26.22        2.24        3.93        0.00        0.00
S1               RainGarden           1       39.34        3.36        5.90        0.00        0.00
S1               GreenRoof            1       13.11        1.12        1.97        0.00        0.00
S1               PermeablePavement     1       32.78        2.80        4.91        0.00        0.00
S2               VegetativeSwale      1       14.63        1.95        2.42        0.00        0.00
S2               Bio-RetentionCell     1       30.50        2.60        5.05        0.00        0.00
S2               RainGarden           1       46.00        3.91        7.61        0.00        0.00
S2               GreenRoof            1       17.75        1.30        2.94        0.00        0.00
S2               PermeablePavement     1       44.38        3.26        7.34        0.00        0.00
S3               VegetativeSwale      1       14.99        1.56        2.50        0.00        0.00
S3               Bio-RetentionCell     1       22.66        2.08        3.78        0.00        0.00
S3               RainGarden           1       33.99        3.12        5.66        0.00        0.00
S3               GreenRoof            1       11.33        1.04        1.89        0.00        0.00
S3               PermeablePavement     1       28.32        2.60        4.72        0.00        0.00
S4               VegetativeSwale      1        0.00        4.03        0.00        0.00        0.00
S4               Bio-RetentionCell     1        0.00        5.38        0.00        0.00        0.00
S4               RainGarden           1        0.00        8.07        0.00        0.00        0.00
S4               GreenRoof            1       75.73        2.69        4.99        0.00        0.00
S4               PermeablePavement     1      189.33        6.72       12.46        0.00        0.00
S5               VegetativeSwale      1        7.36        1.03        0.73        0.00        0.00
S5               Bio-RetentionCell     1        9.81        1.37        0.97        0.00        0.00
S5               RainGarden           1       14.72        2.05        1.45        0.00        0.00
S5               GreenRoof            1        4.91        0.68        0.48        0.00        0.00
S5               PermeablePavement     1       12.26        1.71        1.21        0.00        0.00
S6               VegetativeSwale      1       33.05        2.18        1.70        0.00        0.00
S6               Bio-RetentionCell     1       44.06        2.90        2.26        0.00        0.00
S6               RainGarden           1       66.10        4.35        3.40        0.00        0.00
S6               GreenRoof            1       22.03        1.45        1.13        0.00        0.00
S6               PermeablePavement     1       55.08        3.63        2.83        0.00        0.00
S7               VegetativeSwale      1        0.13        0.14        0.04        0.00        0.00
S7               Bio-RetentionCell     1        0.18        0.18        0.06        0.00        0.00
S7               RainGarden           1        0.27        0.28        0.09        0.00        0.00
S7               GreenRoof            1        0.09        0.09        0.03        0.00        0.00
S7               PermeablePavement     1        0.22        0.23        0.07        0.00        0.00
S8               VegetativeSwale      1       18.27        1.75        3.46        0.00        0.00
S8               Bio-RetentionCell     1       28.37        2.33        5.36        0.00        0.00
S8               RainGarden           1       42.55        3.49        8.05        0.00        0.00
S8               GreenRoof            1       14.18        1.16        2.68        0.00        0.00
S8               PermeablePavement     1       35.46        2.91        6.71        0.00        0.00
S9               VegetativeSwale      1        0.00        4.13        0.00        0.00        0.00
S9               Bio-RetentionCell     1        0.00        5.50        0.00        0.00        0.00
S9               RainGarden           1        0.00        8.25        0.00        0.00        0.00
S9               GreenRoof            1       79.21        2.75        4.00        0.00        0.00
S9               PermeablePavement     1      198.02        6.88        9.99        0.00        0.00
S10              VegetativeSwale      1       27.30        1.98        2.16        0.00        0.00
S10              Bio-RetentionCell     1       36.39        2.64        2.87        0.00        0.00
S10              RainGarden           1       54.59        3.96        4.31        0.00        0.00
S10              GreenRoof            1       18.20        1.32        1.44        0.00        0.00
S10              PermeablePavement     1       45.49        3.30        3.59        0.00        0.00
S11              VegetativeSwale      1        0.00        2.92        0.00        0.00        0.00
S11              Bio-RetentionCell     1        0.00        3.89        0.00        0.00        0.00
S11              RainGarden           1        0.00        5.84        0.00        0.00        0.00
S11              GreenRoof            1       39.69        1.95        3.64        0.00        0.00
S11              PermeablePavement     1       99.23        4.87        9.11        0.00        0.00
S12              VegetativeSwale      1       17.93        1.60        2.59        0.00        0.00
S12              Bio-RetentionCell     1       23.91        2.14        3.45        0.00        0.00
S12              RainGarden           1       35.86        3.21        5.18        0.00        0.00
S12              GreenRoof            1       11.95        1.07        1.73        0.00        0.00
S12              PermeablePavement     1       29.88        2.67        4.32        0.00        0.00
S13              VegetativeSwale      1        8.16        1.08        1.48        0.00        0.00
S13              Bio-RetentionCell     1       10.88        1.44        1.97        0.00        0.00
S13              RainGarden           1       16.32        2.16        2.95        0.00        0.00
S13              GreenRoof            1        5.44        0.72        0.98        0.00        0.00
S13              PermeablePavement     1       13.60        1.80        2.46        0.00        0.00
S14              VegetativeSwale      1       27.03        1.97        2.65        0.00        0.00
S14              Bio-RetentionCell     1       36.04        2.62        3.54        0.00        0.00
S14              RainGarden           1       54.06        3.94        5.30        0.00        0.00
S14              GreenRoof            1       18.02        1.31        1.77        0.00        0.00
S14              PermeablePavement     1       45.05        3.28        4.42        0.00        0.00
S15              VegetativeSwale      1       11.77        1.30        2.62        0.00        0.00
S15              Bio-RetentionCell     1       15.70        1.73        3.49        0.00        0.00
S15              RainGarden           1       23.55        2.60        5.23        0.00        0.00
S15              GreenRoof            1        7.85        0.87        1.74        0.00        0.00
S15              PermeablePavement     1       19.62        2.17        4.36        0.00        0.00
S16              VegetativeSwale      1       52.40        2.87        2.77        0.00        0.00
S16              Bio-RetentionCell     1       76.53        3.82        4.05        0.00        0.00
S16              RainGarden           1      114.80        5.74        6.07        0.00        0.00
S16              GreenRoof            1       38.27        1.91        2.02        0.00        0.00
S16              PermeablePavement     1       95.67        4.78        5.06        0.00        0.00
S17              VegetativeSwale      1       11.63        2.03        1.72        0.00        0.00
S17              Bio-RetentionCell     1       24.18        2.70        3.58        0.00        0.00
S17              RainGarden           1      366.27        4.05       54.19        0.00        0.00
S17              GreenRoof            1       19.09        1.35        2.82        0.00        0.00
S17              PermeablePavement     1       47.72        3.38        7.06        0.00        0.00
S18              VegetativeSwale      1       12.03        1.97        1.87        0.00        0.00
S18              Bio-RetentionCell     1       23.04        2.62        3.59        0.00        0.00
S18              RainGarden           1       36.06        3.94        5.62        0.00        0.00
S18              GreenRoof            1       23.02        1.31        3.59        0.00        0.00
S18              PermeablePavement     1       36.05        3.28        5.62        0.00        0.00
S19              VegetativeSwale      1       28.50        2.02        2.96        0.00        0.00
S19              Bio-RetentionCell     1       38.00        2.69        3.95        0.00        0.00
S19              RainGarden           1       57.00        4.04        5.92        0.00        0.00
S19              GreenRoof            1       19.00        1.35        1.97        0.00        0.00
S19              PermeablePavement     1       47.50        3.37        4.93        0.00        0.00
S20              VegetativeSwale      1       13.92        1.41        2.00        0.00        0.00
S20              Bio-RetentionCell     1       18.55        1.88        2.67        0.00        0.00
S20              RainGarden           1       27.83        2.82        4.00        0.00        0.00
S20              GreenRoof            1        9.28        0.94        1.33        0.00        0.00
S20              PermeablePavement     1       23.19        2.35        3.34        0.00        0.00
S21              VegetativeSwale      1       21.76        1.96        2.06        0.00        0.00
S21              Bio-RetentionCell     1       35.68        2.61        3.38        0.00        0.00
S21              RainGarden           1       53.52        3.92        5.07        0.00        0.00
S21              GreenRoof            1       17.84        1.31        1.69        0.00        0.00
S21              PermeablePavement     1       44.60        3.26        4.23        0.00        0.00
S22              VegetativeSwale      1       20.38        2.15        2.18        0.00        0.00
S22              Bio-RetentionCell     1       41.17        2.87        4.41        0.00        0.00
S22              RainGarden           1       62.76        4.31        6.73        0.00        0.00
S22              GreenRoof            1       21.59        1.44        2.31        0.00        0.00
S22              PermeablePavement     1       53.97        3.59        5.78        0.00        0.00
S23              VegetativeSwale      1       31.71        2.13        2.64        0.00        0.00
S23              Bio-RetentionCell     1       42.28        2.84        3.53        0.00        0.00
S23              RainGarden           1       63.42        4.26        5.29        0.00        0.00
S23              GreenRoof            1       21.14        1.42        1.76        0.00        0.00
S23              PermeablePavement     1       52.85        3.55        4.41        0.00        0.00
S24              VegetativeSwale      1        2.41        0.59        0.46        0.00        0.00
S24              Bio-RetentionCell     1        3.21        0.78        0.61        0.00        0.00
S24              RainGarden           1        4.82        1.17        0.92        0.00        0.00
S24              GreenRoof            1        0.00        0.39        0.00        0.00        0.00
S24              PermeablePavement     1        4.01        0.98        0.77        0.00        0.00
S25              VegetativeSwale      1        2.41        0.59        0.43        0.00        0.00
S25              Bio-RetentionCell     1        3.21        0.78        0.58        0.00        0.00
S25              RainGarden           1        4.82        1.17        0.87        0.00        0.00
S25              GreenRoof            1        1.61        0.39        0.29        0.00        0.00
S25              PermeablePavement     1        4.01        0.98        0.72        0.00        0.00
S26              VegetativeSwale      1       39.87        2.39        2.22        0.00        0.00
S26              Bio-RetentionCell     1       53.16        3.19        2.96        0.00        0.00
S26              RainGarden           1       79.74        4.78        4.44        0.00        0.00
S26              GreenRoof            1       26.58        1.59        1.48        0.00        0.00
S26              PermeablePavement     1       66.45        3.98        3.70        0.00        0.00
S27              VegetativeSwale      1       15.65        1.50        3.04        0.00        0.00
S27              Bio-RetentionCell     1       20.87        2.00        4.05        0.00        0.00
S27              RainGarden           1       31.31        3.00        6.07        0.00        0.00
S27              GreenRoof            1       10.44        1.00        2.02        0.00        0.00
S27              PermeablePavement     1       26.09        2.50        5.06        0.00        0.00
S28              VegetativeSwale      1        2.68        0.62        0.68        0.00        0.00
S28              Bio-RetentionCell     1        3.57        0.83        0.91        0.00        0.00
S28              RainGarden           1        5.35        1.24        1.37        0.00        0.00
S28              GreenRoof            1        0.00        0.41        0.00        0.00        0.00
S28              PermeablePavement     1        4.46        1.03        1.14        0.00        0.00
S29              VegetativeSwale      1        2.68        0.62        0.17        0.00        0.00
S29              Bio-RetentionCell     1        3.57        0.83        0.23        0.00        0.00
S29              RainGarden           1        5.35        1.24        0.34        0.00        0.00
S29              GreenRoof            1        1.78        0.41        0.11        0.00        0.00
S29              PermeablePavement     1        4.46        1.03        0.28        0.00        0.00
S30              VegetativeSwale      1       28.66        2.82        2.18        0.00        0.00
S30              Bio-RetentionCell     1       56.21        3.77        4.28        0.00        0.00
S30              RainGarden           1       79.32        5.65        6.04        0.00        0.00
S30              GreenRoof            1       37.11        1.88        2.82        0.00        0.00
S30              PermeablePavement     1       92.77        4.71        7.06        0.00        0.00
S31              VegetativeSwale      1       42.15        2.46        1.78        0.00        0.00
S31              Bio-RetentionCell     1       56.20        3.28        2.37        0.00        0.00
S31              RainGarden           1       84.29        4.92        3.55        0.00        0.00
S31              GreenRoof            1       28.10        1.64        1.18        0.00        0.00
S31              PermeablePavement     1       70.24        4.10        2.96        0.00        0.00
S32              VegetativeSwale      1       40.41        2.41        2.33        0.00        0.00
S32              Bio-RetentionCell     1       53.88        3.21        3.11        0.00        0.00
S32              RainGarden           1       80.82        4.81        4.66        0.00        0.00
S32              GreenRoof            1       26.94        1.60        1.55        0.00        0.00
S32              PermeablePavement     1       67.35        4.01        3.88        0.00        0.00
S33              VegetativeSwale      1       15.41        2.41        4.09        0.00        0.00
S33              Bio-RetentionCell     1       32.88        3.21        8.72        0.00        0.00
S33              RainGarden           1       49.82        4.81       13.21        0.00        0.00
S33              GreenRoof            1        0.00        1.60        0.00        0.00        0.00
S33              PermeablePavement     1       67.35        4.01       17.86        0.00        0.00
S34              VegetativeSwale      1       16.59        1.54        1.84        0.00        0.00
S34              Bio-RetentionCell     1       22.12        2.06        2.45        0.00        0.00
S34              RainGarden           1       33.18        3.08        3.67        0.00        0.00
S34              GreenRoof            1       11.06        1.03        1.22        0.00        0.00
S34              PermeablePavement     1       27.65        2.57        3.06        0.00        0.00
S35              VegetativeSwale      1       29.70        2.06        2.26        0.00        0.00
S35              Bio-RetentionCell     1       39.60        2.75        3.01        0.00        0.00
S35              RainGarden           1       59.41        4.13        4.52        0.00        0.00
S35              GreenRoof            1       19.80        1.38        1.51        0.00        0.00
S35              PermeablePavement     1       49.51        3.44        3.76        0.00        0.00
S36              VegetativeSwale      1       25.82        1.92        2.73        0.00        0.00
S36              Bio-RetentionCell     1       34.43        2.56        3.64        0.00        0.00
S36              RainGarden           1       51.65        3.85        5.46        0.00        0.00
S36              GreenRoof            1       17.22        1.28        1.82        0.00        0.00
S36              PermeablePavement     1       43.04        3.21        4.55        0.00        0.00
S37              VegetativeSwale      1        8.56        1.11        1.47        0.00        0.00
S37              Bio-RetentionCell     1       11.42        1.48        1.97        0.00        0.00
S37              RainGarden           1       17.13        2.22        2.95        0.00        0.00
S37              GreenRoof            1        5.71        0.74        0.98        0.00        0.00
S37              PermeablePavement     1       14.27        1.85        2.46        0.00        0.00
S38              VegetativeSwale      1        8.16        1.97        1.18        0.00        0.00
S38              Bio-RetentionCell     1       18.22        2.63        2.64        0.00        0.00
S38              RainGarden           1       27.32        3.95        3.96        0.00        0.00
S38              GreenRoof            1       18.11        1.32        2.63        0.00        0.00
S38              PermeablePavement     1       45.27        3.29        6.57        0.00        0.00
S39              VegetativeSwale      1        3.61        0.72        0.79        0.00        0.00
S39              Bio-RetentionCell     1        4.82        0.96        1.05        0.00        0.00
S39              RainGarden           1        7.23        1.44        1.58        0.00        0.00
S39              GreenRoof            1        2.41        0.48        0.53        0.00        0.00
S39              PermeablePavement     1        6.02        1.20        1.32        0.00        0.00
S40              VegetativeSwale      1       20.74        1.72        2.67        0.00        0.00
S40              Bio-RetentionCell     1       27.65        2.30        3.57        0.00        0.00
S40              RainGarden           1       41.48        3.45        5.35        0.00        0.00
S40              GreenRoof            1       13.83        1.15        1.78        0.00        0.00
S40              PermeablePavement     1       34.56        2.87        4.46        0.00        0.00
S41              VegetativeSwale      1        9.77        1.18        2.19        0.00        0.00
S41              Bio-RetentionCell     1       13.02        1.58        2.92        0.00        0.00
S41              RainGarden           1       19.53        2.37        4.38        0.00        0.00
S41              GreenRoof            1        6.51        0.79        1.46        0.00        0.00
S41              PermeablePavement     1       16.28        1.97        3.65        0.00        0.00
S42              VegetativeSwale      1       14.04        2.11        1.97        0.00        0.00
S42              Bio-RetentionCell     1       29.39        2.81        4.12        0.00        0.00
S42              RainGarden           1       44.08        4.22        6.18        0.00        0.00
S42              GreenRoof            1       20.69        1.41        2.90        0.00        0.00
S42              PermeablePavement     1       51.74        3.52        7.25        0.00        0.00
S43              VegetativeSwale      1       18.06        1.61        2.50        0.00        0.00
S43              Bio-RetentionCell     1       24.08        2.15        3.34        0.00        0.00
S43              RainGarden           1       36.13        3.22        5.00        0.00        0.00
S43              GreenRoof            1       12.04        1.07        1.67        0.00        0.00
S43              PermeablePavement     1       30.10        2.68        4.17        0.00        0.00
S44              VegetativeSwale      1       29.70        2.06        2.59        0.00        0.00
S44              Bio-RetentionCell     1       39.60        2.75        3.45        0.00        0.00
S44              RainGarden           1       59.41        4.13        5.17        0.00        0.00
S44              GreenRoof            1       19.80        1.38        1.72        0.00        0.00
S44              PermeablePavement     1       49.51        3.44        4.31        0.00        0.00
S45              VegetativeSwale      1        3.61        0.72        0.92        0.00        0.00
S45              Bio-RetentionCell     1        4.82        0.96        1.23        0.00        0.00
S45              RainGarden           1        7.23        1.44        1.84        0.00        0.00
S45              GreenRoof            1        2.41        0.48        0.61        0.00        0.00
S45              PermeablePavement     1        6.02        1.20        1.54        0.00        0.00
S46              VegetativeSwale      1       31.84        3.57        1.34        0.00        0.00
S46              Bio-RetentionCell     1       64.46        4.76        2.71        0.00        0.00
S46              RainGarden           1       97.69        7.14        4.11        0.00        0.00
S46              GreenRoof            1       59.23        2.38        2.49        0.00        0.00
S46              PermeablePavement     1      148.07        5.95        6.23        0.00        0.00
S47              VegetativeSwale      1       21.27        1.75        2.57        0.00        0.00
S47              Bio-RetentionCell     1       28.37        2.33        3.43        0.00        0.00
S47              RainGarden           1       42.55        3.49        5.14        0.00        0.00
S47              GreenRoof            1       14.18        1.16        1.71        0.00        0.00
S47              PermeablePavement     1       35.46        2.91        4.28        0.00        0.00
S48              VegetativeSwale      1       14.05        1.42        2.07        0.00        0.00
S48              Bio-RetentionCell     1       18.73        1.89        2.77        0.00        0.00
S48              RainGarden           1       28.10        2.84        4.15        0.00        0.00
S48              GreenRoof            1        9.37        0.95        1.38        0.00        0.00
S48              PermeablePavement     1       23.41        2.36        3.46        0.00        0.00
S49              VegetativeSwale      1       23.41        1.83        3.67        0.00        0.00
S49              Bio-RetentionCell     1       31.22        2.44        4.90        0.00        0.00
S49              RainGarden           1       46.83        3.66        7.35        0.00        0.00
S49              GreenRoof            1       15.61        1.22        2.45        0.00        0.00
S49              PermeablePavement     1       39.02        3.05        6.12        0.00        0.00
S50              VegetativeSwale      1       15.39        1.48        1.36        0.00        0.00
S50              Bio-RetentionCell     1       20.52        1.98        1.81        0.00        0.00
S50              RainGarden           1       30.77        2.97        2.72        0.00        0.00
S50              GreenRoof            1       10.26        0.99        0.91        0.00        0.00
S50              PermeablePavement     1       25.64        2.47        2.27        0.00        0.00
S51              VegetativeSwale      1       44.56        2.53        3.00        0.00        0.00
S51              Bio-RetentionCell     1       59.41        3.37        4.00        0.00        0.00
S51              RainGarden           1       89.11        5.05        6.00        0.00        0.00
S51              GreenRoof            1       29.70        1.68        2.00        0.00        0.00
S51              PermeablePavement     1       74.26        4.21        5.00        0.00        0.00

If you need other supplementary materials, please feel free to contact. Thanks again

bemcdonnell commented 8 months ago

@noneaddress, I think you mentioned that this RPT you shared was from running your model with SWMM without optimization (not pyswmm). Could you share the RPT that was generated from the failed pyswmm run? What I suspect is that when you are picking new parameters, one of the parameters is invalid. Even when a simulation fails and throws error it will save that information to the RPT (and it tells you exactly what the parameter is that is the problem). Does my question make sense?