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


Performing analysis on: 4FGL_J0811.4+0146_weekly_bin287
RA = 122.861, Dec = 1.7756
tmin = 412560001, tmax = 413164801
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='509122', job_status='RUN', time_executed='2021-07-12 04:03:44.357257', time_epoch_executed='1626087824.36' WHERE source_name='4FGL J0811.4+0146' and cadence='weekly' and bin_id='287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509122

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509122/ft1_4FGL_J0811.4+0146_weekly_bin287.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509122/ft2_4FGL_J0811.4+0146_weekly_bin287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509122/ft1_4FGL_J0811.4+0146_weekly_bin287.fits outfile=/scratch/kocevski/509122/ft1_filteredMKT_4FGL_J0811.4+0146_weekly_bin287.fits ra=122.861 dec=1.7756 rad=12.0 tmin=412560001.0 tmax=413164801.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.43
user 7.10
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/509122/ft2_4FGL_J0811.4+0146_weekly_bin287.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/509122/ft2_4FGL_J0811.4+0146_weekly_bin287.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/509122/ft1_filteredMKT_4FGL_J0811.4+0146_weekly_bin287.fits evtable="EVENTS" outfile="/scratch/kocevski/509122/ft1_filtered_4FGL_J0811.4+0146_weekly_bin287.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.62
user 0.39
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/509122/ft1_filtered_4FGL_J0811.4+0146_weekly_bin287.fits" evtable="EVENTS" scfile=/scratch/kocevski/509122/ft2_4FGL_J0811.4+0146_weekly_bin287.fits sctable="SC_DATA" outfile=/scratch/kocevski/509122/ltcube_412560001_413164801_4FGL_J0811.4+0146_weekly_bin287.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/509122/ft2_4FGL_J0811.4+0146_weekly_bin287.fits
.....................!
real 28.07
user 27.63
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509122/ft1_filtered_4FGL_J0811.4+0146_weekly_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/509122/ft2_4FGL_J0811.4+0146_weekly_bin287.fits sctable="SC_DATA" expcube=/scratch/kocevski/509122/ltcube_412560001_413164801_4FGL_J0811.4+0146_weekly_bin287.fits outfile=/scratch/kocevski/509122/expmap_412560001_413164801_4FGL_J0811.4+0146_weekly_bin287.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/509122/ltcube_412560001_413164801_4FGL_J0811.4+0146_weekly_bin287.fits
.....................!
real 198.48
user 191.87
sys 6.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 151 point sources and 0 extended sources

Setting source of interest to:
4FGL J0811.4+0146 @ 122.861 1.7756

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/509122/ft1_filtered_4FGL_J0811.4+0146_weekly_bin287.fits scfile=/scratch/kocevski/509122/ft2_4FGL_J0811.4+0146_weekly_bin287.fits outfile=/scratch/kocevski/509122/cmap_412560001_413164801_4FGL_J0811.4+0146_weekly_bin287.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.861 yref=1.7756 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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/509122/ft1_filtered_4FGL_J0811.4+0146_weekly_bin287.fits scfile=/scratch/kocevski/509122/ft2_4FGL_J0811.4+0146_weekly_bin287.fits outfile=/scratch/kocevski/509122/cmap_HighResolution_412560001_413164801_4FGL_J0811.4+0146_weekly_bin287.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.861 yref=1.7756 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.60
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/509122/ft1_filtered_4FGL_J0811.4+0146_weekly_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/509122/ft2_4FGL_J0811.4+0146_weekly_bin287.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/509122/Model_4FGL_J0811.4+0146_weekly_bin287.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/509122/ft1_filtered_4FGL_J0811.4+0146_weekly_bin287.fits.....................!
real 116.59
user 114.95
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/509122/ft1_filtered_4FGL_J0811.4+0146_weekly_bin287.fits', '/scratch/kocevski/509122/ft2_4FGL_J0811.4+0146_weekly_bin287.fits', expMap='/scratch/kocevski/509122/expmap_412560001_413164801_4FGL_J0811.4+0146_weekly_bin287.fits', expCube='/scratch/kocevski/509122/ltcube_412560001_413164801_4FGL_J0811.4+0146_weekly_bin287.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/509122/Model_4FGL_J0811.4+0146_weekly_bin287.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0811.4+0146'

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  5.108e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.005e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/509122/ft1_filtered_4FGL_J0811.4+0146_weekly_bin287.fits
Spacecraft file(s): /scratch/kocevski/509122/ft2_4FGL_J0811.4+0146_weekly_bin287.fits
Exposure map: /scratch/kocevski/509122/expmap_412560001_413164801_4FGL_J0811.4+0146_weekly_bin287.fits
Exposure cube: /scratch/kocevski/509122/ltcube_412560001_413164801_4FGL_J0811.4+0146_weekly_bin287.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/509122/Model_4FGL_J0811.4+0146_weekly_bin287.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) = 10028.0801362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1419       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9536       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.733       1.0000         .10000E-03   10000.    
     4 'norm      '    8.0081       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.443       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .55068E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9488       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1904       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6177       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8090       1.0000         .10000E-03   10000.    
    15 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.4365       1.0000         .10000E-03   10000.    
    17 'norm      '    6.1309       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.919       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1728       1.0000         .10000E-03   10000.    
    21 'norm      '    1.1087       1.0000         .10000E-03   10000.    
    22 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87499       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0577       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10028.08     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2740 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1512        66.904       -.48545E-06   -.10865E-04
   2  Prefactor     1.9570        11.586        .30606E-05    .41615E-05
   3  Prefactor     12.726        28.257        .59642E-06    .28416E-04
   4  norm          8.0081        2.1212        .83676E-08    .11794E-03
   5  Prefactor     .10000E-03    14.052       -.26130E-06** at limit **
   6  norm          13.445        15.399        .10107E-06    .40242E-05
   7  Prefactor     .56282E-01    .89669        .55688E-07   -.11859E-03
   8  norm          1.9489        7.2276        .23374E-05    .94634E-05
   9  Prefactor     8.1890        6.2699       -.18900E-06    .24133E-04
  10  Prefactor     .10000E-03    21.632        .37075E-06** at limit **
  11  Prefactor     .10000E-03    5.5806        .57806E-07** at limit **
  12  Prefactor     1.5181        98.999       -.11866E-04    .72881E-05
  13  norm          .10000E-03    5.3089        .67687E-07** at limit **
  14  norm          1.8096        3.2705        .70442E-07   -.34765E-04
  15  norm          .10000E-03    .59803        .15087E-07** at limit **
  16  norm          7.4204        15.019        .19547E-05    .53353E-04
  17  norm          6.1304        3.7695        .21180E-06    .24223E-03
  18  Prefactor     17.911        24.184       -.13842E-06    .52571E-04
  19  norm          .10000E-03    10.405        .59845E-06** at limit **
  20  Prefactor     2.1683        11.420        .24420E-05    .19273E-04
  21  norm          1.1087        .87535       -.67304E-07    .20924E-03
  22  norm          .10000E-03    9.7524       -.80232E-06** at limit **
  23  Normalizat    .87523        .17680        .45227E-06    .11471E-03
  24  Prefactor     1.0576        .11196       -.59469E-06    .40425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.15116
  Prefactor  = 1.95697
  Prefactor  = 12.7261
  norm       = 8.00808
  Prefactor  = 0.0001
  norm       = 13.4448
  Prefactor  = 0.0562825
  norm       = 1.94887
  Prefactor  = 8.18899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.51807
  norm       = 0.0001
  norm       = 1.8096
  norm       = 0.0001
  norm       = 7.42039
  norm       = 6.13036
  Prefactor  = 17.9111
  norm       = 0.0001
  Prefactor  = 2.16834
  norm       = 1.10869
  norm       = 0.0001
  Normalizat = 0.875229
  Prefactor  = 1.0576
 **********
 **   18 **HESSE 
 **********

 FCN=   10028.08     FROM HESSE     STATUS=OK           409 CALLS     3149 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1512        67.391        .19806E-03   -1.5300    
   2  Prefactor     1.9570        11.782        .14843E-02   -1.5428    
   3  Prefactor     12.726        28.227        .11226E-03   -1.4994    
   4  norm          8.0081        2.1188        .68967E-04   -1.5142    
   5  Prefactor     .10000E-03    14.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.445        15.426        .10924E-03   -1.4974    
   7  Prefactor     .56282E-01    15.352        .17957E-02   -1.5661    
   8  norm          1.9489        7.2152        .14865E-02   -1.5429    
   9  Prefactor     8.1890        6.2556        .14009E-03   -1.5136    
  10  Prefactor     .10000E-03    21.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5181        100.15        .33283E-03   -1.5462    
  13  norm          .10000E-03    5.3309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8096        3.1959        .22777E-03   -1.5439    
  15  norm          .10000E-03    .88241        .14746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.4204        15.107        .14707E-03   -1.5163    
  17  norm          6.1304        3.7695        .14515E-03   -1.5213    
  18  Prefactor     17.911        24.218        .94615E-04   -1.4861    
  19  norm          .10000E-03    10.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.1683        11.493        .13967E-02   -1.5413    
  21  norm          1.1087        .86214        .78547E-04   -1.5497    
  22  norm          .10000E-03    10.034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .87523        .20017        .33147E-03   -.97336    
  24  Prefactor     1.0576        .12830        .19842E-03   -.90833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77527e-08
Minuit parameter uncertainties:
  1  33.4958
  2  9.60602
  3  28.2566
  4  2.11884
  5  3.38074e-05
  6  15.4308
  7  1.85789
  8  7.21838
  9  6.2561
  10  5.28727e-05
  11  6.39737e-07
  12  24.7028
  13  7.81967e-07
  14  3.19624
  15  1.42706e-06
  16  15.1151
  17  3.76966
  18  24.2309
  19  6.07596e-05
  20  9.98707
  21  0.862154
  22  1.52484e-05
  23  0.200337
  24  0.128336
Done.

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

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  6.130e+00  3.770e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.005e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.058e+00  1.283e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  8.752e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.80
Ra Dec: 122.861 1.776
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 4.40e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 1.60e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10027.542922
delta logL = 0.532562998127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10027.5410417
delta logL = 0.534443235427

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10027.54     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      236 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6527        51.758        .42239E-02    .72564E-03
   2  alpha         2.4920        3.7443        .33975        .69579E-04
   3  Normalizat    .84557        .82538E-01    .76022E-01    .40473E-04
   4  Prefactor     1.0654        .43021E-01    .39080E-01    .44400E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.65267
  alpha      = 2.49204
  Normalizat = 0.845567
  Prefactor  = 1.06542
 **********
 **   18 **HESSE 
 **********

 FCN=   10027.54     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6527        3.4891        .11838E-03   -1.5232    
   2  alpha         2.4920        .46792        .12381E-01   -.31853E-02
   3  Normalizat    .84557        .18149        .33649E-03   -.98400    
   4  Prefactor     1.0654        .11705        .19767E-03   -.90579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73829e-11
Minuit parameter uncertainties:
  1  3.48919
  2  0.470695
  3  0.181625
  4  0.117079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509122': 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) = 10027.5410417
delta logL = 0.534443261531

Extracting fit parameters...

4FGL J0811.4+0146
   Spectrum: LogParabola
272         norm:  5.653e+00  3.489e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.492e+00  4.707e-01  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  6.882e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  9.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.065e+00  1.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  8.456e-01  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.89
Ra Dec: 122.861 1.776
Photon Index (Free Index): 2.49 +/- 0.47
Photon Flux (Free Index): 7.81e-08 +/- 5.02e-08
Energy Flux (Free Index): 2.36e-05 +/- 1.25e-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/509122/cmap_HighResolution_412560001_413164801_4FGL_J0811.4+0146_weekly_bin287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.40e-08', energy_flux2='2.36e-05', photon_flux_error='2.70e-08', dlogl='5.34e-01', energy_flux='2.61e-05', photon_flux2='7.81e-08', job_status='DONE', time_completed='2021-07-12 04:17:04.372737', photon_index_error2='0.47', photon_index2='2.49', ts='6.80', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='0.88', time_epoch_completed='1626088624.37', return_code='0', job_id='509122', GAL2='1.07', EG2='0.85', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='5.02e-08', ts2='7.89', photon_index='2.01' WHERE bin_id='287' AND source_name='4FGL J0811.4+0146' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 12 04:17:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 509122: <4FGL_J0811.4+0146_weekly_bin287> in cluster <slac> Done

Job <4FGL_J0811.4+0146_weekly_bin287> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Jul 12 04:01:00 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 04:02:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 12 04:02:10 2021
Terminated at Mon Jul 12 04:17:04 2021
Results reported at Mon Jul 12 04:17:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0811.4+0146_weekly_bin287 122.861 1.7756 412560001 413164801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0811.4+0146 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   791.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            964 sec.

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

