aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 75 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 = 17280
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.5+5341_weekly_bin154
RA = 122.379, Dec = 53.6876
tmin = 332121601, tmax = 332726401
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='468919', job_status='RUN', time_executed='2021-07-12 04:12:25.085783', time_epoch_executed='1626088345.09' WHERE source_name='4FGL J0809.5+5341' and cadence='weekly' and bin_id='154'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468919

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468919/ft1_4FGL_J0809.5+5341_weekly_bin154.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468919/ft2_4FGL_J0809.5+5341_weekly_bin154.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468919/ft1_4FGL_J0809.5+5341_weekly_bin154.fits outfile=/scratch/kocevski/468919/ft1_filteredMKT_4FGL_J0809.5+5341_weekly_bin154.fits ra=122.379 dec=53.6876 rad=12.0 tmin=332121601.0 tmax=332726401.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 7.25
user 6.86
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/468919/ft2_4FGL_J0809.5+5341_weekly_bin154.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/468919/ft2_4FGL_J0809.5+5341_weekly_bin154.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/468919/ft1_filteredMKT_4FGL_J0809.5+5341_weekly_bin154.fits evtable="EVENTS" outfile="/scratch/kocevski/468919/ft1_filtered_4FGL_J0809.5+5341_weekly_bin154.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.61
user 0.38
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468919/ft1_filtered_4FGL_J0809.5+5341_weekly_bin154.fits" evtable="EVENTS" scfile=/scratch/kocevski/468919/ft2_4FGL_J0809.5+5341_weekly_bin154.fits sctable="SC_DATA" outfile=/scratch/kocevski/468919/ltcube_332121601_332726401_4FGL_J0809.5+5341_weekly_bin154.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/468919/ft2_4FGL_J0809.5+5341_weekly_bin154.fits
.....................!
real 30.16
user 29.55
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468919/ft1_filtered_4FGL_J0809.5+5341_weekly_bin154.fits evtable="EVENTS" scfile=/scratch/kocevski/468919/ft2_4FGL_J0809.5+5341_weekly_bin154.fits sctable="SC_DATA" expcube=/scratch/kocevski/468919/ltcube_332121601_332726401_4FGL_J0809.5+5341_weekly_bin154.fits outfile=/scratch/kocevski/468919/expmap_332121601_332726401_4FGL_J0809.5+5341_weekly_bin154.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/468919/ltcube_332121601_332726401_4FGL_J0809.5+5341_weekly_bin154.fits
.....................!
real 194.49
user 186.98
sys 5.04

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 228 point sources and 0 extended sources

Setting source of interest to:
4FGL J0809.5+5341 @ 122.379 53.6876

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/468919/ft1_filtered_4FGL_J0809.5+5341_weekly_bin154.fits scfile=/scratch/kocevski/468919/ft2_4FGL_J0809.5+5341_weekly_bin154.fits outfile=/scratch/kocevski/468919/cmap_332121601_332726401_4FGL_J0809.5+5341_weekly_bin154.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.379 yref=53.6876 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.78
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468919/ft1_filtered_4FGL_J0809.5+5341_weekly_bin154.fits scfile=/scratch/kocevski/468919/ft2_4FGL_J0809.5+5341_weekly_bin154.fits outfile=/scratch/kocevski/468919/cmap_HighResolution_332121601_332726401_4FGL_J0809.5+5341_weekly_bin154.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.379 yref=53.6876 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 1.23
user 0.44
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/468919/ft1_filtered_4FGL_J0809.5+5341_weekly_bin154.fits evtable="EVENTS" scfile=/scratch/kocevski/468919/ft2_4FGL_J0809.5+5341_weekly_bin154.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/468919/Model_4FGL_J0809.5+5341_weekly_bin154.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/468919/ft1_filtered_4FGL_J0809.5+5341_weekly_bin154.fits.....................!
real 174.19
user 167.15
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/468919/ft1_filtered_4FGL_J0809.5+5341_weekly_bin154.fits', '/scratch/kocevski/468919/ft2_4FGL_J0809.5+5341_weekly_bin154.fits', expMap='/scratch/kocevski/468919/expmap_332121601_332726401_4FGL_J0809.5+5341_weekly_bin154.fits', expCube='/scratch/kocevski/468919/ltcube_332121601_332726401_4FGL_J0809.5+5341_weekly_bin154.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/468919/Model_4FGL_J0809.5+5341_weekly_bin154.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.5+5341'

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  2.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        alpha:  2.165e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
328         beta:  1.129e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/468919/ft1_filtered_4FGL_J0809.5+5341_weekly_bin154.fits
Spacecraft file(s): /scratch/kocevski/468919/ft2_4FGL_J0809.5+5341_weekly_bin154.fits
Exposure map: /scratch/kocevski/468919/expmap_332121601_332726401_4FGL_J0809.5+5341_weekly_bin154.fits
Exposure cube: /scratch/kocevski/468919/ltcube_332121601_332726401_4FGL_J0809.5+5341_weekly_bin154.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/468919/Model_4FGL_J0809.5+5341_weekly_bin154.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) = 18630.8960919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9398       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1478       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0601       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.854       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.7546       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.637       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1238       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0620       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11606E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .83872       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4780       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1361       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4611       1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.430       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.1550       1.0000         .10000E-03   10000.    
    20 'norm      '    5.1825       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8222       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.4716       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1349       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .44576E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    12.828       1.0000         .10000E-03   10000.    
    29 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.2582       1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.5599       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    2.6398       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .91350       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0244       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18630.79     FROM MIGRAD    STATUS=CONVERGED   1020 CALLS     5387 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3531         .0000    ** at limit **
   2  norm          2.9399        2.6532         .0000        .11679E-02
   3  Prefactor     4.1481        4.1502         .0000       -.21624E-03
   4  Prefactor     1.0624        3.3572         .0000        .34943E-02
   5  Prefactor     23.852        11.205         .0000       -.11168E-02
   6  Prefactor     .10000E-03    3.2014         .0000    ** at limit **
   7  norm          4.7538        4.0024         .0000        .64531E-02
   8  Prefactor     13.639        14.909         .0000        .40287E-03
   9  Prefactor     3.1167        17.698         .0000        .25090E-02
  10  norm          3.0622        .68447         .0000        .44675E-03
  11  Prefactor     .10500E-02    2.9236         .0000    ** at limit **
  12  Prefactor     .10002E-03    4.1702         .0000    ** at limit **
  13  norm          .83894        1.3604         .0000        .28262E-02
  14  Prefactor     5.4781        3.8270         .0000       -.17262E-03
  15  Prefactor     4.1365        7.8760         .0000        .28151E-02
  16  norm          1.4617        1.7161         .0000        .27626E-02
  17  Prefactor     42.428        24.504         .0000        .18067E-02
  18  Prefactor     .10000E-03    5.0141         .0000    ** at limit **
  19  norm          2.1552        2.1578         .0000        .11188E-02
  20  norm          5.1826        1.4150         .0000        .67479E-05
  21  Prefactor     4.8224        1.3013         .0000        .30527E-03
  22  Prefactor     .10000E-03    2.5673         .0000    ** at limit **
  23  norm          1.4714        .40542         .0000       -.14025E-03
  24  Prefactor     3.1360        3.6163         .0000        .16355E-02
  25  Prefactor     .10113E-03    9.2101         .0000    ** at limit **
  26  Prefactor     .10000E-03    2.0961         .0000    ** at limit **
  27  Prefactor     .10000E-03    1.6230         .0000    ** at limit **
  28  norm          12.829        4.5683         .0000       -.13366E-03
  29  norm          .10000E-03    2.5375         .0000    ** at limit **
  30  Prefactor     1.2605        11.157         .0000        .18927E-01
  31  Prefactor     2.5609        4.7756         .0000        .21300E-01
  32  Prefactor     .10000E-03    .29117         .0000    ** at limit **
  33  Prefactor     2.6409        6.0065         .0000        .86969E-02
  34  Prefactor     .10000E-03    13.114         .0000    ** at limit **
  35  Normalizat    .91340        .11889         .0000        .35543E-04
  36  Prefactor     1.0244        .83355E-01     .0000       -.72911E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.93989
  Prefactor  = 4.14811
  Prefactor  = 1.06236
  Prefactor  = 23.8519
  Prefactor  = 0.0001
  norm       = 4.75376
  Prefactor  = 13.639
  Prefactor  = 3.11672
  norm       = 3.06223
  Prefactor  = 0.00104999
  Prefactor  = 0.000100018
  norm       = 0.838937
  Prefactor  = 5.47813
  Prefactor  = 4.13653
  norm       = 1.46167
  Prefactor  = 42.4278
  Prefactor  = 0.0001
  norm       = 2.15523
  norm       = 5.18264
  Prefactor  = 4.82245
  Prefactor  = 0.0001
  norm       = 1.4714
  Prefactor  = 3.13597
  Prefactor  = 0.000101131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8293
  norm       = 0.0001
  Prefactor  = 1.26045
  Prefactor  = 2.56095
  Prefactor  = 0.0001
  Prefactor  = 2.64087
  Prefactor  = 0.0001
  Normalizat = 0.913399
  Prefactor  = 1.02444
 **********
 **   18 **HESSE 
 **********

 FCN=   18630.79     FROM HESSE     STATUS=OK           847 CALLS     6234 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3729        .15494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9399        2.6140        .19507E-03   -1.5365    
   3  Prefactor     4.1481        4.1543        .19791E-03   -1.5301    
   4  Prefactor     1.0624        3.3045        .40065E-03   -1.5502    
   5  Prefactor     23.852        11.148        .82015E-04   -1.4731    
   6  Prefactor     .10000E-03    3.2090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.7538        3.9800        .92262E-03   -1.5272    
   8  Prefactor     13.639        14.889        .10846E-03   -1.4969    
   9  Prefactor     3.1167        17.583        .11470E-02   -1.5355    
  10  norm          3.0622        .68290        .50313E-04   -1.5358    
  11  Prefactor     .10500E-02    4.8727        .69097E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    4.3090        .88080E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .83894        1.2192        .18583E-02   -1.5525    
  14  Prefactor     5.4781        3.8210        .17167E-03   -1.5240    
  15  Prefactor     4.1365        7.8601        .99100E-03   -1.5301    
  16  norm          1.4617        1.6945        .17858E-03   -1.5466    
  17  Prefactor     42.428        24.470        .61543E-04   -1.4404    
  18  Prefactor     .10000E-03    5.0203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.1552        2.1405        .18842E-03   -1.5414    
  20  norm          5.1826        1.4119        .80329E-04   -1.5253    
  21  Prefactor     4.8224        1.2962        .76301E-04   -1.5269    
  22  Prefactor     .10000E-03    2.5824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.4714        .40369        .44110E-04   -1.5465    
  24  Prefactor     3.1360        3.5971        .22897E-03   -1.5354    
  25  Prefactor     .10113E-03    67.068        .79935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.1090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.7072        .33356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          12.829        4.5760        .11184E-03   -1.4991    
  29  norm          .10000E-03    2.5967        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.2605        11.137        .19895E-02   -1.5483    
  31  Prefactor     2.5609        4.7647        .12758E-02   -1.5388    
  32  Prefactor     .10000E-03    .29289        .71903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     2.6409        5.9833        .12548E-02   -1.5383    
  34  Prefactor     .10000E-03    13.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .91340        .13345        .29770E-03   -.95991    
  36  Prefactor     1.0244        .95025E-01    .21306E-03   -.91919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43682e-08
Minuit parameter uncertainties:
  1  9.59526e-07
  2  2.61414
  3  4.15462
  4  3.30505
  5  11.1493
  6  1.23024e-06
  7  3.98026
  8  14.8933
  9  14.8119
  10  0.682897
  11  0.136085
  12  0.000564146
  13  1.21922
  14  3.8212
  15  7.86206
  16  1.69458
  17  24.4754
  18  2.79757e-05
  19  2.14062
  20  1.41192
  21  1.29619
  22  4.63943e-05
  23  0.403687
  24  3.59736
  25  0.0174405
  26  8.60921e-07
  27  4.07982e-05
  28  4.57617
  29  4.47359e-05
  30  7.49489
  31  4.7654
  32  4.68014e-08
  33  5.98462
  34  5.81477e-05
  35  0.1335
  36  0.0950408
Done.

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

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  2.155e+00  2.141e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        alpha:  2.165e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
328         beta:  1.129e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
727    Prefactor:  1.024e+00  9.504e-02  0.000e+00  1.000e+01 ( 1.000e+00)
728        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
729        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
726   Normalization:  9.134e-01  1.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 122.379 53.688
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.49e-08 +/- 1.48e-08
Energy Flux (Fixed Index): 6.56e-06 +/- 6.51e-06

TS (Fixed Index): 1.81
Ra Dec: 122.379 53.688
Photon Flux Upper Limit: 4.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468919/likelihoodResults_332121601_332726401_4FGL_J0809.5+5341_weekly_bin154.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) = 18630.3867368
delta logL = 0.400698818012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18630.3703709
delta logL = 0.417064707708

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18630.37     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8164        17.611        .77455E-02    .19433E-02
   2  alpha         2.9156        3.8447        .41892        .13518E-03
   3  Normalizat    .89100        .30515E-01    .68004E-01    .56749E-04
   4  Prefactor     1.0327        .21529E-01    .41052E-01    .92568E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81641
  alpha      = 2.9156
  Normalizat = 0.890999
  Prefactor  = 1.0327
 **********
 **   18 **HESSE 
 **********

 FCN=   18630.37     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8164        2.3233        .12530E-03   -1.5438    
   2  alpha         2.9156        .94860        .19513E-01    .16701    
   3  Normalizat    .89100        .12697        .30085E-03   -.96777    
   4  Prefactor     1.0327        .94260E-01    .21222E-03   -.91647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83085e-11
Minuit parameter uncertainties:
  1  2.32344
  2  0.973721
  3  0.127016
  4  0.0942746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468919': 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) = 18630.3703707
delta logL = 0.417064888876

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  1.816e+00  2.323e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        alpha:  2.916e+00  9.737e-01  0.000e+00  5.000e+00 ( 1.000e+00)
328         beta:  1.129e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
329           Eb:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
727    Prefactor:  1.033e+00  9.427e-02  0.000e+00  1.000e+01 ( 1.000e+00)
728        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
729        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
726   Normalization:  8.910e-01  1.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.67
Ra Dec: 122.379 53.688
Photon Index (Free Index): 2.92 +/- 0.97
Photon Flux (Free Index): 3.59e-08 +/- 3.02e-08
Energy Flux (Free Index): 8.14e-06 +/- 5.85e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/468919/cmap_HighResolution_332121601_332726401_4FGL_J0809.5+5341_weekly_bin154.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-05', comment='SUCCESS', photon_flux='1.49e-08', energy_flux2='8.14e-06', photon_flux_error='1.48e-08', dlogl='4.17e-01', energy_flux='6.56e-06', photon_flux2='3.59e-08', job_status='DONE', time_completed='2021-07-12 05:07:56.100333', photon_index_error2='0.97', photon_index2='2.92', ts='1.81', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='4.85e-08', energy_flux_error2='5.85e-06', EG='0.91', time_epoch_completed='1626091676.1', return_code='0', job_id='468919', GAL2='1.03', EG2='0.89', return_code2='0', energy_flux_error='6.51e-06', photon_flux_error2='3.02e-08', ts2='2.67', photon_index='2.16' WHERE bin_id='154' AND source_name='4FGL J0809.5+5341' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 12 05:07:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0284>
Subject: Job 468919: <4FGL_J0809.5+5341_weekly_bin154> in cluster <slac> Done

Job <4FGL_J0809.5+5341_weekly_bin154> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Jul 12 01:40:45 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 01:57:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 12 01:57:19 2021
Terminated at Mon Jul 12 05:07:59 2021
Results reported at Mon Jul 12 05:07:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.5+5341_weekly_bin154 122.379 53.6876 332121601 332726401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.5+5341 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3303.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             132.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11439 sec.
    Turnaround time :                            12434 sec.

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

