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


Performing analysis on: 4FGL_J0809.5+5341_weekly_bin550
RA = 122.379, Dec = 53.6876
tmin = 571622401, tmax = 572227201
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='476884', job_status='RUN', time_executed='2021-07-12 02:12:58.710271', time_epoch_executed='1626081178.71' WHERE source_name='4FGL J0809.5+5341' and cadence='weekly' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476884

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476884/ft1_4FGL_J0809.5+5341_weekly_bin550.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476884/ft2_4FGL_J0809.5+5341_weekly_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476884/ft1_4FGL_J0809.5+5341_weekly_bin550.fits outfile=/scratch/kocevski/476884/ft1_filteredMKT_4FGL_J0809.5+5341_weekly_bin550.fits ra=122.379 dec=53.6876 rad=12.0 tmin=571622401.0 tmax=572227201.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 9.50
user 5.21
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476884/ft2_4FGL_J0809.5+5341_weekly_bin550.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/476884/ft1_filteredMKT_4FGL_J0809.5+5341_weekly_bin550.fits evtable="EVENTS" outfile="/scratch/kocevski/476884/ft1_filtered_4FGL_J0809.5+5341_weekly_bin550.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 3.94
user 0.41
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476884/ft1_filtered_4FGL_J0809.5+5341_weekly_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/476884/ft2_4FGL_J0809.5+5341_weekly_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/476884/ltcube_571622401_572227201_4FGL_J0809.5+5341_weekly_bin550.fits outfile=/scratch/kocevski/476884/expmap_571622401_572227201_4FGL_J0809.5+5341_weekly_bin550.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/476884/ltcube_571622401_572227201_4FGL_J0809.5+5341_weekly_bin550.fits
.....................!
real 204.54
user 186.51
sys 5.51

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/476884/ft1_filtered_4FGL_J0809.5+5341_weekly_bin550.fits scfile=/scratch/kocevski/476884/ft2_4FGL_J0809.5+5341_weekly_bin550.fits outfile=/scratch/kocevski/476884/cmap_571622401_572227201_4FGL_J0809.5+5341_weekly_bin550.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 2.81
user 0.42
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476884/ft1_filtered_4FGL_J0809.5+5341_weekly_bin550.fits scfile=/scratch/kocevski/476884/ft2_4FGL_J0809.5+5341_weekly_bin550.fits outfile=/scratch/kocevski/476884/cmap_HighResolution_571622401_572227201_4FGL_J0809.5+5341_weekly_bin550.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 3.98
user 0.45
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/476884/ft1_filtered_4FGL_J0809.5+5341_weekly_bin550.fits', '/scratch/kocevski/476884/ft2_4FGL_J0809.5+5341_weekly_bin550.fits', expMap='/scratch/kocevski/476884/expmap_571622401_572227201_4FGL_J0809.5+5341_weekly_bin550.fits', expCube='/scratch/kocevski/476884/ltcube_571622401_572227201_4FGL_J0809.5+5341_weekly_bin550.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/476884/Model_4FGL_J0809.5+5341_weekly_bin550.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/476884/ft1_filtered_4FGL_J0809.5+5341_weekly_bin550.fits
Spacecraft file(s): /scratch/kocevski/476884/ft2_4FGL_J0809.5+5341_weekly_bin550.fits
Exposure map: /scratch/kocevski/476884/expmap_571622401_572227201_4FGL_J0809.5+5341_weekly_bin550.fits
Exposure cube: /scratch/kocevski/476884/ltcube_571622401_572227201_4FGL_J0809.5+5341_weekly_bin550.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/476884/Model_4FGL_J0809.5+5341_weekly_bin550.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) = 379.725439783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    3.4820       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.317       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.408       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12613E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13243E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10275E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .19871E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13476E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39091E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .40162E-03   1.0000         .10000E-03   10000.    
    19 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    20 'norm      '    10000.       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6192.8       1.0000         .10000E-03   10000.    
    23 'norm      '    .21205E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.486       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.499       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .39206E-03   1.0000         .10000E-03   10000.    
    28 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    29 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    10.255       1.0000         .10000E-03   10000.    
    32 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .13322E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .53040E-02   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    36 'Prefactor '    .84951E-01   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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   377.9699     FROM MIGRAD    STATUS=CONVERGED   1086 CALLS     7144 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.9844        .16034E-05** at limit **
   2  norm          3.4685        6.7568       -.27831E-06    .11210E-04
   3  Prefactor     15.167        69.761        .34370E-05    .61565E-04
   4  Prefactor     .10000E-03    6.3611       -.15392E-05** at limit **
   5  Prefactor     12.376        32.254       -.82069E-06   -.13703E-04
   6  Prefactor     .10000E-03    53.531       -.42178E-05** at limit **
   7  norm          .10000E-03    8.2036       -.84711E-07** at limit **
   8  Prefactor     .10000E-03    318.54       -.10489E-04** at limit **
   9  Prefactor     .10001E-03    79.200       -.86655E-05** at limit **
  10  norm          .10000E-03    20.335       -.12794E-05** at limit **
  11  Prefactor     .10000E-03    181.75        .46896E-05** at limit **
  12  Prefactor     .10000E-03    142.36       -.40167E-05** at limit **
  13  norm          .10000E-03    61.598        .25710E-05** at limit **
  14  Prefactor     .10000E-03    227.07       -.36514E-05** at limit **
  15  Prefactor     .10000E-03    10.371        .13372E-06** at limit **
  16  norm          .10000E-03    4.2984        .18151E-07** at limit **
  17  Prefactor     .10502E-03    7857.0       -.12223E-03** at limit **
  18  Prefactor     .10000E-03    317.45        .57122E-05** at limit **
  19  norm         10000.0        1112.4       -.74599E-04** at limit **
  20  norm         10000.0        770.30       -.10162E-04** at limit **
  21  Prefactor     .10000E-03    .57856        .20336E-06** at limit **
  22  Prefactor     6179.2        7885.3       -.16205E-03    .16135E-04
  23  norm          .10008E-03    1641.3        .12226E-04** at limit **
  24  Prefactor    10000.0        1812.9        .67247E-05** at limit **
  25  Prefactor    10000.0        5759.1        .15813E-03** at limit **
  26  Prefactor    10000.0        5122.0        .11393E-03** at limit **
  27  Prefactor     .10027E-03    622.46        .43384E-04** at limit **
  28  norm         10000.0        9582.4       -.76030E-05** at limit **
  29  norm         10000.0        7298.1        .19817E-03** at limit **
  30  Prefactor     .10004E-03    104.03        .21163E-04** at limit **
  31  Prefactor     10.253        15.227        .15518E-05    .12249E-03
  32  Prefactor    10000.0        9344.4       -.14124E-03** at limit **
  33  Prefactor     .10000E-03    255.47       -.46138E-05** at limit **
  34  Prefactor     .10117E-03    6171.7        .14861E-04** at limit **
  35  Normalizat    .10000E-01    .55629E-01    .12699E-04** at limit **
  36  Prefactor     .84622E-01    .10172        .14928E-04    .16666E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.4685
  Prefactor  = 15.1672
  Prefactor  = 0.0001
  Prefactor  = 12.376
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100006
  norm       = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000105018
  Prefactor  = 0.000100001
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 6179.15
  norm       = 0.000100075
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100265
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.000100036
  Prefactor  = 10.253
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.000101167
  Normalizat = 0.01
  Prefactor  = 0.0846223
 **********
 **   18 **HESSE 
 **********

 FCN=   377.9699     FROM HESSE     STATUS=OK           785 CALLS     7929 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.0132        .42530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4685        6.7587        .67985E-04   -1.5335    
   3  Prefactor     15.167        72.805        .10234E-03   -1.4929    
   4  Prefactor     .10000E-03    6.3918        .48029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.376        32.390        .11372E-03   -1.5004    
   6  Prefactor     .10000E-03    54.954        .14097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.2311        .54519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    363.33        .20602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    82.186        .17253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    20.540        .86149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    191.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    150.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    63.227        .15125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    249.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.415        .61327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.3060        .39429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10502E-03    7880.6        .19523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    364.59        .21262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        1181.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        915.22        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .57927        .14456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6179.2        7889.7        .41189E-04    .23807    
  23  norm          .10008E-03    6346.5        .20176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        1811.8        .18555E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        5783.8        .44247E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor    10000.0        5095.6        .45351E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10027E-03    735.41        .21273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm         10000.0        9582.1        .18549E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm         10000.0        7312.5        .19592E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10004E-03    109.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     10.253        15.304        .83062E-04   -1.5067    
  32  Prefactor    10000.0        9344.6        .18149E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    276.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10117E-03    6343.4        .19120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .10000E-01    .58139E-01    .14423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .84622E-01    .10374        .17987E-03   -1.3866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54726e-09
Minuit parameter uncertainties:
  1  7.296e-05
  2  6.76015
  3  66.5921
  4  9.64168e-05
  5  32.4356
  6  0.000911209
  7  6.2715e-06
  8  0.00233414
  9  0.00140816
  10  0.00020406
  11  0.00170228
  12  0.000373034
  13  0.000369101
  14  0.000829727
  15  8.85454e-06
  16  5.25316e-07
  17  0.386109
  18  0.000951973
  19  0.0661875
  20  0.0459624
  21  3.32213e-06
  22  6833.11
  23  0.0298904
  24  0.0349204
  25  2.74636
  26  0.836896
  27  0.0282797
  28  0.279308
  29  0.172311
  30  0.00395674
  31  15.3099
  32  0.238299
  33  0.000637709
  34  0.117748
  35  1.02279e-06
  36  0.103967
Done.

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

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  1.000e+04  6.619e-02  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:  8.462e-02  1.040e-01  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:  1.000e-02  1.023e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.29
Ra Dec: 122.379 53.688
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 6.91e-05 +/- 4.57e-10
Energy Flux (Fixed Index): 3.04e-02 +/- 2.01e-07

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) = 338.143809029
delta logL = 39.8261184946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 338.131513692
delta logL = 39.8384138315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57916E-01   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=   338.1315     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      187 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        332.16        .90732E-02** at limit **
   2  alpha         5.0000        .23939E-01    .46267E-01** at limit **
   3  Normalizat    .10000E-01    .48624E-01    .56763E-01** at limit **
   4  Prefactor     .57916E-01    .72310E-01    .33031E-01    .78821E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.0579162
 **********
 **   18 **HESSE 
 **********

 FCN=   338.1315     FROM HESSE     STATUS=OK            25 CALLS      212 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        332.16        .18146E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        .23932E-01    .12445E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .48741E-01    .12502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .57916E-01    .71718E-01    .17088E-03   -1.4184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10831e-10
Minuit parameter uncertainties:
  1  0.00340761
  2  3.87003e-07
  3  4.34726e-07
  4  0.0718255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476884': 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) = 338.131499527
delta logL = 39.8384279961

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  1.000e+04  3.408e-03  1.000e-04  1.000e+04 ( 1.000e-12)
327        alpha:  5.000e+00  3.870e-07  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:  5.792e-02  7.183e-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:  1.000e-02  4.347e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 89.27
Ra Dec: 122.379 53.688
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.59e-03 +/- 6.04e-09
Energy Flux (Free Index): 1.04e+00 +/- 7.95e-07

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/476884/cmap_HighResolution_571622401_572227201_4FGL_J0809.5+5341_weekly_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.91e-05', energy_flux2='1.04e+00', photon_flux_error='4.57e-10', dlogl='3.98e+01', energy_flux='3.04e-02', photon_flux2='7.59e-03', job_status='DONE', time_completed='2021-07-12 02:22:12.779335', photon_index_error2='0.00', photon_index2='5.00', ts='9.29', fit_tolerance='1e-08', GAL='0.08', photon_index_error='0.00', energy_flux_error2='7.95e-07', EG='0.01', time_epoch_completed='1626081732.78', return_code='0', job_id='476884', GAL2='0.06', EG2='0.01', return_code2='0', energy_flux_error='2.01e-07', photon_flux_error2='6.04e-09', ts2='89.27', photon_index='2.16' WHERE bin_id='550' AND source_name='4FGL J0809.5+5341' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 12 02:22:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0133>
Subject: Job 476884: <4FGL_J0809.5+5341_weekly_bin550> in cluster <slac> Done

Job <4FGL_J0809.5+5341_weekly_bin550> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul 12 02:10:54 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 02:11:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 12 02:11:06 2021
Terminated at Mon Jul 12 02:22:31 2021
Results reported at Mon Jul 12 02:22:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.5+5341_weekly_bin550 122.379 53.6876 571622401 572227201 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 :                                   444.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             273.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            697 sec.

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

