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


Performing analysis on: 4FGL_J0809.8+5218_daily_bin1510
RA = 122.462, Dec = 52.3143
tmin = 630720001, tmax = 630979201
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='265900', job_status='RUN', time_executed='2021-08-29 09:49:50.439944', time_epoch_executed='1630255790.44' WHERE source_name='4FGL J0809.8+5218' and cadence='daily' and bin_id='1510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265900

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265900/ft1_4FGL_J0809.8+5218_daily_bin1510.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265900/ft2_4FGL_J0809.8+5218_daily_bin1510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265900/ft1_4FGL_J0809.8+5218_daily_bin1510.fits outfile=/scratch/kocevski/265900/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1510.fits ra=122.462 dec=52.3143 rad=12.0 tmin=630720001.0 tmax=630979201.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 10.24
user 2.75
sys 7.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/265900/ft2_4FGL_J0809.8+5218_daily_bin1510.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265900/ft2_4FGL_J0809.8+5218_daily_bin1510.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/265900/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1510.fits evtable="EVENTS" outfile="/scratch/kocevski/265900/ft1_filtered_4FGL_J0809.8+5218_daily_bin1510.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 7.75
user 0.32
sys 7.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265900/ft1_filtered_4FGL_J0809.8+5218_daily_bin1510.fits" evtable="EVENTS" scfile=/scratch/kocevski/265900/ft2_4FGL_J0809.8+5218_daily_bin1510.fits sctable="SC_DATA" outfile=/scratch/kocevski/265900/ltcube_630720001_630979201_4FGL_J0809.8+5218_daily_bin1510.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/265900/ft2_4FGL_J0809.8+5218_daily_bin1510.fits
.....................!
real 20.27
user 11.80
sys 8.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265900/ft1_filtered_4FGL_J0809.8+5218_daily_bin1510.fits evtable="EVENTS" scfile=/scratch/kocevski/265900/ft2_4FGL_J0809.8+5218_daily_bin1510.fits sctable="SC_DATA" expcube=/scratch/kocevski/265900/ltcube_630720001_630979201_4FGL_J0809.8+5218_daily_bin1510.fits outfile=/scratch/kocevski/265900/expmap_630720001_630979201_4FGL_J0809.8+5218_daily_bin1510.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/265900/ltcube_630720001_630979201_4FGL_J0809.8+5218_daily_bin1510.fits
.....................!
real 199.16
user 184.32
sys 14.35

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

Setting source of interest to:
4FGL J0809.8+5218 @ 122.462 52.3143

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/265900/ft1_filtered_4FGL_J0809.8+5218_daily_bin1510.fits scfile=/scratch/kocevski/265900/ft2_4FGL_J0809.8+5218_daily_bin1510.fits outfile=/scratch/kocevski/265900/cmap_630720001_630979201_4FGL_J0809.8+5218_daily_bin1510.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.462 yref=52.3143 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 7.70
user 0.38
sys 7.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265900/ft1_filtered_4FGL_J0809.8+5218_daily_bin1510.fits scfile=/scratch/kocevski/265900/ft2_4FGL_J0809.8+5218_daily_bin1510.fits outfile=/scratch/kocevski/265900/cmap_HighResolution_630720001_630979201_4FGL_J0809.8+5218_daily_bin1510.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.462 yref=52.3143 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 7.51
user 0.39
sys 7.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/265900/ft1_filtered_4FGL_J0809.8+5218_daily_bin1510.fits evtable="EVENTS" scfile=/scratch/kocevski/265900/ft2_4FGL_J0809.8+5218_daily_bin1510.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265900/Model_4FGL_J0809.8+5218_daily_bin1510.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/265900/ft1_filtered_4FGL_J0809.8+5218_daily_bin1510.fits.....................!
real 28.58
user 17.79
sys 10.60

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/265900/ft1_filtered_4FGL_J0809.8+5218_daily_bin1510.fits', '/scratch/kocevski/265900/ft2_4FGL_J0809.8+5218_daily_bin1510.fits', expMap='/scratch/kocevski/265900/expmap_630720001_630979201_4FGL_J0809.8+5218_daily_bin1510.fits', expCube='/scratch/kocevski/265900/ltcube_630720001_630979201_4FGL_J0809.8+5218_daily_bin1510.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/265900/Model_4FGL_J0809.8+5218_daily_bin1510.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.8+5218'

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  2.044e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  3.259e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  1.346e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/265900/ft1_filtered_4FGL_J0809.8+5218_daily_bin1510.fits
Spacecraft file(s): /scratch/kocevski/265900/ft2_4FGL_J0809.8+5218_daily_bin1510.fits
Exposure map: /scratch/kocevski/265900/expmap_630720001_630979201_4FGL_J0809.8+5218_daily_bin1510.fits
Exposure cube: /scratch/kocevski/265900/ltcube_630720001_630979201_4FGL_J0809.8+5218_daily_bin1510.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/265900/Model_4FGL_J0809.8+5218_daily_bin1510.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) = 670.769988402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10318E-03   1.0000         .10000E-03   10000.    
     2 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    10 'norm      '    10000.       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11578E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.446       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    65.403       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    8.5809       1.0000         .10000E-03   10000.    
    29 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    7.9185       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    36 'Prefactor '    .20613       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   668.5837     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     5252 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30802E-03    82.322       -.92086E-04** at limit **
   2  norm         10000.0        .95407        .11715E-04   -.36598E-03
   3  Prefactor     .11517E-03    46.173       -.81209E-05** at limit **
   4  Prefactor    10000.0        1.7206        .16617E-04   -.51594E-03
   5  Prefactor    10000.0        .31211        .30885E-05** at limit **
   6  Prefactor     .10036E-03    49.998        .53020E-04** at limit **
   7  norm         10000.0        .45219        .61593E-05   -.16154E-03
   8  Prefactor    10000.0        .99386        .12025E-04   -.37411E-03
   9  Prefactor    10000.0        1.4350        .14983E-04   -.46625E-03
  10  norm         10000.0        65.819        .51089E-04** at limit **
  11  Prefactor     .12682E-03    76.786       -.74186E-04** at limit **
  12  Prefactor     .10641E-03    60.156       -.38955E-04** at limit **
  13  norm          .10070E-03    17.006        .32817E-04** at limit **
  14  Prefactor     .10099E-03    26.350       -.58894E-04** at limit **
  15  norm          .10000E-03    9.4416        .19469E-06** at limit **
  16  Prefactor     .11557E-03    43.266        .48919E-04** at limit **
  17  Prefactor     .13355E-03    44.329        .64985E-05** at limit **
  18  Prefactor     .10042E-03    7.7295        .50045E-05** at limit **
  19  norm          .10047E-03    11.121        .17663E-04** at limit **
  20  norm          14.447        1.0014       -.26199E-07   -.20042E-05
  21  Prefactor     .10094E-03    18.026        .35204E-04** at limit **
  22  norm          .10000E-03    2.6829       -.20026E-05** at limit **
  23  Prefactor     65.398        1.1765       -.47864E-06    .66536E-03
  24  Prefactor     .10001E-03    22.174       -.12575E-04** at limit **
  25  Prefactor     .10129E-03    14.557       -.30307E-04** at limit **
  26  Prefactor     .10008E-03    13.974        .28891E-04** at limit **
  27  Prefactor     .10000E-03    11.385       -.58179E-05** at limit **
  28  norm          8.5787        1.1309       -.11069E-06    .17997E-04
  29  norm          .10001E-03    7.4052        .13742E-04** at limit **
  30  Prefactor     .10000E-03    10.921        .77052E-05** at limit **
  31  Prefactor     .10000E-03    3.2032       -.15945E-05** at limit **
  32  Prefactor     7.9183        5.9111       -.11689E-05    .20887E-03
  33  Prefactor     .10014E-03    14.526       -.37220E-04** at limit **
  34  Prefactor     .10067E-03    11.181       -.11755E-04** at limit **
  35  Normalizat    .10000E-01    .11554        .20337E-05** at limit **
  36  Prefactor     .20608        .11174       -.56166E-05    .55688E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000308017
  norm       = 9999.99
  Prefactor  = 0.000115167
  Prefactor  = 9999.99
  Prefactor  = 10000
  Prefactor  = 0.000100358
  norm       = 10000
  Prefactor  = 9999.98
  Prefactor  = 9999.99
  norm       = 10000
  Prefactor  = 0.000126818
  Prefactor  = 0.000106408
  norm       = 0.000100702
  Prefactor  = 0.000100991
  norm       = 0.0001
  Prefactor  = 0.000115567
  Prefactor  = 0.000133546
  Prefactor  = 0.000100421
  norm       = 0.000100472
  norm       = 14.4474
  Prefactor  = 0.000100939
  norm       = 0.0001
  Prefactor  = 65.3984
  Prefactor  = 0.000100008
  Prefactor  = 0.000101285
  Prefactor  = 0.000100081
  Prefactor  = 0.000100003
  norm       = 8.57875
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.91831
  Prefactor  = 0.00010014
  Prefactor  = 0.000100667
  Normalizat = 0.01
  Prefactor  = 0.20608
 **********
 **   18 **HESSE 
 **********

 FCN=   668.5837     FROM HESSE     STATUS=OK           859 CALLS     6111 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30802E-03    475.36        .90712E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        9226.3        .90782E-02    1.5688    
   3  Prefactor     .11517E-03    90.924        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        8241.5        .90712E-02    1.5690    
   5  Prefactor    10000.0        9999.9        .10204E-01    1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10036E-03    126.15        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm         10000.0        9541.1        .99070E-02    1.5698    
   8  Prefactor    10000.0        9629.8        .91085E-02    1.5683    
   9  Prefactor    10000.0        8488.4        .90712E-02    1.5690    
  10  norm         10000.0        311.28        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .12682E-03    375.55        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10641E-03    287.16        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10070E-03    41.900        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10099E-03    55.849        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.4402        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11557E-03    164.34        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .13355E-03    220.06        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10042E-03    22.107        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10047E-03    20.119        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.447        14.543        .26345E-02   -1.4948    
  21  Prefactor     .10094E-03    41.547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.6216        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     65.398        72.339        .12406E-02   -1.4089    
  24  Prefactor     .10001E-03    25.751        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10129E-03    50.322        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10008E-03    14.270        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.356        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          8.5787        17.858        .34211E-02   -1.5122    
  29  norm          .10001E-03    20.838        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    10.912        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.2028        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     7.9183        6.1363        .35623E-02   -1.5145    
  33  Prefactor     .10014E-03    15.103        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10067E-03    47.716        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .10000E-01    .10757        .12231       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .20608        .11902        .35371E-01   -1.2827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76902e-06
Minuit parameter uncertainties:
  1  0.634007
  2  23.177
  3  0.0743846
  4  16.8728
  5  11.8029
  6  0.0134605
  7  13.0023
  8  32.4204
  9  17.9714
  10  0.0220783
  11  0.201993
  12  0.0862054
  13  0.010856
  14  0.0148908
  15  1.01654e-05
  16  0.101439
  17  0.172475
  18  0.00610507
  19  0.00616619
  20  14.5469
  21  0.0125035
  22  1.86323e-05
  23  72.4364
  24  0.000894981
  25  0.0160984
  26  0.00214857
  27  0.000357662
  28  17.8688
  29  0.000716462
  30  0.000133143
  31  1.71455e-05
  32  6.13677
  33  0.00290833
  34  0.0112907
  35  1.12914e-07
  36  0.119163
Done.

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

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  1.445e+01  1.455e+01  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  3.259e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  1.346e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  2.061e-01  1.192e-01  0.000e+00  1.000e+01 ( 1.000e+00)
722        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
723        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
720   Normalization:  1.000e-02  1.129e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.92
Ra Dec: 122.462 52.314
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 1.77e-07 +/- 1.79e-07
Energy Flux (Fixed Index): 1.89e-04 +/- 1.91e-04

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) = 667.512238513
delta logL = 1.07148504464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 667.489579617
delta logL = 1.09414394085

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   667.4896     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      211 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.239        12.600        .29825E-02   -.29945E-04
   2  alpha         .87237        .50029        .13672       -.19925E-05
   3  Normalizat    .10000E-01    .10702        .12204    ** at limit **
   4  Prefactor     .20573        .11584        .35365E-01    .91301E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2386
  alpha      = 0.872369
  Normalizat = 0.01
  Prefactor  = 0.205733
 **********
 **   18 **HESSE 
 **********

 FCN=   667.4896     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.239        14.890        .84833E-04   -1.5037    
   2  alpha         .87237        .59148        .60174E-03   -.70897    
   3  Normalizat    .10000E-01    .11520        .49737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .20573        .11006        .19593E-03   -1.2829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67744e-12
Minuit parameter uncertainties:
  1  14.8951
  2  0.601505
  3  2.37693e-07
  4  0.110166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265900': 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) = 667.489575835
delta logL = 1.09414772297

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  1.124e+01  1.490e+01  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  8.724e-01  6.015e-01  0.000e+00  5.000e+00 ( 1.000e+00)
332         beta:  3.259e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  1.346e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  2.057e-01  1.102e-01  0.000e+00  1.000e+01 ( 1.000e+00)
722        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
723        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
720   Normalization:  1.000e-02  2.377e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.10
Ra Dec: 122.462 52.314
Photon Index (Free Index): 0.87 +/- 0.60
Photon Flux (Free Index): 1.02e-07 +/- 1.04e-07
Energy Flux (Free Index): 1.57e-03 +/- 2.34e-03

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/265900/cmap_HighResolution_630720001_630979201_4FGL_J0809.8+5218_daily_bin1510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.77e-07', energy_flux2='1.57e-03', photon_flux_error='1.79e-07', dlogl='1.09e+00', energy_flux='1.89e-04', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-08-29 09:58:29.600433', photon_index_error2='0.60', photon_index2='0.87', ts='7.92', fit_tolerance='1e-08', GAL='0.21', photon_index_error='0.00', energy_flux_error2='2.34e-03', EG='0.01', time_epoch_completed='1630256309.6', return_code='0', job_id='265900', GAL2='0.21', EG2='0.01', return_code2='0', energy_flux_error='1.91e-04', photon_flux_error2='1.04e-07', ts2='10.10', photon_index='1.81' WHERE bin_id='1510' AND source_name='4FGL J0809.8+5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:58:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 265900: <4FGL_J0809.8+5218_daily_bin1510> in cluster <slac> Done

Job <4FGL_J0809.8+5218_daily_bin1510> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 09:45:46 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:45:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 09:45:48 2021
Terminated at Sun Aug 29 09:58:31 2021
Results reported at Sun Aug 29 09:58:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+5218_daily_bin1510 122.462 52.3143 630720001 630979201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+5218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   631.48 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             225.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            765 sec.

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

