/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 239 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 = 7475
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin318
RA = 122.33, Dec = 40.8954
tmin = 321753601, tmax = 322012801
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='226748', job_status='RUN', time_executed='2021-08-29 07:39:59.668602', time_epoch_executed='1630247999.67' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226748

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226748/ft1_4FGL_J0809.3+4053_daily_bin318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226748/ft2_4FGL_J0809.3+4053_daily_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226748/ft1_4FGL_J0809.3+4053_daily_bin318.fits outfile=/scratch/kocevski/226748/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin318.fits ra=122.33 dec=40.8954 rad=12.0 tmin=321753601.0 tmax=322012801.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 3.35
user 3.11
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226748/ft2_4FGL_J0809.3+4053_daily_bin318.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/226748/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin318.fits evtable="EVENTS" outfile="/scratch/kocevski/226748/ft1_filtered_4FGL_J0809.3+4053_daily_bin318.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226748/ft1_filtered_4FGL_J0809.3+4053_daily_bin318.fits" evtable="EVENTS" scfile=/scratch/kocevski/226748/ft2_4FGL_J0809.3+4053_daily_bin318.fits sctable="SC_DATA" outfile=/scratch/kocevski/226748/ltcube_321753601_322012801_4FGL_J0809.3+4053_daily_bin318.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/226748/ft2_4FGL_J0809.3+4053_daily_bin318.fits
.....................!
real 11.84
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226748/ft1_filtered_4FGL_J0809.3+4053_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/226748/ft2_4FGL_J0809.3+4053_daily_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/226748/ltcube_321753601_322012801_4FGL_J0809.3+4053_daily_bin318.fits outfile=/scratch/kocevski/226748/expmap_321753601_322012801_4FGL_J0809.3+4053_daily_bin318.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/226748/ltcube_321753601_322012801_4FGL_J0809.3+4053_daily_bin318.fits
.....................!
real 191.00
user 185.41
sys 5.21

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/226748/ft1_filtered_4FGL_J0809.3+4053_daily_bin318.fits scfile=/scratch/kocevski/226748/ft2_4FGL_J0809.3+4053_daily_bin318.fits outfile=/scratch/kocevski/226748/cmap_321753601_322012801_4FGL_J0809.3+4053_daily_bin318.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 0.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226748/ft1_filtered_4FGL_J0809.3+4053_daily_bin318.fits scfile=/scratch/kocevski/226748/ft2_4FGL_J0809.3+4053_daily_bin318.fits outfile=/scratch/kocevski/226748/cmap_HighResolution_321753601_322012801_4FGL_J0809.3+4053_daily_bin318.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 0.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79152E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1302       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.123       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8799       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    67.892       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5408       1.0000         .10000E-03   10000.    
    11 'norm      '    7.5324       1.0000         .10000E-03   10000.    
    12 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.098       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11517E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.509       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0314       1.0000         .10000E-03   10000.    
    18 'norm      '    7.0344       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .56973       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93270       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1490       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.

 FCN=   8553.420     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2587 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2517        .65394E-01** at limit **
   2  Prefactor     3.1293        9.8803        .57287E-02    .25201E-03
   3  Prefactor     .10004E-03    37.303        .90712E-02** at limit **
   4  Prefactor     .10000E-03    5.4729        .90712E-02** at limit **
   5  Prefactor     13.122        18.587        .27644E-02    .29903E-03
   6  norm          .10000E-03    3.6678        .90712E-02** at limit **
   7  norm          1.8796        2.1423        .75908E-02    .59926E-03
   8  Prefactor     .10000E-03    3.1079        .90712E-02** at limit **
   9  Prefactor     67.891        42.584        .12178E-02    .10168E-02
  10  Prefactor     9.5406        5.3480        .32435E-02    .76592E-03
  11  norm          7.5322        2.4711        .36531E-02   -.14371E-04
  12  norm          .10000E-03    .23526        .16605E-01** at limit **
  13  Prefactor     19.097        25.140        .22912E-02    .89353E-03
  14  Prefactor     .10000E-03    25.758        .90712E-02** at limit **
  15  Prefactor     .10000E-03    .86694        .90712E-02** at limit **
  16  Prefactor     26.506        24.838        .19452E-02    .91363E-03
  17  Prefactor     9.0313        7.5842        .33342E-02   -.25907E-04
  18  norm          7.0342        4.5625        .37814E-02   -.19797E-03
  19  Prefactor     .56980        2.0411        .11552E-01    .22062E-02
  20  Prefactor     .10005E-03    36.077        .90712E-02** at limit **
  21  Prefactor     .10000E-03    2.3584        .46574E-01** at limit **
  22  Normalizat    .93256        .17730        .69185E-01    .17463E-04
  23  Prefactor     1.1492        .12985        .35965E-01   -.11764E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.12929
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 13.1217
  norm       = 0.0001
  norm       = 1.87963
  Prefactor  = 0.0001
  Prefactor  = 67.8915
  Prefactor  = 9.54059
  norm       = 7.5322
  norm       = 0.0001
  Prefactor  = 19.0969
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 26.5064
  Prefactor  = 9.03127
  norm       = 7.03419
  Prefactor  = 0.569803
  Prefactor  = 0.00010005
  Prefactor  = 0.0001
  Normalizat = 0.932556
  Prefactor  = 1.14915
 **********
 **   18 **HESSE 
 **********

 FCN=   8553.420     FROM HESSE     STATUS=OK           372 CALLS     2959 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.974        .36786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1293        9.8554        .22915E-03   -1.5354    
   3  Prefactor     .10004E-03    37.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.122        18.565        .11057E-03   -1.4983    
   6  norm          .10000E-03    3.6795        .17297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8796        2.1265        .13948E-03   -1.5434    
   8  Prefactor     .10000E-03    3.1124        .15913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     67.891        42.524        .48713E-04   -1.4058    
  10  Prefactor     9.5406        5.3102        .12974E-03   -1.5090    
  11  norm          7.5322        2.4709        .80882E-04   -1.5159    
  12  norm          .10000E-03    .79006        .86191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.097        25.135        .91649E-04   -1.4834    
  14  Prefactor     .10000E-03    26.870        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .87366        .84017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.506        24.815        .77807E-04   -1.4678    
  17  Prefactor     9.0313        7.5790        .13337E-03   -1.5107    
  18  norm          7.0342        4.5591        .15125E-03   -1.5177    
  19  Prefactor     .56980        2.0573        .23987E-03   -1.5557    
  20  Prefactor     .10005E-03    36.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3499        .27451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .93256        .20052        .30608E-03   -.95325    
  23  Prefactor     1.1492        .14733        .21068E-03   -.87911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01632e-08
Minuit parameter uncertainties:
  1  2.33718e-05
  2  9.86055
  3  0.0024444
  4  3.53697e-05
  5  18.5735
  6  1.07129e-07
  7  2.12659
  8  1.31199e-06
  9  42.5429
  10  5.31044
  11  2.47091
  12  8.85412e-08
  13  25.1485
  14  0.000258171
  15  1.97916e-07
  16  24.8244
  17  7.57978
  18  4.55935
  19  2.05757
  20  0.00268239
  21  3.32115e-05
  22  0.200686
  23  0.147378
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  9.541e+00  5.310e+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.149e+00  1.474e-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.326e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.93
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 7.91e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 2.10e-05 +/- 1.17e-05

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) = 8553.23381592
delta logL = 0.186437870514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8553.21659812
delta logL = 0.203655672567

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9579       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9825       1.0000          .0000       10.000    
     3 'Normalizat'    .90734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1627       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=   8553.217     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      268 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9571        7.0109        .12036E-03   -.35627E-03
   2  Index         2.9822        .77170        .60983E-02   -.53396E-04
   3  Normalizat    .90739        .19963        .30976E-03   -.41077E-03
   4  Prefactor     1.1628        .14873        .20962E-03   -.71277E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.9571
  Index      = 2.98217
  Normalizat = 0.90739
  Prefactor  = 1.16276
 **********
 **   18 **HESSE 
 **********

 FCN=   8553.217     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9571        6.1871        .48146E-05   -1.5180    
   2  Index         2.9822        .68093        .24393E-03   -.41541    
   3  Normalizat    .90739        .19918        .12390E-04   -.96201    
   4  Prefactor     1.1628        .14836        .41924E-04   -.87485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94297e-10
Minuit parameter uncertainties:
  1  6.18765
  2  0.683467
  3  0.199341
  4  0.148417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226748': 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) = 8553.21659747
delta logL = 0.203656316251

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  6.957e+00  6.188e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.982e+00  6.835e-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.163e+00  1.484e-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.074e-01  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 122.330 40.895
Photon Index (Free Index): 2.98 +/- 0.68
Photon Flux (Free Index): 9.73e-08 +/- 5.54e-08
Energy Flux (Free Index): 1.96e-05 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/226748/cmap_HighResolution_321753601_322012801_4FGL_J0809.3+4053_daily_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.91e-08', energy_flux2='1.96e-05', photon_flux_error='4.40e-08', dlogl='2.04e-01', energy_flux='2.10e-05', photon_flux2='9.73e-08', job_status='DONE', time_completed='2021-08-29 07:52:18.917902', photon_index_error2='0.68', photon_index2='2.98', ts='4.93', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='0.93', time_epoch_completed='1630248738.92', return_code='0', job_id='226748', GAL2='1.16', EG2='0.91', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.54e-08', ts2='5.40', photon_index='2.59' WHERE bin_id='318' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:52:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 226748: <4FGL_J0809.3+4053_daily_bin318> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin318> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 07:35:49 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:35:50 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:35:50 2021
Terminated at Sun Aug 29 07:52:19 2021
Results reported at Sun Aug 29 07:52:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin318 122.33 40.8954 321753601 322012801 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 :                                   735.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

