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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin711
RA = 122.33, Dec = 40.8954
tmin = 423619201, tmax = 423878401
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='229484', job_status='RUN', time_executed='2021-08-29 07:46:08.048972', time_epoch_executed='1630248368.05' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229484

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229484/ft1_4FGL_J0809.3+4053_daily_bin711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229484/ft2_4FGL_J0809.3+4053_daily_bin711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229484/ft1_4FGL_J0809.3+4053_daily_bin711.fits outfile=/scratch/kocevski/229484/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin711.fits ra=122.33 dec=40.8954 rad=12.0 tmin=423619201.0 tmax=423878401.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 6.87
user 5.47
sys 1.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/229484/ft2_4FGL_J0809.3+4053_daily_bin711.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229484/ft2_4FGL_J0809.3+4053_daily_bin711.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/229484/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin711.fits evtable="EVENTS" outfile="/scratch/kocevski/229484/ft1_filtered_4FGL_J0809.3+4053_daily_bin711.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.62
user 0.33
sys 1.28

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229484/ft1_filtered_4FGL_J0809.3+4053_daily_bin711.fits" evtable="EVENTS" scfile=/scratch/kocevski/229484/ft2_4FGL_J0809.3+4053_daily_bin711.fits sctable="SC_DATA" outfile=/scratch/kocevski/229484/ltcube_423619201_423878401_4FGL_J0809.3+4053_daily_bin711.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/229484/ft2_4FGL_J0809.3+4053_daily_bin711.fits
.....................!
real 13.21
user 11.57
sys 1.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229484/ft1_filtered_4FGL_J0809.3+4053_daily_bin711.fits evtable="EVENTS" scfile=/scratch/kocevski/229484/ft2_4FGL_J0809.3+4053_daily_bin711.fits sctable="SC_DATA" expcube=/scratch/kocevski/229484/ltcube_423619201_423878401_4FGL_J0809.3+4053_daily_bin711.fits outfile=/scratch/kocevski/229484/expmap_423619201_423878401_4FGL_J0809.3+4053_daily_bin711.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/229484/ltcube_423619201_423878401_4FGL_J0809.3+4053_daily_bin711.fits
.....................!
real 190.86
user 184.69
sys 5.82

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

Setting source of interest to:
4FGL J0809.3+4053 @ 122.33 40.8954

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/229484/ft1_filtered_4FGL_J0809.3+4053_daily_bin711.fits scfile=/scratch/kocevski/229484/ft2_4FGL_J0809.3+4053_daily_bin711.fits outfile=/scratch/kocevski/229484/cmap_423619201_423878401_4FGL_J0809.3+4053_daily_bin711.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.33 yref=40.8954 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.63
user 0.37
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229484/ft1_filtered_4FGL_J0809.3+4053_daily_bin711.fits scfile=/scratch/kocevski/229484/ft2_4FGL_J0809.3+4053_daily_bin711.fits outfile=/scratch/kocevski/229484/cmap_HighResolution_423619201_423878401_4FGL_J0809.3+4053_daily_bin711.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.33 yref=40.8954 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.70
user 0.38
sys 1.25

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/229484/ft1_filtered_4FGL_J0809.3+4053_daily_bin711.fits evtable="EVENTS" scfile=/scratch/kocevski/229484/ft2_4FGL_J0809.3+4053_daily_bin711.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/229484/Model_4FGL_J0809.3+4053_daily_bin711.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/229484/ft1_filtered_4FGL_J0809.3+4053_daily_bin711.fits....................!
real 57.74
user 55.03
sys 2.52

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/229484/ft1_filtered_4FGL_J0809.3+4053_daily_bin711.fits', '/scratch/kocevski/229484/ft2_4FGL_J0809.3+4053_daily_bin711.fits', expMap='/scratch/kocevski/229484/expmap_423619201_423878401_4FGL_J0809.3+4053_daily_bin711.fits', expCube='/scratch/kocevski/229484/ltcube_423619201_423878401_4FGL_J0809.3+4053_daily_bin711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/229484/Model_4FGL_J0809.3+4053_daily_bin711.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.3+4053'

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.019e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/229484/ft1_filtered_4FGL_J0809.3+4053_daily_bin711.fits
Spacecraft file(s): /scratch/kocevski/229484/ft2_4FGL_J0809.3+4053_daily_bin711.fits
Exposure map: /scratch/kocevski/229484/expmap_423619201_423878401_4FGL_J0809.3+4053_daily_bin711.fits
Exposure cube: /scratch/kocevski/229484/ltcube_423619201_423878401_4FGL_J0809.3+4053_daily_bin711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/229484/Model_4FGL_J0809.3+4053_daily_bin711.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) = 5398.67651742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.739       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0473       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.9671       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.593       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5890       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9405       1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.351       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12239E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9542       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.943       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0332       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.591       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0797       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87733       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5398.675     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2548 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.6560        .10934E-06** at limit **
   2  Prefactor     23.738        14.207       -.96762E-07   -.84319E-05
   3  Prefactor     6.0426        32.988       -.94047E-06   -.26836E-04
   4  Prefactor     .10000E-03    22.133       -.12146E-05** at limit **
   5  Prefactor     .10000E-03    26.049       -.13221E-05** at limit **
   6  norm          5.9628        11.629        .36664E-05   -.28461E-03
   7  norm          .10000E-03    .96137        .23183E-07** at limit **
   8  Prefactor     .10000E-03    3.1195       -.21705E-06** at limit **
   9  Prefactor     38.579        42.951       -.22103E-05   -.18679E-03
  10  Prefactor     6.5889        4.8052        .11575E-06   -.94667E-04
  11  norm          1.9403        1.5882        .46431E-08    .39704E-05
  12  norm          .10000E-03    .18431        .23328E-08** at limit **
  13  Prefactor     18.344        33.583       -.17560E-05   -.10876E-03
  14  Prefactor     .10000E-03    35.866        .29231E-05** at limit **
  15  Prefactor     1.9493        3.5677        .66535E-06   -.32591E-03
  16  Prefactor     .10000E-03    20.543        .12883E-05** at limit **
  17  Prefactor     .10000E-03    7.3647        .48535E-07** at limit **
  18  norm          11.944        6.9195        .40769E-08   -.18618E-04
  19  Prefactor     3.0317        3.0020        .33242E-07   -.88487E-04
  20  Prefactor     .10000E-03    49.606       -.18004E-05** at limit **
  21  Prefactor     11.592        6.3020        .27371E-08   -.59677E-05
  22  Normalizat    1.0796        .19686        .10740E-06   -.54498E-04
  23  Prefactor     .87739        .13908       -.32239E-06   -.14055E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 23.738
  Prefactor  = 6.04257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.96279
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.5794
  Prefactor  = 6.58891
  norm       = 1.94035
  norm       = 0.0001
  Prefactor  = 18.3436
  Prefactor  = 0.000100002
  Prefactor  = 1.94931
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 11.9436
  Prefactor  = 3.0317
  Prefactor  = 0.000100001
  Prefactor  = 11.5917
  Normalizat = 1.07963
  Prefactor  = 0.877388
 **********
 **   18 **HESSE 
 **********

 FCN=   5398.675     FROM HESSE     STATUS=OK           368 CALLS     2916 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.9416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.738        14.216        .82213E-04   -1.4733    
   3  Prefactor     6.0426        33.098        .16327E-03   -1.5216    
   4  Prefactor     .10000E-03    22.811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.844        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.9628        12.056        .82191E-03   -1.5220    
   7  norm          .10000E-03    .96774        .70354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1192        .12660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.579        44.382        .64518E-04   -1.4465    
  10  Prefactor     6.5889        4.7887        .13039E-03   -1.5195    
  11  norm          1.9403        1.5861        .81576E-04   -1.5429    
  12  norm          .10000E-03    .18866        .61488E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.344        34.079        .93495E-04   -1.4851    
  14  Prefactor     .10000E-03    37.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9493        3.5344        .17378E-03   -1.5429    
  16  Prefactor     .10000E-03    20.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.4149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.944        6.9220        .11592E-03   -1.5017    
  19  Prefactor     3.0317        3.0024        .12194E-03   -1.5360    
  20  Prefactor     .10000E-03    50.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.592        6.3243        .11767E-03   -1.5027    
  22  Normalizat    1.0796        .22662        .26370E-03   -.90409    
  23  Prefactor     .87739        .15959        .21310E-03   -.96936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7709e-10
Minuit parameter uncertainties:
  1  1.37614e-06
  2  14.2176
  3  28.3082
  4  0.000134068
  5  0.000169284
  6  12.0604
  7  2.67443e-06
  8  2.86023e-06
  9  44.4201
  10  4.78901
  11  1.58616
  12  1.58085e-07
  13  34.1152
  14  0.000526489
  15  3.53479
  16  0.000218408
  17  9.85802e-07
  18  6.92243
  19  3.00252
  20  0.00053434
  21  6.32471
  22  0.226824
  23  0.159673
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  6.589e+00  4.789e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.774e-01  1.597e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.080e+00  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.27
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 5.47e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.05e-05

TS (Fixed Index): 3.27
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229484/likelihoodResults_423619201_423878401_4FGL_J0809.3+4053_daily_bin711.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) = 5398.66892339
delta logL = 0.00572659600402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5398.66607024
delta logL = 0.00857974869996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0020       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4934       1.0000          .0000       10.000    
     3 'Normalizat'    1.0836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87543       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+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=   5398.666     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      243 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0017        5.9845        .13533E-03    .11563E-02
   2  Index         2.4936        .72724        .85179E-02    .16936E-03
   3  Normalizat    1.0836        .21565        .26328E-03   -.99490E-04
   4  Prefactor     .87544        .15794        .21330E-03   -.16177E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.00168
  Index      = 2.49357
  Normalizat = 1.08356
  Prefactor  = 0.875435
 **********
 **   18 **HESSE 
 **********

 FCN=   5398.666     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0017        5.8165        .54133E-05   -1.5179    
   2  Index         2.4936        .70658        .34072E-03   -.52509    
   3  Normalizat    1.0836        .21568        .10531E-04   -.90281    
   4  Prefactor     .87544        .15798        .42660E-04   -.97005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38937e-10
Minuit parameter uncertainties:
  1  5.817
  2  0.709757
  3  0.215855
  4  0.158061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229484': 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) = 5398.66607022
delta logL = 0.00857977149099

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  7.002e+00  5.817e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.494e+00  7.098e-01  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.754e-01  1.581e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.084e+00  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.28
Ra Dec: 122.330 40.895
Photon Index (Free Index): 2.49 +/- 0.71
Photon Flux (Free Index): 5.17e-08 +/- 4.41e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.21e-05

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/229484/cmap_HighResolution_423619201_423878401_4FGL_J0809.3+4053_daily_bin711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='5.47e-08', energy_flux2='1.51e-05', photon_flux_error='3.97e-08', dlogl='8.58e-03', energy_flux='1.45e-05', photon_flux2='5.17e-08', job_status='DONE', time_completed='2021-08-29 07:57:19.832697', photon_index_error2='0.71', photon_index2='2.49', ts='3.27', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.21e-05', EG='1.08', time_epoch_completed='1630249039.83', return_code='0', job_id='229484', GAL2='0.88', EG2='1.08', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.41e-08', ts2='3.28', photon_index='2.59' WHERE bin_id='711' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:57:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 229484: <4FGL_J0809.3+4053_daily_bin711> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin711> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Aug 29 07:45:30 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:45: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 07:45:33 2021
Terminated at Sun Aug 29 07:57:20 2021
Results reported at Sun Aug 29 07:57:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin711 122.33 40.8954 423619201 423878401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.3+4053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   680.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            710 sec.

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

