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


Performing analysis on: 4FGL_J0809.5+5341_daily_bin1460
RA = 122.379, Dec = 53.6876
tmin = 617760001, tmax = 618019201
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='247185', job_status='RUN', time_executed='2021-08-29 08:43:12.077626', time_epoch_executed='1630251792.08' WHERE source_name='4FGL J0809.5+5341' and cadence='daily' and bin_id='1460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/247185

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/247185/ft1_4FGL_J0809.5+5341_daily_bin1460.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/247185/ft2_4FGL_J0809.5+5341_daily_bin1460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/247185/ft1_4FGL_J0809.5+5341_daily_bin1460.fits outfile=/scratch/kocevski/247185/ft1_filteredMKT_4FGL_J0809.5+5341_daily_bin1460.fits ra=122.379 dec=53.6876 rad=12.0 tmin=617760001.0 tmax=618019201.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 12.75
user 2.54
sys 10.13

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/247185/ft2_4FGL_J0809.5+5341_daily_bin1460.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/247185/ft1_filteredMKT_4FGL_J0809.5+5341_daily_bin1460.fits evtable="EVENTS" outfile="/scratch/kocevski/247185/ft1_filtered_4FGL_J0809.5+5341_daily_bin1460.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 9.35
user 0.35
sys 8.96

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/247185/ft1_filtered_4FGL_J0809.5+5341_daily_bin1460.fits" evtable="EVENTS" scfile=/scratch/kocevski/247185/ft2_4FGL_J0809.5+5341_daily_bin1460.fits sctable="SC_DATA" outfile=/scratch/kocevski/247185/ltcube_617760001_618019201_4FGL_J0809.5+5341_daily_bin1460.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/247185/ft2_4FGL_J0809.5+5341_daily_bin1460.fits
.....................!
real 23.28
user 12.95
sys 10.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/247185/ft1_filtered_4FGL_J0809.5+5341_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/247185/ft2_4FGL_J0809.5+5341_daily_bin1460.fits sctable="SC_DATA" expcube=/scratch/kocevski/247185/ltcube_617760001_618019201_4FGL_J0809.5+5341_daily_bin1460.fits outfile=/scratch/kocevski/247185/expmap_617760001_618019201_4FGL_J0809.5+5341_daily_bin1460.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/247185/ltcube_617760001_618019201_4FGL_J0809.5+5341_daily_bin1460.fits
.....................!
real 201.72
user 184.95
sys 16.20

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/247185/ft1_filtered_4FGL_J0809.5+5341_daily_bin1460.fits scfile=/scratch/kocevski/247185/ft2_4FGL_J0809.5+5341_daily_bin1460.fits outfile=/scratch/kocevski/247185/cmap_617760001_618019201_4FGL_J0809.5+5341_daily_bin1460.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 9.25
user 0.38
sys 8.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/247185/ft1_filtered_4FGL_J0809.5+5341_daily_bin1460.fits scfile=/scratch/kocevski/247185/ft2_4FGL_J0809.5+5341_daily_bin1460.fits outfile=/scratch/kocevski/247185/cmap_HighResolution_617760001_618019201_4FGL_J0809.5+5341_daily_bin1460.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 9.19
user 0.40
sys 8.62

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1388.38104894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2344       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11519E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.816       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2496       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.953       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6024       1.0000         .10000E-03   10000.    
    17 'Prefactor '    145.18       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.335       1.0000         .10000E-03   10000.    
    19 'norm      '    11.935       1.0000         .10000E-03   10000.    
    20 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.574       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.347       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.3736       1.0000         .10000E-03   10000.    
    30 'Prefactor '    81.883       1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.2150       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    37.877       1.0000         .10000E-03   10000.    
    34 'Prefactor '    255.47       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .10294E-01   1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.3143       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.

 FCN=   1388.195     FROM MIGRAD    STATUS=CONVERGED   1003 CALLS     6306 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.150        .60678E-06** at limit **
   2  norm          .10000E-03    16.143        .60894E-06** at limit **
   3  Prefactor     .10000E-03    31.476       -.44207E-07** at limit **
   4  Prefactor     .10000E-03    16.720       -.90411E-06** at limit **
   5  Prefactor     .10000E-03    54.534       -.69504E-06** at limit **
   6  Prefactor     .10000E-03    30.895       -.19917E-06** at limit **
   7  norm          .10000E-03    32.287        .24626E-06** at limit **
   8  Prefactor     .10000E-03    42.634        .15367E-05** at limit **
   9  Prefactor     .10002E-03    133.42        .51222E-05** at limit **
  10  norm          3.2356        3.7094        .25717E-06    .96750E-04
  11  Prefactor     .10000E-03    60.838       -.15357E-05** at limit **
  12  Prefactor     .10000E-03    80.769       -.23679E-06** at limit **
  13  norm          17.815        20.755        .91692E-07    .20055E-04
  14  Prefactor     8.2574        1459.4       -.14264E-06    .38203E-04
  15  Prefactor     18.955        56.297        .24325E-05    .28860E-04
  16  norm          2.6023        5.6844        .52641E-06    .93423E-04
  17  Prefactor     145.24        1286.2        .65361E-05    .47050E-04
  18  Prefactor     10.386        91.253        .84165E-05    .13834E-03
  19  norm          11.934        12.549        .17372E-06    .24662E-04
  20  norm          .10000E-03    4.0360       -.49441E-07** at limit **
  21  Prefactor     .10000E-03    .85821       -.64631E-07** at limit **
  22  Prefactor     11.577        15.763       -.51781E-07    .17670E-04
  23  norm          .10000E-03    2.3093        .24882E-07** at limit **
  24  Prefactor     13.346        12.483        .16179E-06    .67635E-04
  25  Prefactor     .10001E-03    196.61       -.40116E-05** at limit **
  26  Prefactor     .10000E-03    27.264       -.80466E-06** at limit **
  27  Prefactor     .10000E-03    31.511       -.22492E-06** at limit **
  28  norm          .10000E-03    9.1453        .38748E-07** at limit **
  29  norm          2.3602        16.438        .92242E-05   -.38058E-03
  30  Prefactor     81.893        47.864        .71980E-06    .17294E-03
  31  Prefactor     3.2165        9.4340        .94488E-06    .40004E-04
  32  Prefactor     .10000E-03    4.3049        .11531E-06** at limit **
  33  Prefactor     37.914        87.010        .32392E-05    .19638E-03
  34  Prefactor     255.51        223.00        .22506E-05    .15726E-03
  35  Normalizat    .10000E-01    .56311       -.24153E-04** at limit **
  36  Prefactor     1.3142        .23637       -.73301E-06    .30491E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.00010002
  norm       = 3.23565
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 17.8146
  Prefactor  = 8.25736
  Prefactor  = 18.955
  norm       = 2.60227
  Prefactor  = 145.242
  Prefactor  = 10.3859
  norm       = 11.9342
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5768
  norm       = 0.0001
  Prefactor  = 13.3464
  Prefactor  = 0.000100013
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.36022
  Prefactor  = 81.8931
  Prefactor  = 3.21652
  Prefactor  = 0.0001
  Prefactor  = 37.9135
  Prefactor  = 255.508
  Normalizat = 0.01
  Prefactor  = 1.31425
 **********
 **   18 **HESSE 
 **********

 FCN=   1388.195     FROM HESSE     STATUS=OK           803 CALLS     7109 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.175        .16351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    16.168        .14637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.776        .14910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    54.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    32.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    42.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    135.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2356        3.7232        .72763E-04   -1.5348    
  11  Prefactor     .10000E-03    61.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    80.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.815        20.739        .94890E-04   -1.4864    
  14  Prefactor     8.2574        1194.3        .13958E-03   -1.5133    
  15  Prefactor     18.955        56.540        .91999E-04   -1.4837    
  16  norm          2.6023        5.7290        .10882E-03   -1.5385    
  17  Prefactor     145.24        1057.4        .16721E-03   -1.3292    
  18  Prefactor     10.386        93.962        .12463E-03   -1.5063    
  19  norm          11.934        12.542        .57978E-03   -1.5017    
  20  norm          .10000E-03    4.0449        .73052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .86290        .33658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.577        15.763        .11775E-03   -1.5027    
  23  norm          .10000E-03    2.3091        .55289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.346        12.534        .10964E-03   -1.4977    
  25  Prefactor     .10001E-03    197.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    27.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    31.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    9.1546        .11005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.3602        19.372        .13297E-02   -1.5401    
  30  Prefactor     81.893        48.832        .44387E-04   -1.3896    
  31  Prefactor     3.2165        9.4494        .18404E-03   -1.5349    
  32  Prefactor     .10000E-03    4.3117        .75469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     37.914        90.732        .65123E-04   -1.4476    
  34  Prefactor     255.51        224.63        .12676E-03   -1.2497    
  35  Normalizat    .10000E-01    6.2102        .15777       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     1.3142        .32818        .18729E-03   -.82884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39955e-09
Minuit parameter uncertainties:
  1  0.000150165
  2  0.000134748
  3  1.62865e-05
  4  0.000204308
  5  0.000283039
  6  5.23795e-05
  7  8.05381e-05
  8  0.000557754
  9  0.00328218
  10  3.72344
  11  0.000659078
  12  0.000127491
  13  20.7469
  14  202.889
  15  56.7002
  16  5.73018
  17  804.72
  18  62.6089
  19  12.5447
  20  3.06064e-06
  21  2.42099e-06
  22  15.7685
  23  2.33958e-06
  24  12.5364
  25  0.00321107
  26  0.00024204
  27  0.000115208
  28  2.71483e-05
  29  13.5295
  30  48.8555
  31  9.45383
  32  1.58212e-05
  33  91.0648
  34  225.398
  35  0.000264254
  36  0.328699
Done.

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

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  1.193e+01  1.254e+01  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.314e+00  3.287e-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.643e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 122.379 53.688
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 8.25e-08 +/- 8.67e-08
Energy Flux (Fixed Index): 3.63e-05 +/- 3.82e-05

TS (Fixed Index): 2.29
Ra Dec: 122.379 53.688
Photon Flux Upper Limit: 3.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/247185/likelihoodResults_617760001_618019201_4FGL_J0809.5+5341_daily_bin1460.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) = 1388.02324798
delta logL = 0.171518861001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1388.01010996
delta logL = 0.18465688232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.135       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6837       1.0000          .0000       5.0000    
     3 'Normalizat'    .10139E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3172       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=   1388.010     FROM MIGRAD    STATUS=CONVERGED    134 CALLS      305 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.144        14.549        .10654E-03    .40551E-05
   2  alpha         1.6832        .74096        .10883E-01   -.35752E-06
   3  Normalizat    .16838E-01    9.9272        .13080E-01    .63010E-05
   4  Prefactor     1.3123        .64673        .18745E-03    .96279E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 14.1442
  alpha      = 1.68316
  Normalizat = 0.0168381
  Prefactor  = 1.31229
 **********
 **   18 **HESSE 
 **********

 FCN=   1388.010     FROM HESSE     STATUS=OK            27 CALLS      332 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.144        14.550        .42614E-05   -1.4956    
   2  alpha         1.6832        .74025        .43532E-03   -.33285    
   3  Normalizat    .16838E-01    7.4833        .52320E-03   -1.5185    
   4  Prefactor     1.3123        .35166        .74981E-05   -.82942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13157e-12
Minuit parameter uncertainties:
  1  14.554
  2  0.752933
  3  0.42348
  4  0.3523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/247185': 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) = 1388.00998076
delta logL = 0.18478608555

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  1.414e+01  1.455e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        alpha:  1.683e+00  7.529e-01  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.312e+00  3.523e-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.684e-02  4.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 122.379 53.688
Photon Index (Free Index): 1.68 +/- 0.75
Photon Flux (Free Index): 6.05e-08 +/- 7.31e-08
Energy Flux (Free Index): 6.11e-05 +/- 8.57e-05

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/247185/cmap_HighResolution_617760001_618019201_4FGL_J0809.5+5341_daily_bin1460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-04', comment='SUCCESS', photon_flux='8.25e-08', energy_flux2='6.11e-05', photon_flux_error='8.67e-08', dlogl='1.85e-01', energy_flux='3.63e-05', photon_flux2='6.05e-08', job_status='DONE', time_completed='2021-08-29 08:54:51.639383', photon_index_error2='0.75', photon_index2='1.68', ts='2.29', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='3.30e-07', energy_flux_error2='8.57e-05', EG='0.01', time_epoch_completed='1630252491.64', return_code='0', job_id='247185', GAL2='1.31', EG2='0.02', return_code2='0', energy_flux_error='3.82e-05', photon_flux_error2='7.31e-08', ts2='2.65', photon_index='2.16' WHERE bin_id='1460' AND source_name='4FGL J0809.5+5341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:54:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 247185: <4FGL_J0809.5+5341_daily_bin1460> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.5+5341_daily_bin1460 122.379 53.6876 617760001 618019201 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 :                                   822.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             247.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            858 sec.

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

