/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 33 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 = 7399
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin200
RA = 122.33, Dec = 40.8954
tmin = 291168001, tmax = 291427201
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='226577', job_status='RUN', time_executed='2021-08-29 07:38:32.267712', time_epoch_executed='1630247912.27' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226577/ft1_4FGL_J0809.3+4053_daily_bin200.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226577/ft2_4FGL_J0809.3+4053_daily_bin200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226577/ft1_4FGL_J0809.3+4053_daily_bin200.fits outfile=/scratch/kocevski/226577/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin200.fits ra=122.33 dec=40.8954 rad=12.0 tmin=291168001.0 tmax=291427201.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 11.31
user 3.23
sys 8.03

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226577/ft2_4FGL_J0809.3+4053_daily_bin200.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/226577/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin200.fits evtable="EVENTS" outfile="/scratch/kocevski/226577/ft1_filtered_4FGL_J0809.3+4053_daily_bin200.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 8.45
user 0.34
sys 8.08

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226577/ft1_filtered_4FGL_J0809.3+4053_daily_bin200.fits" evtable="EVENTS" scfile=/scratch/kocevski/226577/ft2_4FGL_J0809.3+4053_daily_bin200.fits sctable="SC_DATA" outfile=/scratch/kocevski/226577/ltcube_291168001_291427201_4FGL_J0809.3+4053_daily_bin200.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/226577/ft2_4FGL_J0809.3+4053_daily_bin200.fits
.....................!
real 22.40
user 12.40
sys 9.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226577/ft1_filtered_4FGL_J0809.3+4053_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/226577/ft2_4FGL_J0809.3+4053_daily_bin200.fits sctable="SC_DATA" expcube=/scratch/kocevski/226577/ltcube_291168001_291427201_4FGL_J0809.3+4053_daily_bin200.fits outfile=/scratch/kocevski/226577/expmap_291168001_291427201_4FGL_J0809.3+4053_daily_bin200.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/226577/ltcube_291168001_291427201_4FGL_J0809.3+4053_daily_bin200.fits
.....................!
real 201.95
user 185.86
sys 14.83

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/226577/ft1_filtered_4FGL_J0809.3+4053_daily_bin200.fits scfile=/scratch/kocevski/226577/ft2_4FGL_J0809.3+4053_daily_bin200.fits outfile=/scratch/kocevski/226577/cmap_291168001_291427201_4FGL_J0809.3+4053_daily_bin200.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 8.19
user 0.37
sys 7.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226577/ft1_filtered_4FGL_J0809.3+4053_daily_bin200.fits scfile=/scratch/kocevski/226577/ft2_4FGL_J0809.3+4053_daily_bin200.fits outfile=/scratch/kocevski/226577/cmap_HighResolution_291168001_291427201_4FGL_J0809.3+4053_daily_bin200.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 8.27
user 0.39
sys 7.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2715       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 '    .15120E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.4208       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0431       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8309       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5603       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7024       1.0000         .10000E-03   10000.    
    12 'norm      '    .58664       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4084       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4881       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4846       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81763       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0855       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=   6738.595     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2149 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2725        1.0606        .99462E-07   -.95102E-03
   2  Prefactor     .10000E-03    4.0476        .29918E-07** at limit **
   3  Prefactor     .10000E-03    9.5817        .10771E-05** at limit **
   4  Prefactor     .10001E-03    4.4223       -.55679E-06** at limit **
   5  Prefactor     .10000E-03    10.782       -.41745E-05** at limit **
   6  norm          4.4150        10.343       -.49897E-06   -.63545E-05
   7  norm          1.0428        1.0999        .57655E-07    .16886E-03
   8  Prefactor     .10000E-03    3.0464        .28858E-06** at limit **
   9  Prefactor     6.8198        31.667       -.27029E-04    .11118E-05
  10  Prefactor     5.5602        5.0514        .21859E-06    .30666E-04
  11  norm          2.7023        1.6527       -.72884E-08    .41439E-04
  12  norm          .58655        .55074        .12315E-06    .83347E-03
  13  Prefactor     .10000E-03    9.4628        .17886E-05** at limit **
  14  Prefactor     .10000E-03    9.6342        .37963E-06** at limit **
  15  Prefactor     3.4083        2.4948       -.71106E-07   -.31996E-04
  16  Prefactor     .10000E-03    14.719        .26432E-05** at limit **
  17  Prefactor     .10000E-03    5.9336       -.22683E-06** at limit **
  18  norm          .10000E-03    2.6825        .10222E-08** at limit **
  19  Prefactor     2.4879        2.4801       -.54131E-07    .22788E-05
  20  Prefactor     .10000E-03    21.493       -.62402E-06** at limit **
  21  Prefactor     2.4844        3.0188       -.41353E-07   -.66341E-05
  22  Normalizat    .81770        .16985        .11446E-05    .46730E-04
  23  Prefactor     1.0854        .12802        .31192E-06    .10839E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.27245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 4.41498
  norm       = 1.04277
  Prefactor  = 0.0001
  Prefactor  = 6.81975
  Prefactor  = 5.56019
  norm       = 2.70229
  norm       = 0.586551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.40834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.4879
  Prefactor  = 0.0001
  Prefactor  = 2.48441
  Normalizat = 0.817695
  Prefactor  = 1.08537
 **********
 **   18 **HESSE 
 **********

 FCN=   6738.595     FROM HESSE     STATUS=OK           372 CALLS     2521 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2725        6.3792        .19724E-02   -1.5482    
   2  Prefactor     .10000E-03    4.0542        .16128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.5901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    14.175        .33523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4150        10.339        .19153E-03   -1.5288    
   7  norm          1.0428        1.1148        .86184E-04   -1.5504    
   8  Prefactor     .10000E-03    3.0699        .14006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8198        31.753        .15351E-03   -1.5186    
  10  Prefactor     5.5602        5.0010        .15973E-03   -1.5236    
  11  norm          2.7023        1.6542        .80407E-04   -1.5379    
  12  norm          .58655        .51959        .54627E-03   -1.5555    
  13  Prefactor     .10000E-03    9.4744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.7022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4083        2.4885        .10563E-03   -1.5339    
  16  Prefactor     .10000E-03    14.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.9830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6951        .13127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4879        2.4810        .12454E-03   -1.5392    
  20  Prefactor     .10000E-03    21.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.4844        3.0132        .15232E-03   -1.5393    
  22  Normalizat    .81770        .19444        .28294E-03   -.99416    
  23  Prefactor     1.0854        .14824        .19295E-03   -.89935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62553e-09
Minuit parameter uncertainties:
  1  5.69891
  2  3.81567e-06
  3  8.46181e-07
  4  0.000538795
  5  6.62909e-05
  6  10.3436
  7  1.11479
  8  5.7347e-05
  9  29.4565
  10  5.00142
  11  1.65419
  12  0.519591
  13  6.32732e-06
  14  9.31671e-06
  15  2.48858
  16  5.22195e-06
  17  1.25782e-07
  18  1.51912e-06
  19  2.48106
  20  5.18353e-06
  21  3.01337
  22  0.194603
  23  0.148299
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  5.560e+00  5.001e+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.085e+00  1.483e-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.177e-01  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 122.330 40.895
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.61e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.10e-05

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

Saving results to:
/scratch/kocevski/226577/likelihoodResults_291168001_291427201_4FGL_J0809.3+4053_daily_bin200.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) = 6738.00808011
delta logL = 0.586890757794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6737.97700941
delta logL = 0.617961462336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0217       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1054       1.0000          .0000       10.000    
     3 'Normalizat'    .76834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1140       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=   6737.977     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      259 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0186        9.2253        .11782E-01    .38594E-02
   2  Index         4.1077        2.8360        .14855        .37172E-03
   3  Normalizat    .76829        .43692E-01    .65752E-01   -.10178E-03
   4  Prefactor     1.1141        .34001E-01    .37077E-01   -.71122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.01858
  Index      = 4.10767
  Normalizat = 0.768293
  Prefactor  = 1.11408
 **********
 **   18 **HESSE 
 **********

 FCN=   6737.977     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      292 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0186        21.812        .53542E-03   -1.5506    
   2  Index         4.1077        7.0000        .54131E-02   -.17943    
   3  Normalizat    .76829        .15605        .29090E-03   -1.0126    
   4  Prefactor     1.1141        .12295        .19079E-03   -.89018    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.37161e-10
Minuit parameter uncertainties:
  1  9.43043
  2  5.82243
  3  0.156144
  4  0.122981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226577': 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): 102
logL (Free Index) = 6737.97700871
delta logL = 0.617962161558

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.019e+00  9.430e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  4.108e+00  5.822e+00  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.114e+00  1.230e-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:  7.683e-01  1.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.17
Ra Dec: 122.330 40.895
Photon Index (Free Index): 4.11 +/- 5.82
Photon Flux (Free Index): 7.60e-08 +/- 4.93e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/226577/cmap_HighResolution_291168001_291427201_4FGL_J0809.3+4053_daily_bin200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.61e-08', energy_flux2='1.12e-05', photon_flux_error='4.14e-08', dlogl='6.18e-01', energy_flux='1.22e-05', photon_flux2='7.60e-08', job_status='DONE', time_completed='2021-08-29 07:52:09.324434', photon_index_error2='5.82', photon_index2='4.11', ts='1.78', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.34e-05', EG='0.82', time_epoch_completed='1630248729.32', return_code='0', job_id='226577', GAL2='1.11', EG2='0.77', return_code2='102', energy_flux_error='1.10e-05', photon_flux_error2='4.93e-08', ts2='3.17', photon_index='2.59' WHERE bin_id='200' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:52:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0134>
Subject: Job 226577: <4FGL_J0809.3+4053_daily_bin200> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin200 122.33 40.8954 291168001 291427201 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 :                                   935.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             230.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            995 sec.

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

