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


Performing analysis on: 4FGL_J0809.8+5218_daily_bin1402
RA = 122.462, Dec = 52.3143
tmin = 602726401, tmax = 602985601
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='265744', job_status='RUN', time_executed='2021-08-29 09:48:05.049843', time_epoch_executed='1630255685.05' WHERE source_name='4FGL J0809.8+5218' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265744

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265744/ft1_4FGL_J0809.8+5218_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265744/ft2_4FGL_J0809.8+5218_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265744/ft1_4FGL_J0809.8+5218_daily_bin1402.fits outfile=/scratch/kocevski/265744/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1402.fits ra=122.462 dec=52.3143 rad=12.0 tmin=602726401.0 tmax=602985601.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.09
user 2.87
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265744/ft1_filtered_4FGL_J0809.8+5218_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/265744/ft2_4FGL_J0809.8+5218_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/265744/ltcube_602726401_602985601_4FGL_J0809.8+5218_daily_bin1402.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/265744/ft2_4FGL_J0809.8+5218_daily_bin1402.fits
.....................!
real 12.26
user 11.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265744/ft1_filtered_4FGL_J0809.8+5218_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/265744/ft2_4FGL_J0809.8+5218_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/265744/ltcube_602726401_602985601_4FGL_J0809.8+5218_daily_bin1402.fits outfile=/scratch/kocevski/265744/expmap_602726401_602985601_4FGL_J0809.8+5218_daily_bin1402.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/265744/ltcube_602726401_602985601_4FGL_J0809.8+5218_daily_bin1402.fits
.....................!
real 190.01
user 185.36
sys 4.29

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/265744/ft1_filtered_4FGL_J0809.8+5218_daily_bin1402.fits scfile=/scratch/kocevski/265744/ft2_4FGL_J0809.8+5218_daily_bin1402.fits outfile=/scratch/kocevski/265744/cmap_602726401_602985601_4FGL_J0809.8+5218_daily_bin1402.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265744/ft1_filtered_4FGL_J0809.8+5218_daily_bin1402.fits scfile=/scratch/kocevski/265744/ft2_4FGL_J0809.8+5218_daily_bin1402.fits outfile=/scratch/kocevski/265744/cmap_HighResolution_602726401_602985601_4FGL_J0809.8+5218_daily_bin1402.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3854       1.0000         .10000E-03   10000.    
     2 'norm      '    6.2979       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7414       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.729       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.946       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.489       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5141       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.3209       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    66.941       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.036       1.0000         .10000E-03   10000.    
    19 'norm      '    4.8760       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.5990       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.383       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .66398E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.4080       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.4998       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    38.043       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10766E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.0348       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .76646       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=   2394.172     FROM MIGRAD    STATUS=CONVERGED    994 CALLS     7216 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3856        6.1707       -.26500E-05   -.27387E-04
   2  norm          6.2978        7.1159       -.96050E-06   -.71091E-04
   3  Prefactor     .10000E-03    13.880       -.46828E-06** at limit **
   4  Prefactor     .10000E-03    4.7078        .56930E-07** at limit **
   5  Prefactor     .10000E-03    14.695        .26800E-05** at limit **
   6  Prefactor     7.7386        28.571       -.19805E-06   -.16241E-04
   7  norm          .10000E-03    9.2078       -.27423E-06** at limit **
   8  Prefactor     26.729        39.821       -.29260E-06   -.96416E-05
   9  Prefactor     44.943        60.103       -.30509E-05   -.17959E-05
  10  norm          .10000E-03    .34242       -.43297E-08** at limit **
  11  Prefactor     12.489        23.723        .76397E-06   -.44939E-05
  12  Prefactor     1.5096        211.65       -.63790E-05   -.31756E-04
  13  norm          .10000E-03    3.0729        .67051E-08** at limit **
  14  Prefactor     .10000E-03    10.612        .22067E-05** at limit **
  15  norm          7.3209        6.1890        .86129E-06   -.23144E-03
  16  Prefactor     .10000E-03    67.959        .75744E-05** at limit **
  17  Prefactor     66.936        73.486       -.44386E-05   -.95143E-04
  18  Prefactor     17.037        29.083       -.27094E-06   -.51256E-05
  19  norm          4.8759        6.3006        .11398E-05   -.78596E-04
  20  norm          .10000E-03    2.0713       -.58972E-07** at limit **
  21  Prefactor     .10000E-03    42.097        .20628E-04** at limit **
  22  norm          2.5976        2.6040        .12849E-06    .45068E-03
  23  Prefactor     .10000E-03    181.78        .10266E-03** at limit **
  24  Prefactor     10.382        15.511       -.20247E-06   -.15556E-03
  25  Prefactor     .10000E-03    1062.1       -.26569E-03** at limit **
  26  Prefactor     .10000E-03    54.594       -.19998E-04** at limit **
  27  Prefactor     .10000E-03    13.784       -.15930E-05** at limit **
  28  norm          .10000E-03    10.990       -.19839E-05** at limit **
  29  norm          1.3812        316.01        .10115E-04   -.49083E-04
  30  Prefactor     .10000E-03    49.965       -.12954E-04** at limit **
  31  Prefactor     4.4978        23.752        .38920E-08   -.38765E-04
  32  Prefactor     .10000E-03    23.878       -.23486E-05** at limit **
  33  Prefactor     38.036        472.49       -.71972E-05   -.11900E-04
  34  Prefactor     .10000E-03    264.44       -.14450E-03** at limit **
  35  Normalizat    1.0348        .38174        .71178E-06   -.35100E-04
  36  Prefactor     .76646        .22027        .87393E-06   -.61472E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.38562
  norm       = 6.29777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.73864
  norm       = 0.0001
  Prefactor  = 26.7293
  Prefactor  = 44.9435
  norm       = 0.0001
  Prefactor  = 12.4886
  Prefactor  = 1.50961
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.32091
  Prefactor  = 0.0001
  Prefactor  = 66.9357
  Prefactor  = 17.0368
  norm       = 4.87595
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.59762
  Prefactor  = 0.0001
  Prefactor  = 10.3822
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.38116
  Prefactor  = 0.0001
  Prefactor  = 4.49781
  Prefactor  = 0.0001
  Prefactor  = 38.0359
  Prefactor  = 0.0001
  Normalizat = 1.03479
  Prefactor  = 0.766464
 **********
 **   18 **HESSE 
 **********

 FCN=   2394.172     FROM HESSE     STATUS=OK           805 CALLS     8021 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3856        6.1661        .12453E-03   -1.5244    
   2  norm          6.2978        7.1103        .13084E-03   -1.5206    
   3  Prefactor     .10000E-03    13.923        .17803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7283        .10364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.7386        28.525        .14412E-03   -1.5152    
   7  norm          .10000E-03    9.2748        .14499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.729        39.839        .77487E-04   -1.4673    
   9  Prefactor     44.943        60.297        .59802E-04   -1.4366    
  10  norm          .10000E-03    .34570        .27942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.489        23.683        .11335E-03   -1.5001    
  12  Prefactor     1.5096        214.37        .34747E-03   -1.5462    
  13  norm          .10000E-03    3.0893        .83685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.616        .15567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.3209        6.2224        .93697E-04   -1.5167    
  16  Prefactor     .10000E-03    67.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     66.936        73.492        .49055E-04   -1.4070    
  18  Prefactor     17.037        29.044        .97035E-04   -1.4882    
  19  norm          4.8759        6.2834        .13303E-03   -1.5266    
  20  norm          .10000E-03    2.0901        .68709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    42.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5976        2.6002        .73046E-04   -1.5386    
  23  Prefactor     .10000E-03    181.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.382        15.583        .12434E-03   -1.5063    
  25  Prefactor     .10000E-03    1064.7        .21009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    54.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.779        .17731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    10.990        .15844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.3812        199.77        .36524E-03   -1.5473    
  30  Prefactor     .10000E-03    50.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     4.4978        23.725        .18980E-03   -1.5284    
  32  Prefactor     .10000E-03    23.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     38.036        296.31        .64981E-04   -1.4474    
  34  Prefactor     .10000E-03    264.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.0348        .45441        .30135E-03   -.91874    
  36  Prefactor     .76646        .26023        .21768E-03   -1.0098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33098e-10
Minuit parameter uncertainties:
  1  6.16685
  2  7.1113
  3  6.19191e-06
  4  1.60777e-05
  5  4.89793e-05
  6  28.5753
  7  3.90319e-06
  8  39.8783
  9  60.3787
  10  1.32376e-07
  11  23.7006
  12  36.1101
  13  1.62604e-06
  14  6.6966e-06
  15  6.22294
  16  1.53008e-05
  17  73.5921
  18  29.068
  19  6.28421
  20  9.13332e-06
  21  0.000112672
  22  2.60028
  23  0.000146267
  24  15.5886
  25  0.00220714
  26  6.82666e-05
  27  4.11887e-05
  28  8.92481e-06
  29  33.3344
  30  3.639e-05
  31  20.6728
  32  2.15037e-06
  33  213.804
  34  4.1505e-05
  35  0.456131
  36  0.260647
Done.

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

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  1.000e-04  9.133e-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:  7.665e-01  2.606e-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.035e+00  4.561e-01  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.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/265744/likelihoodResults_602726401_602985601_4FGL_J0809.8+5218_daily_bin1402.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) = 2394.17458638
delta logL = -0.00221499516238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2394.17237144
delta logL = -5.88297552895e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8183       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76641       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=   2394.172     FROM MIGRAD    STATUS=FAILED        89 CALLS      233 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    295.89        .68831E-03** at limit **
   2  alpha         1.9707        3.1668        .50000        .17747E-06
   3  Normalizat    1.0348        .12618        .30135E-03   -.11635E-03
   4  Prefactor     .76646        .80075E-01    .21768E-03   -.15881E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2394.172     FROM SIMPLEX   STATUS=UNCHANGED    188 CALLS      421 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    295.89        .21907E-03** at limit **
   2  alpha         1.9707        3.1668        .40223E-06    .17747E-06
   3  Normalizat    1.0348        .12618        .30839E-07   -.11635E-03
   4  Prefactor     .76646        .80075E-01    .91469E-08   -.15881E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2394.172     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      453 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9096        .13766E-03** at limit **
   2  alpha         1.9702        3.3694        .50000       -.48306E-07
   3  Normalizat    1.0348        .40044        .60270E-04   -.11631E-03
   4  Prefactor     .76646        .25446        .43535E-04   -.15862E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.97022
  Normalizat = 1.03479
  Prefactor  = 0.766464
 **********
 **   18 **HESSE 
 **********

 FCN=   2394.172     FROM HESSE     STATUS=OK            29 CALLS      482 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1620        .27533E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9702        2.5277        .50000       -.21353    
   3  Normalizat    1.0348        .40053        .12054E-04   -.91874    
   4  Prefactor     .76646        .25451        .87070E-05   -1.0098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83235e-11
Minuit parameter uncertainties:
  1  1.18027e-05
  2  122.865
  3  0.401701
  4  0.2549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265744': 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) = 2394.17237084
delta logL = 5.4963538787e-07

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  1.000e-04  1.180e-05  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  1.970e+00  1.229e+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:  7.665e-01  2.549e-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.035e+00  4.017e-01  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/265744/cmap_HighResolution_602726401_602985601_4FGL_J0809.8+5218_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-04', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-08-29 10:00:33.615319', job_id='265744', GAL2='0.77', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630256433.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='5.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1402' AND source_name='4FGL J0809.8+5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 10:00:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 265744: <4FGL_J0809.8+5218_daily_bin1402> in cluster <slac> Done

Job <4FGL_J0809.8+5218_daily_bin1402> 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) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:45:34 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:34 2021
Terminated at Sun Aug 29 10:00:34 2021
Results reported at Sun Aug 29 10:00:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+5218_daily_bin1402 122.462 52.3143 602726401 602985601 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 :                                   747.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

