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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin24
RA = 122.33, Dec = 40.8954
tmin = 245548801, tmax = 245808001
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='225224', job_status='RUN', time_executed='2021-08-29 07:33:14.994084', time_epoch_executed='1630247594.99' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='24'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225224/ft1_4FGL_J0809.3+4053_daily_bin24.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225224/ft2_4FGL_J0809.3+4053_daily_bin24.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225224/ft1_4FGL_J0809.3+4053_daily_bin24.fits outfile=/scratch/kocevski/225224/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin24.fits ra=122.33 dec=40.8954 rad=12.0 tmin=245548801.0 tmax=245808001.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.59
user 1.24
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225224/ft1_filtered_4FGL_J0809.3+4053_daily_bin24.fits" evtable="EVENTS" scfile=/scratch/kocevski/225224/ft2_4FGL_J0809.3+4053_daily_bin24.fits sctable="SC_DATA" outfile=/scratch/kocevski/225224/ltcube_245548801_245808001_4FGL_J0809.3+4053_daily_bin24.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/225224/ft2_4FGL_J0809.3+4053_daily_bin24.fits
.....................!
real 12.77
user 12.21
sys 0.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225224/ft1_filtered_4FGL_J0809.3+4053_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/225224/ft2_4FGL_J0809.3+4053_daily_bin24.fits sctable="SC_DATA" expcube=/scratch/kocevski/225224/ltcube_245548801_245808001_4FGL_J0809.3+4053_daily_bin24.fits outfile=/scratch/kocevski/225224/expmap_245548801_245808001_4FGL_J0809.3+4053_daily_bin24.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/225224/ltcube_245548801_245808001_4FGL_J0809.3+4053_daily_bin24.fits
.....................!
real 190.55
user 184.84
sys 5.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/225224/ft1_filtered_4FGL_J0809.3+4053_daily_bin24.fits scfile=/scratch/kocevski/225224/ft2_4FGL_J0809.3+4053_daily_bin24.fits outfile=/scratch/kocevski/225224/cmap_245548801_245808001_4FGL_J0809.3+4053_daily_bin24.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.72
user 0.38
sys 0.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225224/ft1_filtered_4FGL_J0809.3+4053_daily_bin24.fits scfile=/scratch/kocevski/225224/ft2_4FGL_J0809.3+4053_daily_bin24.fits outfile=/scratch/kocevski/225224/cmap_HighResolution_245548801_245808001_4FGL_J0809.3+4053_daily_bin24.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.67
user 0.37
sys 0.28

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.582       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.696       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.6188       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .57878       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9762       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6572       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .46330E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3615       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0815       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.968       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3353       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18549E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2862       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81599       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=   5863.579     FROM MIGRAD    STATUS=CONVERGED    902 CALLS     2946 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.578        10.873        .10489E-03   -.60155E-04
   2  Prefactor     31.696        17.221        .71170E-04   -.54791E-04
   3  Prefactor     .10000E-03    8.0074        .18142E-02** at limit **
   4  Prefactor     7.6197        11.466        .14529E-03   -.52036E-04
   5  Prefactor     .10000E-03    8.1910        .18142E-02** at limit **
   6  norm          .53550        81.627        .40332E-02   -.21964E-03
   7  norm          1.9759        2.1848        .11450E-03   -.81713E-04
   8  Prefactor     1.6550        13.048        .32780E-03   -.22994E-04
   9  Prefactor     .10000E-03    27.346        .18142E-02** at limit **
  10  Prefactor     .10070E-03    66.002        .24935E-02** at limit **
  11  norm          3.3606        2.8954        .11709E-03   -.37089E-04
  12  norm          3.0819        .96644        .38264E-04    .91319E-03
  13  Prefactor     12.966        26.900        .11123E-03   -.45379E-04
  14  Prefactor     3.3177        18.235        .22163E-03   -.25494E-04
  15  Prefactor     .10000E-03    5.0233        .21704E-02** at limit **
  16  Prefactor     .10000E-03    18.203        .18142E-02** at limit **
  17  Prefactor     .10000E-03    4.1108        .15149E-02** at limit **
  18  norm          .10000E-03    4.6063        .15897E-02** at limit **
  19  Prefactor     .10000E-03    .80922        .67009E-03** at limit **
  20  Prefactor     .10000E-03    18.196        .18142E-02** at limit **
  21  Prefactor     .10000E-03    6.5083        .25593E-02** at limit **
  22  Normalizat    1.2863        .23083        .25683E-03   -.81979E-04
  23  Prefactor     .81606        .17086        .23447E-03    .26959E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.578
  Prefactor  = 31.6958
  Prefactor  = 0.0001
  Prefactor  = 7.61967
  Prefactor  = 0.0001
  norm       = 0.535499
  norm       = 1.97591
  Prefactor  = 1.65498
  Prefactor  = 0.000100002
  Prefactor  = 0.000100696
  norm       = 3.36065
  norm       = 3.0819
  Prefactor  = 12.9662
  Prefactor  = 3.31768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.28627
  Prefactor  = 0.81606
 **********
 **   18 **HESSE 
 **********

 FCN=   5863.579     FROM HESSE     STATUS=OK           348 CALLS     3294 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.578        10.871        .41956E-05   -1.4944    
   2  Prefactor     31.696        17.220        .28468E-05   -1.4581    
   3  Prefactor     .10000E-03    8.0075        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.6197        11.464        .58115E-05   -1.5156    
   5  Prefactor     .10000E-03    8.1917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .53550        81.521        .16133E-03   -1.5562    
   7  norm          1.9759        2.1846        .45802E-05   -1.5427    
   8  Prefactor     1.6550        13.033        .13112E-04   -1.5451    
   9  Prefactor     .10000E-03    27.347        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10070E-03    68.457        .99740E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3606        2.8949        .46837E-05   -1.5341    
  12  norm          3.0819        .96549        .76529E-05   -1.5357    
  13  Prefactor     12.966        26.899        .44493E-05   -1.4988    
  14  Prefactor     3.3177        18.158        .88652E-05   -1.5344    
  15  Prefactor     .10000E-03    5.0452        .43407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.1110        .30299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.6090        .31793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .80925        .13402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.5415        .51185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2863        .23061        .10273E-04   -.83977    
  23  Prefactor     .81606        .17098        .93787E-05   -.99139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26043e-08
Minuit parameter uncertainties:
  1  10.8725
  2  17.2229
  3  3.67545e-05
  4  11.4673
  5  4.39072e-06
  6  13.2314
  7  2.1847
  8  9.29117
  9  0.000495054
  10  0.0138199
  11  2.89502
  12  0.965494
  13  26.9243
  14  15.5303
  15  2.46525e-05
  16  0.000127664
  17  6.56788e-06
  18  1.38398e-05
  19  7.96501e-07
  20  0.000136982
  21  0.000205587
  22  0.230795
  23  0.171087
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.007e-04  1.382e-02  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:  8.161e-01  1.711e-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:  1.286e+00  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225224/likelihoodResults_245548801_245808001_4FGL_J0809.3+4053_daily_bin24.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): 102
logL (Free Index) = 5863.57948218
delta logL = -7.12665523679e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5863.57948209
delta logL = -7.1170067713e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96251E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5882       1.0000          .0000       10.000    
     3 'Normalizat'    1.2862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81611       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=   5863.538     FROM MIGRAD    STATUS=CONVERGED    146 CALLS      325 TOTAL
                     EDM=   .97E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16100E-02    .14800        .12138E-05** at limit **
   2  Index         7.1758        8.4853        .39318E-03    .35580E-05
   3  Normalizat    1.2635        .24219        .18625E-05    .35127E-05
   4  Prefactor     .82693        .17450       -.48459E-05   -.49512E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00160996
  Index      = 7.17582
  Normalizat = 1.26348
  Prefactor  = 0.826926
 **********
 **   18 **HESSE 
 **********

 FCN=   5863.538     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      368 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16100E-02    .18876        .21669E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.1758        8.0377        .41021        .45022    
   3  Normalizat    1.2635        .61285E-01    .58504E-01   -.84663    
   4  Prefactor     .82693        .38101E-01    .43926E-01   -.98743    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.08316e-08
Minuit parameter uncertainties:
  1  0.0337653
  2  6.0538
  3  0.0612881
  4  0.0381021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225224': 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) = 5863.53808766
delta logL = 0.0413232592937

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.610e-03  3.377e-02  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  7.176e+00  6.054e+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:  8.269e-01  3.810e-02  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:  1.263e+00  6.129e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.330 40.895

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/225224/cmap_HighResolution_245548801_245808001_4FGL_J0809.3+4053_daily_bin24.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.64e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-08-29 07:44:56.270815', job_id='225224', GAL2='0.83', fit_tolerance='1e-08', EG2='1.26', EG='1.29', time_epoch_completed='1630248296.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='4.13e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='24' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:44:56 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin24 122.33 40.8954 245548801 245808001 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 :                                   701.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            852 sec.

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

