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


Performing analysis on: 4FGL_J0809.5+5341_daily_bin1511
RA = 122.379, Dec = 53.6876
tmin = 630979201, tmax = 631238401
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='247263', job_status='RUN', time_executed='2021-08-29 08:43:25.914846', time_epoch_executed='1630251805.91' WHERE source_name='4FGL J0809.5+5341' and cadence='daily' and bin_id='1511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/247263

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/247263/ft1_4FGL_J0809.5+5341_daily_bin1511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/247263/ft2_4FGL_J0809.5+5341_daily_bin1511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/247263/ft1_4FGL_J0809.5+5341_daily_bin1511.fits outfile=/scratch/kocevski/247263/ft1_filteredMKT_4FGL_J0809.5+5341_daily_bin1511.fits ra=122.379 dec=53.6876 rad=12.0 tmin=630979201.0 tmax=631238401.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 2.83
user 2.64
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/247263/ft2_4FGL_J0809.5+5341_daily_bin1511.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/247263/ft2_4FGL_J0809.5+5341_daily_bin1511.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/247263/ft1_filteredMKT_4FGL_J0809.5+5341_daily_bin1511.fits evtable="EVENTS" outfile="/scratch/kocevski/247263/ft1_filtered_4FGL_J0809.5+5341_daily_bin1511.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/247263/ft1_filtered_4FGL_J0809.5+5341_daily_bin1511.fits" evtable="EVENTS" scfile=/scratch/kocevski/247263/ft2_4FGL_J0809.5+5341_daily_bin1511.fits sctable="SC_DATA" outfile=/scratch/kocevski/247263/ltcube_630979201_631238401_4FGL_J0809.5+5341_daily_bin1511.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/247263/ft2_4FGL_J0809.5+5341_daily_bin1511.fits
.....................!
real 12.33
user 11.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/247263/ft1_filtered_4FGL_J0809.5+5341_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/247263/ft2_4FGL_J0809.5+5341_daily_bin1511.fits sctable="SC_DATA" expcube=/scratch/kocevski/247263/ltcube_630979201_631238401_4FGL_J0809.5+5341_daily_bin1511.fits outfile=/scratch/kocevski/247263/expmap_630979201_631238401_4FGL_J0809.5+5341_daily_bin1511.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/247263/ltcube_630979201_631238401_4FGL_J0809.5+5341_daily_bin1511.fits
.....................!
real 191.03
user 186.51
sys 4.21

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 228 point sources and 0 extended sources

Setting source of interest to:
4FGL J0809.5+5341 @ 122.379 53.6876

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/247263/ft1_filtered_4FGL_J0809.5+5341_daily_bin1511.fits scfile=/scratch/kocevski/247263/ft2_4FGL_J0809.5+5341_daily_bin1511.fits outfile=/scratch/kocevski/247263/cmap_630979201_631238401_4FGL_J0809.5+5341_daily_bin1511.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.379 yref=53.6876 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.58
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/247263/ft1_filtered_4FGL_J0809.5+5341_daily_bin1511.fits scfile=/scratch/kocevski/247263/ft2_4FGL_J0809.5+5341_daily_bin1511.fits outfile=/scratch/kocevski/247263/cmap_HighResolution_630979201_631238401_4FGL_J0809.5+5341_daily_bin1511.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.379 yref=53.6876 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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/247263/ft1_filtered_4FGL_J0809.5+5341_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/247263/ft2_4FGL_J0809.5+5341_daily_bin1511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/247263/Model_4FGL_J0809.5+5341_daily_bin1511.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/247263/ft1_filtered_4FGL_J0809.5+5341_daily_bin1511.fits.....................!
real 35.80
user 34.44
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/247263/ft1_filtered_4FGL_J0809.5+5341_daily_bin1511.fits', '/scratch/kocevski/247263/ft2_4FGL_J0809.5+5341_daily_bin1511.fits', expMap='/scratch/kocevski/247263/expmap_630979201_631238401_4FGL_J0809.5+5341_daily_bin1511.fits', expCube='/scratch/kocevski/247263/ltcube_630979201_631238401_4FGL_J0809.5+5341_daily_bin1511.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/247263/Model_4FGL_J0809.5+5341_daily_bin1511.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.5+5341'

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  2.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        alpha:  2.165e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
328         beta:  1.129e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/247263/ft1_filtered_4FGL_J0809.5+5341_daily_bin1511.fits
Spacecraft file(s): /scratch/kocevski/247263/ft2_4FGL_J0809.5+5341_daily_bin1511.fits
Exposure map: /scratch/kocevski/247263/expmap_630979201_631238401_4FGL_J0809.5+5341_daily_bin1511.fits
Exposure cube: /scratch/kocevski/247263/ltcube_630979201_631238401_4FGL_J0809.5+5341_daily_bin1511.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/247263/Model_4FGL_J0809.5+5341_daily_bin1511.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) = 2421.10013127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9999.5       1.0000         .10000E-03   10000.    
     2 'norm      '    9999.2       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11539E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9998.8       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3137.7       1.0000         .10000E-03   10000.    
     7 'norm      '    9999.3       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34569E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19968       1.0000         .10000E-03   10000.    
    10 'norm      '    .15460E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25088E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .26222E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17619E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25106E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .76999E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12215E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15399E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3961       1.0000         .10000E-03   10000.    
    20 'norm      '    .15769E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .84955       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.3010       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .82615E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    107.77       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13539E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.1993       1.0000         .10000E-03   10000.    
    28 'norm      '    .19595E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .18050E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    36.668       1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.4510       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .52695       1.0000         .10000E-03   10000.    
    33 'Prefactor '    15.387       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.1246       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2420.984     FROM MIGRAD    STATUS=CONVERGED    266 CALLS     4902 TOTAL
                     EDM=   .39E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        372.05         .0000    ** at limit **
   2  norm         10000.0        382.46         .0000    ** at limit **
   3  Prefactor     .36314E-03    10.423         .0000    ** at limit **
   4  Prefactor    10000.0        113.87         .0000    ** at limit **
   5  Prefactor    10000.0        739.63         .0000    ** at limit **
   6  Prefactor     3138.1        13.103         .0000       -.91051E-01
   7  norm         10000.0        402.51         .0000    ** at limit **
   8  Prefactor     .10017E-03    72.116         .0000    ** at limit **
   9  Prefactor     .31911E-03    71.465         .0000    ** at limit **
  10  norm          .10000E-03    1.6014         .0000    ** at limit **
  11  Prefactor     .10001E-03    20.555         .0000    ** at limit **
  12  Prefactor     .10004E-03    53.488         .0000    ** at limit **
  13  norm          .10000E-03    3.9009         .0000    ** at limit **
  14  Prefactor     .10000E-03    13.646         .0000    ** at limit **
  15  Prefactor     .10000E-03    5.5747         .0000    ** at limit **
  16  norm          .87113E-01    13.522         .0000        .88551E-03
  17  Prefactor     .10000E-03    43.048         .0000    ** at limit **
  18  Prefactor     .10000E-03    10.130         .0000    ** at limit **
  19  norm          1.4197        9.7993         .0000       -.41845E-03
  20  norm          .10000E-03    1.7290         .0000    ** at limit **
  21  Prefactor     .84932        .85566         .0000        .30818E-04
  22  Prefactor     .10000E-03    8.4736         .0000    ** at limit **
  23  norm          1.2943        1.2739         .0000       -.22145E-03
  24  Prefactor     .11419E-03    3.7525         .0000    ** at limit **
  25  Prefactor     113.11        103.04         .0000        .11263E-02
  26  Prefactor     .10001E-03    9.5880         .0000    ** at limit **
  27  Prefactor     2.2087        7.1909         .0000       -.22933E-02
  28  norm          .10000E-03    3.4836         .0000    ** at limit **
  29  norm          .10000E-03    4.7726         .0000    ** at limit **
  30  Prefactor     36.319        21.288         .0000        .30794E-03
  31  Prefactor     6.5245        9.8646         .0000        .87744E-03
  32  Prefactor     .52618        5.6349         .0000        .12628E-03
  33  Prefactor     15.580        22.098         .0000        .13098E-02
  34  Prefactor     .10000E-03    26.715         .0000    ** at limit **
  35  Normalizat    .10000E-01    .77133         .0000    ** at limit **
  36  Prefactor     1.1235        .14961         .0000       -.36807E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.000363141
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 3138.13
  norm       = 10000
  Prefactor  = 0.000100173
  Prefactor  = 0.000319115
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.000100039
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0871134
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.41966
  norm       = 0.0001
  Prefactor  = 0.849324
  Prefactor  = 0.0001
  norm       = 1.29426
  Prefactor  = 0.000114186
  Prefactor  = 113.108
  Prefactor  = 0.000100006
  Prefactor  = 2.20868
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 36.3195
  Prefactor  = 6.52447
  Prefactor  = 0.52618
  Prefactor  = 15.5804
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.12353
 **********
 **   18 **HESSE 
 **********

 FCN=   2420.984     FROM HESSE     STATUS=OK           893 CALLS     5795 TOTAL
                     EDM=   .23E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        552.53        .11117E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        467.74        .12536E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .36314E-03    237.31        .10333E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        400.22        .96986E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        1005.7        .10022E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3138.1        2346.8        .21551E-03   -.38157    
   7  norm         10000.0        1544.0        .12211E-01    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10017E-03    72.164        .10664E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .31911E-03    314.85        .99762E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5988        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    20.572        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    53.445        .10732E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.9001        .10723E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.624        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5746        .10732E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .87113E-01    1.8923        .40591E-01   -1.5649    
  17  Prefactor     .10000E-03    43.030        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.123        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4197        9.9249        .91869E-02   -1.5470    
  20  norm          .10000E-03    1.7279        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .84932        .85486        .10005E-01   -1.5524    
  22  Prefactor     .10000E-03    8.4625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2943        1.2479        .96837E-02   -1.5480    
  24  Prefactor     .11419E-03    7.0321        .77136E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     113.11        103.68        .96850E-03   -1.3577    
  26  Prefactor     .10001E-03    9.5421        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.2087        7.2338        .69362E-02   -1.5411    
  28  norm          .10000E-03    3.4793        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    4.7286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     36.319        21.498        .16546E-02   -1.4502    
  31  Prefactor     6.5245        9.8901        .39504E-02   -1.5197    
  32  Prefactor     .52618        3.7614        .34968E-01   -1.5563    
  33  Prefactor     15.580        22.508        .25526E-02   -1.4918    
  34  Prefactor     .10000E-03    26.711        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .10000E-01    .32191        .21250       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     1.1235        .18122        .36718E-01   -.88718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00233419
Minuit parameter uncertainties:
  1  0.473893
  2  0.297094
  3  0.501784
  4  0.162599
  5  0.22719
  6  2460.51
  7  0.97666
  8  0.0070659
  9  0.528112
  10  2.05183e-06
  11  0.000756601
  12  0.0028786
  13  2.00251e-06
  14  3.48075e-05
  15  4.53204e-06
  16  0.811592
  17  0.000415122
  18  4.91337e-05
  19  7.50884
  20  8.99986e-06
  21  0.854874
  22  7.16532e-05
  23  1.24795
  24  0.019978
  25  103.846
  26  0.000464598
  27  7.23667
  28  5.26202e-06
  29  1.59621e-07
  30  21.5024
  31  9.89258
  32  2.81363
  33  22.5202
  34  1.82067e-05
  35  8.4915e-06
  36  0.18132
Done.

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

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  1.420e+00  7.509e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        alpha:  2.165e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
328         beta:  1.129e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
727    Prefactor:  1.124e+00  1.813e-01  0.000e+00  1.000e+01 ( 1.000e+00)
728        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
729        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
726   Normalization:  1.000e-02  8.492e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 122.379 53.688
Photon Flux Upper Limit: 1.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/247263/likelihoodResults_630979201_631238401_4FGL_J0809.5+5341_daily_bin1511.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) = 2420.85602346
delta logL = 0.127667250958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2420.85586357
delta logL = 0.127827142202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5276       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5039       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1192       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2420.856     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      252 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5235        7.8244        .53808E-02    .14262E-03
   2  alpha         1.5025        1.0491        .46313E-01   -.65047E-05
   3  Normalizat    .10000E-01    .30919        .21233    ** at limit **
   4  Prefactor     1.1190        .17102        .36898E-01    .76388E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.52346
  alpha      = 1.5025
  Normalizat = 0.01
  Prefactor  = 1.11905
 **********
 **   18 **HESSE 
 **********

 FCN=   2420.856     FROM HESSE     STATUS=OK            31 CALLS      283 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5235        7.9283        .19553E-03   -1.5333    
   2  alpha         1.5025        1.0660        .18525E-02   -.41043    
   3  Normalizat    .10000E-01    .90723        .12123E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1190        .12296        .18529E-03   -.88860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38327e-12
Minuit parameter uncertainties:
  1  7.93071
  2  1.10867
  3  2.60829e-06
  4  0.122995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/247263': 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) = 2420.85586071
delta logL = 0.127830006113

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  3.523e+00  7.931e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        alpha:  1.503e+00  1.109e+00  0.000e+00  5.000e+00 ( 1.000e+00)
328         beta:  1.129e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
727    Prefactor:  1.119e+00  1.230e-01  0.000e+00  1.000e+01 ( 1.000e+00)
728        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
729        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
726   Normalization:  1.000e-02  2.608e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 122.379 53.688

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/247263/cmap_HighResolution_630979201_631238401_4FGL_J0809.5+5341_daily_bin1511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-05', job_status='DONE', photon_flux_upper_limit='1.74e-07', time_completed='2021-08-29 08:54:54.932710', job_id='247263', GAL2='1.12', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630252494.93', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.28e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1511' AND source_name='4FGL J0809.5+5341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:54:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 247263: <4FGL_J0809.5+5341_daily_bin1511> in cluster <slac> Done

Job <4FGL_J0809.5+5341_daily_bin1511> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 08:40:41 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:40:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 08:40:43 2021
Terminated at Sun Aug 29 08:54:55 2021
Results reported at Sun Aug 29 08:54:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.5+5341_daily_bin1511 122.379 53.6876 630979201 631238401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.5+5341 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   672.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

