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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin979
RA = 122.33, Dec = 40.8954
tmin = 493084801, tmax = 493344001
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='231121', job_status='RUN', time_executed='2021-08-29 07:53:40.745686', time_epoch_executed='1630248820.75' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231121

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231121/ft1_4FGL_J0809.3+4053_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231121/ft2_4FGL_J0809.3+4053_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231121/ft1_4FGL_J0809.3+4053_daily_bin979.fits outfile=/scratch/kocevski/231121/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin979.fits ra=122.33 dec=40.8954 rad=12.0 tmin=493084801.0 tmax=493344001.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 7.57
user 3.37
sys 4.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231121/ft1_filtered_4FGL_J0809.3+4053_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/231121/ft2_4FGL_J0809.3+4053_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/231121/ltcube_493084801_493344001_4FGL_J0809.3+4053_daily_bin979.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/231121/ft2_4FGL_J0809.3+4053_daily_bin979.fits
.....................!
real 16.70
user 11.75
sys 4.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231121/ft1_filtered_4FGL_J0809.3+4053_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/231121/ft2_4FGL_J0809.3+4053_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/231121/ltcube_493084801_493344001_4FGL_J0809.3+4053_daily_bin979.fits outfile=/scratch/kocevski/231121/expmap_493084801_493344001_4FGL_J0809.3+4053_daily_bin979.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/231121/ltcube_493084801_493344001_4FGL_J0809.3+4053_daily_bin979.fits
.....................!
real 195.56
user 185.18
sys 9.84

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/231121/ft1_filtered_4FGL_J0809.3+4053_daily_bin979.fits scfile=/scratch/kocevski/231121/ft2_4FGL_J0809.3+4053_daily_bin979.fits outfile=/scratch/kocevski/231121/cmap_493084801_493344001_4FGL_J0809.3+4053_daily_bin979.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 4.40
user 0.37
sys 4.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231121/ft1_filtered_4FGL_J0809.3+4053_daily_bin979.fits scfile=/scratch/kocevski/231121/ft2_4FGL_J0809.3+4053_daily_bin979.fits outfile=/scratch/kocevski/231121/cmap_HighResolution_493084801_493344001_4FGL_J0809.3+4053_daily_bin979.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 4.42
user 0.38
sys 4.01

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   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 '    .27384E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .98440E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    21.275       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5801       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.143       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5274       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .53492       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8144       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .50041       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0117       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5352       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78471       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0264       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=   6573.521     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2204 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6418        .88290E-08** at limit **
   2  Prefactor     .10000E-03    5.1358        .19491E-07** at limit **
   3  Prefactor     .10000E-03    10.589        .31502E-08** at limit **
   4  Prefactor     .10014E-03    7.7059       -.21079E-05** at limit **
   5  Prefactor     .10011E-03    9.6776       -.22628E-05** at limit **
   6  norm          21.275        13.288        .14676E-06   -.92150E-05
   7  norm          2.5810        2.3176        .11490E-07    .66054E-03
   8  Prefactor     34.144        11.977       -.19810E-06    .19955E-03
   9  Prefactor     .10001E-03    50.554       -.22592E-05** at limit **
  10  Prefactor     3.5278        5.0750        .17179E-06   -.20234E-03
  11  norm          .10000E-03    .65029        .42695E-07** at limit **
  12  norm          .53479        .54420       -.44028E-08   -.33955E-03
  13  Prefactor     .10001E-03    37.970        .26710E-05** at limit **
  14  Prefactor     2.8098        10.535       -.25323E-05   -.23996E-03
  15  Prefactor     .50069        3.0392        .28135E-05    .34679E-03
  16  Prefactor     .10000E-03    12.652        .17098E-07** at limit **
  17  Prefactor     8.0107        8.6472        .34184E-07   -.20683E-04
  18  norm          .10000E-03    2.7405        .22432E-07** at limit **
  19  Prefactor     .10000E-03    2.2954        .89296E-07** at limit **
  20  Prefactor     .10000E-03    30.059       -.24536E-06** at limit **
  21  Prefactor     2.5349        4.0897        .71451E-06    .46513E-03
  22  Normalizat    .78466        .16983       -.79403E-06    .12948E-03
  23  Prefactor     1.0265        .12535       -.43551E-07    .18429E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100136
  Prefactor  = 0.000100113
  norm       = 21.2749
  norm       = 2.58102
  Prefactor  = 34.1444
  Prefactor  = 0.000100009
  Prefactor  = 3.52779
  norm       = 0.0001
  norm       = 0.534793
  Prefactor  = 0.000100014
  Prefactor  = 2.80978
  Prefactor  = 0.500695
  Prefactor  = 0.0001
  Prefactor  = 8.01068
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.53486
  Normalizat = 0.784661
  Prefactor  = 1.02645
 **********
 **   18 **HESSE 
 **********

 FCN=   6573.521     FROM HESSE     STATUS=OK           374 CALLS     2578 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6461        .10145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.1644        .17943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10014E-03    30.414        .38281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10011E-03    34.725        .44113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          21.275        13.286        .86837E-04   -1.4785    
   7  norm          2.5810        2.2598        .11062E-03   -1.5387    
   8  Prefactor     34.144        11.794        .68581E-04   -1.4539    
   9  Prefactor     .10001E-03    52.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5278        5.0170        .19703E-03   -1.5332    
  11  norm          .10000E-03    1.1539        .12741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .53479        .50411        .55602E-03   -1.5562    
  13  Prefactor     .10001E-03    40.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8098        10.616        .24246E-03   -1.5373    
  15  Prefactor     .50069        3.3440        .24519E-02   -1.5566    
  16  Prefactor     .10000E-03    12.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.0107        8.6492        .14165E-03   -1.5142    
  18  norm          .10000E-03    2.7552        .13107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.3718        .23969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    30.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5349        4.0921        .20036E-03   -1.5390    
  22  Normalizat    .78466        .19283        .28636E-03   -1.0064    
  23  Prefactor     1.0265        .14323        .19413E-03   -.91853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.45103e-09
Minuit parameter uncertainties:
  1  1.0757e-06
  2  3.81746e-06
  3  9.34411e-06
  4  0.00406921
  5  0.00396249
  6  13.2878
  7  2.25984
  8  11.7952
  9  0.0013708
  10  5.01765
  11  5.31208e-06
  12  0.504112
  13  0.00151308
  14  10.6227
  15  2.58788
  16  1.08351e-05
  17  8.65051
  18  2.02427e-06
  19  3.59273e-06
  20  0.000186663
  21  4.09253
  22  0.192994
  23  0.143279
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  3.528e+00  5.018e+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.026e+00  1.433e-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.847e-01  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/231121/likelihoodResults_493084801_493344001_4FGL_J0809.3+4053_daily_bin979.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) = 6573.0720912
delta logL = 0.449365764551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6573.04266389
delta logL = 0.478793075214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86544       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9558       1.0000          .0000       10.000    
     3 'Normalizat'    .75766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0404       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=   6573.043     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      258 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86057        13.942        .12682E-01    .98095E-03
   2  Index         3.9604        3.5268        .14326        .13339E-03
   3  Normalizat    .75732        .42123E-01    .65729E-01    .23571E-04
   4  Prefactor     1.0406        .32512E-01    .40507E-01    .11621E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.860572
  Index      = 3.96043
  Normalizat = 0.75732
  Prefactor  = 1.04061
 **********
 **   18 **HESSE 
 **********

 FCN=   6573.043     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      293 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86057        35.563        .66979E-03   -1.5522    
   2  Index         3.9604        6.9120        .72224E-02   -.20944    
   3  Normalizat    .75732        .15396        .29080E-03   -1.0167    
   4  Prefactor     1.0406        .11860        .19291E-03   -.91388    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47288e-07
Minuit parameter uncertainties:
  1  11.0707
  2  7.80348
  3  0.154047
  4  0.118629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231121': 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) = 6573.04265764
delta logL = 0.478799330216

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  8.606e-01  1.107e+01  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.960e+00  7.803e+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.041e+00  1.186e-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.573e-01  1.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 122.330 40.895
Photon Index (Free Index): 3.96 +/- 7.80
Photon Flux (Free Index): 5.10e-08 +/- 5.88e-08
Energy Flux (Free Index): 7.69e-06 +/- 1.75e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/231121/cmap_HighResolution_493084801_493344001_4FGL_J0809.3+4053_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.96e-03', comment='SUCCESS', energy_flux2='7.69e-06', dlogl='4.79e-01', photon_flux2='5.10e-08', job_status='DONE', time_completed='2021-08-29 08:06:13.688554', photon_index_error2='7.80', photon_index2='3.96', ts='0.63', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.75e-05', EG='0.78', time_epoch_completed='1630249573.69', return_code='0', job_id='231121', GAL2='1.04', EG2='0.76', return_code2='102', photon_flux_error2='5.88e-08', ts2='1.64', photon_index='2.59' WHERE bin_id='979' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:06:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 231121: <4FGL_J0809.3+4053_daily_bin979> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin979> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:50:44 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:50:46 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:50:46 2021
Terminated at Sun Aug 29 08:06:15 2021
Results reported at Sun Aug 29 08:06:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin979 122.33 40.8954 493084801 493344001 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 :                                   808.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

