/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 8 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7424
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1808.2+3500_daily_bin451
RA = 272.066, Dec = 35.0104
tmin = 356227201, tmax = 356486401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='614029', job_status='RUN', time_executed='2021-09-19 18:05:32.255434', time_epoch_executed='1632099932.26' WHERE source_name='4FGL J1808.2+3500' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/614029

Creating custom pfile directory:
/scratch/kocevski/614029/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=356227201.0 && nMetStart<356486401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=356227201.0 && nMetStart<356486401.0' /Data/Flight/Level1/LPA

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/614029/ft1_4FGL_J1808.2+3500_daily_bin451.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=356227201.0 && nMetStart<356486401.0' /Data/Flight/Level1/LPA

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/614029/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/614029/ft2_4FGL_J1808.2+3500_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/614029/ft1_4FGL_J1808.2+3500_daily_bin451.fits outfile=/scratch/kocevski/614029/ft1_filteredMKT_4FGL_J1808.2+3500_daily_bin451.fits ra=272.066 dec=35.0104 rad=12.0 tmin=356227201.0 tmax=356486401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.09
user 2.88
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/614029/ft2_4FGL_J1808.2+3500_daily_bin451.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/614029/ft2_4FGL_J1808.2+3500_daily_bin451.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/614029/ft1_filteredMKT_4FGL_J1808.2+3500_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/614029/ft1_filtered_4FGL_J1808.2+3500_daily_bin451.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.47
user 0.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/614029/ft1_filtered_4FGL_J1808.2+3500_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/614029/ft2_4FGL_J1808.2+3500_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/614029/ltcube_356227201_356486401_4FGL_J1808.2+3500_daily_bin451.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/614029/ft2_4FGL_J1808.2+3500_daily_bin451.fits
.....................!
real 3.22
user 2.89
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/614029/ft1_filtered_4FGL_J1808.2+3500_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/614029/ft2_4FGL_J1808.2+3500_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/614029/ltcube_356227201_356486401_4FGL_J1808.2+3500_daily_bin451.fits outfile=/scratch/kocevski/614029/expmap_356227201_356486401_4FGL_J1808.2+3500_daily_bin451.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/614029/ltcube_356227201_356486401_4FGL_J1808.2+3500_daily_bin451.fits
.....................!
real 189.04
user 184.68
sys 3.99

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 204 point sources and 0 extended sources

Setting source of interest to:
4FGL J1808.2+3500 @ 272.066 35.0104

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/614029/ft1_filtered_4FGL_J1808.2+3500_daily_bin451.fits scfile=/scratch/kocevski/614029/ft2_4FGL_J1808.2+3500_daily_bin451.fits outfile=/scratch/kocevski/614029/cmap_356227201_356486401_4FGL_J1808.2+3500_daily_bin451.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=272.066 yref=35.0104 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/614029/ft1_filtered_4FGL_J1808.2+3500_daily_bin451.fits scfile=/scratch/kocevski/614029/ft2_4FGL_J1808.2+3500_daily_bin451.fits outfile=/scratch/kocevski/614029/cmap_HighResolution_356227201_356486401_4FGL_J1808.2+3500_daily_bin451.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=272.066 yref=35.0104 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/614029/ft1_filtered_4FGL_J1808.2+3500_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/614029/ft2_4FGL_J1808.2+3500_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/614029/Model_4FGL_J1808.2+3500_daily_bin451.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/614029/ft1_filtered_4FGL_J1808.2+3500_daily_bin451.fits......................!
real 30.71
user 29.45
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/614029/ft1_filtered_4FGL_J1808.2+3500_daily_bin451.fits', '/scratch/kocevski/614029/ft2_4FGL_J1808.2+3500_daily_bin451.fits', expMap='/scratch/kocevski/614029/expmap_356227201_356486401_4FGL_J1808.2+3500_daily_bin451.fits', expCube='/scratch/kocevski/614029/ltcube_356227201_356486401_4FGL_J1808.2+3500_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/614029/Model_4FGL_J1808.2+3500_daily_bin451.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1808.2+3500'

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  1.117e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
359        Index:  2.260e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/614029/ft1_filtered_4FGL_J1808.2+3500_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/614029/ft2_4FGL_J1808.2+3500_daily_bin451.fits
Exposure map: /scratch/kocevski/614029/expmap_356227201_356486401_4FGL_J1808.2+3500_daily_bin451.fits
Exposure cube: /scratch/kocevski/614029/ltcube_356227201_356486401_4FGL_J1808.2+3500_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/614029/Model_4FGL_J1808.2+3500_daily_bin451.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2300.62876195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2300.60892312

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.360       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .13762E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11313E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10202E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4061       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.7960       1.0000         .10000E-03   10000.    
    23 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    73.908       1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.828       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4247       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0162       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2300.609     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3414 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    26.985        .59304E-07** at limit **
   2  Prefactor     .10000E-03    48.910       -.97204E-07** at limit **
   3  norm          .10000E-03    18.403        .10930E-06** at limit **
   4  Prefactor     .10000E-03    79.044       -.42987E-07** at limit **
   5  Prefactor     .10000E-03    105.02        .63923E-06** at limit **
   6  Prefactor     .10000E-03    13.374       -.47230E-07** at limit **
   7  Prefactor     .10000E-03    45.472        .62697E-07** at limit **
   8  Prefactor     16.370        26.519        .10394E-07   -.17860E-04
   9  Prefactor     .10000E-03    27.246        .28388E-07** at limit **
  10  Prefactor     .10000E-03    78.504       -.11607E-06** at limit **
  11  Prefactor     .10000E-03    7.8621       -.27560E-07** at limit **
  12  norm          .10000E-03    3.6757       -.11669E-06** at limit **
  13  norm          .10000E-03    204.59       -.69066E-06** at limit **
  14  norm          .10000E-03    11.529       -.33052E-08** at limit **
  15  Prefactor     .10000E-03    19.875       -.26406E-06** at limit **
  16  norm          .10000E-03    24.699       -.57467E-06** at limit **
  17  Prefactor     .10000E-03    10.373       -.23494E-06** at limit **
  18  Prefactor     3.3846        187.01       -.67697E-06   -.36202E-05
  19  norm          .10000E-03    26.967        .34681E-07** at limit **
  20  Prefactor     .10000E-03    9.3327        .34333E-07** at limit **
  21  norm          .10000E-03    70.492       -.27292E-06** at limit **
  22  norm          7.7994        8.0387       -.33550E-05   -.27709E-03
  23  norm          .10000E-03    5.7390        .45247E-05** at limit **
  24  Prefactor     .10000E-03    11.890       -.39177E-07** at limit **
  25  Prefactor     74.135        166.42       -.72530E-06    .54849E-04
  26  Prefactor     34.829        34.678       -.68189E-07   -.40856E-05
  27  Normalizat    1.4250        .45594        .25345E-05   -.12021E-03
  28  Prefactor     1.0163        .20231       -.15995E-05    .16743E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.38465
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.7994
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.1348
  Prefactor  = 34.829
  Normalizat = 1.42497
  Prefactor  = 1.01625
 **********
 **   18 **HESSE 
 **********

 FCN=   2300.609     FROM HESSE     STATUS=OK           505 CALLS     3919 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    27.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    48.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    18.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    79.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    105.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.378        .17135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    45.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.370        26.589        .99023E-04   -1.4899    
   9  Prefactor     .10000E-03    27.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    78.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.8689        .13137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.0498        .17907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    204.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.542        .15906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    24.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.413        .15070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3846        186.42        .21920E-03   -1.5340    
  19  norm          .10000E-03    26.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.3459        .14312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    70.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.7994        8.6711        .13775E-03   -1.5149    
  23  norm          .10000E-03    10.116        .21409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.896        .16156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     74.135        166.27        .23351E-03   -1.3984    
  26  Prefactor     34.829        34.678        .67904E-04   -1.4527    
  27  Normalizat    1.4250        .53440        .35646E-03   -.79909    
  28  Prefactor     1.0163        .23764        .18069E-03   -.92190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26972e-09
Minuit parameter uncertainties:
  1  9.88443e-06
  2  5.984e-05
  3  2.78286e-05
  4  3.88704e-05
  5  0.000720902
  6  2.5493e-07
  7  8.07897e-05
  8  26.6081
  9  5.41951e-05
  10  6.97294e-06
  11  7.53954e-06
  12  0.000116509
  13  0.000501702
  14  1.76806e-05
  15  2.91697e-05
  16  0.000122349
  17  9.68012e-05
  18  50.404
  19  2.62139e-05
  20  1.83978e-05
  21  0.000173208
  22  8.67246
  23  8.1398e-05
  24  9.40232e-06
  25  167.324
  26  34.6983
  27  0.536516
  28  0.237884
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2300.60891806

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  1.000e-04  2.917e-05  1.000e-04  1.000e+04 ( 1.000e-13)
359        Index:  2.260e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.016e+00  2.379e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.425e+00  5.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 272.066 35.010
Photon Flux Upper Limit: 2.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.89e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/614029/likelihoodResults_356227201_356486401_4FGL_J1808.2+3500_daily_bin451.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2300.60915565
delta logL = -0.000237590063989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2300.52108483
delta logL = 0.0878332316938

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28526       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8092       1.0000          .0000       10.000    
     3 'Normalizat'    1.3361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2300.521     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      285 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28597        15.130        .10360E-01    .85122E-03
   2  Index         3.8088        3.6091        .10416        .67064E-04
   3  Normalizat    1.3356        .82371E-01    .82752E-01   -.92675E-05
   4  Prefactor     1.0368        .36212E-01    .40750E-01   -.66915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.285966
  Index      = 3.80878
  Normalizat = 1.33564
  Prefactor  = 1.03684
 **********
 **   18 **HESSE 
 **********

 FCN=   2300.521     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      316 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28597        69.499        .55199E-04   -1.5601    
   2  Index         3.8088        5.4790        .59437E-02   -.24056    
   3  Normalizat    1.3356        .46971        .36635E-03   -.82509    
   4  Prefactor     1.0368        .20007        .17905E-03   -.91512    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.62446e-10
Minuit parameter uncertainties:
  1  8.92509
  2  11.9298
  3  0.471223
  4  0.200218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/614029': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2300.52108349
delta logL = 0.0878345701735

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  2.860e-01  8.925e+00  1.000e-04  1.000e+04 ( 1.000e-13)
359        Index:  3.809e+00  1.193e+01  0.000e+00  1.000e+01 (-1.000e+00)
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.037e+00  2.002e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.336e+00  4.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 272.066 35.010

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/614029/cmap_HighResolution_356227201_356486401_4FGL_J1808.2+3500_daily_bin451.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/614029

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-02', job_status='DONE', photon_flux_upper_limit='2.47e-07', time_completed='2021-09-19 18:13:59.308816', job_id='614029', GAL2='1.04', fit_tolerance='1e-08', EG2='1.34', EG='1.42', time_epoch_completed='1632100439.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='8.78e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='451' AND source_name='4FGL J1808.2+3500' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 18:13:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 614029: <4FGL_J1808.2+3500_daily_bin451> in cluster <slac> Done

Job <4FGL_J1808.2+3500_daily_bin451> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 19 18:05:15 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 18:05:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 19 18:05:16 2021
Terminated at Sun Sep 19 18:14:00 2021
Results reported at Sun Sep 19 18:14:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1808.2+3500_daily_bin451 272.066 35.0104 356227201 356486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1808.2+3500 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   505.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   523 sec.
    Turnaround time :                            525 sec.

The output (if any) is above this job summary.

