Meaningless crop name and conversion errors

35 views
Skip to first unread message

Carlos Alberto Arnillas

unread,
Nov 25, 2021, 12:53:58 PM11/25/21
to EPIC / APEX Modeling Forum
Hello
I have been running APEX to represent two or more crops growing together. Most of the time works well, but I found a weird error in one case. There is cropname totally meaningless (",7V\001"), with values obtained from SAO file all equal to 0. 
Running with debug mode, the file reported two types of errors:

- forrtl: error (63): output conversion error, unit 101, file MyRun1.OUT
- Subscript #2 of the array VARC has value 0 which is less than the lower bound of 1

The first one does not seem to affect the normal run (see the output of the debug mode below) but the second one does. My questions are: what is causing those errors? And, can I trust the results for the other crops even when I have these errors?

Thanks for your help!

Carlos Alberto

 FSITE    SITECOM.DAT                                                                     
 FSUBA    SUBACOM.DAT                                                                     
  FWPM    WPM10604.DAT                                                                    
 FWIND    WIND0604.DAT                                                                    
 FCROP    CROPCOM.DAT                                                                     
 FTILL    TILLCOM.DAT                                                                     
 FPEST    PESTCOM.DAT                                                                     
 FFERT    FERTCOM.DAT                                                                     
 FSOIL    SOILCOM.DAT                                                                     
 FOPSC    OPSCCOM.DAT                                                                     
 FTR55    TR55COM.DAT                                                                     
 FPARM    PARM1501.DAT                                                                    
 FMLRN    MLRN1501.DAT                                                                    
 FPRNT    PRNT1501.DAT                                                                    
 FHERD    HERD1501.DAT                                                                    
 FWLST    WDLSTCOM.DAT                                                                    
 FPSOD    PSOCOM.DAT                                                                      
 FRFDT    RFDTLST.DAT                                                                     
     RUN # =    0  SUBAREA FILE = ws00013.SUB                                                                     

    YEAR    1 OF   11


    YEAR    2 OF   11

forrtl: error (63): output conversion error, unit 101, file E:\BoQ\GIS_gan2\apex_files\apex_in\MyRun1.OUT
Image              PC        Routine            Line        Source             
APEX1501_Debug.ex  00B53DC0  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00B5C0F8  Unknown               Unknown  Unknown
APEX1501_Debug.ex  0058AD0A  _BSIM                    1253  BSIM.f90
APEX1501_Debug.ex  0087BEAD  _MAIN__                  3761  MAIN_1501.f90
APEX1501_Debug.ex  00BEDB3F  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE7A3  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE677  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE51D  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE808  Unknown               Unknown  Unknown
KERNEL32.DLL       77D16359  Unknown               Unknown  Unknown
ntdll.dll          77E587A4  Unknown               Unknown  Unknown
ntdll.dll          77E58774  Unknown               Unknown  Unknown

    YEAR    3 OF   11

forrtl: error (63): output conversion error, unit 101, file E:\BoQ\GIS_gan2\apex_files\apex_in\MyRun1.OUT
Image              PC        Routine            Line        Source             
APEX1501_Debug.ex  00B53DC0  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00B5C0F8  Unknown               Unknown  Unknown
APEX1501_Debug.ex  0058AD0A  _BSIM                    1253  BSIM.f90
APEX1501_Debug.ex  0087BEAD  _MAIN__                  3761  MAIN_1501.f90
APEX1501_Debug.ex  00BEDB3F  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE7A3  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE677  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE51D  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE808  Unknown               Unknown  Unknown
KERNEL32.DLL       77D16359  Unknown               Unknown  Unknown
ntdll.dll          77E587A4  Unknown               Unknown  Unknown
ntdll.dll          77E58774  Unknown               Unknown  Unknown

    YEAR    4 OF   11


    YEAR    5 OF   11

forrtl: error (63): output conversion error, unit 101, file E:\BoQ\GIS_gan2\apex_files\apex_in\MyRun1.OUT
Image              PC        Routine            Line        Source             
APEX1501_Debug.ex  00B53DC0  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00B5C0F8  Unknown               Unknown  Unknown
APEX1501_Debug.ex  0058AD0A  _BSIM                    1253  BSIM.f90
APEX1501_Debug.ex  0087BEAD  _MAIN__                  3761  MAIN_1501.f90
APEX1501_Debug.ex  00BEDB3F  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE7A3  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE677  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE51D  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE808  Unknown               Unknown  Unknown
KERNEL32.DLL       77D16359  Unknown               Unknown  Unknown
ntdll.dll          77E587A4  Unknown               Unknown  Unknown
ntdll.dll          77E58774  Unknown               Unknown  Unknown

    YEAR    6 OF   11

forrtl: severe (408): fort: (3): Subscript #2 of the array VARC has value 0 which is less than the lower bound of 1

Image              PC        Routine            Line        Source             
APEX1501_Debug.ex  00B563FF  Unknown               Unknown  Unknown
APEX1501_Debug.ex  0049B8BC  _BSUB                    1083  BSUB.f90
APEX1501_Debug.ex  004CF346  _BSIM                     469  BSIM.f90
APEX1501_Debug.ex  0087BEAD  _MAIN__                  3761  MAIN_1501.f90
APEX1501_Debug.ex  00BEDB3F  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE7A3  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE677  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE51D  Unknown               Unknown  Unknown
APEX1501_Debug.ex  00BEE808  Unknown               Unknown  Unknown
KERNEL32.DLL       77D16359  Unknown               Unknown  Unknown
ntdll.dll          77E587A4  Unknown               Unknown  Unknown
ntdll.dll          77E58774  Unknown               Unknown  Unknown

Luca

unread,
Nov 29, 2021, 5:57:20 AM11/29/21
to EPIC / APEX Modeling Forum
Dear Carlos Alberto,

Based on the second error you have reported, and the possible line of code where the error occurs, I think the problem can be related to the date/number of year in the simulation. In the management file, make sure to have at least one operation for every year included in the management file. You must have all the consecutive years (except for some special cases). For instance, you cannot have a manegement file with year 1, 2, 4, and 5.
Let me know if this helps.

Luca

Carlos Alberto Arnillas

unread,
Nov 30, 2021, 7:27:16 AM11/30/21
to EPIC / APEX Modeling Forum
Dear Luca
Thanks for you message. I checked the dates, but there is no gap. Here is the file.
What else could cause the problem?

Carlos Alberto


  ID: 16  |   Field 16: Outside 1 (1Y SOYBEAN MED TILL - COASTAL BERM 1Y ROT HAY - 1Y CORN GRAIN MED TILL - Cover crop - rye - WINTER WHEAT - Cover crop - oat)
   4 500 260 261 271 268 266 265 267
  1  5 30  261   12    1   54      65       0       0       0       0       0       0 SOYB : Fertilize with P
  1  5 30  261   12    1   55      65       0       0       0       0       0       0 SOYB : Fertilize with K
  1  5 30  136   21    1    0    1200       4       0       0      25       0       0 SOYB : Plant in rows
  1  9 10  292    0    1    0       0       0       0       0       0       0    1.15 SOYB : Harvest without kill
  1  9 11  451    0    1    0       0       0       0       0       0       0       0 SOYB : Kill crop
  2  5  1  126   12  132    0    2000      22       0       0      50       0     0.2 HAY : Plant in rows
  2  6  5  261   12  132   54      60       0       0       0       0       0    0.25 HAY : Fertilize with P
  2  6  5  261   12  132   73     280       0       0       0       0       0     0.2 HAY : Fertilize with K
  2  8  5  316   12  132    0       0       0       0       0       0       0     0.5 HAY : Harvest without kill
  2  9  1  316   12  132    0       0       0       0       0       0       0     0.5 HAY : Harvest without kill
  2 10 15  316   12  132    0       0       0       0       0       0       0     0.5 HAY : Harvest without kill
  3  5  1  261   12  132   54      60       0       0       0       0       0    0.25 HAY : Fertilize with P
  3  5  1  261   12  132   73     280       0       0       0       0       0     0.2 HAY : Fertilize with K
  3  7  1  316   12  132    0       0       0       0       0       0       0     0.5 HAY : Harvest without kill
  3  9  1  316   12  132    0       0       0       0       0       0       0     0.5 HAY : Harvest without kill
  3 10 15  316   12  132    0       0       0       0       0       0       0     0.5 HAY : Harvest without kill
  4  5 30  261   12    1   54      65       0       0       0       0       0       0 SOYB : Fertilize with P
  4  5 30  261   12    1   55      65       0       0       0       0       0       0 SOYB : Fertilize with K
  4  5 30  136   21    1    0    1200       4       0       0      25       0       0 SOYB : Plant in rows
  4  9 10  292    0    1    0       0       0       0       0       0       0    1.15 SOYB : Harvest without kill
  4  9 11  451    0    1    0       0       0       0       0       0       0       0 SOYB : Kill crop
  5  5  1  126   12  132    0    2000      22       0       0      50       0     0.2 HAY : Plant in rows
  5  6  5  261   12  132   54      60       0       0       0       0       0    0.25 HAY : Fertilize with P
  5  6  5  261   12  132   73     280       0       0       0       0       0     0.2 HAY : Fertilize with K
  5  8  5  316   12  132    0       0       0       0       0       0       0     0.5 HAY : Harvest without kill
  5  9  1  316   12  132    0       0       0       0       0       0       0     0.5 HAY : Harvest without kill
  5 10 15  316   12  132    0       0       0       0       0       0       0     0.5 HAY : Harvest without kill
  6  4 25  451    0  132    0       0       0       0       0       0       0       0 HAY : Kill crop
  6  5  1  265   21    2   53     161       0       0       0       0       0       0 CORN : Fertilize with N
  6  5  2  250   18    2    0       0       0       0       0       0       0       0 CORN : Plow, cultivate, other
  6  5 15  136   21    2    0    1200       4       0       0     8.8       0       0 CORN : Plant in rows
  6  5 15  261   12    2   54      20       0       0       0       0       0       0 CORN : Fertilize with P
  6  5 15  261   12    2   55     170       0       0       0       0       0       0 CORN : Fertilize with K
  6  7 20  146   12   19    0    1200       4       0       0     300       0       0 CRYE : Plant (broadcast)
  6 10 25  292    0    2    0       0       0       0       0       0       0    1.15 CORN : Harvest without kill
  6 10 26  451    0    2    0       0       0       0       0       0       0       0 CORN : Kill crop
  6 11  1  250   18    2    0       0       0       0       0       0       0       0 CORN : Plow, cultivate, other
  7  4 24  292    0   19    0       0       0       0       0       0       0     1.1 CRYE : Harvest without kill
  7  4 25  451    0   19    0       0       0       0       0       0       0       0 CRYE : Kill crop
  7  5  1  126   12  132    0    2000      22       0       0      50       0     0.2 HAY : Plant in rows
  7  6  5  261   12  132   54      60       0       0       0       0       0    0.25 HAY : Fertilize with P
  7  6  5  261   12  132   73     280       0       0       0       0       0     0.2 HAY : Fertilize with K
  7  8  5  316   12  132    0       0       0       0       0       0       0     0.5 HAY : Harvest without kill
  7  9  1  316   12  132    0       0       0       0       0       0       0     0.5 HAY : Harvest without kill
  7  9 30  261   12   10   54   67.21       0       0       0       0       0       0 WWHT : Fertilize with P
  7  9 30  261   12   10   55   123.2       0       0       0       0       0       0 WWHT : Fertilize with K
  7  9 30  132   24   10    0    1634       9       0       0     400       0       0 WWHT : Plant with drill
  7 10 15  316   12  132    0       0       0       0       0       0       0     0.5 HAY : Harvest without kill
  8  3 20  261   12   10   53   67.21       0       0       0       0       0       0 WWHT : Fertilize with N
  8  7 31  292    0   10    0       0       0       0       0       0       0     1.1 WWHT : Harvest without kill
  8  8  2  451    0   10    0       0       0       0       0       0       0       0 WWHT : Kill crop
  8  8  7  146   12   17    0    1200       4       0       0     250       0       0 COAT : Plant cover crop: Oats
  8 12 25  451    0   17    0       0       0       0       0       0       0       0 COAT : Kill cover crop: Oats
  9  5 30  261   12    1   54      65       0       0       0       0       0       0 SOYB : Fertilize with P
  9  5 30  261   12    1   55      65       0       0       0       0       0       0 SOYB : Fertilize with K
  9  5 30  136   21    1    0    1200       4       0       0      25       0       0 SOYB : Plant in rows
  9  9 10  292    0    1    0       0       0       0       0       0       0    1.15 SOYB : Harvest without kill
  9  9 11  451    0    1    0       0       0       0       0       0       0       0 SOYB : Kill crop


Luca

unread,
Dec 1, 2021, 3:02:02 AM12/1/21
to EPIC / APEX Modeling Forum
Carlos,
Looking at the management file you sent, I can see three planting operations for hay but only one kill operation. Try to fix that to see if it solves the problem.

Luca

Carlos Alberto Arnillas

unread,
Dec 1, 2021, 7:16:28 AM12/1/21
to EPIC / APEX Modeling Forum
Dear Luca,
it works, thanks!
However, I am still getting this error. it does not cause the model to stop working, is this something that could affect the outputs somehow?

Carlos Alberto

forrtl: error (63): output conversion error, unit 101, file E:\BoQ\GIS_gan2\apex_files\apex_in\MyRun1.OUT
Image              PC        Routine            Line        Source             
APEX1501_Debug.ex  018A3DC0  Unknown               Unknown  Unknown
APEX1501_Debug.ex  018AC0F8  Unknown               Unknown  Unknown
APEX1501_Debug.ex  012DAD0A  _BSIM                    1253  BSIM.f90
APEX1501_Debug.ex  015CBEAD  _MAIN__                  3761  MAIN_1501.f90
APEX1501_Debug.ex  0193DB3F  Unknown               Unknown  Unknown
APEX1501_Debug.ex  0193E7A3  Unknown               Unknown  Unknown
APEX1501_Debug.ex  0193E677  Unknown               Unknown  Unknown
APEX1501_Debug.ex  0193E51D  Unknown               Unknown  Unknown
APEX1501_Debug.ex  0193E808  Unknown               Unknown  Unknown
KERNEL32.DLL       77D16359  Unknown               Unknown  Unknown
ntdll.dll          77E587A4  Unknown               Unknown  Unknown
ntdll.dll          77E58774  Unknown               Unknown  Unknown
forrtl: error (63): output conversion error, unit 101, file E:\BoQ\GIS_gan2\apex_files\apex_in\MyRun1.OUT
Image              PC        Routine            Line        Source             
APEX1501_Debug.ex  018A3DC0  Unknown               Unknown  Unknown
APEX1501_Debug.ex  018AC0F8  Unknown               Unknown  Unknown
APEX1501_Debug.ex  01666E15  _MAIN__                  4355  MAIN_1501.f90
APEX1501_Debug.ex  0193DB3F  Unknown               Unknown  Unknown
APEX1501_Debug.ex  0193E7A3  Unknown               Unknown  Unknown
APEX1501_Debug.ex  0193E677  Unknown               Unknown  Unknown
APEX1501_Debug.ex  0193E51D  Unknown               Unknown  Unknown
APEX1501_Debug.ex  0193E808  Unknown               Unknown  Unknown
KERNEL32.DLL       77D16359  Unknown               Unknown  Unknown
ntdll.dll          77E587A4  Unknown               Unknown  Unknown
ntdll.dll          77E58774  Unknown               Unknown  Unknown

Luca

unread,
Dec 2, 2021, 3:34:26 AM12/2/21
to EPIC / APEX Modeling Forum
That error should not affect the output of the simulation. Usually, it happens when the number of characters for a value is larger than the number of characters allowed for its field. For instance, if the format to write the amount of fertilizer applied allows maximum six characters (decimal point included) and the amount of fertilizer applied is 123456.8, the number has eight characters and the model will return the error "output conversion error" and will print some asterisks (******) instead of the value.
Now, this is the most common problem that generates this error, but I cannot be sure that this is what is happening in your simulation. Look at the OUT file to find the asterisks to understand which variable is generating the error. It could even be generated by an economic value that you are not interested and that doesn't affect the simulation.

Let me know what you find out.
Luca

Carlos Alberto Arnillas

unread,
Dec 2, 2021, 10:20:17 AM12/2/21
to EPIC / APEX Modeling Forum
Thanks Luca
I checked the .OUT files. The problem is caused by HAY operations and affects the variables FN and FK and it was caused by a wrong fertilizer ID (see lines 1-4 below). 
However, in one case, I got a different error (see line 5). It also in the same type of operation, but not sure what the STRS line is trying to represent.
These are the type of errors I got,
[1] "  HAY  YLD=  0.0/  6.9  BIOM= 11.1t/ha  YLN= 115.  YLP=  21.  YLK=   0.  FN=*****kg/ha  FP= 121.kg/ha  FK=*****kg/ha"            
[2] "  HAY  YLD=  0.0/ 14.3  BIOM= 14.9t/ha  YLN= 217.  YLP=  43.  YLK=   0.  FN=*****kg/ha  FP= 115.kg/ha  FK=*****kg/ha"            
[3] "  HAY  YLD=  0.0/  0.7  BIOM=  0.9t/ha  YLN=  13.  YLP=   0.  YLK=   0.  FN=*****kg/ha  FP= 120.kg/ha  FK=*****kg/ha"            
[4] "  HAY  YLD=  0.0/  0.8  BIOM=  0.9t/ha  YLN=  26.  YLP=   1.  YLK=   0.  FN=*****kg/ha  FP=  60.kg/ha  FK=*****kg/ha"            
[5] " STRS*********528100200529100200525100200517100200106504200103502200124500200130500200130501200517113200531100200           STRS"

Regards,

Carlos Alberto


Luca

unread,
Dec 6, 2021, 3:28:16 AM12/6/21
to EPIC / APEX Modeling Forum
Dear Carlos,

The error you have in the first 4 rows means that the amount of N applied is too big to be written in the space available for that field. To be sure, check the amount you have in the management file.
The error in the last row, should be related to the stresses, but I don't have access to the source code now so, I cannot be 100% sure. Again, it means that the value has a number of digits that exceed the number of characters allowed for that field.

I think that if you check the error with the fertilization you will be good to go.
Luca

Reply all
Reply to author
Forward
0 new messages