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


Performing analysis on: 4FGL_J0809.5+5341_daily_bin1183
RA = 122.379, Dec = 53.6876
tmin = 545961601, tmax = 546220801
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='245606', job_status='RUN', time_executed='2021-08-29 08:38:21.798014', time_epoch_executed='1630251501.8' WHERE source_name='4FGL J0809.5+5341' and cadence='daily' and bin_id='1183'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245606

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245606/ft1_4FGL_J0809.5+5341_daily_bin1183.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245606/ft2_4FGL_J0809.5+5341_daily_bin1183.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245606/ft1_4FGL_J0809.5+5341_daily_bin1183.fits outfile=/scratch/kocevski/245606/ft1_filteredMKT_4FGL_J0809.5+5341_daily_bin1183.fits ra=122.379 dec=53.6876 rad=12.0 tmin=545961601.0 tmax=546220801.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 4.03
user 3.82
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/245606/ft1_filtered_4FGL_J0809.5+5341_daily_bin1183.fits" evtable="EVENTS" scfile=/scratch/kocevski/245606/ft2_4FGL_J0809.5+5341_daily_bin1183.fits sctable="SC_DATA" outfile=/scratch/kocevski/245606/ltcube_545961601_546220801_4FGL_J0809.5+5341_daily_bin1183.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/245606/ft2_4FGL_J0809.5+5341_daily_bin1183.fits
.....................!
real 11.91
user 11.58
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245606/ft1_filtered_4FGL_J0809.5+5341_daily_bin1183.fits evtable="EVENTS" scfile=/scratch/kocevski/245606/ft2_4FGL_J0809.5+5341_daily_bin1183.fits sctable="SC_DATA" expcube=/scratch/kocevski/245606/ltcube_545961601_546220801_4FGL_J0809.5+5341_daily_bin1183.fits outfile=/scratch/kocevski/245606/expmap_545961601_546220801_4FGL_J0809.5+5341_daily_bin1183.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/245606/ltcube_545961601_546220801_4FGL_J0809.5+5341_daily_bin1183.fits
.....................!
real 191.19
user 186.70
sys 4.13

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/245606/ft1_filtered_4FGL_J0809.5+5341_daily_bin1183.fits scfile=/scratch/kocevski/245606/ft2_4FGL_J0809.5+5341_daily_bin1183.fits outfile=/scratch/kocevski/245606/cmap_545961601_546220801_4FGL_J0809.5+5341_daily_bin1183.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/245606/ft1_filtered_4FGL_J0809.5+5341_daily_bin1183.fits scfile=/scratch/kocevski/245606/ft2_4FGL_J0809.5+5341_daily_bin1183.fits outfile=/scratch/kocevski/245606/cmap_HighResolution_545961601_546220801_4FGL_J0809.5+5341_daily_bin1183.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/245606/ft1_filtered_4FGL_J0809.5+5341_daily_bin1183.fits', '/scratch/kocevski/245606/ft2_4FGL_J0809.5+5341_daily_bin1183.fits', expMap='/scratch/kocevski/245606/expmap_545961601_546220801_4FGL_J0809.5+5341_daily_bin1183.fits', expCube='/scratch/kocevski/245606/ltcube_545961601_546220801_4FGL_J0809.5+5341_daily_bin1183.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/245606/Model_4FGL_J0809.5+5341_daily_bin1183.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/245606/ft1_filtered_4FGL_J0809.5+5341_daily_bin1183.fits
Spacecraft file(s): /scratch/kocevski/245606/ft2_4FGL_J0809.5+5341_daily_bin1183.fits
Exposure map: /scratch/kocevski/245606/expmap_545961601_546220801_4FGL_J0809.5+5341_daily_bin1183.fits
Exposure cube: /scratch/kocevski/245606/ltcube_545961601_546220801_4FGL_J0809.5+5341_daily_bin1183.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/245606/Model_4FGL_J0809.5+5341_daily_bin1183.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 176.490957661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 175.206799762

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .60242       1.0000         .10000E-03   10000.    
     2 'norm      '    .12920E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3504       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11749E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7677       1.0000         .10000E-03   10000.    
     7 'norm      '    .12700E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5212       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .39961       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0164       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22304E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11897       1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12912E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2577       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2453       1.0000         .10000E-03   10000.    
    17 'Prefactor '    399.06       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0004       1.0000         .10000E-03   10000.    
    19 'norm      '    .29211E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .23411E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4723       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4983       1.0000         .10000E-03   10000.    
    23 'norm      '    5.5005       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1668       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .26531       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .68648E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .51417       1.0000         .10000E-03   10000.    
    28 'norm      '    27.487       1.0000         .10000E-03   10000.    
    29 'norm      '    .30026       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.8697       1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.0475       1.0000         .10000E-03   10000.    
    32 'Prefactor '    14.563       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .16155       1.0000         .10000E-03   10000.    
    34 'Prefactor '    1.2497       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    36 'Prefactor '    .79365E-10   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   175.1977     FROM MIGRAD    STATUS=CONVERGED    187 CALLS      485 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28836E-02    6737.2        .11682E-01    .66277E-03
   2  norm          .10000E-03    121.58        .90712E-02** at limit **
   3  Prefactor     2.3504        1.0246         .0000         .0000    
   4  Prefactor     .10000E-03    .20571       -.46521E-05** at limit **
   5  Prefactor     .12558E-03    .20571       -.18259E-05** at limit **
   6  Prefactor     5.7677        1.0038         .0000         .0000    
   7  norm          .10000E-03    .20571        .40366E-05** at limit **
   8  Prefactor     3.5212        1.0104         .0000         .0000    
   9  Prefactor     .28479E-03    .29451       -.28209E-04** at limit **
  10  norm          1.0164        1.3026         .0000         .0000    
  11  Prefactor     .12479E-03    .25322        .17716E-04** at limit **
  12  Prefactor     .10161E-03    .23046       -.42776E-05** at limit **
  13  norm          .10000E-03    .20571        .27997E-05** at limit **
  14  Prefactor     .10480E-03    .20571       -.42893E-05** at limit **
  15  Prefactor     2.2577        1.0269         .0000         .0000    
  16  norm          1.2453        1.1194         .0000         .0000    
  17  Prefactor     398.90        .99980       -.67338E-05    .34242E-01
  18  Prefactor     3.0004        1.0146         .0000         .0000    
  19  norm          .10695E-03    .21013       -.13391E-04** at limit **
  20  norm          .10000E-03    .20571        .26909E-05** at limit **
  21  Prefactor     1.4723        1.0740         .0000         .0000    
  22  Prefactor     5.4983        1.0042         .0000         .0000    
  23  norm          5.4721        1.0016        .42407E-06   -.44195E-03
  24  Prefactor     3.1668        1.0130         .0000         .0000    
  25  Prefactor     .10091E-03    .26377       -.14724E-04** at limit **
  26  Prefactor     .87582        .87592        .35469E-03    .14393E-02
  27  Prefactor     .14170E-03    .32084       -.13475E-04** at limit **
  28  norm          29.742        1.0403        .19147E-05   -.18042E-02
  29  norm          .10000E-03    .27176       -.95818E-05** at limit **
  30  Prefactor     3.8697        1.0086         .0000         .0000    
  31  Prefactor     1.0475        1.2416         .0000         .0000    
  32  Prefactor     14.294        .99131        .13574E-04    .60679E-03
  33  Prefactor     .16725E-03    .24013        .31226E-05** at limit **
  34  Prefactor     .13289E-03    .25014       -.78110E-04** at limit **
  35  Normalizat    .10000E-01    .25505        .23390E-03** at limit **
  36  Prefactor     .14044E-12    .25504       -.50944E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00288357
  norm       = 0.000100001
  Prefactor  = 2.35041
  Prefactor  = 0.0001
  Prefactor  = 0.00012558
  Prefactor  = 5.76768
  norm       = 0.0001
  Prefactor  = 3.52117
  Prefactor  = 0.000284789
  norm       = 1.01645
  Prefactor  = 0.000124787
  Prefactor  = 0.000101615
  norm       = 0.0001
  Prefactor  = 0.000104803
  Prefactor  = 2.25769
  norm       = 1.24535
  Prefactor  = 398.899
  Prefactor  = 3.00044
  norm       = 0.000106946
  norm       = 0.0001
  Prefactor  = 1.47232
  Prefactor  = 5.49826
  norm       = 5.47213
  Prefactor  = 3.16678
  Prefactor  = 0.000100912
  Prefactor  = 0.875823
  Prefactor  = 0.000141703
  norm       = 29.7422
  norm       = 0.000100002
  Prefactor  = 3.86972
  Prefactor  = 1.04748
  Prefactor  = 14.2941
  Prefactor  = 0.000167248
  Prefactor  = 0.000132891
  Normalizat = 0.01
  Prefactor  = 1.40443e-13
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   175.1977     FROM HESSE     STATUS=FAILED        13 CALLS      498 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28836E-02    6737.2        .11682E-01   -1.5697    
   2  norm          .10000E-03    121.58        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     563.50        561.03         .0000       -1.5401    
   4  Prefactor     .10000E-03    .20571       -.46521E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .12558E-03    .20571       -.18259E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7677        1.0038         .0000       -1.5228    
   7  norm          .10000E-03    .20571        .40366E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5212        1.0104         .0000       -1.5333    
   9  Prefactor     .28479E-03    .29451       -.28209E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0164        1.3026         .0000       -1.5506    
  11  Prefactor     .12479E-03    .25322        .17716E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10161E-03    .23046       -.42776E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .20571        .27997E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10480E-03    .20571       -.42893E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2577        1.0269         .0000       -1.5407    
  16  norm          1.2453        1.1194         .0000       -1.5485    
  17  Prefactor     398.90        .99980       -.67338E-05   -1.1686    
  18  Prefactor     3.0004        1.0146         .0000       -1.5362    
  19  norm          .10695E-03    .21013       -.13391E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .20571        .26909E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4723        1.0740         .0000       -1.5465    
  22  Prefactor     5.4983        1.0042         .0000       -1.5239    
  23  norm          5.4721        1.0016        .42407E-06   -1.5240    
  24  Prefactor     3.1668        1.0130         .0000       -1.5352    
  25  Prefactor     .10091E-03    .26377       -.14724E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .87582        .87592        .35469E-03   -1.5521    
  27  Prefactor     .14170E-03    .32084       -.13475E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          29.742        1.0403        .19147E-05   -1.4617    
  29  norm          .10000E-03    .27176       -.95818E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.8697        1.0086         .0000       -1.5315    
  31  Prefactor     1.0475        1.2416         .0000       -1.5503    
  32  Prefactor     14.294        .99131        .13574E-04   -1.4952    
  33  Prefactor     .16725E-03    .24013        .31226E-05   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .13289E-03    .25014       -.78110E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .10000E-01    .25505        .23390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .14044E-12    .25504       -.50944E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.75025e-09
Minuit parameter uncertainties:
  1  6.65704
  2  0.000694267
  3  1.02464
  4  5.31576e-06
  5  0.00458786
  6  1.00381
  7  8.07975e-08
  8  1.01045
  9  0.0147544
  10  1.30263
  11  0.00501062
  12  0.00122001
  13  4.03358e-07
  14  0.00198808
  15  1.02691
  16  1.11946
  17  0.999804
  18  1.01461
  19  0.00241621
  20  1.99297e-06
  21  1.07399
  22  1.00419
  23  1.0016
  24  1.01304
  25  0.000980999
  26  0.875935
  27  0.00731571
  28  1.04027
  29  5.02001e-05
  30  1.0086
  31  1.24158
  32  0.991315
  33  0.00803706
  34  0.0057367
  35  1.96062e-06
  36  3.80183e-07
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 175.197717257

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  1.069e-04  2.416e-03  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.404e-13  3.802e-07  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  1.961e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.379 53.688
Photon Flux Upper Limit: 1.41e-05 ph cm-2 s-1
Energy Flux Upper Limit: 6.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/245606/likelihoodResults_545961601_546220801_4FGL_J0809.5+5341_daily_bin1183.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) = 175.197733714
delta logL = -1.64571333983e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 175.19771847
delta logL = -1.21347710547e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12170E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3039       1.0000          .0000       5.0000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49554E-08   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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   175.1977     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      281 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    9515.1        .14583E-01** at limit **
   2  alpha         1.6225        4.1017        .17691        .19941E-08
   3  Normalizat    .10000E-01    .79444E-01    .69092E-02** at limit **
   4  Prefactor     .22760E-13    .22968E-01    .21136E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  alpha      = 1.62252
  Normalizat = 0.01
  Prefactor  = 2.27596e-14
 **********
 **   18 **HESSE 
 **********

 FCN=   175.1977     FROM HESSE     STATUS=OK            23 CALLS      304 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    399.68        .25805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6225        3.2069        .70766E-02   -.35863    
   3  Normalizat    .10000E-01    .90024        .13818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22760E-13    .26548        .42271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3286e-11
Minuit parameter uncertainties:
  1  0.00311428
  2  2708.25
  3  1.09261e-07
  4  1.56847e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245606': 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) = 175.197717226
delta logL = 3.06089873447e-08

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  1.000e-04  3.114e-03  1.000e-04  1.000e+04 ( 1.000e-12)
327        alpha:  1.623e+00  2.708e+03  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:  2.276e-14  1.568e-07  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  1.093e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/245606/cmap_HighResolution_545961601_546220801_4FGL_J0809.5+5341_daily_bin1183.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', job_status='DONE', photon_flux_upper_limit='1.41e-05', time_completed='2021-08-29 08:44:04.818088', job_id='245606', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630251844.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='3.06e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1183' AND source_name='4FGL J0809.5+5341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:44:04 PDT 2021


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

Job <4FGL_J0809.5+5341_daily_bin1183> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 08:35:25 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:35:27 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:35:27 2021
Terminated at Sun Aug 29 08:44:05 2021
Results reported at Sun Aug 29 08:44:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.5+5341_daily_bin1183 122.379 53.6876 545961601 546220801 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 :                                   339.24 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             355.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            520 sec.

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

