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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin735
RA = 122.33, Dec = 40.8954
tmin = 429840001, tmax = 430099201
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='229519', job_status='RUN', time_executed='2021-08-29 07:49:43.295488', time_epoch_executed='1630248583.3' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229519

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229519/ft1_4FGL_J0809.3+4053_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229519/ft2_4FGL_J0809.3+4053_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229519/ft1_4FGL_J0809.3+4053_daily_bin735.fits outfile=/scratch/kocevski/229519/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin735.fits ra=122.33 dec=40.8954 rad=12.0 tmin=429840001.0 tmax=430099201.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 7.04
user 5.59
sys 1.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229519/ft1_filtered_4FGL_J0809.3+4053_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/229519/ft2_4FGL_J0809.3+4053_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/229519/ltcube_429840001_430099201_4FGL_J0809.3+4053_daily_bin735.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/229519/ft2_4FGL_J0809.3+4053_daily_bin735.fits
.....................!
real 13.31
user 11.62
sys 1.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229519/ft1_filtered_4FGL_J0809.3+4053_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/229519/ft2_4FGL_J0809.3+4053_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/229519/ltcube_429840001_430099201_4FGL_J0809.3+4053_daily_bin735.fits outfile=/scratch/kocevski/229519/expmap_429840001_430099201_4FGL_J0809.3+4053_daily_bin735.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/229519/ltcube_429840001_430099201_4FGL_J0809.3+4053_daily_bin735.fits
.....................!
real 193.87
user 187.60
sys 5.95

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/229519/ft1_filtered_4FGL_J0809.3+4053_daily_bin735.fits scfile=/scratch/kocevski/229519/ft2_4FGL_J0809.3+4053_daily_bin735.fits outfile=/scratch/kocevski/229519/cmap_429840001_430099201_4FGL_J0809.3+4053_daily_bin735.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.67
user 0.37
sys 1.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229519/ft1_filtered_4FGL_J0809.3+4053_daily_bin735.fits scfile=/scratch/kocevski/229519/ft2_4FGL_J0809.3+4053_daily_bin735.fits outfile=/scratch/kocevski/229519/cmap_HighResolution_429840001_430099201_4FGL_J0809.3+4053_daily_bin735.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.29

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/229519/ft1_filtered_4FGL_J0809.3+4053_daily_bin735.fits', '/scratch/kocevski/229519/ft2_4FGL_J0809.3+4053_daily_bin735.fits', expMap='/scratch/kocevski/229519/expmap_429840001_430099201_4FGL_J0809.3+4053_daily_bin735.fits', expCube='/scratch/kocevski/229519/ltcube_429840001_430099201_4FGL_J0809.3+4053_daily_bin735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/229519/Model_4FGL_J0809.3+4053_daily_bin735.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/229519/ft1_filtered_4FGL_J0809.3+4053_daily_bin735.fits
Spacecraft file(s): /scratch/kocevski/229519/ft2_4FGL_J0809.3+4053_daily_bin735.fits
Exposure map: /scratch/kocevski/229519/expmap_429840001_430099201_4FGL_J0809.3+4053_daily_bin735.fits
Exposure cube: /scratch/kocevski/229519/ltcube_429840001_430099201_4FGL_J0809.3+4053_daily_bin735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/229519/Model_4FGL_J0809.3+4053_daily_bin735.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) = 5050.48978728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.605       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32846E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4541       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5949       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9475       1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.614       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1860       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2322       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.586       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29431E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1238       1.0000         .10000E-03   10000.    
    18 'norm      '    6.9322       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.503       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85028       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0489       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=   5050.486     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2561 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4326       -.37893E-07** at limit **
   2  Prefactor     .10000E-03    6.2318       -.10330E-06** at limit **
   3  Prefactor     12.597        19.600       -.22077E-06   -.10775E-03
   4  Prefactor     .10000E-03    55.149        .17956E-04** at limit **
   5  Prefactor     5.4511        16.701       -.23835E-06   -.43068E-04
   6  norm          .10000E-03    3.2954       -.51564E-07** at limit **
   7  norm          2.5878        3.7927       -.81802E-06   -.10572E-02
   8  Prefactor     8.9474        9.0197        .93500E-09   -.29039E-04
   9  Prefactor     46.609        56.419        .47761E-06   -.13654E-04
  10  Prefactor     9.1872        6.1779        .94325E-08    .63180E-04
  11  norm          .10000E-03    1.3791       -.18906E-08** at limit **
  12  norm          1.2323        .63514        .41857E-07    .78256E-03
  13  Prefactor     36.587        27.797        .17917E-07   -.20104E-05
  14  Prefactor     .10000E-03    4.1291        .40755E-07** at limit **
  15  Prefactor     .10000E-03    1.8880        .16746E-05** at limit **
  16  Prefactor     .10000E-03    32.093        .61357E-06** at limit **
  17  Prefactor     1.0938        35.274       -.37498E-05    .11674E-03
  18  norm          6.9325        8.2746       -.72395E-08    .61205E-04
  19  Prefactor     .10000E-03    1.7931        .46398E-07** at limit **
  20  Prefactor     18.390        60.974        .27709E-05    .28076E-04
  21  Prefactor     .10000E-03    2.2087        .76955E-06** at limit **
  22  Normalizat    .85029        .20262        .85838E-07   -.17222E-03
  23  Prefactor     1.0489        .14771        .53357E-07   -.13502E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5968
  Prefactor  = 0.000100001
  Prefactor  = 5.45106
  norm       = 0.0001
  norm       = 2.58779
  Prefactor  = 8.94742
  Prefactor  = 46.6091
  Prefactor  = 9.1872
  norm       = 0.0001
  norm       = 1.2323
  Prefactor  = 36.5867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.0938
  norm       = 6.93252
  Prefactor  = 0.0001
  Prefactor  = 18.3904
  Prefactor  = 0.0001
  Normalizat = 0.850289
  Prefactor  = 1.04893
 **********
 **   18 **HESSE 
 **********

 FCN=   5050.486     FROM HESSE     STATUS=OK           372 CALLS     2933 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4410        .10824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.2936        .17324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.597        19.555        .11283E-03   -1.4998    
   4  Prefactor     .10000E-03    57.782        .43949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4511        16.654        .17206E-03   -1.5241    
   6  norm          .10000E-03    3.3017        .12599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5878        3.6844        .15566E-03   -1.5386    
   8  Prefactor     8.9474        9.0011        .13399E-03   -1.5110    
   9  Prefactor     46.609        56.463        .58727E-04   -1.4341    
  10  Prefactor     9.1872        6.1545        .13223E-03   -1.5102    
  11  norm          .10000E-03    1.4089        .81474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2323        .63678        .38719E-04   -1.5486    
  13  Prefactor     36.587        27.809        .66258E-04   -1.4497    
  14  Prefactor     .10000E-03    4.1317        .14102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.1040        .16464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0938        34.483        .44227E-03   -1.5499    
  18  norm          6.9325        8.2693        .15238E-03   -1.5181    
  19  Prefactor     .10000E-03    1.8178        .92895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.390        61.351        .93111E-04   -1.4850    
  21  Prefactor     .10000E-03    2.1960        .10244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .85029        .22880        .28463E-03   -.98230    
  23  Prefactor     1.0489        .16900        .19827E-03   -.91116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11028e-09
Minuit parameter uncertainties:
  1  1.8635e-06
  2  6.52766e-06
  3  19.5648
  4  0.000364973
  5  16.6678
  6  9.71012e-07
  7  3.68477
  8  9.00245
  9  56.5278
  10  6.15494
  11  3.52301e-06
  12  0.636788
  13  27.8185
  14  9.2826e-06
  15  2.96933e-05
  16  0.000752028
  17  12.2901
  18  8.27069
  19  3.78658e-06
  20  61.563
  21  3.25371e-05
  22  0.229064
  23  0.169087
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  9.187e+00  6.155e+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:  1.049e+00  1.691e-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:  8.503e-01  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.00
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 7.62e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/229519/likelihoodResults_429840001_430099201_4FGL_J0809.3+4053_daily_bin735.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) = 5050.40146013
delta logL = 0.0844712525168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5050.39706534
delta logL = 0.0888660425944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.256       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3199       1.0000          .0000       10.000    
     3 'Normalizat'    .86426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0406       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=   5050.397     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      301 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.279        8.3983        .11941E-03    .58980E-03
   2  Index         2.3220        .59663        .69029E-02    .12033E-03
   3  Normalizat    .86430        .21975        .28259E-03    .11325E-03
   4  Prefactor     1.0404        .16762        .19894E-03    .36689E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2792
  Index      = 2.32196
  Normalizat = 0.864303
  Prefactor  = 1.04036
 **********
 **   18 **HESSE 
 **********

 FCN=   5050.397     FROM HESSE     STATUS=OK            23 CALLS      324 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.279        8.2353        .47764E-05   -1.5036    
   2  Index         2.3220        .58483        .27612E-03   -.56523    
   3  Normalizat    .86430        .21983        .11304E-04   -.97726    
   4  Prefactor     1.0404        .16768        .79574E-05   -.91396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72674e-10
Minuit parameter uncertainties:
  1  8.23615
  2  0.586719
  3  0.220058
  4  0.167763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229519': 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) = 5050.39704673
delta logL = 0.0888846474836

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.128e+01  8.236e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.322e+00  5.867e-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:  1.040e+00  1.678e-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:  8.643e-01  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.19
Ra Dec: 122.330 40.895
Photon Index (Free Index): 2.32 +/- 0.59
Photon Flux (Free Index): 6.80e-08 +/- 5.06e-08
Energy Flux (Free Index): 2.49e-05 +/- 2.12e-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/229519/cmap_HighResolution_429840001_430099201_4FGL_J0809.3+4053_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', photon_flux='7.62e-08', energy_flux2='2.49e-05', photon_flux_error='5.10e-08', dlogl='8.89e-02', energy_flux='2.02e-05', photon_flux2='6.80e-08', job_status='DONE', time_completed='2021-08-29 08:00:38.249714', photon_index_error2='0.59', photon_index2='2.32', ts='4.00', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='2.12e-05', EG='0.85', time_epoch_completed='1630249238.25', return_code='0', job_id='229519', GAL2='1.04', EG2='0.86', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='5.06e-08', ts2='4.19', photon_index='2.59' WHERE bin_id='735' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:00:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 229519: <4FGL_J0809.3+4053_daily_bin735> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin735> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Aug 29 07:45:32 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:45:34 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:34 2021
Terminated at Sun Aug 29 08:00:38 2021
Results reported at Sun Aug 29 08:00:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin735 122.33 40.8954 429840001 430099201 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 :                                   671.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

