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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin893
RA = 122.453, Dec = 5.1313
tmin = 470793601, tmax = 471052801
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='253203', job_status='RUN', time_executed='2021-08-29 09:04:40.023699', time_epoch_executed='1630253080.02' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253203/ft1_4FGL_J0809.8+0507_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253203/ft2_4FGL_J0809.8+0507_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253203/ft1_4FGL_J0809.8+0507_daily_bin893.fits outfile=/scratch/kocevski/253203/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin893.fits ra=122.453 dec=5.1313 rad=12.0 tmin=470793601.0 tmax=471052801.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 4.01
user 3.25
sys 0.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253203/ft2_4FGL_J0809.8+0507_daily_bin893.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/253203/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin893.fits evtable="EVENTS" outfile="/scratch/kocevski/253203/ft1_filtered_4FGL_J0809.8+0507_daily_bin893.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 1.10
user 0.31
sys 0.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253203/ft1_filtered_4FGL_J0809.8+0507_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/253203/ft2_4FGL_J0809.8+0507_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/253203/ltcube_470793601_471052801_4FGL_J0809.8+0507_daily_bin893.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/253203/ft2_4FGL_J0809.8+0507_daily_bin893.fits
.....................!
real 12.36
user 11.39
sys 0.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253203/ft1_filtered_4FGL_J0809.8+0507_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/253203/ft2_4FGL_J0809.8+0507_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/253203/ltcube_470793601_471052801_4FGL_J0809.8+0507_daily_bin893.fits outfile=/scratch/kocevski/253203/expmap_470793601_471052801_4FGL_J0809.8+0507_daily_bin893.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/253203/ltcube_470793601_471052801_4FGL_J0809.8+0507_daily_bin893.fits
.....................!
real 191.56
user 185.87
sys 5.29

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/253203/ft1_filtered_4FGL_J0809.8+0507_daily_bin893.fits scfile=/scratch/kocevski/253203/ft2_4FGL_J0809.8+0507_daily_bin893.fits outfile=/scratch/kocevski/253203/cmap_470793601_471052801_4FGL_J0809.8+0507_daily_bin893.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 1.05
user 0.37
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253203/ft1_filtered_4FGL_J0809.8+0507_daily_bin893.fits scfile=/scratch/kocevski/253203/ft2_4FGL_J0809.8+0507_daily_bin893.fits outfile=/scratch/kocevski/253203/cmap_HighResolution_470793601_471052801_4FGL_J0809.8+0507_daily_bin893.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 1.15
user 0.38
sys 0.75

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253203/ft1_filtered_4FGL_J0809.8+0507_daily_bin893.fits', '/scratch/kocevski/253203/ft2_4FGL_J0809.8+0507_daily_bin893.fits', expMap='/scratch/kocevski/253203/expmap_470793601_471052801_4FGL_J0809.8+0507_daily_bin893.fits', expCube='/scratch/kocevski/253203/ltcube_470793601_471052801_4FGL_J0809.8+0507_daily_bin893.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253203/Model_4FGL_J0809.8+0507_daily_bin893.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/253203/ft1_filtered_4FGL_J0809.8+0507_daily_bin893.fits
Spacecraft file(s): /scratch/kocevski/253203/ft2_4FGL_J0809.8+0507_daily_bin893.fits
Exposure map: /scratch/kocevski/253203/expmap_470793601_471052801_4FGL_J0809.8+0507_daily_bin893.fits
Exposure cube: /scratch/kocevski/253203/ltcube_470793601_471052801_4FGL_J0809.8+0507_daily_bin893.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253203/Model_4FGL_J0809.8+0507_daily_bin893.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) = 5811.8736076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.380       1.0000         .10000E-03   10000.    
     2 'Prefactor '    66.522       1.0000         .10000E-03   10000.    
     3 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11358E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3290       1.0000         .10000E-03   10000.    
     6 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.180       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11937E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .87819       1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6632       1.0000         .10000E-03   10000.    
    13 'norm      '    .65809       1.0000         .10000E-03   10000.    
    14 'norm      '    10.448       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1196       1.0000         .10000E-03   10000.    
    17 'norm      '    .48671       1.0000         .10000E-03   10000.    
    18 'norm      '    11.429       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10782E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .84627       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0505       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5811.843     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     2582 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.421        55.898        .26033E-03   -.22621E-04
   2  Prefactor     66.553        40.689        .49208E-04   -.48286E-04
   3  norm          .10000E-03    1.1336        .15531E-03** at limit **
   4  Prefactor     .10000E-03    11.876        .18142E-02** at limit **
   5  Prefactor     1.3279        2.6519        .16757E-03   -.60112E-04
   6  norm          .10000E-03    24.749        .18142E-02** at limit **
   7  Prefactor     18.181        14.334        .93935E-04   -.11461E-03
   8  Prefactor     .10000E-03    37.141        .18142E-02** at limit **
   9  Prefactor     .10017E-03    6.2438        .58068E-01** at limit **
  10  Prefactor     .79237        934.08        .81572E-02    .10172E-03
  11  norm          .10000E-03    2.8757        .12615E-02** at limit **
  12  norm          1.6626        2.6644        .15198E-03   -.48623E-04
  13  norm          .55184        316.64        .56775E-02    .19313E-03
  14  norm          10.448        5.1250        .11396E-03   -.12670E-03
  15  Prefactor     .10000E-03    49.104        .18142E-02** at limit **
  16  Prefactor     5.1156        8.9903        .17769E-03   -.60206E-04
  17  norm          .48637        1.0436        .10818E-03    .10719E-03
  18  norm          11.430        11.045        .11850E-03   -.12059E-03
  19  Prefactor     .10000E-03    12.918        .18142E-02** at limit **
  20  Normalizat    .84640        .24096        .30034E-03   -.17094E-03
  21  Prefactor     1.0505        .16216        .19532E-03   -.33484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.4209
  Prefactor  = 66.5534
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.32786
  norm       = 0.0001
  Prefactor  = 18.1806
  Prefactor  = 0.0001
  Prefactor  = 0.000100167
  Prefactor  = 0.792367
  norm       = 0.0001
  norm       = 1.66264
  norm       = 0.551839
  norm       = 10.4484
  Prefactor  = 0.0001
  Prefactor  = 5.11557
  norm       = 0.486375
  norm       = 11.4299
  Prefactor  = 0.0001
  Normalizat = 0.846398
  Prefactor  = 1.05053
 **********
 **   18 **HESSE 
 **********

 FCN=   5811.843     FROM HESSE     STATUS=OK           309 CALLS     2891 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.421        55.897        .10413E-04   -1.4165    
   2  Prefactor     66.553        40.681        .98417E-05   -1.4075    
   3  norm          .10000E-03    1.1336        .31063E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3279        2.6499        .67026E-05   -1.5478    
   6  norm          .10000E-03    24.759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.181        14.333        .37574E-05   -1.4855    
   8  Prefactor     .10000E-03    37.141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10017E-03    6.0952        .59229E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .79237        619.93        .32629E-03   -1.5530    
  11  norm          .10000E-03    2.8758        .25231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6626        2.6638        .60792E-05   -1.5450    
  13  norm          .55184        215.16        .22710E-03   -1.5559    
  14  norm          10.448        5.0836        .45582E-05   -1.5061    
  15  Prefactor     .10000E-03    49.117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.1156        8.9866        .71075E-05   -1.5256    
  17  norm          .48637        1.0420        .43272E-05   -1.5568    
  18  norm          11.430        11.034        .47401E-05   -1.5032    
  19  Prefactor     .10000E-03    12.919        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .84640        .23660        .12014E-04   -.98370    
  21  Prefactor     1.0505        .16157        .39064E-04   -.91064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57435e-09
Minuit parameter uncertainties:
  1  55.9459
  2  40.6981
  3  8.08959e-06
  4  8.25562e-06
  5  2.65015
  6  6.51909e-06
  7  14.3353
  8  3.05902e-05
  9  0.0020203
  10  44.797
  11  3.67311e-06
  12  2.66402
  13  21.8707
  14  5.08379
  15  5.76224e-05
  16  8.98899
  17  1.04208
  18  11.0361
  19  1.85874e-05
  20  0.236889
  21  0.161641
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  5.518e-01  2.187e+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:  1.051e+00  1.616e-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:  8.464e-01  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/253203/likelihoodResults_470793601_471052801_4FGL_J0809.8+0507_daily_bin893.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): 102
logL (Free Index) = 5811.84323564
delta logL = 5.02657358084e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5811.84030378
delta logL = 0.00298212826146

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7073       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2554       1.0000          .0000       5.0000    
     3 'Normalizat'    .84620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0500       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5811.840     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      308 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7547        72.846        .32179E-03    .60061E-05
   2  alpha         2.2543        3.1806        .82632E-01    .61706E-06
   3  Normalizat    .84595        .21795        .30041E-03   -.68838E-04
   4  Prefactor     1.0501        .15718        .19535E-03   -.96814E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.75474
  alpha      = 2.25426
  Normalizat = 0.845949
  Prefactor  = 1.05012
 **********
 **   18 **HESSE 
 **********

 FCN=   5811.840     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7547        66.459        .12871E-04   -1.5443    
   2  alpha         2.2543        3.2764        .33053E-02   -.98454E-01
   3  Normalizat    .84595        .21816        .12016E-04   -.98386    
   4  Prefactor     1.0501        .15724        .39071E-04   -.91077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24877e-11
Minuit parameter uncertainties:
  1  21.6233
  2  5.57329
  3  0.218385
  4  0.157309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253203': 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) = 5811.84030085
delta logL = 0.0029850540368

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.755e+00  2.162e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.254e+00  5.573e+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:  1.050e+00  1.573e-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:  8.459e-01  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 122.453 5.131

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/253203/cmap_HighResolution_470793601_471052801_4FGL_J0809.8+0507_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-05', job_status='DONE', photon_flux_upper_limit='8.31e-08', time_completed='2021-08-29 09:14:55.891690', job_id='253203', GAL2='1.05', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630253695.89', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.99e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='893' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:14:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 253203: <4FGL_J0809.8+0507_daily_bin893> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin893> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 09:00:58 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:01:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 09:01:00 2021
Terminated at Sun Aug 29 09:14:58 2021
Results reported at Sun Aug 29 09:14:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin893 122.453 5.1313 470793601 471052801 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 :                                   625.38 sec.
    Max Memory :                                 1077 MB
    Average Memory :                             238.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            840 sec.

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

