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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin575
RA = 122.453, Dec = 5.1313
tmin = 388368001, tmax = 388627201
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='251586', job_status='RUN', time_executed='2021-08-29 08:59:32.534593', time_epoch_executed='1630252772.53' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251586

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251586/ft1_4FGL_J0809.8+0507_daily_bin575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251586/ft2_4FGL_J0809.8+0507_daily_bin575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251586/ft1_4FGL_J0809.8+0507_daily_bin575.fits outfile=/scratch/kocevski/251586/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin575.fits ra=122.453 dec=5.1313 rad=12.0 tmin=388368001.0 tmax=388627201.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.42
user 4.18
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251586/ft2_4FGL_J0809.8+0507_daily_bin575.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/251586/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin575.fits evtable="EVENTS" outfile="/scratch/kocevski/251586/ft1_filtered_4FGL_J0809.8+0507_daily_bin575.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251586/ft1_filtered_4FGL_J0809.8+0507_daily_bin575.fits" evtable="EVENTS" scfile=/scratch/kocevski/251586/ft2_4FGL_J0809.8+0507_daily_bin575.fits sctable="SC_DATA" outfile=/scratch/kocevski/251586/ltcube_388368001_388627201_4FGL_J0809.8+0507_daily_bin575.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/251586/ft2_4FGL_J0809.8+0507_daily_bin575.fits
.....................!
real 11.70
user 11.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251586/ft1_filtered_4FGL_J0809.8+0507_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/251586/ft2_4FGL_J0809.8+0507_daily_bin575.fits sctable="SC_DATA" expcube=/scratch/kocevski/251586/ltcube_388368001_388627201_4FGL_J0809.8+0507_daily_bin575.fits outfile=/scratch/kocevski/251586/expmap_388368001_388627201_4FGL_J0809.8+0507_daily_bin575.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/251586/ltcube_388368001_388627201_4FGL_J0809.8+0507_daily_bin575.fits
.....................!
real 191.13
user 186.18
sys 4.61

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/251586/ft1_filtered_4FGL_J0809.8+0507_daily_bin575.fits scfile=/scratch/kocevski/251586/ft2_4FGL_J0809.8+0507_daily_bin575.fits outfile=/scratch/kocevski/251586/cmap_388368001_388627201_4FGL_J0809.8+0507_daily_bin575.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251586/ft1_filtered_4FGL_J0809.8+0507_daily_bin575.fits scfile=/scratch/kocevski/251586/ft2_4FGL_J0809.8+0507_daily_bin575.fits outfile=/scratch/kocevski/251586/cmap_HighResolution_388368001_388627201_4FGL_J0809.8+0507_daily_bin575.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9279       1.0000         .10000E-03   10000.    
     3 'norm      '    .62842       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.402       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.297       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.247       1.0000         .10000E-03   10000.    
    11 'norm      '    43.273       1.0000         .10000E-03   10000.    
    12 'norm      '    .33206       1.0000         .10000E-03   10000.    
    13 'norm      '    12.248       1.0000         .10000E-03   10000.    
    14 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.616       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8607       1.0000         .10000E-03   10000.    
    18 'norm      '    2.8020       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1904       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .79547       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=   5502.565     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2178 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.391        .40188E-06** at limit **
   2  Prefactor     1.7976        59.153        .11187E-05   -.28789E-05
   3  norm          .62753        1.8701        .38647E-06   -.90231E-05
   4  Prefactor     .10000E-03    23.716       -.18228E-06** at limit **
   5  Prefactor     .10000E-03    .89531       -.30447E-06** at limit **
   6  norm          .10000E-03    3.4794       -.20220E-07** at limit **
   7  Prefactor     .10000E-03    2.7482       -.35927E-07** at limit **
   8  Prefactor     48.361        126.76        .98990E-05   -.31732E-05
   9  Prefactor     10.290        13.342       -.69314E-06   -.13823E-04
  10  Prefactor     20.247        25.172        .12847E-06   -.55767E-05
  11  norm          43.272        18.552        .29834E-06   -.96491E-05
  12  norm          .33190        3.8815        .36676E-05    .22371E-03
  13  norm          12.247        19.230        .29012E-06   -.39109E-05
  14  norm          .10000E-03    2.0462       -.19413E-07** at limit **
  15  Prefactor     32.619        33.807       -.17692E-06   -.56354E-05
  16  Prefactor     .10000E-03    5.6538        .47940E-07** at limit **
  17  norm          2.8611        1.5832       -.31747E-07   -.36704E-04
  18  norm          2.8015        5.7468        .34360E-05   -.27487E-03
  19  Prefactor     .10000E-03    8.1465        .27042E-07** at limit **
  20  Normalizat    1.1898        .20672        .16674E-06    .18772E-04
  21  Prefactor     .79589        .14031       -.10110E-05   -.98999E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.79764
  norm       = 0.627534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.3611
  Prefactor  = 10.2899
  Prefactor  = 20.2467
  norm       = 43.272
  norm       = 0.331901
  norm       = 12.2469
  norm       = 0.0001
  Prefactor  = 32.6187
  Prefactor  = 0.0001
  norm       = 2.86109
  norm       = 2.80147
  Prefactor  = 0.0001
  Normalizat = 1.18984
  Prefactor  = 0.79589
 **********
 **   18 **HESSE 
 **********

 FCN=   5502.565     FROM HESSE     STATUS=OK           321 CALLS     2499 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7976        59.461        .29917E-03   -1.5440    
   3  norm          .62753        1.8834        .16266E-03   -1.5550    
   4  Prefactor     .10000E-03    23.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .91210        .68808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.4800        .13514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7538        .12010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.361        126.74        .57638E-04   -1.4316    
   9  Prefactor     10.290        13.134        .12486E-03   -1.5066    
  10  Prefactor     20.247        25.165        .89012E-04   -1.4808    
  11  norm          43.272        18.552        .60943E-04   -1.4391    
  12  norm          .33190        5.2911        .21895E-02   -1.5593    
  13  norm          12.247        19.209        .11446E-03   -1.5008    
  14  norm          .10000E-03    2.0562        .10359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.619        33.914        .70162E-04   -1.4565    
  16  Prefactor     .10000E-03    5.6718        .17224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8611        1.5836        .64609E-04   -1.5370    
  18  norm          2.8015        6.5398        .12152E-02   -1.5373    
  19  Prefactor     .10000E-03    8.1498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1898        .24150        .26295E-03   -.86917    
  21  Prefactor     .79589        .16231        .21664E-03   -.99880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94841e-10
Minuit parameter uncertainties:
  1  1.57231e-06
  2  20.6993
  3  1.88353
  4  2.22805e-05
  5  1.57509e-05
  6  1.89038e-06
  7  5.41177e-06
  8  127.46
  9  13.1381
  10  25.1782
  11  18.5549
  12  2.65025
  13  19.219
  14  3.19544e-07
  15  33.9339
  16  2.95956e-06
  17  1.58359
  18  6.54151
  19  2.24011e-06
  20  0.241728
  21  0.162404
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.225e+01  1.922e+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:  7.959e-01  1.624e-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.190e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/251586/likelihoodResults_388368001_388627201_4FGL_J0809.8+0507_daily_bin575.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) = 5501.99992692
delta logL = 0.565439635404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5501.9997504
delta logL = 0.565616162153

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6416       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7694       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1344       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82000       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=   5502.000     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      244 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4529        6.9708        .38927E-02    .94717E-03
   2  alpha         4.7966        3.7242        .50000       -.39979E-04
   3  Normalizat    1.1343        .20151        .60603E-01   -.17263E-03
   4  Prefactor     .82007        .13699        .43977E-01   -.22318E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.45294
  alpha      = 4.79659
  Normalizat = 1.13432
  Prefactor  = 0.820068
 **********
 **   18 **HESSE 
 **********

 FCN=   5502.000     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4529        11.767        .15571E-03   -1.5200    
   2  alpha         4.7966        4.3880        .71704E-01    1.1646    
   3  Normalizat    1.1343        .23606        .26804E-03   -.88657    
   4  Prefactor     .82007        .16026        .21369E-03   -.98993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50671e-07
Minuit parameter uncertainties:
  1  11.7711
  2  1.77589
  3  0.236285
  4  0.160354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251586': 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) = 5501.99961281
delta logL = 0.565753746765

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  6.453e+00  1.177e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  4.797e+00  1.776e+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.201e-01  1.604e-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.134e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 122.453 5.131
Photon Index (Free Index): 4.80 +/- 1.78
Photon Flux (Free Index): 6.43e-08 +/- 6.09e-08
Energy Flux (Free Index): 1.04e-05 +/- 9.24e-06

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/251586/cmap_HighResolution_388368001_388627201_4FGL_J0809.8+0507_daily_bin575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-05', comment='SUCCESS', energy_flux2='1.04e-05', dlogl='5.66e-01', photon_flux2='6.43e-08', job_status='DONE', time_completed='2021-08-29 09:09:08.628831', photon_index_error2='1.78', photon_index2='4.80', ts='0.60', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='9.57e-08', energy_flux_error2='9.24e-06', EG='1.19', time_epoch_completed='1630253348.63', return_code='0', job_id='251586', GAL2='0.82', EG2='1.13', return_code2='0', photon_flux_error2='6.09e-08', ts2='1.80', photon_index='2.82' WHERE bin_id='575' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:09:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 251586: <4FGL_J0809.8+0507_daily_bin575> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin575> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:55:32 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:55:33 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:33 2021
Terminated at Sun Aug 29 09:09:09 2021
Results reported at Sun Aug 29 09:09:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin575 122.453 5.1313 388368001 388627201 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 :                                   576.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

