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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin598
RA = 122.33, Dec = 40.8954
tmin = 394329601, tmax = 394588801
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='229324', job_status='RUN', time_executed='2021-08-29 07:45:55.600446', time_epoch_executed='1630248355.6' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229324

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229324/ft1_4FGL_J0809.3+4053_daily_bin598.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229324/ft2_4FGL_J0809.3+4053_daily_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229324/ft1_4FGL_J0809.3+4053_daily_bin598.fits outfile=/scratch/kocevski/229324/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin598.fits ra=122.33 dec=40.8954 rad=12.0 tmin=394329601.0 tmax=394588801.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.44
user 7.09
sys 1.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229324/ft2_4FGL_J0809.3+4053_daily_bin598.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/229324/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin598.fits evtable="EVENTS" outfile="/scratch/kocevski/229324/ft1_filtered_4FGL_J0809.3+4053_daily_bin598.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.54
user 0.32
sys 1.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229324/ft1_filtered_4FGL_J0809.3+4053_daily_bin598.fits" evtable="EVENTS" scfile=/scratch/kocevski/229324/ft2_4FGL_J0809.3+4053_daily_bin598.fits sctable="SC_DATA" outfile=/scratch/kocevski/229324/ltcube_394329601_394588801_4FGL_J0809.3+4053_daily_bin598.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/229324/ft2_4FGL_J0809.3+4053_daily_bin598.fits
.....................!
real 12.48
user 10.97
sys 1.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229324/ft1_filtered_4FGL_J0809.3+4053_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/229324/ft2_4FGL_J0809.3+4053_daily_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/229324/ltcube_394329601_394588801_4FGL_J0809.3+4053_daily_bin598.fits outfile=/scratch/kocevski/229324/expmap_394329601_394588801_4FGL_J0809.3+4053_daily_bin598.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/229324/ltcube_394329601_394588801_4FGL_J0809.3+4053_daily_bin598.fits
.....................!
real 192.04
user 185.05
sys 6.35

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/229324/ft1_filtered_4FGL_J0809.3+4053_daily_bin598.fits scfile=/scratch/kocevski/229324/ft2_4FGL_J0809.3+4053_daily_bin598.fits outfile=/scratch/kocevski/229324/cmap_394329601_394588801_4FGL_J0809.3+4053_daily_bin598.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.54
user 0.38
sys 1.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229324/ft1_filtered_4FGL_J0809.3+4053_daily_bin598.fits scfile=/scratch/kocevski/229324/ft2_4FGL_J0809.3+4053_daily_bin598.fits outfile=/scratch/kocevski/229324/cmap_HighResolution_394329601_394588801_4FGL_J0809.3+4053_daily_bin598.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.57
user 0.37
sys 1.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73699       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23984E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .81268E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    5.1362       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4602       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8941       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0517       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.053       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .71405       1.0000         .10000E-03   10000.    
    16 'Prefactor '    74.890       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1649       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .66157       1.0000         .10000E-03   10000.    
    20 'Prefactor '    101.16       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6453       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95254       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94210       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6038.147     FROM MIGRAD    STATUS=CONVERGED     89 CALLS     2215 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74008        1.0565       -.31447E-06   -.26342E-04
   2  Prefactor     .10580E-03    13.473        .11314E-04** at limit **
   3  Prefactor     .10003E-03    29.033        .46745E-05** at limit **
   4  Prefactor     .10003E-03    9.4621        .19655E-04** at limit **
   5  Prefactor     .10000E-03    7.9738       -.79127E-05** at limit **
   6  norm          .10149E-03    63.600       -.11958E-04** at limit **
   7  norm          5.1368        3.0140       -.55050E-06   -.84125E-04
   8  Prefactor     .10000E-03    2.7825       -.34624E-06** at limit **
   9  Prefactor     .10002E-03    10.576       -.14936E-04** at limit **
  10  Prefactor     8.4598        1.0450        .35121E-06    .31330E-03
  11  norm          1.8942        1.5663        .16040E-06    .11212E-03
  12  norm          1.0518        .59489        .13267E-07   -.19489E-03
  13  Prefactor     14.050        1.1161       -.38456E-06    .76978E-03
  14  Prefactor     .10000E-03    7.0151        .27534E-05** at limit **
  15  Prefactor     .71476        2.6967        .26911E-06   -.18002E-03
  16  Prefactor     74.891        1.0071        .43446E-07   -.45836E-03
  17  Prefactor     7.1654        1.0159        .24535E-06   -.78226E-04
  18  norm          .10000E-03    1.7606       -.58150E-06** at limit **
  19  Prefactor     .66191        1.5680        .15217E-06   -.82979E-04
  20  Prefactor     101.16        1.0866        .14704E-06   -.23716E-02
  21  Prefactor     1.6444        3.4959        .14112E-05   -.16483E-04
  22  Normalizat    .95244        .20932       -.21291E-05   -.51132E-04
  23  Prefactor     .94211        .15660        .35893E-06   -.83186E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.740081
  Prefactor  = 0.0001058
  Prefactor  = 0.000100033
  Prefactor  = 0.000100028
  Prefactor  = 0.000100002
  norm       = 0.000101486
  norm       = 5.1368
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 8.45983
  norm       = 1.89422
  norm       = 1.05182
  Prefactor  = 14.0503
  Prefactor  = 0.0001
  Prefactor  = 0.71476
  Prefactor  = 74.8909
  Prefactor  = 7.16538
  norm       = 0.0001
  Prefactor  = 0.661914
  Prefactor  = 101.163
  Prefactor  = 1.64444
  Normalizat = 0.952436
  Prefactor  = 0.942109
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.147     FROM HESSE     STATUS=OK           432 CALLS     2647 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74008        4.2613        .84543E-01   -1.5536    
   2  Prefactor     .10580E-03    9.6410        .10029       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    29.258        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    9.6245        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9939        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10149E-03    6.7076        .92249E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.1368        3.0228        .44349E-02   -1.5255    
   8  Prefactor     .10000E-03    2.7786        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    10.747        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4598        5.7797        .34456E-02   -1.5126    
  11  norm          1.8942        1.5664        .75573E-02   -1.5433    
  12  norm          1.0518        .61538        .98491E-02   -1.5503    
  13  Prefactor     14.050        28.052        .26711E-02   -1.4958    
  14  Prefactor     .10000E-03    7.0038        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .71476        2.7465        .12116E-01   -1.5539    
  16  Prefactor     74.891        36.266        .11599E-02   -1.3975    
  17  Prefactor     7.1654        8.9977        .37464E-02   -1.5173    
  18  norm          .10000E-03    1.7557        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .66191        1.7582        .34460E-01   -1.5545    
  20  Prefactor     101.16        78.956        .99933E-03   -1.3693    
  21  Prefactor     1.6444        3.6208        .82324E-02   -1.5451    
  22  Normalizat    .95244        .19025        .45569E-01   -.94641    
  23  Prefactor     .94211        .13781        .45539E-01   -.94685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45243e-08
Minuit parameter uncertainties:
  1  3.55188
  2  0.0149587
  3  0.00196699
  4  0.00103986
  5  0.000253054
  6  0.00631552
  7  3.02285
  8  2.27839e-06
  9  0.000988452
  10  5.7801
  11  1.56646
  12  0.615386
  13  28.0778
  14  7.54304e-05
  15  2.747
  16  36.2769
  17  8.99938
  18  9.02699e-06
  19  1.75836
  20  79.0377
  21  3.62125
  22  0.190383
  23  0.137864
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  8.460e+00  5.780e+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:  9.421e-01  1.379e-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:  9.524e-01  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.81
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 7.02e-08 +/- 4.79e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/229324/likelihoodResults_394329601_394588801_4FGL_J0809.3+4053_daily_bin598.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) = 6037.92962298
delta logL = 0.216945147514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6037.91658174
delta logL = 0.229986387687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9072       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0356       1.0000          .0000       10.000    
     3 'Normalizat'    .92953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95336       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=   6037.917     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      266 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9070        6.2680        .11014E-03    .11003E-03
   2  Index         3.0350        .76129        .59191E-02    .34386E-04
   3  Normalizat    .92990        .21219        .27679E-03   -.10815E-03
   4  Prefactor     .95305        .15723        .20594E-03   -.12114E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.90699
  Index      = 3.035
  Normalizat = 0.929897
  Prefactor  = 0.953047
 **********
 **   18 **HESSE 
 **********

 FCN=   6037.917     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9070        5.7348        .44057E-05   -1.5222    
   2  Index         3.0350        .69629        .23677E-03   -.40389    
   3  Normalizat    .92990        .21223        .11072E-04   -.95417    
   4  Prefactor     .95305        .15724        .41188E-04   -.94311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48487e-11
Minuit parameter uncertainties:
  1  5.73534
  2  0.698983
  3  0.21242
  4  0.157314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229324': 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) = 6037.91657904
delta logL = 0.229989091054

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  5.907e+00  5.735e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.035e+00  6.990e-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:  9.530e-01  1.573e-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:  9.299e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.33
Ra Dec: 122.330 40.895
Photon Index (Free Index): 3.04 +/- 0.70
Photon Flux (Free Index): 8.89e-08 +/- 5.86e-08
Energy Flux (Free Index): 1.74e-05 +/- 1.10e-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/229324/cmap_HighResolution_394329601_394588801_4FGL_J0809.3+4053_daily_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='7.02e-08', energy_flux2='1.74e-05', photon_flux_error='4.79e-08', dlogl='2.30e-01', energy_flux='1.86e-05', photon_flux2='8.89e-08', job_status='DONE', time_completed='2021-08-29 07:57:44.873661', photon_index_error2='0.70', photon_index2='3.04', ts='3.81', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.10e-05', EG='0.95', time_epoch_completed='1630249064.87', return_code='0', job_id='229324', GAL2='0.95', EG2='0.93', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.86e-08', ts2='4.33', photon_index='2.59' WHERE bin_id='598' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:57:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 229324: <4FGL_J0809.3+4053_daily_bin598> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin598 122.33 40.8954 394329601 394588801 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 :                                   721.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            746 sec.

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

