/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 43 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 = 7402
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin47
RA = 122.33, Dec = 40.8954
tmin = 251510401, tmax = 251769601
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='226468', job_status='RUN', time_executed='2021-08-29 07:36:26.707459', time_epoch_executed='1630247786.71' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='47'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226468

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226468/ft1_4FGL_J0809.3+4053_daily_bin47.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226468/ft2_4FGL_J0809.3+4053_daily_bin47.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226468/ft1_4FGL_J0809.3+4053_daily_bin47.fits outfile=/scratch/kocevski/226468/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin47.fits ra=122.33 dec=40.8954 rad=12.0 tmin=251510401.0 tmax=251769601.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 1.63
user 1.28
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226468/ft2_4FGL_J0809.3+4053_daily_bin47.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/226468/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin47.fits evtable="EVENTS" outfile="/scratch/kocevski/226468/ft1_filtered_4FGL_J0809.3+4053_daily_bin47.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.64
user 0.31
sys 0.31

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226468/ft1_filtered_4FGL_J0809.3+4053_daily_bin47.fits" evtable="EVENTS" scfile=/scratch/kocevski/226468/ft2_4FGL_J0809.3+4053_daily_bin47.fits sctable="SC_DATA" outfile=/scratch/kocevski/226468/ltcube_251510401_251769601_4FGL_J0809.3+4053_daily_bin47.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/226468/ft2_4FGL_J0809.3+4053_daily_bin47.fits
.....................!
real 12.90
user 12.36
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226468/ft1_filtered_4FGL_J0809.3+4053_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/226468/ft2_4FGL_J0809.3+4053_daily_bin47.fits sctable="SC_DATA" expcube=/scratch/kocevski/226468/ltcube_251510401_251769601_4FGL_J0809.3+4053_daily_bin47.fits outfile=/scratch/kocevski/226468/expmap_251510401_251769601_4FGL_J0809.3+4053_daily_bin47.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/226468/ltcube_251510401_251769601_4FGL_J0809.3+4053_daily_bin47.fits
.....................!
real 192.80
user 186.67
sys 5.44

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/226468/ft1_filtered_4FGL_J0809.3+4053_daily_bin47.fits scfile=/scratch/kocevski/226468/ft2_4FGL_J0809.3+4053_daily_bin47.fits outfile=/scratch/kocevski/226468/cmap_251510401_251769601_4FGL_J0809.3+4053_daily_bin47.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.68
user 0.37
sys 0.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226468/ft1_filtered_4FGL_J0809.3+4053_daily_bin47.fits scfile=/scratch/kocevski/226468/ft2_4FGL_J0809.3+4053_daily_bin47.fits outfile=/scratch/kocevski/226468/cmap_HighResolution_251510401_251769601_4FGL_J0809.3+4053_daily_bin47.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.68
user 0.36
sys 0.31

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6507       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.770       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3079       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2557       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.340       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5459       1.0000         .10000E-03   10000.    
    11 'norm      '    .48767       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4230       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.203       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2372       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9428       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.644       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    74.995       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .77546E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .56474       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2375       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=   8632.300     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     2211 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6494        3.9075        .14734E-06    .41414E-02
   2  Prefactor     .10000E-03    4.1789       -.62502E-06** at limit **
   3  Prefactor     .10000E-03    11.458       -.13083E-05** at limit **
   4  Prefactor     11.767        4.5930       -.21601E-06   -.22959E-02
   5  Prefactor     .10000E-03    13.593       -.28394E-07** at limit **
   6  norm          .10000E-03    10.820       -.45805E-05** at limit **
   7  norm          2.3078        2.1523       -.39682E-06    .18522E-03
   8  Prefactor     7.2529        7.6251       -.47968E-07    .12132E-03
   9  Prefactor     21.314        7.8519       -.41635E-06   -.35853E-02
  10  Prefactor     8.5438        5.1563       -.71481E-06    .46923E-03
  11  norm          .48746        1.1000        .42042E-06   -.58321E-04
  12  norm          1.4230        .63885        .16270E-06   -.68117E-04
  13  Prefactor     .10000E-03    16.534        .38804E-05** at limit **
  14  Prefactor     12.200        5.0400       -.59200E-06   -.39251E-02
  15  Prefactor     2.2368        2.1895        .33980E-06    .94637E-04
  16  Prefactor     8.9398        3.4401       -.52644E-06    .24144E-03
  17  Prefactor     30.641        11.221       -.82022E-06    .36606E-02
  18  norm          .10000E-03    2.7187       -.11523E-06** at limit **
  19  Prefactor     .10000E-03    2.9725        .33200E-06** at limit **
  20  Prefactor     75.184        57.222        .20117E-05   -.12668E-02
  21  Prefactor     .10008E-03    1244.9       -.72162E-04** at limit **
  22  Normalizat    .56529        .17913       -.43318E-05    .31504E-04
  23  Prefactor     1.2373        .13910        .13306E-05    .49487E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.64943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7665
  Prefactor  = 0.000100001
  norm       = 0.000100001
  norm       = 2.30779
  Prefactor  = 7.25293
  Prefactor  = 21.314
  Prefactor  = 8.54385
  norm       = 0.487461
  norm       = 1.42299
  Prefactor  = 0.000100001
  Prefactor  = 12.1995
  Prefactor  = 2.23681
  Prefactor  = 8.93984
  Prefactor  = 30.6409
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.184
  Prefactor  = 0.00010008
  Normalizat = 0.565289
  Prefactor  = 1.2373
 **********
 **   18 **HESSE 
 **********

 FCN=   8632.300     FROM HESSE     STATUS=OK           436 CALLS     2647 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6494        8.4108        .36245E-02   -1.5155    
   2  Prefactor     .10000E-03    4.1802        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.767        9.8998        .29192E-02   -1.5022    
   5  Prefactor     .10000E-03    13.623        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.600        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3078        2.1994        .67522E-02   -1.5404    
   8  Prefactor     7.2529        10.740        .37227E-02   -1.5169    
   9  Prefactor     21.314        40.079        .21677E-02   -1.4784    
  10  Prefactor     8.5438        5.2514        .34281E-02   -1.5123    
  11  norm          .48746        1.1655        .33796E-01   -1.5568    
  12  norm          1.4230        .65530        .90632E-02   -1.5469    
  13  Prefactor     .10000E-03    16.416        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.200        12.137        .28668E-02   -1.5009    
  15  Prefactor     2.2368        2.2850        .68703E-02   -1.5409    
  16  Prefactor     8.9398        38.340        .33507E-02   -1.5110    
  17  Prefactor     30.641        16.635        .18095E-02   -1.4600    
  18  norm          .10000E-03    2.7100        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5589        .39981E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     75.184        60.046        .11591E-02   -1.3972    
  21  Prefactor     .10008E-03    2.1876        .77991E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .56529        .17098        .79124E-01   -1.0948    
  23  Prefactor     1.2373        .12747        .33798E-01   -.85191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61219e-07
Minuit parameter uncertainties:
  1  8.41212
  2  6.68227e-06
  3  8.11541e-05
  4  9.90113
  5  0.000200968
  6  0.000148819
  7  2.19944
  8  10.7431
  9  40.1292
  10  5.25173
  11  1.1656
  12  0.655307
  13  0.000255791
  14  12.139
  15  2.28506
  16  37.0673
  17  16.6378
  18  2.19131e-06
  19  6.7446e-07
  20  60.0944
  21  0.000834844
  22  0.171142
  23  0.127501
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  8.544e+00  5.252e+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.237e+00  1.275e-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:  5.653e-01  1.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.17
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 7.09e-08 +/- 4.35e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.15e-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) = 8632.10865678
delta logL = 0.191531203654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8632.09349037
delta logL = 0.206697615882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0443       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9688       1.0000          .0000       10.000    
     3 'Normalizat'    .54981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2462       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=   8632.093     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      240 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0443        57.358        .40828E-02    .13255E-02
   2  Index         2.9688        3.1930        .16855        .17236E-03
   3  Normalizat    .54983        .59549E-01    .80133E-01    .52204E-04
   4  Prefactor     1.2462        .44540E-01    .33620E-01   -.20506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.04429
  Index      = 2.96877
  Normalizat = 0.549826
  Prefactor  = 1.2462
 **********
 **   18 **HESSE 
 **********

 FCN=   8632.093     FROM HESSE     STATUS=OK            31 CALLS      271 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0443        6.2951        .12080E-03   -1.5216    
   2  Index         2.9688        .72227        .61525E-02   -.41834    
   3  Normalizat    .54983        .17594        .35488E-03   -1.1016    
   4  Prefactor     1.2462        .13767        .19185E-03   -.84921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6499e-10
Minuit parameter uncertainties:
  1  6.29574
  2  0.725314
  3  0.176118
  4  0.137706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226468': 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) = 8632.09349037
delta logL = 0.20669761854

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  6.044e+00  6.296e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.969e+00  7.253e-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.246e+00  1.377e-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:  5.498e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.70
Ra Dec: 122.330 40.895
Photon Index (Free Index): 2.97 +/- 0.73
Photon Flux (Free Index): 8.29e-08 +/- 4.73e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.03e-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/226468/cmap_HighResolution_251510401_251769601_4FGL_J0809.3+4053_daily_bin47.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.09e-08', energy_flux2='1.68e-05', photon_flux_error='4.35e-08', dlogl='2.07e-01', energy_flux='1.88e-05', photon_flux2='8.29e-08', job_status='DONE', time_completed='2021-08-29 07:48:08.422627', photon_index_error2='0.73', photon_index2='2.97', ts='4.17', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='0.57', time_epoch_completed='1630248488.42', return_code='0', job_id='226468', GAL2='1.25', EG2='0.55', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='4.73e-08', ts2='4.70', photon_index='2.59' WHERE bin_id='47' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:48:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 226468: <4FGL_J0809.3+4053_daily_bin47> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin47 122.33 40.8954 251510401 251769601 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 :                                   703.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            761 sec.

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

