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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin499
RA = 124.557, Dec = 42.3819
tmin = 540777601, tmax = 541382401
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='571565', job_status='RUN', time_executed='2021-07-12 07:41:46.869397', time_epoch_executed='1626100906.87' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571565

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571565/ft1_4FGL_J0818.2+4222_weekly_bin499.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571565/ft2_4FGL_J0818.2+4222_weekly_bin499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571565/ft1_4FGL_J0818.2+4222_weekly_bin499.fits outfile=/scratch/kocevski/571565/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin499.fits ra=124.557 dec=42.3819 rad=12.0 tmin=540777601.0 tmax=541382401.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.86
user 7.46
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/571565/ft2_4FGL_J0818.2+4222_weekly_bin499.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571565/ft2_4FGL_J0818.2+4222_weekly_bin499.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/571565/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin499.fits evtable="EVENTS" outfile="/scratch/kocevski/571565/ft1_filtered_4FGL_J0818.2+4222_weekly_bin499.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.84
user 0.40
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571565/ft1_filtered_4FGL_J0818.2+4222_weekly_bin499.fits" evtable="EVENTS" scfile=/scratch/kocevski/571565/ft2_4FGL_J0818.2+4222_weekly_bin499.fits sctable="SC_DATA" outfile=/scratch/kocevski/571565/ltcube_540777601_541382401_4FGL_J0818.2+4222_weekly_bin499.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/571565/ft2_4FGL_J0818.2+4222_weekly_bin499.fits
.....................!
real 31.90
user 31.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571565/ft1_filtered_4FGL_J0818.2+4222_weekly_bin499.fits evtable="EVENTS" scfile=/scratch/kocevski/571565/ft2_4FGL_J0818.2+4222_weekly_bin499.fits sctable="SC_DATA" expcube=/scratch/kocevski/571565/ltcube_540777601_541382401_4FGL_J0818.2+4222_weekly_bin499.fits outfile=/scratch/kocevski/571565/expmap_540777601_541382401_4FGL_J0818.2+4222_weekly_bin499.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/571565/ltcube_540777601_541382401_4FGL_J0818.2+4222_weekly_bin499.fits
.....................!
real 203.05
user 193.67
sys 4.59

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

Setting source of interest to:
4FGL J0818.2+4222 @ 124.557 42.3819

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/571565/ft1_filtered_4FGL_J0818.2+4222_weekly_bin499.fits scfile=/scratch/kocevski/571565/ft2_4FGL_J0818.2+4222_weekly_bin499.fits outfile=/scratch/kocevski/571565/cmap_540777601_541382401_4FGL_J0818.2+4222_weekly_bin499.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=124.557 yref=42.3819 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.68
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571565/ft1_filtered_4FGL_J0818.2+4222_weekly_bin499.fits scfile=/scratch/kocevski/571565/ft2_4FGL_J0818.2+4222_weekly_bin499.fits outfile=/scratch/kocevski/571565/cmap_HighResolution_540777601_541382401_4FGL_J0818.2+4222_weekly_bin499.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=124.557 yref=42.3819 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.15
user 0.46
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571565/ft1_filtered_4FGL_J0818.2+4222_weekly_bin499.fits evtable="EVENTS" scfile=/scratch/kocevski/571565/ft2_4FGL_J0818.2+4222_weekly_bin499.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571565/Model_4FGL_J0818.2+4222_weekly_bin499.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/571565/ft1_filtered_4FGL_J0818.2+4222_weekly_bin499.fits.....................!
real 112056.99
user 136.28
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/571565/ft1_filtered_4FGL_J0818.2+4222_weekly_bin499.fits', '/scratch/kocevski/571565/ft2_4FGL_J0818.2+4222_weekly_bin499.fits', expMap='/scratch/kocevski/571565/expmap_540777601_541382401_4FGL_J0818.2+4222_weekly_bin499.fits', expCube='/scratch/kocevski/571565/ltcube_540777601_541382401_4FGL_J0818.2+4222_weekly_bin499.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/571565/Model_4FGL_J0818.2+4222_weekly_bin499.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0818.2+4222'

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.121e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/571565/ft1_filtered_4FGL_J0818.2+4222_weekly_bin499.fits
Spacecraft file(s): /scratch/kocevski/571565/ft2_4FGL_J0818.2+4222_weekly_bin499.fits
Exposure map: /scratch/kocevski/571565/expmap_540777601_541382401_4FGL_J0818.2+4222_weekly_bin499.fits
Exposure cube: /scratch/kocevski/571565/ltcube_540777601_541382401_4FGL_J0818.2+4222_weekly_bin499.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/571565/Model_4FGL_J0818.2+4222_weekly_bin499.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) = 16464.39244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6070       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.977       1.0000         .10000E-03   10000.    
     6 'norm      '    3.9134       1.0000         .10000E-03   10000.    
     7 'norm      '    .41672       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5852       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1835       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9875       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1097       1.0000         .10000E-03   10000.    
    13 'norm      '    .87134       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19832E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7251       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6806       1.0000         .10000E-03   10000.    
    20 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4503       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3903       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .63997E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.4047       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11480E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0902       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94793       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16464.20     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     3474 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6070        4.0673         .0000        .64124E-03
   2  Prefactor     .10000E-03    2.6095         .0000    ** at limit **
   3  Prefactor     .10000E-03    5.7389         .0000    ** at limit **
   4  Prefactor     .10000E-03    3.1946         .0000    ** at limit **
   5  Prefactor     10.976        9.0374         .0000        .38787E-03
   6  norm          3.9132        5.0529         .0000        .44383E-03
   7  norm          .41683        1.0990         .0000        .44637E-02
   8  Prefactor     4.5843        5.4447         .0000        .95276E-02
   9  Prefactor     6.1834        27.445         .0000        .93022E-04
  10  Prefactor     1.9879        3.1043         .0000        .20437E-02
  11  norm          .10000E-03    .67196         .0000    ** at limit **
  12  norm          1.1097        .77820         .0000        .35143E-03
  13  norm          .87141        .40895         .0000        .10243E-02
  14  Prefactor     .10000E-03    3.6909         .0000    ** at limit **
  15  Prefactor     .10000E-03    4.0230         .0000    ** at limit **
  16  Prefactor     .10000E-03    .55600         .0000    ** at limit **
  17  Prefactor     .10000E-03    26.282         .0000    ** at limit **
  18  Prefactor     2.7236        5.1441         .0000        .16612E-01
  19  Prefactor     3.6804        3.8793         .0000        .14188E-01
  20  norm          .10000E-03    1.0754         .0000    ** at limit **
  21  norm          1.4503        1.5524         .0000       -.44547E-03
  22  Prefactor     3.3905        1.8166         .0000        .82922E-03
  23  Prefactor     .10000E-03    17.296         .0000    ** at limit **
  24  Prefactor     .10001E-03    6.0328         .0000    ** at limit **
  25  Prefactor     .60338E-01    .71307         .0000        .75194E-03
  26  Prefactor     .10000E-03    4.4718         .0000    ** at limit **
  27  norm          1.4049        .44229         .0000        .68760E-04
  28  Prefactor     .10000E-03    1.1095         .0000    ** at limit **
  29  Normalizat    1.0903        .11439         .0000        .18332E-05
  30  Prefactor     .94790        .86604E-01     .0000       -.19065E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.60703
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 10.9756
  norm       = 3.91321
  norm       = 0.416825
  Prefactor  = 4.58434
  Prefactor  = 6.18341
  Prefactor  = 1.98794
  norm       = 0.0001
  norm       = 1.10969
  norm       = 0.871406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.72365
  Prefactor  = 3.68044
  norm       = 0.0001
  norm       = 1.45027
  Prefactor  = 3.3905
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0603384
  Prefactor  = 0.0001
  norm       = 1.40493
  Prefactor  = 0.000100001
  Normalizat = 1.09033
  Prefactor  = 0.947897
 **********
 **   18 **HESSE 
 **********

 FCN=   16464.20     FROM HESSE     STATUS=OK           612 CALLS     4086 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6070        4.0681        .21275E-03   -1.5328    
   2  Prefactor     .10000E-03    2.6285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2740        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.976        9.0272        .12092E-03   -1.5045    
   6  norm          3.9132        5.0449        .20394E-03   -1.5312    
   7  norm          .41683        1.0732        .20998E-03   -1.5579    
   8  Prefactor     4.5843        5.3666        .93990E-03   -1.5280    
   9  Prefactor     6.1834        26.717        .16144E-03   -1.5211    
  10  Prefactor     1.9879        3.0527        .25637E-03   -1.5426    
  11  norm          .10000E-03    1.3433        .20339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1097        .77304        .91341E-04   -1.5497    
  13  norm          .87141        .39304        .50970E-03   -1.5521    
  14  Prefactor     .10000E-03    3.6929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3221        .72363E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .89185        .18084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7236        5.1246        .12334E-02   -1.5378    
  19  Prefactor     3.6804        3.8708        .10526E-02   -1.5324    
  20  norm          .10000E-03    2.3942        .25777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4503        1.5588        .16086E-03   -1.5467    
  22  Prefactor     3.3905        1.8039        .11911E-03   -1.5340    
  23  Prefactor     .10000E-03    17.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    6.0353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .60338E-01    19.411        .20202E-02   -1.5659    
  26  Prefactor     .10000E-03    4.4782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.4049        .40936        .42141E-04   -1.5471    
  28  Prefactor     .10000E-03    6.2895        .23363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0903        .13459        .25998E-03   -.90063    
  30  Prefactor     .94790        .10135        .21697E-03   -.94487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7786e-09
Minuit parameter uncertainties:
  1  4.06844
  2  1.11533e-06
  3  0.000194852
  4  2.52336e-06
  5  9.02836
  6  5.04549
  7  1.07323
  8  5.36716
  9  25.7252
  10  3.05298
  11  1.49929e-07
  12  0.773049
  13  0.393037
  14  3.08911e-06
  15  7.92331e-05
  16  1.14194e-08
  17  1.9607e-06
  18  5.12538
  19  3.87103
  20  7.09061e-07
  21  1.55889
  22  1.80388
  23  4.78952e-05
  24  0.00036208
  25  2.16337
  26  5.79136e-06
  27  0.409357
  28  0.000174803
  29  0.134628
  30  0.101374
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  8.714e-01  3.930e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  9.479e-01  1.014e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.090e+00  1.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.44
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.35e-08 +/- 1.96e-08
Energy Flux (Fixed Index): 2.45e-05 +/- 1.11e-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) = 16463.4852576
delta logL = 0.712914449214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16463.4842464
delta logL = 0.713925627439

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16463.48     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      215 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75851        3.3370        .95773E-02    .25247E-03
   2  alpha         2.4111        3.5688        .33561        .11209E-03
   3  Normalizat    1.0707        .37661E-01    .59235E-01    .42433E-04
   4  Prefactor     .95630        .28804E-01    .45719E-01    .10136E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.758512
  alpha      = 2.41107
  Normalizat = 1.07073
  Prefactor  = 0.9563
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75851        .37255        .43228E-04   -1.5534    
   2  alpha         2.4111        .37488        .12570E-01   -.35581E-01
   3  Normalizat    1.0707        .12569        .26196E-03   -.90697    
   4  Prefactor     .95630        .98408E-01    .21606E-03   -.94201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98297e-11
Minuit parameter uncertainties:
  1  0.37255
  2  0.376301
  3  0.12572
  4  0.0984261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571565': 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) = 16463.4842464
delta logL = 0.713925633667

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  7.585e-01  3.726e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.411e+00  3.763e-01  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  9.563e-01  9.843e-02  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.071e+00  1.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.83
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.41 +/- 0.38
Photon Flux (Free Index): 6.11e-08 +/- 2.68e-08
Energy Flux (Free Index): 1.96e-05 +/- 8.65e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/571565/cmap_HighResolution_540777601_541382401_4FGL_J0818.2+4222_weekly_bin499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.35e-08', energy_flux2='1.96e-05', photon_flux_error='1.96e-08', dlogl='7.14e-01', energy_flux='2.45e-05', photon_flux2='6.11e-08', job_status='DONE', time_completed='2021-07-13 15:13:04.072038', photon_index_error2='0.38', photon_index2='2.41', ts='9.44', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='8.65e-06', EG='1.09', time_epoch_completed='1626214384.07', return_code='0', job_id='571565', GAL2='0.96', EG2='1.07', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='2.68e-08', ts2='10.83', photon_index='2.00' WHERE bin_id='499' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:13:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 571565: <4FGL_J0818.2+4222_weekly_bin499> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin499> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 07:40:49 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:41:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 12 07:41:21 2021
Terminated at Tue Jul 13 15:13:05 2021
Results reported at Tue Jul 13 15:13:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin499 124.557 42.3819 540777601 541382401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0818.2+4222 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1537.00 sec.
    Max Memory :                                 766 MB
    Average Memory :                             616.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   1586 sec.
    Turnaround time :                            113536 sec.

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

