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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin311
RA = 124.557, Dec = 42.3819
tmin = 427075201, tmax = 427680001
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='569079', job_status='RUN', time_executed='2021-07-12 07:39:03.652901', time_epoch_executed='1626100743.65' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569079

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569079/ft1_4FGL_J0818.2+4222_weekly_bin311.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569079/ft2_4FGL_J0818.2+4222_weekly_bin311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569079/ft1_4FGL_J0818.2+4222_weekly_bin311.fits outfile=/scratch/kocevski/569079/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin311.fits ra=124.557 dec=42.3819 rad=12.0 tmin=427075201.0 tmax=427680001.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.82
user 11.82
sys 0.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/569079/ft2_4FGL_J0818.2+4222_weekly_bin311.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/569079/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin311.fits evtable="EVENTS" outfile="/scratch/kocevski/569079/ft1_filtered_4FGL_J0818.2+4222_weekly_bin311.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.80
user 0.38
sys 0.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569079/ft1_filtered_4FGL_J0818.2+4222_weekly_bin311.fits" evtable="EVENTS" scfile=/scratch/kocevski/569079/ft2_4FGL_J0818.2+4222_weekly_bin311.fits sctable="SC_DATA" outfile=/scratch/kocevski/569079/ltcube_427075201_427680001_4FGL_J0818.2+4222_weekly_bin311.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/569079/ft2_4FGL_J0818.2+4222_weekly_bin311.fits
.....................!
real 30.96
user 29.04
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569079/ft1_filtered_4FGL_J0818.2+4222_weekly_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/569079/ft2_4FGL_J0818.2+4222_weekly_bin311.fits sctable="SC_DATA" expcube=/scratch/kocevski/569079/ltcube_427075201_427680001_4FGL_J0818.2+4222_weekly_bin311.fits outfile=/scratch/kocevski/569079/expmap_427075201_427680001_4FGL_J0818.2+4222_weekly_bin311.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/569079/ltcube_427075201_427680001_4FGL_J0818.2+4222_weekly_bin311.fits
.....................!
real 202.92
user 185.96
sys 5.56

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/569079/ft1_filtered_4FGL_J0818.2+4222_weekly_bin311.fits scfile=/scratch/kocevski/569079/ft2_4FGL_J0818.2+4222_weekly_bin311.fits outfile=/scratch/kocevski/569079/cmap_427075201_427680001_4FGL_J0818.2+4222_weekly_bin311.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.86
user 0.42
sys 0.19

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5830       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2602       1.0000         .10000E-03   10000.    
     6 'norm      '    6.5346       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2272       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8210       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1050       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0156       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.791       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8742       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2630       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.270       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4443       1.0000         .10000E-03   10000.    
    20 'norm      '    10.633       1.0000         .10000E-03   10000.    
    21 'norm      '    .71043       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13311E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    76.860       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.2106       1.0000         .10000E-03   10000.    
    26 'Prefactor '    29.455       1.0000         .10000E-03   10000.    
    27 'norm      '    .24651       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1197       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93879       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=   15772.17     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3415 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0646       -.10869E-06** at limit **
   2  Prefactor     .10000E-03    2.7782       -.37647E-06** at limit **
   3  Prefactor     .10000E-03    7.1527       -.87687E-06** at limit **
   4  Prefactor     3.5848        7.0377       -.62065E-06    .39474E-04
   5  Prefactor     3.2609        6.1774       -.75051E-07   -.37486E-04
   6  norm          6.5364        8.7680       -.95921E-06    .67396E-05
   7  norm          1.2273        1.0857        .17930E-07    .16665E-03
   8  Prefactor     1.8214        3.3024       -.28174E-07   -.30075E-03
   9  Prefactor     .10000E-03    33.476       -.36711E-04** at limit **
  10  Prefactor     .10000E-03    3.0496       -.58015E-06** at limit **
  11  norm          .10000E-03    .74940       -.10920E-06** at limit **
  12  norm          1.1050        .74316       -.43885E-07    .25502E-04
  13  norm          1.0157        .48487        .11396E-06    .17715E-02
  14  Prefactor     24.793        18.208        .83903E-06    .96375E-05
  15  Prefactor     9.8748        10.628        .20303E-06    .91519E-04
  16  Prefactor     1.2631        1.5604       -.19914E-07    .47120E-05
  17  Prefactor     18.267        20.725       -.31309E-05   -.27568E-05
  18  Prefactor     .10000E-03    5.2721        .65305E-06** at limit **
  19  Prefactor     6.4440        4.3065        .56955E-07    .28329E-05
  20  norm          10.626        5.3216        .48262E-06   -.29870E-03
  21  norm          .71215        .89153        .33162E-07   -.15082E-02
  22  Prefactor     .10000E-03    .68015        .33779E-06** at limit **
  23  Prefactor     76.846        49.906       -.13733E-04   -.71080E-04
  24  Prefactor     .10000E-03    30.771        .33619E-04** at limit **
  25  Prefactor     1.2104        1.6567       -.11949E-06   -.45138E-03
  26  Prefactor     29.454        15.278        .90178E-08   -.46725E-03
  27  norm          .24628        .28442       -.94223E-07   -.23402E-02
  28  Prefactor     .10000E-03    1.4241        .38927E-06** at limit **
  29  Normalizat    1.1196        .12389        .13855E-05   -.13893E-03
  30  Prefactor     .93874        .90332E-01   -.83174E-08    .24330E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.5848
  Prefactor  = 3.26089
  norm       = 6.53638
  norm       = 1.22729
  Prefactor  = 1.82138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.10503
  norm       = 1.01567
  Prefactor  = 24.7932
  Prefactor  = 9.87477
  Prefactor  = 1.26311
  Prefactor  = 18.2672
  Prefactor  = 0.0001
  Prefactor  = 6.44402
  norm       = 10.6265
  norm       = 0.712148
  Prefactor  = 0.000100001
  Prefactor  = 76.8463
  Prefactor  = 0.000100001
  Prefactor  = 1.21044
  Prefactor  = 29.4537
  norm       = 0.246277
  Prefactor  = 0.0001
  Normalizat = 1.11965
  Prefactor  = 0.938744
 **********
 **   18 **HESSE 
 **********

 FCN=   15772.17     FROM HESSE     STATUS=OK           598 CALLS     4013 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0852        .17619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.1705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5848        6.9950        .21349E-03   -1.5329    
   5  Prefactor     3.2609        6.1684        .11215E-02   -1.5347    
   6  norm          6.5364        8.7665        .15699E-03   -1.5197    
   7  norm          1.2273        1.0777        .11767E-03   -1.5486    
   8  Prefactor     1.8214        3.3701        .15256E-02   -1.5438    
   9  Prefactor     .10000E-03    33.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .76045        .10612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1050        .73947        .86343E-04   -1.5498    
  13  norm          1.0157        .46581        .54547E-04   -1.5506    
  14  Prefactor     24.793        18.215        .80452E-04   -1.4712    
  15  Prefactor     9.8748        10.399        .12752E-03   -1.5079    
  16  Prefactor     1.2631        1.5094        .15798E-03   -1.5483    
  17  Prefactor     18.267        20.669        .93702E-04   -1.4853    
  18  Prefactor     .10000E-03    5.3209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4440        4.3154        .15810E-03   -1.5200    
  20  norm          10.626        5.3298        .61435E-03   -1.5056    
  21  norm          .71215        4.1794        .23723E-02   -1.5539    
  22  Prefactor     .10000E-03    2.3123        .19323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     76.846        49.927        .45803E-04   -1.3952    
  24  Prefactor     .10000E-03    30.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.2104        1.6234        .18005E-03   -1.5488    
  26  Prefactor     29.454        15.259        .73821E-04   -1.4622    
  27  norm          .24628        .23755        .63849E-03   -1.5609    
  28  Prefactor     .10000E-03    2.7442        .26384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1196        .14259        .26955E-03   -.89124    
  30  Prefactor     .93874        .10508        .22304E-03   -.94800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91597e-09
Minuit parameter uncertainties:
  1  3.21531e-06
  2  3.27811e-06
  3  3.25922e-06
  4  6.99664
  5  6.16955
  6  8.76823
  7  1.07771
  8  3.3704
  9  0.000151725
  10  1.37549e-05
  11  5.788e-07
  12  0.739478
  13  0.465812
  14  18.219
  15  10.4008
  16  1.50948
  17  20.6775
  18  2.77949e-05
  19  4.31557
  20  5.33003
  21  3.45054
  22  8.61658e-05
  23  49.9546
  24  0.000257432
  25  1.62341
  26  15.2613
  27  0.237555
  28  1.02423e-05
  29  0.142637
  30  0.105099
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.016e+00  4.658e-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.387e-01  1.051e-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.120e+00  1.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.71
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.07e-08 +/- 2.32e-08
Energy Flux (Fixed Index): 2.86e-05 +/- 1.31e-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) = 15771.3308152
delta logL = 0.841442890154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15771.3291404
delta logL = 0.843117672159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93657       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4592       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95039       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=   15771.33     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      219 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93655        3.7127        .10101E-01    .16550E-03
   2  alpha         2.4592        3.5627        .33364        .11391E-03
   3  Normalizat    1.0894        .39834E-01    .61635E-01    .27832E-03
   4  Prefactor     .95038        .29333E-01    .45644E-01   -.11062E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.936548
  alpha      = 2.45925
  Normalizat = 1.08939
  Prefactor  = 0.950376
 **********
 **   18 **HESSE 
 **********

 FCN=   15771.33     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93655        .44082        .45469E-04   -1.5514    
   2  alpha         2.4592        .37867        .12214E-01   -.16301E-01
   3  Normalizat    1.0894        .13682        .27261E-03   -.90093    
   4  Prefactor     .95038        .10390        .22172E-03   -.94402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04439e-10
Minuit parameter uncertainties:
  1  0.440823
  2  0.380131
  3  0.136865
  4  0.103927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569079': 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) = 15771.3291403
delta logL = 0.843117721934

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.365e-01  4.408e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.459e+00  3.801e-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.504e-01  1.039e-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.089e+00  1.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.37
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.46 +/- 0.38
Photon Flux (Free Index): 8.02e-08 +/- 3.59e-08
Energy Flux (Free Index): 2.45e-05 +/- 1.01e-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/569079/cmap_HighResolution_427075201_427680001_4FGL_J0818.2+4222_weekly_bin311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.07e-08', energy_flux2='2.45e-05', photon_flux_error='2.32e-08', dlogl='8.43e-01', energy_flux='2.86e-05', photon_flux2='8.02e-08', job_status='DONE', time_completed='2021-07-13 15:10:16.360742', photon_index_error2='0.38', photon_index2='2.46', ts='8.71', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='1.12', time_epoch_completed='1626214216.36', return_code='0', job_id='569079', GAL2='0.95', EG2='1.09', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='3.59e-08', ts2='10.37', photon_index='2.00' WHERE bin_id='311' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:10:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 569079: <4FGL_J0818.2+4222_weekly_bin311> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin311 124.557 42.3819 427075201 427680001 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 :                                   1468.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             614.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1920 sec.
    Turnaround time :                            113904 sec.

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

