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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin318
RA = 124.557, Dec = 42.3819
tmin = 431308801, tmax = 431913601
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='569088', job_status='RUN', time_executed='2021-07-12 07:39:41.483345', time_epoch_executed='1626100781.48' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569088

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569088/ft1_4FGL_J0818.2+4222_weekly_bin318.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569088/ft2_4FGL_J0818.2+4222_weekly_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569088/ft1_4FGL_J0818.2+4222_weekly_bin318.fits outfile=/scratch/kocevski/569088/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin318.fits ra=124.557 dec=42.3819 rad=12.0 tmin=431308801.0 tmax=431913601.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 14.91
user 12.54
sys 0.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/569088/ft2_4FGL_J0818.2+4222_weekly_bin318.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/569088/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin318.fits evtable="EVENTS" outfile="/scratch/kocevski/569088/ft1_filtered_4FGL_J0818.2+4222_weekly_bin318.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 2.10
user 0.37
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569088/ft1_filtered_4FGL_J0818.2+4222_weekly_bin318.fits" evtable="EVENTS" scfile=/scratch/kocevski/569088/ft2_4FGL_J0818.2+4222_weekly_bin318.fits sctable="SC_DATA" outfile=/scratch/kocevski/569088/ltcube_431308801_431913601_4FGL_J0818.2+4222_weekly_bin318.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/569088/ft2_4FGL_J0818.2+4222_weekly_bin318.fits
.....................!
real 33.04
user 31.28
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569088/ft1_filtered_4FGL_J0818.2+4222_weekly_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/569088/ft2_4FGL_J0818.2+4222_weekly_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/569088/ltcube_431308801_431913601_4FGL_J0818.2+4222_weekly_bin318.fits outfile=/scratch/kocevski/569088/expmap_431308801_431913601_4FGL_J0818.2+4222_weekly_bin318.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/569088/ltcube_431308801_431913601_4FGL_J0818.2+4222_weekly_bin318.fits
.....................!
real 196.59
user 185.06
sys 5.39

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/569088/ft1_filtered_4FGL_J0818.2+4222_weekly_bin318.fits scfile=/scratch/kocevski/569088/ft2_4FGL_J0818.2+4222_weekly_bin318.fits outfile=/scratch/kocevski/569088/cmap_431308801_431913601_4FGL_J0818.2+4222_weekly_bin318.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.48
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569088/ft1_filtered_4FGL_J0818.2+4222_weekly_bin318.fits scfile=/scratch/kocevski/569088/ft2_4FGL_J0818.2+4222_weekly_bin318.fits outfile=/scratch/kocevski/569088/cmap_HighResolution_431308801_431913601_4FGL_J0818.2+4222_weekly_bin318.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 2.76
user 0.42
sys 0.20

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/569088/ft1_filtered_4FGL_J0818.2+4222_weekly_bin318.fits', '/scratch/kocevski/569088/ft2_4FGL_J0818.2+4222_weekly_bin318.fits', expMap='/scratch/kocevski/569088/expmap_431308801_431913601_4FGL_J0818.2+4222_weekly_bin318.fits', expCube='/scratch/kocevski/569088/ltcube_431308801_431913601_4FGL_J0818.2+4222_weekly_bin318.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/569088/Model_4FGL_J0818.2+4222_weekly_bin318.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/569088/ft1_filtered_4FGL_J0818.2+4222_weekly_bin318.fits
Spacecraft file(s): /scratch/kocevski/569088/ft2_4FGL_J0818.2+4222_weekly_bin318.fits
Exposure map: /scratch/kocevski/569088/expmap_431308801_431913601_4FGL_J0818.2+4222_weekly_bin318.fits
Exposure cube: /scratch/kocevski/569088/ltcube_431308801_431913601_4FGL_J0818.2+4222_weekly_bin318.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/569088/Model_4FGL_J0818.2+4222_weekly_bin318.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) = 15636.9067675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4946       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1980       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5660       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17955       1.0000         .10000E-03   10000.    
     6 'norm      '    .97226       1.0000         .10000E-03   10000.    
     7 'norm      '    .40719       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0703       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0730       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1628       1.0000         .10000E-03   10000.    
    13 'norm      '    .83244       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6638       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.136       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    22.907       1.0000         .10000E-03   10000.    
    21 'norm      '    3.6938       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7663       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.243       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    49.291       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.4953       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0881       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96012       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=   15636.90     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3961 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1359         .0000    ** at limit **
   2  Prefactor     8.4943        7.3216         .0000        .20430E-02
   3  Prefactor     4.1965        14.276         .0000        .20702E-02
   4  Prefactor     4.5664        4.5035         .0000        .14625E-03
   5  Prefactor     .10665        4.4473         .0000        .42203E-03
   6  norm          .97168        4.7212         .0000        .70246E-01
   7  norm          .40709        .94197         .0000        .31013E-02
   8  Prefactor     6.0740        4.3996         .0000        .93100E-03
   9  Prefactor     3.0756        22.567         .0000       -.44106E-03
  10  Prefactor     .10000E-03    1.7263         .0000    ** at limit **
  11  norm          .10000E-03    .75833         .0000    ** at limit **
  12  norm          2.1626        1.1668         .0000        .65577E-03
  13  norm          .83244        .35731         .0000        .11237E-02
  14  Prefactor     .10000E-03    14.113         .0000    ** at limit **
  15  Prefactor     .10000E-03    4.6564         .0000    ** at limit **
  16  Prefactor     1.6642        1.8196         .0000        .18475E-02
  17  Prefactor     34.135        18.161         .0000        .12646E-02
  18  Prefactor     .10000E-03    3.2023         .0000    ** at limit **
  19  Prefactor     .10000E-03    1.6385         .0000    ** at limit **
  20  norm          22.907        5.8495         .0000        .29840E-02
  21  norm          3.6938        2.9688         .0000       -.60221E-03
  22  Prefactor     2.7662        2.0545         .0000        .11910E-02
  23  Prefactor     30.244        46.594         .0000        .23350E-03
  24  Prefactor     .10000E-03    32.925         .0000    ** at limit **
  25  Prefactor     .10000E-03    .84822         .0000    ** at limit **
  26  Prefactor     49.278        21.894         .0000        .29729E-02
  27  norm          .10000E-03    .19898         .0000    ** at limit **
  28  Prefactor     5.4945        3.0571         .0000        .95278E-03
  29  Normalizat    1.0880        .12614         .0000        .11141E-04
  30  Prefactor     .96024        .91239E-01     .0000        .93505E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 8.49426
  Prefactor  = 4.19649
  Prefactor  = 4.56635
  Prefactor  = 0.106647
  norm       = 0.971681
  norm       = 0.407087
  Prefactor  = 6.07397
  Prefactor  = 3.07556
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.16264
  norm       = 0.832437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.66417
  Prefactor  = 34.1354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.9068
  norm       = 3.69378
  Prefactor  = 2.76619
  Prefactor  = 30.2438
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 49.2776
  norm       = 0.0001
  Prefactor  = 5.49452
  Normalizat = 1.08803
  Prefactor  = 0.960238
 **********
 **   18 **HESSE 
 **********

 FCN=   15636.90     FROM HESSE     STATUS=OK           600 CALLS     4561 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1415        .13014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.4943        7.3197        .13754E-03   -1.5125    
   3  Prefactor     4.1965        14.269        .98346E-03   -1.5298    
   4  Prefactor     4.5664        4.4689        .18839E-03   -1.5281    
   5  Prefactor     .10665        5.2476        .85421E-01   -1.5643    
   6  norm          .97168        4.6197        .26135E-02   -1.5511    
   7  norm          .40709        .98104        .17506E-02   -1.5580    
   8  Prefactor     6.0740        4.3879        .16296E-03   -1.5215    
   9  Prefactor     3.0756        22.383        .23139E-03   -1.5357    
  10  Prefactor     .10000E-03    1.7633        .16016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .76159        .10625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1626        1.1626        .95887E-04   -1.5414    
  13  norm          .83244        .35386        .46775E-04   -1.5525    
  14  Prefactor     .10000E-03    14.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6642        1.7989        .16645E-03   -1.5450    
  17  Prefactor     34.135        18.160        .68587E-04   -1.4539    
  18  Prefactor     .10000E-03    3.2300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.6501        .15631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.907        5.8459        .83691E-04   -1.4750    
  21  norm          3.6938        2.9660        .18661E-03   -1.5324    
  22  Prefactor     2.7662        2.0428        .14331E-03   -1.5375    
  23  Prefactor     30.244        46.589        .72856E-04   -1.4608    
  24  Prefactor     .10000E-03    33.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.8983        .21477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     49.278        21.541        .57118E-04   -1.4303    
  27  norm          .10000E-03    .19913        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.4945        3.0366        .15244E-03   -1.5239    
  29  Normalizat    1.0880        .14634        .27634E-03   -.90137    
  30  Prefactor     .96024        .10617        .22331E-03   -.94067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86841e-08
Minuit parameter uncertainties:
  1  2.88748e-06
  2  7.32051
  3  14.2809
  4  4.4692
  5  1.49562
  6  4.23771
  7  0.981081
  8  4.38808
  9  16.6025
  10  8.85291e-06
  11  1.8847e-06
  12  1.16262
  13  0.353864
  14  2.3991e-05
  15  1.25085e-05
  16  1.79899
  17  18.1625
  18  1.75916e-05
  19  1.52859e-06
  20  5.84608
  21  2.96608
  22  2.0428
  23  46.6454
  24  0.000300723
  25  1.13185e-05
  26  21.544
  27  2.10405e-07
  28  3.0367
  29  0.146394
  30  0.106196
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  8.324e-01  3.539e-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.602e-01  1.062e-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.088e+00  1.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.56
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.16e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 9.95e-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) = 15636.8914102
delta logL = 0.0129869387038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15636.8910673
delta logL = 0.0133298203637

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .82486       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9322       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95943       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=   15636.89     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      216 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82491        6.2809        .10608E-01    .49583E-03
   2  alpha         1.9322        3.4261        .42580       -.23574E-04
   3  Normalizat    1.0907        .71924E-01    .62410E-01    .29267E-04
   4  Prefactor     .95943        .45536E-01    .45758E-01    .18165E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.824914
  alpha      = 1.93219
  Normalizat = 1.09074
  Prefactor  = 0.959426
 **********
 **   18 **HESSE 
 **********

 FCN=   15636.89     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82491        .35582        .47067E-04   -1.5526    
   2  alpha         1.9322        .38606        .14932E-01   -.22912    
   3  Normalizat    1.0907        .13540        .27605E-03   -.90050    
   4  Prefactor     .95943        .10348        .22341E-03   -.94094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68819e-13
Minuit parameter uncertainties:
  1  0.35582
  2  0.387693
  3  0.135444
  4  0.103504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569088': 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) = 15636.8910673
delta logL = 0.013329833937

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  8.249e-01  3.558e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.932e+00  3.877e-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.594e-01  1.035e-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.091e+00  1.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.58
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.93 +/- 0.39
Photon Flux (Free Index): 3.87e-08 +/- 2.35e-08
Energy Flux (Free Index): 2.44e-05 +/- 1.26e-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/569088/cmap_HighResolution_431308801_431913601_4FGL_J0818.2+4222_weekly_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.16e-08', energy_flux2='2.44e-05', photon_flux_error='1.77e-08', dlogl='1.33e-02', energy_flux='2.34e-05', photon_flux2='3.87e-08', job_status='DONE', time_completed='2021-07-13 15:12:49.600185', photon_index_error2='0.39', photon_index2='1.93', ts='15.56', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='1.09', time_epoch_completed='1626214369.6', return_code='0', job_id='569088', GAL2='0.96', EG2='1.09', return_code2='0', energy_flux_error='9.95e-06', photon_flux_error2='2.35e-08', ts2='15.58', photon_index='2.00' WHERE bin_id='318' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:12:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 569088: <4FGL_J0818.2+4222_weekly_bin318> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin318> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 12 07:31:55 2021
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:33: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 07:33:06 2021
Terminated at Tue Jul 13 15:12:50 2021
Results reported at Tue Jul 13 15:12:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin318 124.557 42.3819 431308801 431913601 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 :                                   1595.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             614.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   2065 sec.
    Turnaround time :                            114055 sec.

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

