/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 143 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 = 7422
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0809.8+0507_daily_bin621
RA = 122.453, Dec = 5.1313
tmin = 400291201, tmax = 400550401
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='251660', job_status='RUN', time_executed='2021-08-29 08:58:24.361767', time_epoch_executed='1630252704.36' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251660

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251660/ft1_4FGL_J0809.8+0507_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251660/ft2_4FGL_J0809.8+0507_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251660/ft1_4FGL_J0809.8+0507_daily_bin621.fits outfile=/scratch/kocevski/251660/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin621.fits ra=122.453 dec=5.1313 rad=12.0 tmin=400291201.0 tmax=400550401.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.67
user 3.11
sys 0.54

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/251660/ft2_4FGL_J0809.8+0507_daily_bin621.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251660/ft2_4FGL_J0809.8+0507_daily_bin621.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/251660/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin621.fits evtable="EVENTS" outfile="/scratch/kocevski/251660/ft1_filtered_4FGL_J0809.8+0507_daily_bin621.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.86
user 0.33
sys 0.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251660/ft1_filtered_4FGL_J0809.8+0507_daily_bin621.fits" evtable="EVENTS" scfile=/scratch/kocevski/251660/ft2_4FGL_J0809.8+0507_daily_bin621.fits sctable="SC_DATA" outfile=/scratch/kocevski/251660/ltcube_400291201_400550401_4FGL_J0809.8+0507_daily_bin621.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/251660/ft2_4FGL_J0809.8+0507_daily_bin621.fits
.....................!
real 12.03
user 11.32
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251660/ft1_filtered_4FGL_J0809.8+0507_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/251660/ft2_4FGL_J0809.8+0507_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/251660/ltcube_400291201_400550401_4FGL_J0809.8+0507_daily_bin621.fits outfile=/scratch/kocevski/251660/expmap_400291201_400550401_4FGL_J0809.8+0507_daily_bin621.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/251660/ltcube_400291201_400550401_4FGL_J0809.8+0507_daily_bin621.fits
.....................!
real 192.29
user 186.90
sys 4.96

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0809.8+0507 @ 122.453 5.1313

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/251660/ft1_filtered_4FGL_J0809.8+0507_daily_bin621.fits scfile=/scratch/kocevski/251660/ft2_4FGL_J0809.8+0507_daily_bin621.fits outfile=/scratch/kocevski/251660/cmap_400291201_400550401_4FGL_J0809.8+0507_daily_bin621.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=122.453 yref=5.1313 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
real 0.88
user 0.37
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251660/ft1_filtered_4FGL_J0809.8+0507_daily_bin621.fits scfile=/scratch/kocevski/251660/ft2_4FGL_J0809.8+0507_daily_bin621.fits outfile=/scratch/kocevski/251660/cmap_HighResolution_400291201_400550401_4FGL_J0809.8+0507_daily_bin621.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=122.453 yref=5.1313 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
real 0.91
user 0.38
sys 0.50

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/251660/ft1_filtered_4FGL_J0809.8+0507_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/251660/ft2_4FGL_J0809.8+0507_daily_bin621.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/251660/Model_4FGL_J0809.8+0507_daily_bin621.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/251660/ft1_filtered_4FGL_J0809.8+0507_daily_bin621.fits.....................!
real 87.49
user 85.56
sys 1.62

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/251660/ft1_filtered_4FGL_J0809.8+0507_daily_bin621.fits', '/scratch/kocevski/251660/ft2_4FGL_J0809.8+0507_daily_bin621.fits', expMap='/scratch/kocevski/251660/expmap_400291201_400550401_4FGL_J0809.8+0507_daily_bin621.fits', expCube='/scratch/kocevski/251660/ltcube_400291201_400550401_4FGL_J0809.8+0507_daily_bin621.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/251660/Model_4FGL_J0809.8+0507_daily_bin621.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.8+0507'

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.437e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/251660/ft1_filtered_4FGL_J0809.8+0507_daily_bin621.fits
Spacecraft file(s): /scratch/kocevski/251660/ft2_4FGL_J0809.8+0507_daily_bin621.fits
Exposure map: /scratch/kocevski/251660/expmap_400291201_400550401_4FGL_J0809.8+0507_daily_bin621.fits
Exposure cube: /scratch/kocevski/251660/ltcube_400291201_400550401_4FGL_J0809.8+0507_daily_bin621.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/251660/Model_4FGL_J0809.8+0507_daily_bin621.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) = 7972.20437128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49674       1.0000         .10000E-03   10000.    
     3 'norm      '    .67936       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4751       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.113       1.0000         .10000E-03   10000.    
     8 'Prefactor '    119.98       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3821       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5488       1.0000         .10000E-03   10000.    
    11 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6819       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6237       1.0000         .10000E-03   10000.    
    14 'norm      '    5.0455       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4331       1.0000         .10000E-03   10000.    
    17 'norm      '    .53729       1.0000         .10000E-03   10000.    
    18 'norm      '    2.9269       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0257       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90475       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7972.160     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2228 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7506       -.11396E-05** at limit **
   2  Prefactor     .39307        13.922       -.28425E-05   -.31664E-03
   3  norm          .67956        .73971       -.31434E-06   -.56565E-03
   4  Prefactor     .10000E-03    9.3332        .13566E-05** at limit **
   5  Prefactor     2.4736        2.5996        .62251E-05    .57648E-03
   6  norm          .10000E-03    6.8775        .98919E-06** at limit **
   7  Prefactor     13.113        12.292        .45654E-05    .71678E-05
   8  Prefactor     119.59        129.39       -.33774E-03    .17296E-04
   9  Prefactor     3.3820        3.5506       -.46429E-06    .40983E-04
  10  Prefactor     5.5385        33.370       -.13453E-04    .99297E-05
  11  norm          .10000E-03    6.9489       -.19406E-05** at limit **
  12  norm          1.6819        1.4859       -.33595E-06   -.45137E-03
  13  norm          3.6224        23.771       -.23231E-05   -.74271E-05
  14  norm          5.0449        3.6671       -.56639E-06    .13103E-03
  15  Prefactor     .10000E-03    38.295       -.25451E-05** at limit **
  16  Prefactor     6.4270        13.051       -.21605E-05    .19210E-04
  17  norm          .53727        .57225       -.43378E-06   -.11963E-02
  18  norm          2.9263        5.3210        .18804E-05   -.44205E-03
  19  Prefactor     .10000E-03    9.0610        .46649E-07** at limit **
  20  Normalizat    1.0259        .16436        .99328E-05   -.61358E-05
  21  Prefactor     .90467        .10795        .23408E-05    .71357E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.393066
  norm       = 0.679555
  Prefactor  = 0.0001
  Prefactor  = 2.47358
  norm       = 0.0001
  Prefactor  = 13.1126
  Prefactor  = 119.594
  Prefactor  = 3.38199
  Prefactor  = 5.53852
  norm       = 0.0001
  norm       = 1.68185
  norm       = 3.62244
  norm       = 5.0449
  Prefactor  = 0.0001
  Prefactor  = 6.42702
  norm       = 0.537269
  norm       = 2.92629
  Prefactor  = 0.0001
  Normalizat = 1.02591
  Prefactor  = 0.904669
 **********
 **   18 **HESSE 
 **********

 FCN=   7972.160     FROM HESSE     STATUS=OK           331 CALLS     2559 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .39307        15.234        .10476       -1.5583    
   3  norm          .67956        .72515        .77548E-04   -1.5543    
   4  Prefactor     .10000E-03    9.3561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4736        2.5832        .13881E-03   -1.5393    
   6  norm          .10000E-03    6.8829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.113        12.283        .11061E-03   -1.4984    
   8  Prefactor     119.59        129.48        .18370E-03   -1.3516    
   9  Prefactor     3.3820        3.5503        .16774E-03   -1.5340    
  10  Prefactor     5.5385        32.673        .17056E-03   -1.5237    
  11  norm          .10000E-03    7.2755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6819        1.4715        .99348E-04   -1.5449    
  13  norm          3.6224        23.191        .21224E-03   -1.5327    
  14  norm          5.0449        3.6616        .13819E-03   -1.5259    
  15  Prefactor     .10000E-03    38.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.4270        13.102        .15824E-03   -1.5201    
  17  norm          .53727        .56003        .67155E-04   -1.5561    
  18  norm          2.9263        5.3029        .23744E-03   -1.5366    
  19  Prefactor     .10000E-03    9.0660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0259        .19024        .27386E-03   -.92167    
  21  Prefactor     .90467        .12506        .19872E-03   -.95978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55957e-09
Minuit parameter uncertainties:
  1  1.77191e-05
  2  4.89478
  3  0.725161
  4  5.0988e-05
  5  2.58332
  6  1.6298e-05
  7  12.2855
  8  129.79
  9  3.55052
  10  26.9261
  11  0.000102001
  12  1.47158
  13  18.3415
  14  3.66174
  15  0.000155592
  16  13.108
  17  0.560033
  18  5.30378
  19  2.65672e-05
  20  0.190362
  21  0.125097
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  3.622e+00  1.834e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.047e-01  1.251e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.026e+00  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 7.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251660/likelihoodResults_400291201_400550401_4FGL_J0809.8+0507_daily_bin621.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) = 7971.02027121
delta logL = 1.13970746683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7970.82941949
delta logL = 1.33055918992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5027       1.0000         .10000E-03   10000.    
     2 'alpha     '    .16946       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89129       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7970.829     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      275 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4878        11.838        .34369E-02    .18702E-03
   2  alpha         .16909        3.0564        .50000        .80378E-04
   3  Normalizat    1.0383        .15473        .61555E-01   -.27094E-05
   4  Prefactor     .89156        .10668        .44894E-01   -.46084E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.4878
  alpha      = 0.169091
  Normalizat = 1.03827
  Prefactor  = 0.89156
 **********
 **   18 **HESSE 
 **********

 FCN=   7970.829     FROM HESSE     STATUS=OK            33 CALLS      308 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4878        14.570        .13747E-03   -1.5125    
   2  alpha         .16909        3.3124        .82710E-01   -1.2009    
   3  Normalizat    1.0383        .17821        .27224E-03   -.91759    
   4  Prefactor     .89156        .12300        .19976E-03   -.96437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21228e-07
Minuit parameter uncertainties:
  1  14.5765
  2  1.49524
  3  0.178313
  4  0.123042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251660': 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): 0
logL (Free Index) = 7970.82941599
delta logL = 1.33056268465

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  8.488e+00  1.458e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.691e-01  1.495e+00  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  8.916e-01  1.230e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.038e+00  1.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 122.453 5.131
Photon Index (Free Index): 0.17 +/- 1.50
Photon Flux (Free Index): 8.84e-09 +/- 1.03e-08
Energy Flux (Free Index): 8.62e-06 +/- 8.08e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/251660/cmap_HighResolution_400291201_400550401_4FGL_J0809.8+0507_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-05', comment='SUCCESS', energy_flux2='8.62e-06', dlogl='1.33e+00', photon_flux2='8.84e-09', job_status='DONE', time_completed='2021-08-29 09:09:51.325082', photon_index_error2='1.50', photon_index2='0.17', ts='0.05', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='7.58e-08', energy_flux_error2='8.08e-06', EG='1.03', time_epoch_completed='1630253391.33', return_code='0', job_id='251660', GAL2='0.89', EG2='1.04', return_code2='0', photon_flux_error2='1.03e-08', ts2='2.73', photon_index='2.82' WHERE bin_id='621' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:09:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 251660: <4FGL_J0809.8+0507_daily_bin621> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin621> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:55:41 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:55:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 08:55:43 2021
Terminated at Sun Aug 29 09:09:52 2021
Results reported at Sun Aug 29 09:09:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin621 122.453 5.1313 400291201 400550401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+0507 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   692.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            851 sec.

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

