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


Performing analysis on: 4FGL_J0809.5+5341_weekly_bin472
RA = 122.379, Dec = 53.6876
tmin = 524448001, tmax = 525052801
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='474163', job_status='RUN', time_executed='2021-07-12 04:12:29.368653', time_epoch_executed='1626088349.37' WHERE source_name='4FGL J0809.5+5341' and cadence='weekly' and bin_id='472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474163

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474163/ft1_4FGL_J0809.5+5341_weekly_bin472.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474163/ft2_4FGL_J0809.5+5341_weekly_bin472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474163/ft1_4FGL_J0809.5+5341_weekly_bin472.fits outfile=/scratch/kocevski/474163/ft1_filteredMKT_4FGL_J0809.5+5341_weekly_bin472.fits ra=122.379 dec=53.6876 rad=12.0 tmin=524448001.0 tmax=525052801.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.57
user 7.04
sys 0.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/474163/ft2_4FGL_J0809.5+5341_weekly_bin472.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/474163/ft1_filteredMKT_4FGL_J0809.5+5341_weekly_bin472.fits evtable="EVENTS" outfile="/scratch/kocevski/474163/ft1_filtered_4FGL_J0809.5+5341_weekly_bin472.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 1.49
user 0.40
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474163/ft1_filtered_4FGL_J0809.5+5341_weekly_bin472.fits" evtable="EVENTS" scfile=/scratch/kocevski/474163/ft2_4FGL_J0809.5+5341_weekly_bin472.fits sctable="SC_DATA" outfile=/scratch/kocevski/474163/ltcube_524448001_525052801_4FGL_J0809.5+5341_weekly_bin472.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/474163/ft2_4FGL_J0809.5+5341_weekly_bin472.fits
.....................!
real 32.23
user 31.36
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474163/ft1_filtered_4FGL_J0809.5+5341_weekly_bin472.fits evtable="EVENTS" scfile=/scratch/kocevski/474163/ft2_4FGL_J0809.5+5341_weekly_bin472.fits sctable="SC_DATA" expcube=/scratch/kocevski/474163/ltcube_524448001_525052801_4FGL_J0809.5+5341_weekly_bin472.fits outfile=/scratch/kocevski/474163/expmap_524448001_525052801_4FGL_J0809.5+5341_weekly_bin472.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/474163/ltcube_524448001_525052801_4FGL_J0809.5+5341_weekly_bin472.fits
.....................!
real 196.11
user 187.47
sys 4.81

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/474163/ft1_filtered_4FGL_J0809.5+5341_weekly_bin472.fits scfile=/scratch/kocevski/474163/ft2_4FGL_J0809.5+5341_weekly_bin472.fits outfile=/scratch/kocevski/474163/cmap_524448001_525052801_4FGL_J0809.5+5341_weekly_bin472.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 1.51
user 0.43
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59985       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2484       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0655       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .99326       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.044       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.900       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.093       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.587       1.0000         .10000E-03   10000.    
    10 'norm      '    .82748       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.198       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2430       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2698       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8503       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.532       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10838E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.5040       1.0000         .10000E-03   10000.    
    23 'norm      '    1.2368       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5318       1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.994       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11074E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.687       1.0000         .10000E-03   10000.    
    28 'norm      '    2.8535       1.0000         .10000E-03   10000.    
    29 'norm      '    4.2122       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .37015E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.9510       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.0660       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0466       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20907.63     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     3684 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59924        1.6369        .74273E-06    .16416E-03
   2  norm          1.2481        1.6115       -.69799E-07   -.27279E-04
   3  Prefactor     7.0654        1.0031        .47384E-08    .67395E-04
   4  Prefactor     .99295        2.4065       -.87547E-06   -.21196E-03
   5  Prefactor     30.045        1.0032       -.29645E-07    .32233E-03
   6  Prefactor     35.899        1.0297        .79509E-07   -.91507E-03
   7  norm          .10000E-03    1.8000        .95562E-06** at limit **
   8  Prefactor     11.090        1.1797        .40192E-06   -.15130E-02
   9  Prefactor     19.584        1.0260        .91607E-08   -.11214E-03
  10  norm          .82746        .52695       -.38786E-06   -.58090E-03
  11  Prefactor     .10000E-03    1.5398       -.87687E-06** at limit **
  12  Prefactor     11.199        1.0027        .23717E-07   -.17466E-04
  13  norm          1.2429        .98767        .82952E-09   -.78821E-05
  14  Prefactor     .10000E-03    1.8144       -.92872E-06** at limit **
  15  Prefactor     1.2737        2.2680       -.39685E-05    .90236E-03
  16  norm          .10001E-03    1.3662        .15957E-05** at limit **
  17  Prefactor     6.8529        1.0514        .21737E-06   -.54441E-03
  18  Prefactor     .10000E-03    3.6668       -.10684E-05** at limit **
  19  norm          11.532        1.3729        .45548E-07   -.28464E-02
  20  norm          .10000E-03    .29978       -.13157E-06** at limit **
  21  Prefactor     .10000E-03    .91757        .78560E-06** at limit **
  22  Prefactor     5.5032        1.0215       -.89648E-08   -.40897E-03
  23  norm          1.2368        .38453        .97821E-08   -.12260E-03
  24  Prefactor     1.5317        2.0600        .19456E-06   -.17090E-02
  25  Prefactor     26.991        1.0477       -.11328E-06    .11811E-02
  26  Prefactor     .10000E-03    5.8800       -.83571E-05** at limit **
  27  Prefactor     14.686        1.0060       -.21041E-07   -.65433E-04
  28  norm          2.8536        1.9381        .16817E-05    .41004E-02
  29  norm          4.2126        1.0467        .10871E-06    .44387E-03
  30  Prefactor     .10000E-03    7.1052        .55601E-05** at limit **
  31  Prefactor     .10000E-03    .40970        .20453E-06** at limit **
  32  Prefactor     2.9510        1.6888       -.28402E-06   -.54449E-03
  33  Prefactor     .10000E-03    5.2624        .24927E-05** at limit **
  34  Prefactor     .10000E-03    53.305       -.21001E-05** at limit **
  35  Normalizat    1.0660        .12570       -.97596E-06   -.45618E-04
  36  Prefactor     1.0466        .92865E-01    .67131E-06   -.11429E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.599245
  norm       = 1.24807
  Prefactor  = 7.06543
  Prefactor  = 0.992945
  Prefactor  = 30.0448
  Prefactor  = 35.8993
  norm       = 0.0001
  Prefactor  = 11.0902
  Prefactor  = 19.5838
  norm       = 0.827459
  Prefactor  = 0.000100005
  Prefactor  = 11.1986
  norm       = 1.24288
  Prefactor  = 0.0001
  Prefactor  = 1.27372
  norm       = 0.000100005
  Prefactor  = 6.85291
  Prefactor  = 0.0001
  norm       = 11.5318
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.50321
  norm       = 1.23679
  Prefactor  = 1.53174
  Prefactor  = 26.9909
  Prefactor  = 0.000100004
  Prefactor  = 14.6855
  norm       = 2.85357
  norm       = 4.21257
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.95097
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.06604
  Prefactor  = 1.0466
 **********
 **   18 **HESSE 
 **********

 FCN=   20907.63     FROM HESSE     STATUS=OK           923 CALLS     4607 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59924        1.3943        .69784E-01   -1.5553    
   2  norm          1.2481        1.6615        .10012E-01   -1.5485    
   3  Prefactor     7.0654        6.2284        .37729E-02   -1.5176    
   4  Prefactor     .99295        2.4867        .13142E-01   -1.5509    
   5  Prefactor     30.045        10.613        .18274E-02   -1.4611    
   6  Prefactor     35.899        15.831        .16721E-02   -1.4509    
   7  norm          .10000E-03    1.8284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.090        12.445        .30072E-02   -1.5042    
   9  Prefactor     19.584        15.501        .22625E-02   -1.4823    
  10  norm          .82746        .57408        .18640E-01   -1.5526    
  11  Prefactor     .10000E-03    2.3379        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.199        9.0968        .29929E-02   -1.5039    
  13  norm          1.2429        1.0035        .10048E-01   -1.5485    
  14  Prefactor     .10000E-03    1.8962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2737        15.581        .98727E-02   -1.5482    
  16  norm          .10001E-03    .43147        .55823E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8529        21.775        .38323E-02   -1.5184    
  18  Prefactor     .10000E-03    3.6765        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.532        2.9131        .29492E-02   -1.5029    
  20  norm          .10000E-03    .29290        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .35793        .27581E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.5032        5.8041        .42815E-02   -1.5239    
  23  norm          1.2368        .38795        .10091E-01   -1.5486    
  24  Prefactor     1.5317        3.0576        .86202E-02   -1.5460    
  25  Prefactor     26.991        20.782        .19277E-02   -1.4668    
  26  Prefactor     .10000E-03    6.6589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.686        5.5603        .26128E-02   -1.4941    
  28  norm          2.8536        2.5276        .60170E-02   -1.5370    
  29  norm          4.2126        3.5371        .49087E-02   -1.5297    
  30  Prefactor     .10000E-03    7.5094        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.0230        .74365E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     2.9510        1.7060        .59103E-02   -1.5364    
  33  Prefactor     .10000E-03    5.4005        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    53.049        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.0660        .11540        .65912E-01   -.90850    
  36  Prefactor     1.0466        .81887E-01    .40111E-01   -.91192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73234e-06
Minuit parameter uncertainties:
  1  1.39442
  2  1.66159
  3  6.22898
  4  2.48696
  5  10.6134
  6  15.8326
  7  6.85049e-06
  8  12.4476
  9  15.5038
  10  0.574081
  11  0.000212678
  12  9.09793
  13  1.00351
  14  6.78868e-06
  15  8.91223
  16  9.43697e-05
  17  21.8001
  18  4.03174e-05
  19  2.9131
  20  1.45838e-07
  21  2.52147e-06
  22  5.80469
  23  0.387951
  24  3.05792
  25  20.7878
  26  0.00034555
  27  5.5605
  28  2.52773
  29  3.53724
  30  0.000198022
  31  1.23579e-05
  32  1.70599
  33  0.000163639
  34  0.000292132
  35  0.115424
  36  0.0818972
Done.

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

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  1.153e+01  2.913e+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.047e+00  8.190e-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.066e+00  1.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 72.12
Ra Dec: 122.379 53.688
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 7.97e-08 +/- 2.01e-08
Energy Flux (Fixed Index): 3.51e-05 +/- 8.86e-06

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) = 20901.6603645
delta logL = 5.97335787113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20901.4312268
delta logL = 6.20249554091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9858       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0368       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=   20901.43     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      229 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9854        2.7340        .33427E-02   -.30448E-03
   2  alpha         1.3000        .18256        .26359       -.11284E-03
   3  Normalizat    1.1092        .10691        .64830E-01    .11307E-03
   4  Prefactor     1.0368        .80338E-01    .40752E-01    .11905E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.98537
  alpha      = 1.30003
  Normalizat = 1.10917
  Prefactor  = 1.03683
 **********
 **   18 **HESSE 
 **********

 FCN=   20901.43     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9854        3.4652        .12183E-03   -1.5108    
   2  alpha         1.3000        .24189        .11138E-01   -.50064    
   3  Normalizat    1.1092        .12201        .28678E-03   -.89458    
   4  Prefactor     1.0368        .91852E-01    .22103E-03   -.91512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83114e-09
Minuit parameter uncertainties:
  1  3.46532
  2  0.242384
  3  0.122036
  4  0.0918655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474163': 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) = 20901.4312268
delta logL = 6.20249554782

Extracting fit parameters...

4FGL J0809.5+5341
   Spectrum: LogParabola
326         norm:  8.985e+00  3.465e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        alpha:  1.300e+00  2.424e-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.037e+00  9.187e-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.109e+00  1.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 84.46
Ra Dec: 122.379 53.688
Photon Index (Free Index): 1.30 +/- 0.24
Photon Flux (Free Index): 3.21e-08 +/- 1.32e-08
Energy Flux (Free Index): 7.97e-05 +/- 3.41e-05

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/474163/cmap_HighResolution_524448001_525052801_4FGL_J0809.5+5341_weekly_bin472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.97e-08', energy_flux2='7.97e-05', photon_flux_error='2.01e-08', dlogl='6.20e+00', energy_flux='3.51e-05', photon_flux2='3.21e-08', job_status='DONE', time_completed='2021-07-12 04:52:45.926734', photon_index_error2='0.24', photon_index2='1.30', ts='72.12', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.41e-05', EG='1.07', time_epoch_completed='1626090765.93', return_code='0', job_id='474163', GAL2='1.04', EG2='1.11', return_code2='0', energy_flux_error='8.86e-06', photon_flux_error2='1.32e-08', ts2='84.46', photon_index='2.16' WHERE bin_id='472' AND source_name='4FGL J0809.5+5341' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 12 04:52:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 474163: <4FGL_J0809.5+5341_weekly_bin472> in cluster <slac> Done

Job <4FGL_J0809.5+5341_weekly_bin472> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Jul 12 02:00:31 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 02:04:11 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:04:11 2021
Terminated at Mon Jul 12 04:52:48 2021
Results reported at Mon Jul 12 04:52:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.5+5341_weekly_bin472 122.379 53.6876 524448001 525052801 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 :                                   2371.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             117.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10117 sec.
    Turnaround time :                            10337 sec.

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

