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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin346
RA = 124.557, Dec = 42.3819
tmin = 448243201, tmax = 448848001
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='569117', job_status='RUN', time_executed='2021-07-12 07:39:55.229955', time_epoch_executed='1626100795.23' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569117

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569117/ft1_4FGL_J0818.2+4222_weekly_bin346.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569117/ft2_4FGL_J0818.2+4222_weekly_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569117/ft1_4FGL_J0818.2+4222_weekly_bin346.fits outfile=/scratch/kocevski/569117/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin346.fits ra=124.557 dec=42.3819 rad=12.0 tmin=448243201.0 tmax=448848001.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 13.75
user 12.05
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/569117/ft2_4FGL_J0818.2+4222_weekly_bin346.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/569117/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin346.fits evtable="EVENTS" outfile="/scratch/kocevski/569117/ft1_filtered_4FGL_J0818.2+4222_weekly_bin346.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.85
user 0.39
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569117/ft1_filtered_4FGL_J0818.2+4222_weekly_bin346.fits" evtable="EVENTS" scfile=/scratch/kocevski/569117/ft2_4FGL_J0818.2+4222_weekly_bin346.fits sctable="SC_DATA" outfile=/scratch/kocevski/569117/ltcube_448243201_448848001_4FGL_J0818.2+4222_weekly_bin346.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/569117/ft2_4FGL_J0818.2+4222_weekly_bin346.fits
.....................!
real 30.54
user 29.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569117/ft1_filtered_4FGL_J0818.2+4222_weekly_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/569117/ft2_4FGL_J0818.2+4222_weekly_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/569117/ltcube_448243201_448848001_4FGL_J0818.2+4222_weekly_bin346.fits outfile=/scratch/kocevski/569117/expmap_448243201_448848001_4FGL_J0818.2+4222_weekly_bin346.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/569117/ltcube_448243201_448848001_4FGL_J0818.2+4222_weekly_bin346.fits
.....................!
real 200.31
user 188.15
sys 5.34

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/569117/ft1_filtered_4FGL_J0818.2+4222_weekly_bin346.fits scfile=/scratch/kocevski/569117/ft2_4FGL_J0818.2+4222_weekly_bin346.fits outfile=/scratch/kocevski/569117/cmap_448243201_448848001_4FGL_J0818.2+4222_weekly_bin346.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.85
user 0.43
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569117/ft1_filtered_4FGL_J0818.2+4222_weekly_bin346.fits scfile=/scratch/kocevski/569117/ft2_4FGL_J0818.2+4222_weekly_bin346.fits outfile=/scratch/kocevski/569117/cmap_HighResolution_448243201_448848001_4FGL_J0818.2+4222_weekly_bin346.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.47
user 0.44
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.778       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1925       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9323       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4223       1.0000         .10000E-03   10000.    
     6 'norm      '    5.3857       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0535       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0771       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.898       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7146       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5841       1.0000         .10000E-03   10000.    
    13 'norm      '    .83708       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1402       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.553       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5983       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.3909       1.0000         .10000E-03   10000.    
    21 'norm      '    1.9509       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0708       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10608E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.611       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11021E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.8728       1.0000         .10000E-03   10000.    
    27 'norm      '    .94111E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .24264       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .90237       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91578       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13529.77     FROM MIGRAD    STATUS=CONVERGED    796 CALLS     4023 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.779        7.0126        .15061E-07   -.87552E-04
   2  Prefactor     3.1935        5.9774        .12793E-05    .10688E-03
   3  Prefactor     .10000E-03    11.874       -.21050E-06** at limit **
   4  Prefactor     2.9329        7.3705        .81995E-06   -.48218E-04
   5  Prefactor     5.4224        8.9047        .34274E-06   -.31593E-04
   6  norm          5.3867        6.6694        .58318E-06    .44055E-04
   7  norm          1.0536        1.0167       -.51359E-07    .24301E-04
   8  Prefactor     3.0763        4.1562        .52628E-06   -.59282E-04
   9  Prefactor     19.920        23.268       -.21998E-05   -.22808E-03
  10  Prefactor     5.7142        2.9873       -.13533E-07   -.22201E-03
  11  norm          .10000E-03    1.1007        .44581E-08** at limit **
  12  norm          3.5843        1.4125        .24426E-07   -.24802E-04
  13  norm          .83711        .35019       -.52627E-07   -.62694E-03
  14  Prefactor     .10000E-03    15.750        .33584E-06** at limit **
  15  Prefactor     1.1400        8.8462        .35929E-05   -.15530E-03
  16  Prefactor     .10000E-03    .67669       -.18486E-06** at limit **
  17  Prefactor     14.557        16.222       -.51145E-06   -.91788E-04
  18  Prefactor     5.5965        5.7736       -.11226E-06   -.20179E-03
  19  Prefactor     .10000E-03    1.9309       -.53901E-07** at limit **
  20  norm          7.3924        4.0047       -.83992E-07   -.97822E-04
  21  norm          1.9521        3.7567        .96360E-06   -.23864E-03
  22  Prefactor     1.0729        1.8411        .57854E-06   -.35211E-03
  23  Prefactor     .10000E-03    20.320       -.29063E-06** at limit **
  24  Prefactor     16.528        36.972       -.17301E-05   -.11319E-03
  25  Prefactor     .10000E-03    .79824        .65440E-07** at limit **
  26  Prefactor     4.8777        22.043        .12526E-05    .16948E-05
  27  norm          .96948E-01    .24359        .77014E-07   -.15147E-02
  28  Prefactor     .21259        1.1412       -.49305E-07   -.41105E-03
  29  Normalizat    .90248        .12056       -.45454E-06   -.21531E-03
  30  Prefactor     .91569        .91441E-01   -.30538E-06   -.18174E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.7788
  Prefactor  = 3.19354
  Prefactor  = 0.0001
  Prefactor  = 2.93293
  Prefactor  = 5.42241
  norm       = 5.3867
  norm       = 1.05356
  Prefactor  = 3.07631
  Prefactor  = 19.9198
  Prefactor  = 5.71423
  norm       = 0.0001
  norm       = 3.58428
  norm       = 0.837112
  Prefactor  = 0.0001
  Prefactor  = 1.14004
  Prefactor  = 0.0001
  Prefactor  = 14.5572
  Prefactor  = 5.59646
  Prefactor  = 0.0001
  norm       = 7.39239
  norm       = 1.95209
  Prefactor  = 1.07294
  Prefactor  = 0.0001
  Prefactor  = 16.5277
  Prefactor  = 0.0001
  Prefactor  = 4.87768
  norm       = 0.096948
  Prefactor  = 0.212592
  Normalizat = 0.902482
  Prefactor  = 0.915692
 **********
 **   18 **HESSE 
 **********

 FCN=   13529.77     FROM HESSE     STATUS=OK           608 CALLS     4631 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.779        7.0221        .83926E-04   -1.4753    
   2  Prefactor     3.1935        5.9752        .22678E-03   -1.5351    
   3  Prefactor     .10000E-03    11.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9329        7.3103        .23721E-03   -1.5365    
   5  Prefactor     5.4224        8.8855        .17257E-03   -1.5242    
   6  norm          5.3867        6.6632        .17316E-03   -1.5244    
   7  norm          1.0536        1.0303        .10882E-03   -1.5503    
   8  Prefactor     3.0763        4.1284        .23123E-03   -1.5357    
   9  Prefactor     19.920        23.833        .89790E-04   -1.4815    
  10  Prefactor     5.7142        2.9702        .13558E-03   -1.5230    
  11  norm          .10000E-03    1.1134        .11905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5843        1.4111        .83842E-04   -1.5329    
  13  norm          .83711        .34434        .41721E-04   -1.5525    
  14  Prefactor     .10000E-03    15.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1400        9.2318        .43546E-03   -1.5494    
  16  Prefactor     .10000E-03    .70272        .18670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.557        16.161        .10499E-03   -1.4945    
  18  Prefactor     5.5965        5.7685        .16979E-03   -1.5235    
  19  Prefactor     .10000E-03    1.9388        .15783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.3924        3.9902        .14753E-03   -1.5164    
  21  norm          1.9521        3.7597        .29711E-03   -1.5429    
  22  Prefactor     1.0729        1.8265        .18798E-03   -1.5501    
  23  Prefactor     .10000E-03    20.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.528        36.723        .98270E-04   -1.4895    
  25  Prefactor     .10000E-03    1.3219        .19639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.8777        20.850        .18222E-03   -1.5266    
  27  norm          .96948E-01    .54197        .74791E-03   -1.5646    
  28  Prefactor     .21259        14.355        .20005E-02   -1.5616    
  29  Normalizat    .90248        .13863        .25990E-03   -.96373    
  30  Prefactor     .91569        .10555        .20818E-03   -.95595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30463e-10
Minuit parameter uncertainties:
  1  7.02237
  2  5.9763
  3  1.67944e-05
  4  7.31257
  5  8.88766
  6  6.66412
  7  1.03036
  8  4.12879
  9  23.8442
  10  2.97023
  11  9.40127e-08
  12  1.41111
  13  0.344338
  14  2.51071e-05
  15  6.48941
  16  4.41885e-06
  17  16.1654
  18  5.76905
  19  2.49302e-06
  20  3.99038
  21  3.76012
  22  1.82656
  23  4.05081e-05
  24  36.7732
  25  2.90057e-07
  26  20.181
  27  0.458216
  28  3.49393
  29  0.138684
  30  0.105577
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  8.371e-01  3.443e-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.157e-01  1.056e-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:  9.025e-01  1.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.67
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.18e-08 +/- 1.72e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 9.68e-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) = 13529.6059563
delta logL = 0.163106698352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13529.6040898
delta logL = 0.164973154133

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85075       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8070       1.0000          .0000       5.0000    
     3 'Normalizat'    .90842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91335       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=   13529.60     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      225 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85077        7.6788        .96133E-02    .14785E-02
   2  alpha         1.8070        3.2951        .34320       -.34168E-05
   3  Normalizat    .90842        .10367        .45009E-01   -.44897E-04
   4  Prefactor     .91335        .82613E-01    .45175E-01    .11113E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.850766
  alpha      = 1.80697
  Normalizat = 0.908418
  Prefactor  = 0.913353
 **********
 **   18 **HESSE 
 **********

 FCN=   13529.60     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85077        .34782        .42840E-04   -1.5523    
   2  alpha         1.8070        .32247        .13192E-01   -.28089    
   3  Normalizat    .90842        .12498        .25919E-03   -.96165    
   4  Prefactor     .91335        .10125        .20844E-03   -.95676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.29988e-11
Minuit parameter uncertainties:
  1  0.347823
  2  0.323443
  3  0.12502
  4  0.101267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569117': 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) = 13529.6040898
delta logL = 0.16497315613

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  8.508e-01  3.478e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.807e+00  3.234e-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.134e-01  1.013e-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:  9.084e-01  1.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.03
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.81 +/- 0.32
Photon Flux (Free Index): 3.57e-08 +/- 1.79e-08
Energy Flux (Free Index): 2.89e-05 +/- 1.64e-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/569117/cmap_HighResolution_448243201_448848001_4FGL_J0818.2+4222_weekly_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.18e-08', energy_flux2='2.89e-05', photon_flux_error='1.72e-08', dlogl='1.65e-01', energy_flux='2.35e-05', photon_flux2='3.57e-08', job_status='DONE', time_completed='2021-07-13 15:10:50.416581', photon_index_error2='0.32', photon_index2='1.81', ts='14.67', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='0.90', time_epoch_completed='1626214250.42', return_code='0', job_id='569117', GAL2='0.91', EG2='0.91', return_code2='0', energy_flux_error='9.68e-06', photon_flux_error2='1.79e-08', ts2='15.03', photon_index='2.00' WHERE bin_id='346' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:10:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 569117: <4FGL_J0818.2+4222_weekly_bin346> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin346 124.557 42.3819 448243201 448848001 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 :                                   1457.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             614.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1919 sec.
    Turnaround time :                            113931 sec.

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

