/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 162 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 = 7433
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin422
RA = 122.33, Dec = 40.8954
tmin = 348710401, tmax = 348969601
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='228019', job_status='RUN', time_executed='2021-08-29 07:44:11.651922', time_epoch_executed='1630248251.65' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228019/ft1_4FGL_J0809.3+4053_daily_bin422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228019/ft2_4FGL_J0809.3+4053_daily_bin422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228019/ft1_4FGL_J0809.3+4053_daily_bin422.fits outfile=/scratch/kocevski/228019/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin422.fits ra=122.33 dec=40.8954 rad=12.0 tmin=348710401.0 tmax=348969601.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.75
user 3.19
sys 2.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/228019/ft2_4FGL_J0809.3+4053_daily_bin422.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/228019/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin422.fits evtable="EVENTS" outfile="/scratch/kocevski/228019/ft1_filtered_4FGL_J0809.3+4053_daily_bin422.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.90
user 0.33
sys 2.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228019/ft1_filtered_4FGL_J0809.3+4053_daily_bin422.fits" evtable="EVENTS" scfile=/scratch/kocevski/228019/ft2_4FGL_J0809.3+4053_daily_bin422.fits sctable="SC_DATA" outfile=/scratch/kocevski/228019/ltcube_348710401_348969601_4FGL_J0809.3+4053_daily_bin422.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/228019/ft2_4FGL_J0809.3+4053_daily_bin422.fits
.....................!
real 14.84
user 11.74
sys 2.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228019/ft1_filtered_4FGL_J0809.3+4053_daily_bin422.fits evtable="EVENTS" scfile=/scratch/kocevski/228019/ft2_4FGL_J0809.3+4053_daily_bin422.fits sctable="SC_DATA" expcube=/scratch/kocevski/228019/ltcube_348710401_348969601_4FGL_J0809.3+4053_daily_bin422.fits outfile=/scratch/kocevski/228019/expmap_348710401_348969601_4FGL_J0809.3+4053_daily_bin422.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/228019/ltcube_348710401_348969601_4FGL_J0809.3+4053_daily_bin422.fits
.....................!
real 196.16
user 187.75
sys 7.88

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/228019/ft1_filtered_4FGL_J0809.3+4053_daily_bin422.fits scfile=/scratch/kocevski/228019/ft2_4FGL_J0809.3+4053_daily_bin422.fits outfile=/scratch/kocevski/228019/cmap_348710401_348969601_4FGL_J0809.3+4053_daily_bin422.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.79
user 0.36
sys 2.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228019/ft1_filtered_4FGL_J0809.3+4053_daily_bin422.fits scfile=/scratch/kocevski/228019/ft2_4FGL_J0809.3+4053_daily_bin422.fits outfile=/scratch/kocevski/228019/cmap_HighResolution_348710401_348969601_4FGL_J0809.3+4053_daily_bin422.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.84
user 0.37
sys 2.34

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0153       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.126       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7880       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.0252       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7062       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5856       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4271       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5276       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6058       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11452E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.592       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'    1.0250       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0174       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=   6991.177     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2526 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0153        5.4095       -.17907E-05   -.51359E-03
   2  Prefactor     .10000E-03    11.862       -.19953E-05** at limit **
   3  Prefactor     50.124        34.167       -.13590E-05   -.20703E-04
   4  Prefactor     5.7892        8.8959        .85987E-07   -.89077E-04
   5  Prefactor     .10000E-03    37.987        .31409E-04** at limit **
   6  norm          9.0261        11.119        .47516E-07   -.17255E-04
   7  norm          2.7048        3.2498       -.35094E-06   -.79018E-03
   8  Prefactor     4.5833        6.2331        .24014E-05   -.23308E-03
   9  Prefactor     .10000E-03    31.385       -.11986E-04** at limit **
  10  Prefactor     .10000E-03    2.2835       -.91966E-07** at limit **
  11  norm          3.4272        2.1451       -.23037E-07   -.56218E-04
  12  norm          1.5277        .63739       -.22688E-07    .40243E-03
  13  Prefactor     .10000E-03    63.244       -.41124E-04** at limit **
  14  Prefactor     .10000E-03    14.776        .48060E-05** at limit **
  15  Prefactor     .10000E-03    1.0404       -.75185E-07** at limit **
  16  Prefactor     5.6041        41.515        .95767E-06    .16485E-03
  17  Prefactor     .10000E-03    28.986       -.26273E-04** at limit **
  18  norm          16.592        7.3035       -.20451E-07   -.13731E-04
  19  Prefactor     .10000E-03    1.3081        .22279E-06** at limit **
  20  Prefactor     .10000E-03    38.862        .33972E-04** at limit **
  21  Prefactor     .10000E-03    3.6440        .58456E-08** at limit **
  22  Normalizat    1.0250        .18595        .89527E-07    .22326E-03
  23  Prefactor     1.0174        .13590        .13661E-06    .17853E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.01529
  Prefactor  = 0.0001
  Prefactor  = 50.1244
  Prefactor  = 5.78918
  Prefactor  = 0.000100004
  norm       = 9.02614
  norm       = 2.70479
  Prefactor  = 4.58331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.4272
  norm       = 1.52768
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.60412
  Prefactor  = 0.000100003
  norm       = 16.5923
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02496
  Prefactor  = 1.01737
 **********
 **   18 **HESSE 
 **********

 FCN=   6991.177     FROM HESSE     STATUS=OK           368 CALLS     2894 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0153        5.4208        .23372E-03   -1.5361    
   2  Prefactor     .10000E-03    12.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     50.124        34.145        .56643E-04   -1.4291    
   4  Prefactor     5.7892        8.8636        .16694E-03   -1.5227    
   5  Prefactor     .10000E-03    38.738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.0261        11.120        .13341E-03   -1.5107    
   7  norm          2.7048        3.2340        .15587E-03   -1.5379    
   8  Prefactor     4.5833        6.2107        .18797E-03   -1.5280    
   9  Prefactor     .10000E-03    31.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3073        .12330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4272        2.1444        .93998E-04   -1.5338    
  12  norm          1.5277        .63419        .41182E-04   -1.5461    
  13  Prefactor     .10000E-03    64.641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.0497        .83229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6041        41.655        .16967E-03   -1.5234    
  17  Prefactor     .10000E-03    29.712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.592        7.3059        .49163E-03   -1.4893    
  19  Prefactor     .10000E-03    1.3258        .93356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    39.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.7835        .31155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0250        .21633        .28511E-03   -.92199    
  23  Prefactor     1.0174        .15833        .21359E-03   -.92153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2524e-09
Minuit parameter uncertainties:
  1  5.42164
  2  6.74026e-06
  3  34.1582
  4  8.86565
  5  0.000792866
  6  11.1221
  7  3.23423
  8  6.2116
  9  9.7193e-05
  10  4.74441e-06
  11  2.1444
  12  0.634197
  13  0.00108094
  14  2.48722e-05
  15  9.84948e-07
  16  30.5871
  17  0.000547354
  18  7.30634
  19  3.84524e-07
  20  2.12992e-05
  21  3.41912e-06
  22  0.216518
  23  0.158404
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  4.744e-06  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.017e+00  1.584e-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.025e+00  2.165e-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: 7.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228019/likelihoodResults_348710401_348969601_4FGL_J0809.3+4053_daily_bin422.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) = 6991.17942247
delta logL = -0.00206333193819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6991.17735898
delta logL = 1.51930180436e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5670       1.0000          .0000       10.000    
     3 'Normalizat'    1.0250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0174       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=   6991.177     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.130        .12554E-01** at limit **
   2  Index         2.1203        7.6519        .50000        .41857E-06
   3  Normalizat    1.0250        .89127E-02    .28511E-03    .38904E-03
   4  Prefactor     1.0174        .66940E-02    .21359E-03    .54834E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12031
  Normalizat = 1.02495
  Prefactor  = 1.01737
 **********
 **   18 **HESSE 
 **********

 FCN=   6991.177     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    98.913        .13764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1203        5.0826        .50000       -.61375    
   3  Normalizat    1.0250        .28574E-01    .57023E-04   -.92199    
   4  Prefactor     1.0174        .21461E-01    .42718E-04   -.92153    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17721e-09
Minuit parameter uncertainties:
  1  6.26218e-05
  2  436.436
  3  0.0285744
  4  0.0214614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228019': 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) = 6991.17735473
delta logL = 4.40570056526e-06

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  6.262e-05  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.120e+00  4.364e+02  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.017e+00  2.146e-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.025e+00  2.857e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/228019/cmap_HighResolution_348710401_348969601_4FGL_J0809.3+4053_daily_bin422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2021-08-29 07:56:59.499748', job_id='228019', GAL2='1.02', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630249019.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.41e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='422' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:56:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 228019: <4FGL_J0809.3+4053_daily_bin422> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin422 122.33 40.8954 348710401 348969601 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 :                                   798.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

