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


Performing analysis on: 4FGL_J0809.8+5218_daily_bin1214
RA = 122.462, Dec = 52.3143
tmin = 553996801, tmax = 554256001
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='263181', job_status='RUN', time_executed='2021-08-29 09:39:55.752015', time_epoch_executed='1630255195.75' WHERE source_name='4FGL J0809.8+5218' and cadence='daily' and bin_id='1214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263181

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263181/ft1_4FGL_J0809.8+5218_daily_bin1214.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263181/ft2_4FGL_J0809.8+5218_daily_bin1214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263181/ft1_4FGL_J0809.8+5218_daily_bin1214.fits outfile=/scratch/kocevski/263181/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1214.fits ra=122.462 dec=52.3143 rad=12.0 tmin=553996801.0 tmax=554256001.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.32
user 2.40
sys 1.89

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263181/ft2_4FGL_J0809.8+5218_daily_bin1214.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/263181/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1214.fits evtable="EVENTS" outfile="/scratch/kocevski/263181/ft1_filtered_4FGL_J0809.8+5218_daily_bin1214.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 2.21
user 0.34
sys 1.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263181/ft1_filtered_4FGL_J0809.8+5218_daily_bin1214.fits" evtable="EVENTS" scfile=/scratch/kocevski/263181/ft2_4FGL_J0809.8+5218_daily_bin1214.fits sctable="SC_DATA" outfile=/scratch/kocevski/263181/ltcube_553996801_554256001_4FGL_J0809.8+5218_daily_bin1214.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/263181/ft2_4FGL_J0809.8+5218_daily_bin1214.fits
.....................!
real 14.06
user 11.82
sys 2.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263181/ft1_filtered_4FGL_J0809.8+5218_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/263181/ft2_4FGL_J0809.8+5218_daily_bin1214.fits sctable="SC_DATA" expcube=/scratch/kocevski/263181/ltcube_553996801_554256001_4FGL_J0809.8+5218_daily_bin1214.fits outfile=/scratch/kocevski/263181/expmap_553996801_554256001_4FGL_J0809.8+5218_daily_bin1214.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/263181/ltcube_553996801_554256001_4FGL_J0809.8+5218_daily_bin1214.fits
.....................!
real 192.67
user 185.43
sys 6.72

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/263181/ft1_filtered_4FGL_J0809.8+5218_daily_bin1214.fits scfile=/scratch/kocevski/263181/ft2_4FGL_J0809.8+5218_daily_bin1214.fits outfile=/scratch/kocevski/263181/cmap_553996801_554256001_4FGL_J0809.8+5218_daily_bin1214.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 2.21
user 0.37
sys 1.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263181/ft1_filtered_4FGL_J0809.8+5218_daily_bin1214.fits scfile=/scratch/kocevski/263181/ft2_4FGL_J0809.8+5218_daily_bin1214.fits outfile=/scratch/kocevski/263181/cmap_HighResolution_553996801_554256001_4FGL_J0809.8+5218_daily_bin1214.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 2.23
user 0.38
sys 1.82

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263181/ft1_filtered_4FGL_J0809.8+5218_daily_bin1214.fits', '/scratch/kocevski/263181/ft2_4FGL_J0809.8+5218_daily_bin1214.fits', expMap='/scratch/kocevski/263181/expmap_553996801_554256001_4FGL_J0809.8+5218_daily_bin1214.fits', expCube='/scratch/kocevski/263181/ltcube_553996801_554256001_4FGL_J0809.8+5218_daily_bin1214.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263181/Model_4FGL_J0809.8+5218_daily_bin1214.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/263181/ft1_filtered_4FGL_J0809.8+5218_daily_bin1214.fits
Spacecraft file(s): /scratch/kocevski/263181/ft2_4FGL_J0809.8+5218_daily_bin1214.fits
Exposure map: /scratch/kocevski/263181/expmap_553996801_554256001_4FGL_J0809.8+5218_daily_bin1214.fits
Exposure cube: /scratch/kocevski/263181/ltcube_553996801_554256001_4FGL_J0809.8+5218_daily_bin1214.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263181/Model_4FGL_J0809.8+5218_daily_bin1214.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) = 1250.18733997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10000.       1.0000         .10000E-03   10000.    
     2 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10000.       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .67705       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    180.29       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.5839       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.779       1.0000         .10000E-03   10000.    
    28 'norm      '    .10843E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    33.936       1.0000         .10000E-03   10000.    
    30 'Prefactor '    22.921       1.0000         .10000E-03   10000.    
    31 'Prefactor '    30.414       1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.2516       1.0000         .10000E-03   10000.    
    33 'Prefactor '    36.124       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .13821E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.1062       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1250.159     FROM MIGRAD    STATUS=CONVERGED   1010 CALLS     6252 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10000.        1204.2        .37384E-03** at limit **
   2  norm          10000.        7495.0        .21413E-02** at limit **
   3  Prefactor     .10000E-03    23.205       -.51309E-06** at limit **
   4  Prefactor     10000.        835.34        .21241E-04** at limit **
   5  Prefactor     .10000E-03    370.15        .23816E-03** at limit **
   6  Prefactor     .10000E-03    22.102        .95244E-07** at limit **
   7  norm          10000.        1742.9        .74200E-03** at limit **
   8  Prefactor     .10000E-03    31.967        .81975E-05** at limit **
   9  Prefactor     .10000E-03    96.434        .65868E-04** at limit **
  10  norm          .10000E-03    .72616       -.38182E-07** at limit **
  11  Prefactor     .10000E-03    22.153       -.55896E-05** at limit **
  12  Prefactor     .10000E-03    127.22       -.86631E-04** at limit **
  13  norm          .10000E-03    5.7468       -.15161E-06** at limit **
  14  Prefactor     .10000E-03    46.893        .46729E-04** at limit **
  15  norm          .10000E-03    1.1233       -.44698E-07** at limit **
  16  Prefactor     .10000E-03    116.23       -.26723E-04** at limit **
  17  Prefactor     .10000E-03    36.085       -.20217E-04** at limit **
  18  Prefactor     .10000E-03    56.186       -.56709E-04** at limit **
  19  norm          .10000E-03    7.2583       -.87024E-07** at limit **
  20  norm          .10000E-03    3.2026        .55935E-07** at limit **
  21  Prefactor     .65285        45.234        .27427E-05   -.18888E-03
  22  norm          .10000E-03    1.6206       -.60395E-07** at limit **
  23  Prefactor     180.33        185.88        .27923E-04    .19496E-06
  24  Prefactor     7.6101        13.646        .12373E-06   -.13188E-03
  25  Prefactor     .10000E-03    98.621        .59405E-04** at limit **
  26  Prefactor     .10000E-03    22.042        .63477E-05** at limit **
  27  Prefactor     16.785        16.280        .34977E-06    .13662E-04
  28  norm          .10000E-03    20.316       -.27407E-06** at limit **
  29  norm          33.950        22.446       -.63513E-06    .49073E-04
  30  Prefactor     22.914        33.390       -.23189E-05   -.61591E-05
  31  Prefactor     30.425        25.221        .70139E-06   -.65922E-05
  32  Prefactor     1.2528        4.8794       -.39196E-06   -.18334E-03
  33  Prefactor     36.068        59.153        .47014E-05    .31529E-04
  34  Prefactor     .10000E-03    117.95       -.36477E-04** at limit **
  35  Normalizat    .10000E-01    .95581E-01   -.19313E-06** at limit **
  36  Prefactor     1.1063        .21275       -.11996E-05    .18454E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.652851
  norm       = 0.0001
  Prefactor  = 180.333
  Prefactor  = 7.61009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7854
  norm       = 0.0001
  norm       = 33.9499
  Prefactor  = 22.9145
  Prefactor  = 30.425
  Prefactor  = 1.25276
  Prefactor  = 36.0675
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.10626
 **********
 **   18 **HESSE 
 **********

 FCN=   1250.159     FROM HESSE     STATUS=OK           797 CALLS     7049 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10000.        1204.2        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10000.        7494.9        .18238E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.208        .16643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10000.        835.34        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    370.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.103        .16242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10000.        1742.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    96.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .72688        .29430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.153        .16261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    127.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.7469        .82799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    46.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1246        .36601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    116.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    56.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.2807        .93038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.2272        .61800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .65285        159.21        .41661E-02   -1.5546    
  22  norm          .10000E-03    1.6208        .43966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     180.33        185.89        .15031E-03   -1.3014    
  24  Prefactor     7.6101        13.286        .14562E-03   -1.5156    
  25  Prefactor     .10000E-03    98.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    22.051        .16220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     16.785        16.278        .97777E-04   -1.4888    
  28  norm          .10000E-03    20.590        .15549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          33.950        22.422        .68788E-04   -1.4542    
  30  Prefactor     22.914        33.452        .83665E-04   -1.4750    
  31  Prefactor     30.425        25.311        .72651E-04   -1.4604    
  32  Prefactor     1.2528        4.8360        .14794E-03   -1.5484    
  33  Prefactor     36.068        59.023        .66679E-04   -1.4506    
  34  Prefactor     .10000E-03    117.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .10000E-01    .97147E-01    .65540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     1.1063        .21349        .19490E-03   -.89267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93138e-09
Minuit parameter uncertainties:
  1  4.70386e-06
  2  0.000122672
  3  1.36379e-06
  4  8.67568e-06
  5  3.77624e-06
  6  7.43686e-07
  7  4.38562e-05
  8  2.6102e-06
  9  4.06087e-07
  10  1.06094e-07
  11  1.31208e-07
  12  3.95154e-06
  13  8.18616e-08
  14  3.129e-06
  15  4.44489e-07
  16  6.63303e-06
  17  1.73861e-05
  18  1.53877e-05
  19  1.95561e-06
  20  1.53376e-06
  21  20.4436
  22  3.04864e-06
  23  186.501
  24  13.2909
  25  4.4817e-05
  26  1.99193e-05
  27  16.2819
  28  1.41054e-05
  29  22.4271
  30  33.479
  31  25.3199
  32  4.83751
  33  59.1185
  34  8.95462e-05
  35  1.81758e-07
  36  0.213653
Done.

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

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  1.000e-04  1.534e-06  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:  1.106e+00  2.137e-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.818e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.462 52.314
Photon Flux Upper Limit: 1.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263181/likelihoodResults_553996801_554256001_4FGL_J0809.8+5218_daily_bin1214.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) = 1250.16033647
delta logL = -0.00139643595639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1250.15894005
delta logL = -1.27729435917e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1250.159     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      244 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    496.63        .61821E-03** at limit **
   2  alpha         1.8999        3.1314        .50000        .33708E-08
   3  Normalizat    .10000E-01    .43840E-01    .65540E-02** at limit **
   4  Prefactor     1.1063        .11878        .19490E-03   -.10315E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.89995
  Normalizat = 0.01
  Prefactor  = 1.10626
 **********
 **   18 **HESSE 
 **********

 FCN=   1250.159     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0375        .12364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8999        4.0475        .50000       -.24239    
   3  Normalizat    .10000E-01    .97149E-01    .13108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1063        .17691        .38980E-04   -.89267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62684e-11
Minuit parameter uncertainties:
  1  5.50676e-06
  2  178.739
  3  2.31801e-07
  4  0.177004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263181': 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) = 1250.15893995
delta logL = 9.1735728347e-08

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  1.000e-04  5.507e-06  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  1.900e+00  1.787e+02  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:  1.106e+00  1.770e-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.318e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.462 52.314

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/263181/cmap_HighResolution_553996801_554256001_4FGL_J0809.8+5218_daily_bin1214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-04', job_status='DONE', photon_flux_upper_limit='1.68e-07', time_completed='2021-08-29 09:49:13.213530', job_id='263181', GAL2='1.11', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630255753.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='9.17e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1214' AND source_name='4FGL J0809.8+5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:49:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 263181: <4FGL_J0809.8+5218_daily_bin1214> in cluster <slac> Done

Job <4FGL_J0809.8+5218_daily_bin1214> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 09:35:29 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:35:30 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:35:30 2021
Terminated at Sun Aug 29 09:49:14 2021
Results reported at Sun Aug 29 09:49:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+5218_daily_bin1214 122.462 52.3143 553996801 554256001 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 :                                   584.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             216.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

