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


Performing analysis on: 4FGL_J0809.8+5218_daily_bin1405
RA = 122.462, Dec = 52.3143
tmin = 603504001, tmax = 603763201
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='265748', job_status='RUN', time_executed='2021-08-29 09:48:27.191786', time_epoch_executed='1630255707.19' WHERE source_name='4FGL J0809.8+5218' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265748/ft1_4FGL_J0809.8+5218_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265748/ft2_4FGL_J0809.8+5218_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265748/ft1_4FGL_J0809.8+5218_daily_bin1405.fits outfile=/scratch/kocevski/265748/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1405.fits ra=122.462 dec=52.3143 rad=12.0 tmin=603504001.0 tmax=603763201.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 3.20
user 2.51
sys 0.65

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265748/ft1_filtered_4FGL_J0809.8+5218_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/265748/ft2_4FGL_J0809.8+5218_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/265748/ltcube_603504001_603763201_4FGL_J0809.8+5218_daily_bin1405.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/265748/ft2_4FGL_J0809.8+5218_daily_bin1405.fits
.....................!
real 16.26
user 15.34
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265748/ft1_filtered_4FGL_J0809.8+5218_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/265748/ft2_4FGL_J0809.8+5218_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/265748/ltcube_603504001_603763201_4FGL_J0809.8+5218_daily_bin1405.fits outfile=/scratch/kocevski/265748/expmap_603504001_603763201_4FGL_J0809.8+5218_daily_bin1405.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/265748/ltcube_603504001_603763201_4FGL_J0809.8+5218_daily_bin1405.fits
.....................!
real 190.97
user 185.23
sys 5.25

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/265748/ft1_filtered_4FGL_J0809.8+5218_daily_bin1405.fits scfile=/scratch/kocevski/265748/ft2_4FGL_J0809.8+5218_daily_bin1405.fits outfile=/scratch/kocevski/265748/cmap_603504001_603763201_4FGL_J0809.8+5218_daily_bin1405.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 0.97
user 0.38
sys 0.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265748/ft1_filtered_4FGL_J0809.8+5218_daily_bin1405.fits scfile=/scratch/kocevski/265748/ft2_4FGL_J0809.8+5218_daily_bin1405.fits outfile=/scratch/kocevski/265748/cmap_HighResolution_603504001_603763201_4FGL_J0809.8+5218_daily_bin1405.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 0.98
user 0.37
sys 0.59

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12344E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.3177       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.247       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.329       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .86353E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    230.42       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.927       1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.883       1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.128       1.0000         .10000E-03   10000.    
    19 'norm      '    .12201E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10383E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9883.4       1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16189E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.091       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9731.5       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9672.4       1.0000         .10000E-03   10000.    
    28 'norm      '    1260.2       1.0000         .10000E-03   10000.    
    29 'norm      '    3777.9       1.0000         .10000E-03   10000.    
    30 'Prefactor '    9677.5       1.0000         .10000E-03   10000.    
    31 'Prefactor '    18.868       1.0000         .10000E-03   10000.    
    32 'Prefactor '    9713.5       1.0000         .10000E-03   10000.    
    33 'Prefactor '    5981.4       1.0000         .10000E-03   10000.    
    34 'Prefactor '    25.398       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    36 'Prefactor '    .41260       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=   619.8701     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     4361 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.7792       -.12612E-06** at limit **
   2  norm          3.3016        6.2281       -.25963E-06   -.59656E-04
   3  Prefactor     .10000E-03    8.8239       -.10294E-06** at limit **
   4  Prefactor     .10000E-03    8.5619       -.39944E-07** at limit **
   5  Prefactor     21.987        40.052        .32422E-06   -.56606E-05
   6  Prefactor     .10000E-03    14.779       -.26664E-07** at limit **
   7  norm          15.981        14.426        .18374E-06    .21530E-04
   8  Prefactor     .10000E-03    22.545        .27796E-06** at limit **
   9  Prefactor     .10000E-03    62.647        .94894E-06** at limit **
  10  norm          .10000E-03    1.3004       -.10687E-07** at limit **
  11  Prefactor     .10000E-03    33.524        .43433E-07** at limit **
  12  Prefactor     .10000E-03    94.228        .14862E-05** at limit **
  13  norm          .10000E-03    7.9492       -.69802E-07** at limit **
  14  Prefactor     .10000E-03    113.97        .21919E-05** at limit **
  15  norm          187.81        176.99       -.26190E-05   -.12983E-04
  16  Prefactor     .10005E-03    562.00        .12746E-04** at limit **
  17  Prefactor     .10001E-03    1639.8        .12732E-04** at limit **
  18  Prefactor     66.563        127.90        .37831E-05    .21290E-04
  19  norm          .10000E-03    63.251        .68378E-06** at limit **
  20  norm          .10000E-03    31.567        .40895E-07** at limit **
  21  Prefactor    10000.0        2249.7       -.27306E-05** at limit **
  22  norm          .10000E-03    11.747        .20643E-06** at limit **
  23  Prefactor     .10000E-03    537.14        .12391E-05** at limit **
  24  Prefactor    10000.0        436.76       -.49532E-06** at limit **
  25  Prefactor     .16676E-01    9944.3        .12294E-03   -.30227E-03
  26  Prefactor     9997.6        1954.6        .73373E-05    .17894E-01
  27  Prefactor     9999.8        1877.0        .12425E-04   -.62137E-02
  28  norm          9997.5        6450.2       -.60699E-05    .13312E-01
  29  norm          9991.5        1844.7       -.25543E-05    .31597E-01
  30  Prefactor     9991.9        6439.4        .35118E-04   -.27177E-01
  31  Prefactor     18.832        21.021       -.71130E-07   -.67462E-05
  32  Prefactor     9998.6        6220.4        .33328E-04    .94017E-02
  33  Prefactor     8192.0        905.98       -.17686E-05   -.10302    
  34  Prefactor     8426.0        8440.0       -.33222E-04   -.18083E-01
  35  Normalizat    .10000E-01    .75160E-01    .52775E-06** at limit **
  36  Prefactor     .40508        .14192        .18356E-06    .85138E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.30157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.987
  Prefactor  = 0.0001
  norm       = 15.981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 187.813
  Prefactor  = 0.000100048
  Prefactor  = 0.00010001
  Prefactor  = 66.5625
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0166758
  Prefactor  = 9997.64
  Prefactor  = 9999.8
  norm       = 9997.48
  norm       = 9991.54
  Prefactor  = 9991.89
  Prefactor  = 18.8319
  Prefactor  = 9998.57
  Prefactor  = 8191.98
  Prefactor  = 8425.97
  Normalizat = 0.01
  Prefactor  = 0.405081
 **********
 **   18 **HESSE 
 **********

 FCN=   619.8701     FROM HESSE     STATUS=OK           863 CALLS     5224 TOTAL
                     EDM=   .14E+00    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.4952        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3016        6.2303        .55561E-02   -1.5345    
   3  Prefactor     .10000E-03    8.7721        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0105        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.987        39.719        .19931E-02   -1.4770    
   6  Prefactor     .10000E-03    14.318        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.981        14.437        .24779E-02   -1.4908    
   8  Prefactor     .10000E-03    22.259        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    60.051        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.2915        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    88.947        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.8785        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    112.83        .10428E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          187.81        177.35        .66650E-03   -1.2958    
  16  Prefactor     .10005E-03    561.23        .23015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    1636.3        .15130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     66.563        127.59        .13757E-02   -1.4074    
  19  norm          .10000E-03    62.633        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    31.383        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        2277.7        .93139E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    11.738        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    529.20        .91037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        451.98        .91291E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .16676E-01    9939.6        .31534E-02   -1.5734    
  26  Prefactor     9997.6        6782.8        .61867E-03    1.6015    
  27  Prefactor     9999.8        6623.7        .56174E-03    1.5618    
  28  norm          9997.5        7354.3        .30132E-03    1.6026    
  29  norm          9991.5        6826.0        .20626E-03    1.6290    
  30  Prefactor     9991.9        7332.1        .56606E-03    1.5138    
  31  Prefactor     18.832        20.928        .23052E-02   -1.4840    
  32  Prefactor     9998.6        7500.6        .59944E-03    1.5947    
  33  Prefactor     8192.0        7723.1        .20397E-03    .69241    
  34  Prefactor     8426.0        8166.5        .19872E-02    .75487    
  35  Normalizat    .10000E-01    .73331E-01    .94544E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .40508        .14105        .38433E-01   -1.1655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.143181
Minuit parameter uncertainties:
  1  5.57046e-06
  2  6.23153
  3  6.08568e-06
  4  4.31078e-06
  5  39.7672
  6  3.36137e-06
  7  14.44
  8  2.98043e-05
  9  0.00022826
  10  2.78265e-07
  11  4.90289e-06
  12  0.000512898
  13  4.28123e-06
  14  0.000818593
  15  177.861
  16  0.0104587
  17  0.00813664
  18  128.117
  19  0.000122949
  20  5.67873e-06
  21  0.994704
  22  2.4355e-05
  23  0.000766214
  24  0.000214106
  25  37.5771
  26  201.549
  27  54.1841
  28  245.218
  29  394.799
  30  412.19
  31  20.936
  32  190.784
  33  12955.2
  34  27890.7
  35  1.28089e-07
  36  0.141172
Done.

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

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  1.000e-04  5.679e-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:  4.051e-01  1.412e-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.281e-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: 2.28e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/265748/likelihoodResults_603504001_603763201_4FGL_J0809.8+5218_daily_bin1405.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) = 619.87022766
delta logL = -0.00015127085544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 619.87007824
delta logL = -1.85027886346e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7839       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40507       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   619.8701     FROM MIGRAD    STATUS=FAILED        96 CALLS      264 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    1742.8        .94424E-02** at limit **
   2  alpha         1.5754        3.7727        .16597        .64390E-08
   3  Normalizat    .10000E-01    .94192E-02    .20727E-02** at limit **
   4  Prefactor     .40508        .44994E-01    .15547E-03   -.12212E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   619.8701     FROM SIMPLEX   STATUS=UNCHANGED    176 CALLS      440 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    1742.8        .50261E-03** at limit **
   2  alpha         1.5754        3.7727        .15124E-05    .64390E-08
   3  Normalizat    .10000E-01    .94192E-02    .76924E-03** at limit **
   4  Prefactor     .40508        .44994E-01    .55407E-08   -.12212E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   619.8701     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      472 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    46.477        .13916E-02** at limit **
   2  alpha         1.5867        4.0435        .66387E-01    .69655E-07
   3  Normalizat    .10000E-01    .73671E-01    .41454E-03** at limit **
   4  Prefactor     .40508        .12589        .31094E-04   -.12148E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100012
  alpha      = 1.58671
  Normalizat = 0.01
  Prefactor  = 0.405081
 **********
 **   18 **HESSE 
 **********

 FCN=   619.8701     FROM HESSE     STATUS=OK            23 CALLS      495 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    32.705        .27832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5867        3.1429        .26555E-02   -.37397    
   3  Normalizat    .10000E-01    .73671E-01    .82909E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .40508        .12589        .62188E-05   -1.1655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15092e-10
Minuit parameter uncertainties:
  1  0.00122996
  2  647.319
  3  1.13405e-08
  4  0.12598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265748': 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) = 619.870076326
delta logL = 6.36256345388e-08

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  1.000e-04  1.230e-03  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  1.587e+00  6.473e+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:  4.051e-01  1.260e-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.134e-08  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/265748/cmap_HighResolution_603504001_603763201_4FGL_J0809.8+5218_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-03', job_status='DONE', photon_flux_upper_limit='2.28e-06', time_completed='2021-08-29 09:55:42.191905', job_id='265748', GAL2='0.41', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630256142.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.41', dlogl='6.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1405' AND source_name='4FGL J0809.8+5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:55:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 265748: <4FGL_J0809.8+5218_daily_bin1405> in cluster <slac> Done

Job <4FGL_J0809.8+5218_daily_bin1405> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 09:45:33 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:45:35 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:35 2021
Terminated at Sun Aug 29 09:55:42 2021
Results reported at Sun Aug 29 09:55:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+5218_daily_bin1405 122.462 52.3143 603504001 603763201 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 :                                   441.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             259.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            609 sec.

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

