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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin643
RA = 124.557, Dec = 42.3819
tmin = 627868801, tmax = 628473601
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='571759', job_status='RUN', time_executed='2021-07-13 14:54:54.850316', time_epoch_executed='1626213294.85' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571759

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571759/ft1_4FGL_J0818.2+4222_weekly_bin643.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571759/ft2_4FGL_J0818.2+4222_weekly_bin643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571759/ft1_4FGL_J0818.2+4222_weekly_bin643.fits outfile=/scratch/kocevski/571759/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin643.fits ra=124.557 dec=42.3819 rad=12.0 tmin=627868801.0 tmax=628473601.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 8.22
user 7.83
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571759/ft1_filtered_4FGL_J0818.2+4222_weekly_bin643.fits" evtable="EVENTS" scfile=/scratch/kocevski/571759/ft2_4FGL_J0818.2+4222_weekly_bin643.fits sctable="SC_DATA" outfile=/scratch/kocevski/571759/ltcube_627868801_628473601_4FGL_J0818.2+4222_weekly_bin643.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/571759/ft2_4FGL_J0818.2+4222_weekly_bin643.fits
.....................!
real 29.32
user 28.87
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571759/ft1_filtered_4FGL_J0818.2+4222_weekly_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/571759/ft2_4FGL_J0818.2+4222_weekly_bin643.fits sctable="SC_DATA" expcube=/scratch/kocevski/571759/ltcube_627868801_628473601_4FGL_J0818.2+4222_weekly_bin643.fits outfile=/scratch/kocevski/571759/expmap_627868801_628473601_4FGL_J0818.2+4222_weekly_bin643.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/571759/ltcube_627868801_628473601_4FGL_J0818.2+4222_weekly_bin643.fits
.....................!
real 193.53
user 186.66
sys 5.60

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/571759/ft1_filtered_4FGL_J0818.2+4222_weekly_bin643.fits scfile=/scratch/kocevski/571759/ft2_4FGL_J0818.2+4222_weekly_bin643.fits outfile=/scratch/kocevski/571759/cmap_627868801_628473601_4FGL_J0818.2+4222_weekly_bin643.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 0.63
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571759/ft1_filtered_4FGL_J0818.2+4222_weekly_bin643.fits scfile=/scratch/kocevski/571759/ft2_4FGL_J0818.2+4222_weekly_bin643.fits outfile=/scratch/kocevski/571759/cmap_HighResolution_627868801_628473601_4FGL_J0818.2+4222_weekly_bin643.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 0.60
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6768       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.0047       1.0000         .10000E-03   10000.    
     3 'Prefactor '    73.399       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3935       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8501       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7542       1.0000         .10000E-03   10000.    
    11 'norm      '    5.0197       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2118       1.0000         .10000E-03   10000.    
    13 'norm      '    .53429       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.443       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.1519       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .53743       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 '    .95533       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .26331       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12738E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91698       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1633       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=   16329.06     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     3416 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6769        4.0072       -.57527E-06   -.12822E-03
   2  Prefactor     9.0051        11.134       -.50049E-07   -.14328E-03
   3  Prefactor     73.400        25.407        .25490E-06    .25633E-04
   4  Prefactor     .10000E-03    2.9979        .25296E-07** at limit **
   5  Prefactor     .10000E-03    10.540       -.30584E-05** at limit **
   6  norm          .10000E-03    9.9222       -.24153E-06** at limit **
   7  norm          1.3935        1.1880        .93285E-08   -.48955E-05
   8  Prefactor     9.8501        4.9464        .59233E-07    .61243E-04
   9  Prefactor     .10000E-03    60.622        .10985E-05** at limit **
  10  Prefactor     2.7544        .69268        .59065E-07   -.21306E-02
  11  norm          5.0197        2.5778       -.35732E-08   -.53987E-04
  12  norm          1.2118        .81146       -.45635E-08   -.66911E-04
  13  norm          .53428        .28774       -.13150E-08    .34860E-04
  14  Prefactor     .10000E-03    10.010        .16123E-05** at limit **
  15  Prefactor     12.442        9.0713        .12541E-06    .43048E-04
  16  Prefactor     .10000E-03    .61356        .19144E-07** at limit **
  17  Prefactor     .10000E-03    10.388       -.12960E-05** at limit **
  18  Prefactor     8.1517        6.1464       -.33177E-07   -.63624E-04
  19  Prefactor     .10000E-03    4.4932        .53336E-05** at limit **
  20  norm          .10000E-03    1.4053       -.19121E-06** at limit **
  21  norm          .10000E-03    1.6464       -.12389E-06** at limit **
  22  Prefactor     .53766        .95878       -.17349E-06   -.61790E-03
  23  Prefactor     .10000E-03    13.614        .32513E-05** at limit **
  24  Prefactor     .10000E-03    7.7246        .21197E-05** at limit **
  25  Prefactor     .95849        1.8630       -.19889E-06    .10152E-03
  26  Prefactor     .10000E-03    4.0136       -.14599E-05** at limit **
  27  norm          .26345        .28011        .54328E-07    .45657E-02
  28  Prefactor     .10003E-03    .91907       -.67853E-06** at limit **
  29  Normalizat    .91695        .12014        .52586E-06    .20568E-03
  30  Prefactor     1.1633        .94300E-01   -.31772E-06    .21978E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.67688
  Prefactor  = 9.00513
  Prefactor  = 73.3995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.39347
  Prefactor  = 9.85006
  Prefactor  = 0.0001
  Prefactor  = 2.75444
  norm       = 5.01973
  norm       = 1.21178
  norm       = 0.534284
  Prefactor  = 0.0001
  Prefactor  = 12.4423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.15169
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.537657
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.95849
  Prefactor  = 0.0001
  norm       = 0.263452
  Prefactor  = 0.000100033
  Normalizat = 0.916947
  Prefactor  = 1.16329
 **********
 **   18 **HESSE 
 **********

 FCN=   16329.06     FROM HESSE     STATUS=OK           592 CALLS     4008 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6769        3.9961        .32541E-03   -1.5449    
   2  Prefactor     9.0051        11.260        .66783E-03   -1.5108    
   3  Prefactor     73.400        25.400        .46863E-04   -1.3992    
   4  Prefactor     .10000E-03    3.0195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.321        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3935        1.1817        .12481E-03   -1.5472    
   8  Prefactor     9.8501        4.9474        .12768E-03   -1.5080    
   9  Prefactor     .10000E-03    61.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7544        3.0114        .10862E-02   -1.5376    
  11  norm          5.0197        2.5705        .14034E-03   -1.5260    
  12  norm          1.2118        .80838        .90067E-04   -1.5488    
  13  norm          .53428        .29617        .47635E-03   -1.5562    
  14  Prefactor     .10000E-03    10.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.442        9.1167        .11356E-03   -1.5002    
  16  Prefactor     .10000E-03    .62033        .97543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.1517        6.1665        .70211E-03   -1.5137    
  19  Prefactor     .10000E-03    4.4846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.4232        .14786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.6643        .16008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .53766        .73311        .16043E-02   -1.5561    
  23  Prefactor     .10000E-03    13.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.7418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .95849        1.8553        .22867E-03   -1.5512    
  26  Prefactor     .10000E-03    4.0205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .26345        .22818        .59741E-03   -1.5605    
  28  Prefactor     .10003E-03    4.7870        .20080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .91695        .13507        .29240E-03   -.95867    
  30  Prefactor     1.1633        .10702        .21277E-03   -.87469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.52807e-09
Minuit parameter uncertainties:
  1  3.99678
  2  11.2628
  3  25.404
  4  1.10555e-06
  5  3.56787e-05
  6  2.97132e-06
  7  1.18177
  8  4.94764
  9  8.08152e-06
  10  3.01153
  11  2.57059
  12  0.808384
  13  0.296167
  14  2.60001e-05
  15  9.1177
  16  4.9837e-07
  17  2.21078e-05
  18  6.16697
  19  3.79204e-05
  20  9.56282e-07
  21  3.38704e-06
  22  0.733124
  23  6.8582e-05
  24  3.42541e-05
  25  1.85545
  26  1.48852e-05
  27  0.228178
  28  0.000790762
  29  0.135125
  30  0.107044
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  5.343e-01  2.962e-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:  1.163e+00  1.070e-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.169e-01  1.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.45
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.48e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 8.33e-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) = 16327.5141063
delta logL = 1.54957406793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16327.5073961
delta logL = 1.55628427295

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27518       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1943       1.0000          .0000       5.0000    
     3 'Normalizat'    .92460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1660       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=   16327.51     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      223 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27517        .16274        .86502E-02   -.13488E-02
   2  alpha         1.1943        .27839        .37770       -.97043E-04
   3  Normalizat    .92459        .11412        .65880E-01    .43685E-04
   4  Prefactor     1.1660        .92831E-01    .35490E-01    .71470E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.275168
  alpha      = 1.19431
  Normalizat = 0.924587
  Prefactor  = 1.16597
 **********
 **   18 **HESSE 
 **********

 FCN=   16327.51     FROM HESSE     STATUS=OK            35 CALLS      258 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27517        .25224        .35959E-03   -1.5603    
   2  alpha         1.1943        .44452        .15193E-01   -.54952    
   3  Normalizat    .92459        .12948        .29141E-03   -.95601    
   4  Prefactor     1.1660        .10555        .21264E-03   -.87385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85057e-09
Minuit parameter uncertainties:
  1  0.252244
  2  0.447802
  3  0.129523
  4  0.105572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571759': 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) = 16327.5073961
delta logL = 1.55628430031

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.752e-01  2.522e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.194e+00  4.478e-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:  1.166e+00  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.246e-01  1.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.58
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.19 +/- 0.45
Photon Flux (Free Index): 9.19e-09 +/- 7.78e-09
Energy Flux (Free Index): 3.53e-05 +/- 2.97e-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/571759/cmap_HighResolution_627868801_628473601_4FGL_J0818.2+4222_weekly_bin643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='3.53e-05', photon_flux_error='1.48e-08', dlogl='1.56e+00', energy_flux='1.50e-05', photon_flux2='9.19e-09', job_status='DONE', time_completed='2021-07-13 15:26:12.434601', photon_index_error2='0.45', photon_index2='1.19', ts='14.45', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='2.97e-05', EG='0.92', time_epoch_completed='1626215172.43', return_code='0', job_id='571759', GAL2='1.17', EG2='0.92', return_code2='0', energy_flux_error='8.33e-06', photon_flux_error2='7.78e-09', ts2='17.58', photon_index='2.00' WHERE bin_id='643' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:26:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 571759: <4FGL_J0818.2+4222_weekly_bin643> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin643> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 07:41:06 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:44: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:44:21 2021
Terminated at Tue Jul 13 15:26:13 2021
Results reported at Tue Jul 13 15:26:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin643 124.557 42.3819 627868801 628473601 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 :                                   1502.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             51.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2196 sec.
    Turnaround time :                            114307 sec.

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

