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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin541
RA = 122.33, Dec = 40.8954
tmin = 379555201, tmax = 379814401
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='228201', job_status='RUN', time_executed='2021-08-29 07:44:28.761129', time_epoch_executed='1630248268.76' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228201

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228201/ft1_4FGL_J0809.3+4053_daily_bin541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228201/ft2_4FGL_J0809.3+4053_daily_bin541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228201/ft1_4FGL_J0809.3+4053_daily_bin541.fits outfile=/scratch/kocevski/228201/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin541.fits ra=122.33 dec=40.8954 rad=12.0 tmin=379555201.0 tmax=379814401.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 5.31
user 3.25
sys 2.04

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228201/ft1_filtered_4FGL_J0809.3+4053_daily_bin541.fits" evtable="EVENTS" scfile=/scratch/kocevski/228201/ft2_4FGL_J0809.3+4053_daily_bin541.fits sctable="SC_DATA" outfile=/scratch/kocevski/228201/ltcube_379555201_379814401_4FGL_J0809.3+4053_daily_bin541.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/228201/ft2_4FGL_J0809.3+4053_daily_bin541.fits
.....................!
real 13.97
user 11.49
sys 2.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228201/ft1_filtered_4FGL_J0809.3+4053_daily_bin541.fits evtable="EVENTS" scfile=/scratch/kocevski/228201/ft2_4FGL_J0809.3+4053_daily_bin541.fits sctable="SC_DATA" expcube=/scratch/kocevski/228201/ltcube_379555201_379814401_4FGL_J0809.3+4053_daily_bin541.fits outfile=/scratch/kocevski/228201/expmap_379555201_379814401_4FGL_J0809.3+4053_daily_bin541.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/228201/ltcube_379555201_379814401_4FGL_J0809.3+4053_daily_bin541.fits
.....................!
real 192.23
user 184.92
sys 6.87

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/228201/ft1_filtered_4FGL_J0809.3+4053_daily_bin541.fits scfile=/scratch/kocevski/228201/ft2_4FGL_J0809.3+4053_daily_bin541.fits outfile=/scratch/kocevski/228201/cmap_379555201_379814401_4FGL_J0809.3+4053_daily_bin541.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 2.33
user 0.37
sys 1.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228201/ft1_filtered_4FGL_J0809.3+4053_daily_bin541.fits scfile=/scratch/kocevski/228201/ft2_4FGL_J0809.3+4053_daily_bin541.fits outfile=/scratch/kocevski/228201/cmap_HighResolution_379555201_379814401_4FGL_J0809.3+4053_daily_bin541.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 2.40
user 0.39
sys 1.99

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.155       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.217       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.357       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1526       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10199E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1390       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2151       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.644       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13084E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.854       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7614       1.0000         .10000E-03   10000.    
    20 'Prefactor '    104.73       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1575       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75184       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0593       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=   6396.364     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2587 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.155        9.5342        .64186E-07   -.59267E-05
   2  Prefactor     .10000E-03    8.0007       -.57127E-05** at limit **
   3  Prefactor     35.216        28.252       -.76406E-06   -.40400E-04
   4  Prefactor     .10000E-03    8.3467        .56115E-05** at limit **
   5  Prefactor     15.357        15.779        .36461E-07   -.23341E-04
   6  norm          .10000E-03    6.1881        .70691E-06** at limit **
   7  norm          .10000E-03    1.3358       -.33274E-07** at limit **
   8  Prefactor     1.1523        .65671        .46397E-07   -.45707E-03
   9  Prefactor     .10000E-03    26.939        .10677E-04** at limit **
  10  Prefactor     .10005E-03    2.1828       -.15771E-06** at limit **
  11  norm          .10000E-03    1.1076       -.32607E-07** at limit **
  12  norm          1.1391        .60501        .17896E-07    .47254E-03
  13  Prefactor     .10000E-03    12.920       -.26619E-06** at limit **
  14  Prefactor     .10000E-03    4.9419       -.14631E-06** at limit **
  15  Prefactor     2.2150        2.4468        .39541E-08    .11961E-03
  16  Prefactor     16.644        20.773        .57111E-06    .14222E-03
  17  Prefactor     .10016E-03    5.0830       -.18257E-05** at limit **
  18  norm          14.854        7.4834        .68247E-07    .49262E-04
  19  Prefactor     2.7610        3.3703        .54549E-07    .85245E-04
  20  Prefactor     104.74        80.732        .47143E-05    .16496E-04
  21  Prefactor     2.1547        4.2984       -.12036E-05   -.23768E-04
  22  Normalizat    .75204        .17620        .14291E-07    .14264E-03
  23  Prefactor     1.0592        .13313        .41023E-07    .13716E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.1549
  Prefactor  = 0.0001
  Prefactor  = 35.2161
  Prefactor  = 0.0001
  Prefactor  = 15.3566
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.15232
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  norm       = 0.0001
  norm       = 1.13906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.21497
  Prefactor  = 16.6438
  Prefactor  = 0.000100159
  norm       = 14.8536
  Prefactor  = 2.76099
  Prefactor  = 104.735
  Prefactor  = 2.15471
  Normalizat = 0.752035
  Prefactor  = 1.05922
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.364     FROM HESSE     STATUS=OK           380 CALLS     2967 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.155        9.5498        .96700E-04   -1.4879    
   2  Prefactor     .10000E-03    8.0463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.216        28.272        .67530E-04   -1.4520    
   4  Prefactor     .10000E-03    8.4256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.357        15.888        .10221E-03   -1.4924    
   6  norm          .10000E-03    6.2369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.8490        .17966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1523        7.4637        .20864E-02   -1.5493    
   9  Prefactor     .10000E-03    27.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10005E-03    5.4681        .37384E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1587        .16432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1391        .59927        .42653E-04   -1.5495    
  13  Prefactor     .10000E-03    12.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9494        .17352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2150        2.4274        .12430E-03   -1.5410    
  16  Prefactor     16.644        20.590        .98172E-04   -1.4892    
  17  Prefactor     .10016E-03    25.282        .33384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.854        7.4793        .10392E-03   -1.4937    
  19  Prefactor     2.7610        3.3591        .15202E-03   -1.5376    
  20  Prefactor     104.74        80.651        .39293E-04   -1.3658    
  21  Prefactor     2.1547        4.2724        .21515E-03   -1.5414    
  22  Normalizat    .75204        .20091        .29145E-03   -1.0187    
  23  Prefactor     1.0592        .15241        .19626E-03   -.90781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66104e-09
Minuit parameter uncertainties:
  1  9.55062
  2  1.24054e-05
  3  28.2826
  4  1.95942e-05
  5  15.892
  6  9.43115e-07
  7  1.21625e-05
  8  5.86618
  9  1.36272e-05
  10  0.00102895
  11  1.08504e-07
  12  0.599272
  13  3.57665e-07
  14  1.84888e-07
  15  2.42747
  16  20.5984
  17  0.0040137
  18  7.47976
  19  3.35931
  20  80.7354
  21  4.27298
  22  0.201104
  23  0.152468
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.029e-03  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.059e+00  1.525e-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.520e-01  2.011e-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: 8.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228201/likelihoodResults_379555201_379814401_4FGL_J0809.3+4053_daily_bin541.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) = 6396.36451337
delta logL = -6.68675520501e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6396.30704308
delta logL = 0.057403424521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47873       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4656       1.0000          .0000       10.000    
     3 'Normalizat'    .73868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0635       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=   6396.307     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      305 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47927        3.2549        .15657E-03    .14449E-04
   2  Index         3.4666        2.5204        .93337E-02    .97976E-04
   3  Normalizat    .73864        .19148        .29383E-03   -.86282E-05
   4  Prefactor     1.0635        .14918        .19587E-03   -.34245E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.479267
  Index      = 3.46655
  Normalizat = 0.738637
  Prefactor  = 1.06349
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.307     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47927        2.2971        .62629E-05   -1.5570    
   2  Index         3.4666        2.1507        .18667E-02   -.31171    
   3  Normalizat    .73864        .19165        .11753E-04   -1.0239    
   4  Prefactor     1.0635        .14930        .78348E-05   -.90642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78783e-12
Minuit parameter uncertainties:
  1  2.09841
  2  2.23157
  3  0.191825
  4  0.149355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228201': 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) = 6396.30704268
delta logL = 0.0574038275736

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  4.793e-01  2.098e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.467e+00  2.232e+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.063e+00  1.494e-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.386e-01  1.918e-01  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/228201/cmap_HighResolution_379555201_379814401_4FGL_J0809.3+4053_daily_bin541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-08-29 07:56:55.015106', job_id='228201', GAL2='1.06', fit_tolerance='1e-08', EG2='0.74', EG='0.75', time_epoch_completed='1630249015.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.74e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='541' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:56:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 228201: <4FGL_J0809.3+4053_daily_bin541> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin541> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 07:40:55 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:40:56 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:40:56 2021
Terminated at Sun Aug 29 07:56:55 2021
Results reported at Sun Aug 29 07:56:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin541 122.33 40.8954 379555201 379814401 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 :                                   772.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            960 sec.

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

