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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin853
RA = 122.33, Dec = 40.8954
tmin = 460425601, tmax = 460684801
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='230935', job_status='RUN', time_executed='2021-08-29 07:54:23.146111', time_epoch_executed='1630248863.15' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230935

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230935/ft1_4FGL_J0809.3+4053_daily_bin853.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230935/ft2_4FGL_J0809.3+4053_daily_bin853.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230935/ft1_4FGL_J0809.3+4053_daily_bin853.fits outfile=/scratch/kocevski/230935/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin853.fits ra=122.33 dec=40.8954 rad=12.0 tmin=460425601.0 tmax=460684801.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 3.33
user 3.08
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230935/ft1_filtered_4FGL_J0809.3+4053_daily_bin853.fits" evtable="EVENTS" scfile=/scratch/kocevski/230935/ft2_4FGL_J0809.3+4053_daily_bin853.fits sctable="SC_DATA" outfile=/scratch/kocevski/230935/ltcube_460425601_460684801_4FGL_J0809.3+4053_daily_bin853.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/230935/ft2_4FGL_J0809.3+4053_daily_bin853.fits
.....................!
real 12.20
user 11.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230935/ft1_filtered_4FGL_J0809.3+4053_daily_bin853.fits evtable="EVENTS" scfile=/scratch/kocevski/230935/ft2_4FGL_J0809.3+4053_daily_bin853.fits sctable="SC_DATA" expcube=/scratch/kocevski/230935/ltcube_460425601_460684801_4FGL_J0809.3+4053_daily_bin853.fits outfile=/scratch/kocevski/230935/expmap_460425601_460684801_4FGL_J0809.3+4053_daily_bin853.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/230935/ltcube_460425601_460684801_4FGL_J0809.3+4053_daily_bin853.fits
.....................!
real 190.83
user 185.56
sys 4.85

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/230935/ft1_filtered_4FGL_J0809.3+4053_daily_bin853.fits scfile=/scratch/kocevski/230935/ft2_4FGL_J0809.3+4053_daily_bin853.fits outfile=/scratch/kocevski/230935/cmap_460425601_460684801_4FGL_J0809.3+4053_daily_bin853.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230935/ft1_filtered_4FGL_J0809.3+4053_daily_bin853.fits scfile=/scratch/kocevski/230935/ft2_4FGL_J0809.3+4053_daily_bin853.fits outfile=/scratch/kocevski/230935/cmap_HighResolution_460425601_460684801_4FGL_J0809.3+4053_daily_bin853.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5494       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34653E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.886       1.0000         .10000E-03   10000.    
     6 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0654       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.925       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2992       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6209       1.0000         .10000E-03   10000.    
    12 'norm      '    .95009       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.354       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.157       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1641       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.959       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4281       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .53008       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2788       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=   7166.788     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2574 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8195       -.11183E-06** at limit **
   2  Prefactor     2.5494        6.9605       -.10030E-05    .24774E-04
   3  Prefactor     .10000E-03    60.674        .51147E-05** at limit **
   4  Prefactor     .10000E-03    27.123       -.75766E-05** at limit **
   5  Prefactor     10.887        18.869       -.41820E-06   -.75463E-05
   6  norm          .10000E-03    18.016       -.69671E-06** at limit **
   7  norm          2.0664        2.5170       -.35093E-06   -.90535E-04
   8  Prefactor     .10000E-03    4.5348        .45528E-09** at limit **
   9  Prefactor     12.923        35.375        .29041E-05    .15023E-04
  10  Prefactor     1.2978        4.1998        .39135E-06    .14082E-03
  11  norm          3.6209        1.6536       -.31006E-08   -.50187E-04
  12  norm          .95055        .72375       -.23758E-07    .75888E-04
  13  Prefactor     18.352        32.262        .18786E-05    .13034E-04
  14  Prefactor     25.157        15.459       -.12046E-06    .34262E-04
  15  Prefactor     3.1643        2.4982        .15449E-06    .85319E-04
  16  Prefactor     33.956        25.246        .12083E-05    .27059E-04
  17  Prefactor     .10000E-03    2.7621       -.90091E-07** at limit **
  18  norm          4.4278        5.3393        .72472E-06    .72417E-04
  19  Prefactor     .10000E-03    .92217        .94542E-07** at limit **
  20  Prefactor     .10000E-03    41.644       -.44978E-05** at limit **
  21  Prefactor     .10000E-03    2.6311        .25928E-08** at limit **
  22  Normalizat    .53010        .18191       -.82971E-06    .10459E-04
  23  Prefactor     1.2788        .13661       -.11432E-06   -.50235E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.54939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8868
  norm       = 0.0001
  norm       = 2.06641
  Prefactor  = 0.0001
  Prefactor  = 12.9227
  Prefactor  = 1.29776
  norm       = 3.6209
  norm       = 0.950546
  Prefactor  = 18.3521
  Prefactor  = 25.1569
  Prefactor  = 3.16428
  Prefactor  = 33.9557
  Prefactor  = 0.0001
  norm       = 4.4278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.530103
  Prefactor  = 1.27881
 **********
 **   18 **HESSE 
 **********

 FCN=   7166.788     FROM HESSE     STATUS=OK           378 CALLS     2952 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8737        .16153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5494        6.9512        .25573E-03   -1.5389    
   3  Prefactor     .10000E-03    62.420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.994        .41595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.887        18.815        .12143E-03   -1.5048    
   6  norm          .10000E-03    18.579        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0664        2.4411        .13878E-03   -1.5420    
   8  Prefactor     .10000E-03    4.5554        .17591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.923        35.301        .11142E-03   -1.4989    
  10  Prefactor     1.2978        4.7954        .32312E-03   -1.5480    
  11  norm          3.6209        1.6552        .71680E-04   -1.5327    
  12  norm          .95055        .69144        .55667E-03   -1.5513    
  13  Prefactor     18.352        32.352        .93488E-04   -1.4851    
  14  Prefactor     25.157        15.429        .79866E-04   -1.4704    
  15  Prefactor     3.1643        2.4902        .11090E-03   -1.5352    
  16  Prefactor     33.956        25.283        .68765E-04   -1.4542    
  17  Prefactor     .10000E-03    2.7671        .13741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4278        5.3969        .19137E-03   -1.5287    
  19  Prefactor     .10000E-03    .93234        .79310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6962        .26793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .53010        .19579        .35310E-03   -1.1104    
  23  Prefactor     1.2788        .14913        .18612E-03   -.83939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57894e-11
Minuit parameter uncertainties:
  1  2.64901e-06
  2  6.95345
  3  9.35562e-05
  4  0.000167982
  5  18.8251
  6  4.30005e-05
  7  2.44123
  8  7.71951e-06
  9  35.3585
  10  4.79678
  11  1.65524
  12  0.691451
  13  32.3827
  14  15.4315
  15  2.49033
  16  25.2911
  17  4.74858e-06
  18  5.39752
  19  1.56574e-06
  20  7.21427e-05
  21  3.52812e-06
  22  0.196045
  23  0.14918
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.298e+00  4.797e+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.279e+00  1.492e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  5.301e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/230935/likelihoodResults_460425601_460684801_4FGL_J0809.3+4053_daily_bin853.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) = 7166.51259537
delta logL = 0.275134882623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7166.39480723
delta logL = 0.392923019026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10953E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.8382       1.0000          .0000       10.000    
     3 'Normalizat'    .48665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3033       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=   7166.395     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      327 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10655E-02    .16127E-01    .73221E-03** at limit **
   2  Index         7.8549        2.7701        .24934        .89368E-04
   3  Normalizat    .48655        .28479E-01    .82983E-01    .45476E-04
   4  Prefactor     1.3035        .22600E-01    .32552E-01    .23536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00106546
  Index      = 7.85489
  Normalizat = 0.486552
  Prefactor  = 1.30347
 **********
 **   18 **HESSE 
 **********

 FCN=   7166.395     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      362 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10655E-02    .76149E-01    .32706E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.8549        8.9266        .95392E-02    .60770    
   3  Normalizat    .48655        .12759        .36756E-03   -1.1304    
   4  Prefactor     1.3035        .99980E-01    .18455E-03   -.83204    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.53182e-09
Minuit parameter uncertainties:
  1  0.0171486
  2  9.0513
  3  0.127668
  4  0.0999943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230935': 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) = 7166.39480357
delta logL = 0.39292667902

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.065e-03  1.715e-02  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  7.855e+00  9.051e+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.303e+00  9.999e-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:  4.866e-01  1.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 122.330 40.895

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/230935/cmap_HighResolution_460425601_460684801_4FGL_J0809.3+4053_daily_bin853.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.94e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-08-29 08:07:05.657582', job_id='230935', GAL2='1.30', fit_tolerance='1e-08', EG2='0.49', EG='0.53', time_epoch_completed='1630249625.66', return_code2='102', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='3.93e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='853' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:07:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 230935: <4FGL_J0809.3+4053_daily_bin853> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin853 122.33 40.8954 460425601 460684801 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 :                                   761.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            995 sec.

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

