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


Performing analysis on: 4FGL_J0809.8+5218_daily_bin1439
RA = 122.462, Dec = 52.3143
tmin = 612316801, tmax = 612576001
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='265796', job_status='RUN', time_executed='2021-08-29 09:45:57.287971', time_epoch_executed='1630255557.29' WHERE source_name='4FGL J0809.8+5218' and cadence='daily' and bin_id='1439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265796/ft1_4FGL_J0809.8+5218_daily_bin1439.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265796/ft2_4FGL_J0809.8+5218_daily_bin1439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265796/ft1_4FGL_J0809.8+5218_daily_bin1439.fits outfile=/scratch/kocevski/265796/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1439.fits ra=122.462 dec=52.3143 rad=12.0 tmin=612316801.0 tmax=612576001.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.64
user 3.11
sys 0.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265796/ft1_filtered_4FGL_J0809.8+5218_daily_bin1439.fits" evtable="EVENTS" scfile=/scratch/kocevski/265796/ft2_4FGL_J0809.8+5218_daily_bin1439.fits sctable="SC_DATA" outfile=/scratch/kocevski/265796/ltcube_612316801_612576001_4FGL_J0809.8+5218_daily_bin1439.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/265796/ft2_4FGL_J0809.8+5218_daily_bin1439.fits
.....................!
real 12.34
user 11.66
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265796/ft1_filtered_4FGL_J0809.8+5218_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/265796/ft2_4FGL_J0809.8+5218_daily_bin1439.fits sctable="SC_DATA" expcube=/scratch/kocevski/265796/ltcube_612316801_612576001_4FGL_J0809.8+5218_daily_bin1439.fits outfile=/scratch/kocevski/265796/expmap_612316801_612576001_4FGL_J0809.8+5218_daily_bin1439.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/265796/ltcube_612316801_612576001_4FGL_J0809.8+5218_daily_bin1439.fits
.....................!
real 191.14
user 186.26
sys 4.52

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/265796/ft1_filtered_4FGL_J0809.8+5218_daily_bin1439.fits scfile=/scratch/kocevski/265796/ft2_4FGL_J0809.8+5218_daily_bin1439.fits outfile=/scratch/kocevski/265796/cmap_612316801_612576001_4FGL_J0809.8+5218_daily_bin1439.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.85
user 0.36
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265796/ft1_filtered_4FGL_J0809.8+5218_daily_bin1439.fits scfile=/scratch/kocevski/265796/ft2_4FGL_J0809.8+5218_daily_bin1439.fits outfile=/scratch/kocevski/265796/cmap_HighResolution_612316801_612576001_4FGL_J0809.8+5218_daily_bin1439.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.85
user 0.36
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4575       1.0000         .10000E-03   10000.    
     2 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9265       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37220E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9805       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.341       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.639       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.265       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.257       1.0000         .10000E-03   10000.    
    20 'norm      '    .50742       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5151       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0445       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.532       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    4.8434       1.0000         .10000E-03   10000.    
    29 'norm      '    .10587E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    18.711       1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.9184       1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.2159       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    48.811       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .66996       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0313       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3723.163     FROM MIGRAD    STATUS=CONVERGED   1847 CALLS     6187 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4604        10.021        .21750E-03   -.10248E-03
   2  norm          .10000E-03    6.9247        .15637E-02** at limit **
   3  Prefactor     .10000E-03    14.507        .18142E-02** at limit **
   4  Prefactor     3.9305        10.086        .20359E-03   -.15756E-03
   5  Prefactor     .10013E-03    46.227        .10050    ** at limit **
   6  Prefactor     .10000E-03    97.240        .18142E-02** at limit **
   7  norm          .10000E-03    8.3267        .17155E-02** at limit **
   8  Prefactor     2.9540        164.14        .23517E-03   -.21513E-05
   9  Prefactor     21.356        30.080        .86703E-04   -.20324E-05
  10  norm          .10000E-03    .54355        .43594E-03** at limit **
  11  Prefactor     .10000E-03    6.3474        .15003E-02** at limit **
  12  Prefactor     58.659        29.647        .52391E-04    .81460E-04
  13  norm          .10000E-03    2.0986        .85710E-03** at limit **
  14  Prefactor     .10000E-03    24.311        .36285E-02** at limit **
  15  norm          .10000E-03    7.5812        .32358E-03** at limit **
  16  Prefactor     .10000E-03    18.718        .18142E-02** at limit **
  17  Prefactor     38.245        66.952        .64794E-04    .56147E-05
  18  Prefactor     .10000E-03    2.0665        .85523E-03** at limit **
  19  norm          15.261        9.2910        .10254E-03   -.84816E-04
  20  norm          .50752        5.0783        .18278E-02    .66191E-03
  21  Prefactor     7.5212        17.794        .14629E-03    .27976E-04
  22  norm          1.0447        .65003        .37597E-04   -.18234E-03
  23  Prefactor     .10000E-03    5.9100        .14483E-02** at limit **
  24  Prefactor     .10000E-03    12.142        .36285E-03** at limit **
  25  Prefactor     .10000E-03    10.414        .18142E-02** at limit **
  26  Prefactor     18.531        13.392        .93038E-04   -.82481E-04
  27  Prefactor     .10000E-03    6.1905        .14748E-02** at limit **
  28  norm          4.8430        5.4110        .14372E-03   -.33485E-03
  29  norm          .10001E-03    8.2236        .23422E-02** at limit **
  30  Prefactor     18.710        15.719        .92592E-04   -.69618E-04
  31  Prefactor     4.9189        10.519        .18136E-03   -.35637E-04
  32  Prefactor     5.2146        3.1148        .78366E-04   -.27143E-03
  33  Prefactor     .10001E-03    58.041        .18142E-02** at limit **
  34  Prefactor     48.782        88.503        .57397E-04   -.12881E-03
  35  Normalizat    .67022        .26818        .30413E-03   -.23681E-03
  36  Prefactor     1.0311        .20877        .20501E-03   -.34731E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.46043
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.93048
  Prefactor  = 0.000100131
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 2.95401
  Prefactor  = 21.3557
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.6591
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 38.2448
  Prefactor  = 0.0001
  norm       = 15.2614
  norm       = 0.507519
  Prefactor  = 7.52119
  norm       = 1.04472
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.5311
  Prefactor  = 0.0001
  norm       = 4.84298
  norm       = 0.000100013
  Prefactor  = 18.7099
  Prefactor  = 4.91886
  Prefactor  = 5.21462
  Prefactor  = 0.000100006
  Prefactor  = 48.7815
  Normalizat = 0.670222
  Prefactor  = 1.03109
 **********
 **   18 **HESSE 
 **********

 FCN=   3723.163     FROM HESSE     STATUS=OK           787 CALLS     6974 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4604        10.019        .86998E-05   -1.5336    
   2  norm          .10000E-03    6.9251        .31274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9305        10.084        .81436E-05   -1.5311    
   5  Prefactor     .10013E-03    42.213        .10673       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    97.271        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.3279        .34310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9540        164.12        .94066E-05   -1.5364    
   9  Prefactor     21.356        30.085        .34681E-05   -1.4783    
  10  norm          .10000E-03    .54357        .87188E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3477        .30006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     58.659        29.640        .10478E-04   -1.4175    
  13  norm          .10000E-03    2.0988        .17142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.488        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.5814        .64715E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.718        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.245        66.977        .25917E-05   -1.4470    
  18  Prefactor     .10000E-03    2.0665        .17105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.261        9.1940        .41016E-05   -1.4926    
  20  norm          .50752        4.9606        .73111E-04   -1.5565    
  21  Prefactor     7.5212        17.793        .58518E-05   -1.5159    
  22  norm          1.0447        .65001        .15039E-05   -1.5504    
  23  Prefactor     .10000E-03    5.9100        .28967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.142        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.414        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.531        13.392        .37215E-05   -1.4847    
  27  Prefactor     .10000E-03    6.1921        .29496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.8430        5.4107        .57487E-05   -1.5268    
  29  norm          .10001E-03    8.2610        .46843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     18.710        15.718        .37037E-05   -1.4843    
  31  Prefactor     4.9189        10.519        .72543E-05   -1.5264    
  32  Prefactor     5.2146        3.1147        .31346E-05   -1.5251    
  33  Prefactor     .10001E-03    58.070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     48.782        88.491        .11479E-04   -1.4310    
  35  Normalizat    .67022        .26833        .12165E-04   -1.0508    
  36  Prefactor     1.0311        .20879        .41001E-04   -.91700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45565e-09
Minuit parameter uncertainties:
  1  10.0239
  2  1.31945e-05
  3  4.30372e-06
  4  10.0881
  5  0.00470493
  6  0.00128559
  7  1.9468e-06
  8  44.1636
  9  30.1059
  10  1.5464e-05
  11  9.36263e-06
  12  29.6473
  13  1.80502e-06
  14  2.04707e-05
  15  0.000233325
  16  9.42681e-05
  17  67.1089
  18  2.94446e-06
  19  9.19485
  20  3.17341
  21  17.8053
  22  0.650011
  23  7.67074e-06
  24  0.000223781
  25  3.62885e-05
  26  13.394
  27  1.45381e-05
  28  5.41126
  29  0.000661528
  30  15.722
  31  10.5226
  32  3.11483
  33  0.00118747
  34  88.7309
  35  0.268854
  36  0.208957
Done.

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

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  5.075e-01  3.173e+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.031e+00  2.090e-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:  6.702e-01  2.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 122.462 52.314
Photon Flux Upper Limit: 9.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/265796/likelihoodResults_612316801_612576001_4FGL_J0809.8+5218_daily_bin1439.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): 0
logL (Free Index) = 3722.86225234
delta logL = 0.301036167091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3722.85992318
delta logL = 0.303365333966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94937       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5637       1.0000          .0000       5.0000    
     3 'Normalizat'    .65449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0278       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=   3722.860     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      237 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95145        53.686        .12986E-02    .37173E-03
   2  alpha         2.5619        3.4603        .24821        .47253E-04
   3  Normalizat    .65424        .80343E-01    .69408E-01    .33558E-04
   4  Prefactor     1.0281        .63545E-01    .41437E-01   -.49992E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.951453
  alpha      = 2.56186
  Normalizat = 0.65424
  Prefactor  = 1.02806
 **********
 **   18 **HESSE 
 **********

 FCN=   3722.860     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95145        2.0235        .51942E-04   -1.5513    
   2  alpha         2.5619        .95664        .12451E-01    .24748E-01
   3  Normalizat    .65424        .24580        .30718E-03   -1.0573    
   4  Prefactor     1.0281        .20256        .20494E-03   -.91800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84182e-11
Minuit parameter uncertainties:
  1  2.0236
  2  0.981687
  3  0.246217
  4  0.202709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265796': 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) = 3722.85991991
delta logL = 0.303368602093

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  9.515e-01  2.024e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  2.562e+00  9.817e-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.028e+00  2.027e-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:  6.542e-01  2.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/265796/cmap_HighResolution_612316801_612576001_4FGL_J0809.8+5218_daily_bin1439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-04', job_status='DONE', photon_flux_upper_limit='9.84e-08', time_completed='2021-08-29 10:01:28.916544', job_id='265796', GAL2='1.03', fit_tolerance='1e-08', EG2='0.65', EG='0.67', time_epoch_completed='1630256488.92', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.03e-01', ts2='0.64', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1439' AND source_name='4FGL J0809.8+5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 10:01:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 265796: <4FGL_J0809.8+5218_daily_bin1439> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+5218_daily_bin1439 122.462 52.3143 612316801 612576001 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 :                                   932.35 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             349.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

