/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 107 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_J0809.8+0507_daily_bin538
RA = 122.453, Dec = 5.1313
tmin = 378777601, tmax = 379036801
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='251528', job_status='RUN', time_executed='2021-08-29 08:58:36.073296', time_epoch_executed='1630252716.07' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='538'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251528

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251528/ft1_4FGL_J0809.8+0507_daily_bin538.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251528/ft2_4FGL_J0809.8+0507_daily_bin538.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251528/ft1_4FGL_J0809.8+0507_daily_bin538.fits outfile=/scratch/kocevski/251528/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin538.fits ra=122.453 dec=5.1313 rad=12.0 tmin=378777601.0 tmax=379036801.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 8.93
user 4.29
sys 4.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251528/ft1_filtered_4FGL_J0809.8+0507_daily_bin538.fits" evtable="EVENTS" scfile=/scratch/kocevski/251528/ft2_4FGL_J0809.8+0507_daily_bin538.fits sctable="SC_DATA" outfile=/scratch/kocevski/251528/ltcube_378777601_379036801_4FGL_J0809.8+0507_daily_bin538.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/251528/ft2_4FGL_J0809.8+0507_daily_bin538.fits
.....................!
real 17.08
user 11.86
sys 5.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251528/ft1_filtered_4FGL_J0809.8+0507_daily_bin538.fits evtable="EVENTS" scfile=/scratch/kocevski/251528/ft2_4FGL_J0809.8+0507_daily_bin538.fits sctable="SC_DATA" expcube=/scratch/kocevski/251528/ltcube_378777601_379036801_4FGL_J0809.8+0507_daily_bin538.fits outfile=/scratch/kocevski/251528/expmap_378777601_379036801_4FGL_J0809.8+0507_daily_bin538.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/251528/ltcube_378777601_379036801_4FGL_J0809.8+0507_daily_bin538.fits
.....................!
real 195.94
user 185.76
sys 9.78

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/251528/ft1_filtered_4FGL_J0809.8+0507_daily_bin538.fits scfile=/scratch/kocevski/251528/ft2_4FGL_J0809.8+0507_daily_bin538.fits outfile=/scratch/kocevski/251528/cmap_378777601_379036801_4FGL_J0809.8+0507_daily_bin538.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 4.80
user 0.39
sys 4.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251528/ft1_filtered_4FGL_J0809.8+0507_daily_bin538.fits scfile=/scratch/kocevski/251528/ft2_4FGL_J0809.8+0507_daily_bin538.fits outfile=/scratch/kocevski/251528/cmap_HighResolution_378777601_379036801_4FGL_J0809.8+0507_daily_bin538.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 4.82
user 0.39
sys 4.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.908       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.2385       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12887E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18718       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25352       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2325       1.0000         .10000E-03   10000.    
    11 'norm      '    9.1261       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.555       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8385       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.884       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .83793       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.491       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .94818       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99443       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=   4948.520     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     2912 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.816        43.855        .31725E-03   -.23078E-04
   2  Prefactor     .10000E-03    22.067        .18142E-02** at limit **
   3  norm          2.2392        1.7817        .80496E-04    .69204E-05
   4  Prefactor     .10000E-03    8.8409        .18142E-02** at limit **
   5  Prefactor     .10000E-03    1.3462        .15731E-03** at limit **
   6  norm          .10000E-03    5.6049        .16260E-02** at limit **
   7  Prefactor     .10000E-03    20.650        .33554E-02** at limit **
   8  Prefactor     .10008E-03    104.20        .22421    ** at limit **
   9  Prefactor     .21671        109.69        .35118E-02    .60075E-03
  10  Prefactor     9.2371        30.956        .13190E-03    .89640E-05
  11  norm          9.1226        12.139        .13267E-03    .28792E-04
  12  norm          .10000E-03    1.5523        .84971E-03** at limit **
  13  norm          11.565        23.008        .11785E-03    .98397E-05
  14  norm          2.8365        3.6629        .14779E-03   -.52308E-05
  15  Prefactor     33.872        37.157        .68841E-04   -.51195E-05
  16  Prefactor     .10000E-03    8.5930        .18142E-02** at limit **
  17  norm          .83916        1.0689        .82948E-03    .31966E-02
  18  norm          .10000E-03    8.8031        .18142E-02** at limit **
  19  Prefactor     20.462        44.936        .88482E-04   -.33406E-05
  20  Normalizat    .94806        .24659        .28142E-03   -.54578E-04
  21  Prefactor     .99447        .16964        .19555E-03   -.12622E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.8157
  Prefactor  = 0.0001
  norm       = 2.23924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100084
  Prefactor  = 0.216707
  Prefactor  = 9.2371
  norm       = 9.12257
  norm       = 0.0001
  norm       = 11.565
  norm       = 2.83652
  Prefactor  = 33.8718
  Prefactor  = 0.0001
  norm       = 0.839162
  norm       = 0.0001
  Prefactor  = 20.4624
  Normalizat = 0.948062
  Prefactor  = 0.994471
 **********
 **   18 **HESSE 
 **********

 FCN=   4948.520     FROM HESSE     STATUS=OK           309 CALLS     3221 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.816        43.853        .12690E-04   -1.4445    
   2  Prefactor     .10000E-03    22.069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.2392        1.7815        .32199E-05   -1.5409    
   4  Prefactor     .10000E-03    8.8410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3462        .31463E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.6050        .32520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.869        .67109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10008E-03    105.61        .22184       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .21671        110.66        .70237E-03   -1.5615    
  10  Prefactor     9.2371        30.958        .52760E-05   -1.5100    
  11  norm          9.1226        12.086        .53068E-05   -1.5104    
  12  norm          .10000E-03    1.5525        .16994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.565        23.011        .47140E-05   -1.5028    
  14  norm          2.8365        3.6626        .59116E-05   -1.5371    
  15  Prefactor     33.872        37.152        .27536E-05   -1.4543    
  16  Prefactor     .10000E-03    8.5940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .83916        1.0681        .16590E-03   -1.5525    
  18  norm          .10000E-03    8.8083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.462        44.943        .35393E-05   -1.4803    
  20  Normalizat    .94806        .24671        .11257E-04   -.94791    
  21  Prefactor     .99447        .16955        .39109E-04   -.92914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39644e-11
Minuit parameter uncertainties:
  1  43.8888
  2  3.03126e-05
  3  1.78159
  4  2.37407e-06
  5  2.36583e-06
  6  1.02447e-06
  7  5.18066e-05
  8  0.00596967
  9  9.81019
  10  31.0122
  11  12.0895
  12  1.62457e-06
  13  23.0285
  14  3.66292
  15  37.1769
  16  1.51922e-05
  17  1.06817
  18  1.32724e-06
  19  45.0177
  20  0.247008
  21  0.169643
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.156e+01  2.303e+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.945e-01  1.696e-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:  9.481e-01  2.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251528/likelihoodResults_378777601_379036801_4FGL_J0809.8+0507_daily_bin538.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) = 4948.50477548
delta logL = 0.0147524651675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4948.50188193
delta logL = 0.0176460100292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.261       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4612       1.0000          .0000       5.0000    
     3 'Normalizat'    .95094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99275       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=   4948.502     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      231 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.263        23.789        .10999E-03   -.94470E-04
   2  alpha         2.4611        1.6957        .46713E-01   -.12998E-04
   3  Normalizat    .95094        .23300        .28103E-03    .10114E-03
   4  Prefactor     .99275        .16569        .19568E-03    .77235E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2631
  alpha      = 2.4611
  Normalizat = 0.950941
  Prefactor  = 0.992754
 **********
 **   18 **HESSE 
 **********

 FCN=   4948.502     FROM HESSE     STATUS=OK            25 CALLS      256 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.263        23.348        .43997E-05   -1.4979    
   2  alpha         2.4611        1.6703        .18685E-02   -.15560E-01
   3  Normalizat    .95094        .23315        .11241E-04   -.94693    
   4  Prefactor     .99275        .16578        .39137E-04   -.92971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56873e-10
Minuit parameter uncertainties:
  1  23.3645
  2  1.82923
  3  0.233404
  4  0.165862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251528': 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) = 4948.50188193
delta logL = 0.0176460143693

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.326e+01  2.336e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.461e+00  1.829e+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:  9.928e-01  1.659e-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:  9.509e-01  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
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/251528/cmap_HighResolution_378777601_379036801_4FGL_J0809.8+0507_daily_bin538.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.71e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-08-29 09:09:29.355799', job_id='251528', GAL2='0.99', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630253369.36', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.76e-02', ts2='0.44', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='538' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:09:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 251528: <4FGL_J0809.8+0507_daily_bin538> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin538 122.453 5.1313 378777601 379036801 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 :                                   720.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

