/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 6 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7626
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0809.8+5218_daily_bin1583
RA = 122.462, Dec = 52.3143
tmin = 649641601, tmax = 649900801
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='267033', job_status='RUN', time_executed='2021-08-29 09:52:59.185638', time_epoch_executed='1630255979.19' WHERE source_name='4FGL J0809.8+5218' and cadence='daily' and bin_id='1583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267033

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267033/ft1_4FGL_J0809.8+5218_daily_bin1583.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267033/ft2_4FGL_J0809.8+5218_daily_bin1583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267033/ft1_4FGL_J0809.8+5218_daily_bin1583.fits outfile=/scratch/kocevski/267033/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1583.fits ra=122.462 dec=52.3143 rad=12.0 tmin=649641601.0 tmax=649900801.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 11.61
user 2.40
sys 9.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267033/ft2_4FGL_J0809.8+5218_daily_bin1583.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/267033/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1583.fits evtable="EVENTS" outfile="/scratch/kocevski/267033/ft1_filtered_4FGL_J0809.8+5218_daily_bin1583.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 8.54
user 0.33
sys 8.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267033/ft1_filtered_4FGL_J0809.8+5218_daily_bin1583.fits" evtable="EVENTS" scfile=/scratch/kocevski/267033/ft2_4FGL_J0809.8+5218_daily_bin1583.fits sctable="SC_DATA" outfile=/scratch/kocevski/267033/ltcube_649641601_649900801_4FGL_J0809.8+5218_daily_bin1583.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/267033/ft2_4FGL_J0809.8+5218_daily_bin1583.fits
.....................!
real 23.22
user 12.70
sys 10.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267033/ft1_filtered_4FGL_J0809.8+5218_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/267033/ft2_4FGL_J0809.8+5218_daily_bin1583.fits sctable="SC_DATA" expcube=/scratch/kocevski/267033/ltcube_649641601_649900801_4FGL_J0809.8+5218_daily_bin1583.fits outfile=/scratch/kocevski/267033/expmap_649641601_649900801_4FGL_J0809.8+5218_daily_bin1583.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/267033/ltcube_649641601_649900801_4FGL_J0809.8+5218_daily_bin1583.fits
.....................!
real 202.75
user 185.46
sys 16.87

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/267033/ft1_filtered_4FGL_J0809.8+5218_daily_bin1583.fits scfile=/scratch/kocevski/267033/ft2_4FGL_J0809.8+5218_daily_bin1583.fits outfile=/scratch/kocevski/267033/cmap_649641601_649900801_4FGL_J0809.8+5218_daily_bin1583.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 9.40
user 0.38
sys 8.95

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267033/ft1_filtered_4FGL_J0809.8+5218_daily_bin1583.fits scfile=/scratch/kocevski/267033/ft2_4FGL_J0809.8+5218_daily_bin1583.fits outfile=/scratch/kocevski/267033/cmap_HighResolution_649641601_649900801_4FGL_J0809.8+5218_daily_bin1583.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 9.39
user 0.38
sys 8.98

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.993       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'norm      '    .25370       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10820E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.1934       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   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 '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    11.358       1.0000         .10000E-03   10000.    
    30 'Prefactor '    20.043       1.0000         .10000E-03   10000.    
    31 'Prefactor '    50.959       1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.7609       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.4040       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7240E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1295.464     FROM MIGRAD    STATUS=CONVERGED    236 CALLS     5553 TOTAL
                     EDM=   .28E-07  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    47.904         .0000    ** at limit **
   2  norm          .10010E-03    92.506         .0000    ** at limit **
   3  Prefactor     30.997        1.1052         .0000        .98324E-04
   4  Prefactor     .16514E-03    82.258         .0000    ** at limit **
   5  Prefactor    10000.0        153.63         .0000    ** at limit **
   6  Prefactor     .10007E-03    48.860         .0000    ** at limit **
   7  norm          .11471E-03    105.15         .0000    ** at limit **
   8  Prefactor     .10002E-03    40.116         .0000    ** at limit **
   9  Prefactor    10000.0        122.68         .0000    ** at limit **
  10  norm          .10000E-03    1.3713         .0000    ** at limit **
  11  Prefactor     .10228E-03    99.758         .0000    ** at limit **
  12  Prefactor    10000.0        123.84         .0000    ** at limit **
  13  norm          .10002E-03    20.247         .0000    ** at limit **
  14  Prefactor    10000.0        3.9893         .0000    ** at limit **
  15  norm          .26573        24.407         .0000        .24691E-04
  16  Prefactor     .15361E-03    105.13         .0000    ** at limit **
  17  Prefactor     .10124E-03    95.373         .0000    ** at limit **
  18  Prefactor    10000.0        141.26         .0000    ** at limit **
  19  norm          .10000E-03    4.5628         .0000    ** at limit **
  20  norm          7.1913        6.2100         .0000       -.12709E-02
  21  Prefactor     .10010E-03    20.413         .0000    ** at limit **
  22  norm          .10000E-03    6.4938         .0000    ** at limit **
  23  Prefactor     .12145E-03    126.03         .0000    ** at limit **
  24  Prefactor     .10000E-03    3.5506         .0000    ** at limit **
  25  Prefactor     .10146E-03    49.802         .0000    ** at limit **
  26  Prefactor     .10022E-03    17.200         .0000    ** at limit **
  27  Prefactor     .10000E-03    5.9246         .0000    ** at limit **
  28  norm          .10000E-03    12.916         .0000    ** at limit **
  29  norm          11.346        1.3932         .0000       -.71787E-03
  30  Prefactor     20.044        1.2414         .0000       -.53899E-03
  31  Prefactor     50.972        1.7177         .0000       -.38095E-04
  32  Prefactor     1.7555        8.7456         .0000       -.13607E-02
  33  Prefactor     .10026E-03    13.637         .0000    ** at limit **
  34  Prefactor     .10005E-03    62.061         .0000    ** at limit **
  35  Normalizat    .10000E-01    .19775         .0000    ** at limit **
  36  Prefactor     1.4042        .22202         .0000        .14713E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100113
  norm       = 0.000100101
  Prefactor  = 30.9973
  Prefactor  = 0.000165139
  Prefactor  = 10000
  Prefactor  = 0.000100073
  norm       = 0.000114712
  Prefactor  = 0.000100023
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.000102283
  Prefactor  = 10000
  norm       = 0.000100017
  Prefactor  = 10000
  norm       = 0.265734
  Prefactor  = 0.000153605
  Prefactor  = 0.000101236
  Prefactor  = 10000
  norm       = 0.000100001
  norm       = 7.19135
  Prefactor  = 0.000100101
  norm       = 0.0001
  Prefactor  = 0.00012145
  Prefactor  = 0.0001
  Prefactor  = 0.000101464
  Prefactor  = 0.000100224
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 11.3465
  Prefactor  = 20.0438
  Prefactor  = 50.9718
  Prefactor  = 1.75549
  Prefactor  = 0.000100264
  Prefactor  = 0.000100054
  Normalizat = 0.01
  Prefactor  = 1.4042
 **********
 **   18 **HESSE 
 **********

 FCN=   1295.464     FROM HESSE     STATUS=OK           871 CALLS     6424 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10011E-03    115.91        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10010E-03    328.13        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.997        54.129        .17993E-02   -1.4594    
   4  Prefactor     .16514E-03    508.67        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        1082.4        .90712E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10007E-03    48.886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .11471E-03    288.15        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    40.156        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        697.58        .90712E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.3655        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10228E-03    152.00        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        1669.4        .90712E-02    1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10002E-03    25.318        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        6593.1        .10561E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .26573        5.6153        .47637E-01   -1.5605    
  16  Prefactor     .15361E-03    615.54        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10124E-03    312.71        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        816.59        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.5608        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.1913        6.2070        .37389E-02   -1.5172    
  21  Prefactor     .10010E-03    21.900        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.4931        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .12145E-03    715.41        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.5495        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10146E-03    131.14        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10022E-03    22.746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.9218        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    12.899        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          11.346        14.557        .29718E-02   -1.5034    
  30  Prefactor     20.044        18.888        .22366E-02   -1.4812    
  31  Prefactor     50.972        27.785        .14045E-02   -1.4279    
  32  Prefactor     1.7555        8.8841        .78940E-02   -1.5443    
  33  Prefactor     .10026E-03    24.559        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10005E-03    113.45        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .10000E-01    .18129        .22377       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     1.4042        .25243        .46299E-01   -.80259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03686e-06
Minuit parameter uncertainties:
  1  0.0072401
  2  0.0115584
  3  54.2147
  4  0.367215
  5  0.670341
  6  0.00378328
  7  0.130853
  8  0.00190462
  9  0.277963
  10  2.83605e-05
  11  0.0373552
  12  2.55941
  13  0.00132707
  14  1.21932
  15  2.44289
  16  0.367133
  17  0.0395237
  18  0.0542045
  19  0.000139323
  20  6.20755
  21  0.002979
  22  2.09371e-05
  23  0.250808
  24  7.37372e-05
  25  0.0277708
  26  0.00451638
  27  5.87769e-05
  28  0.000242737
  29  14.5619
  30  18.8935
  31  27.7922
  32  7.89997
  33  0.00509603
  34  0.00496615
  35  4.14448e-06
  36  0.252656
Done.

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

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  7.191e+00  6.208e+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

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  1.404e+00  2.527e-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  4.144e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.63
Ra Dec: 122.462 52.314
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 8.83e-08 +/- 7.62e-08
Energy Flux (Fixed Index): 9.42e-05 +/- 8.13e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1295.33516513
delta logL = 0.128358242984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1295.32228095
delta logL = 0.141242427392

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1295.322     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      213 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2761        7.8422        .34849E-02    .26144E-03
   2  alpha         1.5158        .56267        .18210       -.54544E-05
   3  Normalizat    .10000E-01    .17935        .22436    ** at limit **
   4  Prefactor     1.4047        .22224        .46286E-01   -.79576E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.27606
  alpha      = 1.51584
  Normalizat = 0.01
  Prefactor  = 1.4047
 **********
 **   18 **HESSE 
 **********

 FCN=   1295.322     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2761        7.0553        .85839E-04   -1.5133    
   2  alpha         1.5158        .52476        .77886E-02   -.40461    
   3  Normalizat    .10000E-01    .19878        .85964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4047        .20228        .20457E-03   -.80245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34447e-11
Minuit parameter uncertainties:
  1  7.05603
  2  0.529436
  3  1.32119e-06
  4  0.202391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267033': 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) = 1295.32227993
delta logL = 0.14124345

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  1.405e+00  2.024e-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.321e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.91
Ra Dec: 122.462 52.314
Photon Index (Free Index): 1.52 +/- 0.53
Photon Flux (Free Index): 7.29e-08 +/- 6.77e-08
Energy Flux (Free Index): 1.85e-04 +/- 2.80e-04

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/267033/cmap_HighResolution_649641601_649900801_4FGL_J0809.8+5218_daily_bin1583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.83e-08', energy_flux2='1.85e-04', photon_flux_error='7.62e-08', dlogl='1.41e-01', energy_flux='9.42e-05', photon_flux2='7.29e-08', job_status='DONE', time_completed='2021-08-29 10:03:25.174912', photon_index_error2='0.53', photon_index2='1.52', ts='6.63', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='2.80e-04', EG='0.01', time_epoch_completed='1630256605.17', return_code='0', job_id='267033', GAL2='1.40', EG2='0.01', return_code2='0', energy_flux_error='8.13e-05', photon_flux_error2='6.77e-08', ts2='6.91', photon_index='1.81' WHERE bin_id='1583' AND source_name='4FGL J0809.8+5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 10:03:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 267033: <4FGL_J0809.8+5218_daily_bin1583> in cluster <slac> Done

Job <4FGL_J0809.8+5218_daily_bin1583> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 09:50:18 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:50:21 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:50:21 2021
Terminated at Sun Aug 29 10:03:27 2021
Results reported at Sun Aug 29 10:03:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+5218_daily_bin1583 122.462 52.3143 649641601 649900801 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 :                                   765.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             192.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            789 sec.

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

