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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin420
RA = 124.557, Dec = 42.3819
tmin = 492998401, tmax = 493603201
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='569254', job_status='RUN', time_executed='2021-07-12 07:39:59.439436', time_epoch_executed='1626100799.44' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569254

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569254/ft1_4FGL_J0818.2+4222_weekly_bin420.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569254/ft2_4FGL_J0818.2+4222_weekly_bin420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569254/ft1_4FGL_J0818.2+4222_weekly_bin420.fits outfile=/scratch/kocevski/569254/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin420.fits ra=124.557 dec=42.3819 rad=12.0 tmin=492998401.0 tmax=493603201.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 10.18
user 8.62
sys 0.33

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569254/ft1_filtered_4FGL_J0818.2+4222_weekly_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/569254/ft2_4FGL_J0818.2+4222_weekly_bin420.fits sctable="SC_DATA" expcube=/scratch/kocevski/569254/ltcube_492998401_493603201_4FGL_J0818.2+4222_weekly_bin420.fits outfile=/scratch/kocevski/569254/expmap_492998401_493603201_4FGL_J0818.2+4222_weekly_bin420.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/569254/ltcube_492998401_493603201_4FGL_J0818.2+4222_weekly_bin420.fits
.....................!
real 197.29
user 186.11
sys 5.45

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/569254/ft1_filtered_4FGL_J0818.2+4222_weekly_bin420.fits scfile=/scratch/kocevski/569254/ft2_4FGL_J0818.2+4222_weekly_bin420.fits outfile=/scratch/kocevski/569254/cmap_492998401_493603201_4FGL_J0818.2+4222_weekly_bin420.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=124.557 yref=42.3819 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.68
user 0.43
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569254/ft1_filtered_4FGL_J0818.2+4222_weekly_bin420.fits scfile=/scratch/kocevski/569254/ft2_4FGL_J0818.2+4222_weekly_bin420.fits outfile=/scratch/kocevski/569254/cmap_HighResolution_492998401_493603201_4FGL_J0818.2+4222_weekly_bin420.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.40
user 0.43
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34854       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.415       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8972       1.0000         .10000E-03   10000.    
     6 'norm      '    30.109       1.0000         .10000E-03   10000.    
     7 'norm      '    4.5838       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.703       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.034       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16612E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .54190       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.148       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11820E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.167       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0347       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0412       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .79773E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.4268       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.879       1.0000         .10000E-03   10000.    
    27 'norm      '    .39587       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.6014       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85015       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0239       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=   15920.80     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     3432 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34867        1.9830       -.72370E-07   -.99483E-05
   2  Prefactor     .10000E-03    2.2841       -.26105E-07** at limit **
   3  Prefactor     .10000E-03    6.5909        .24790E-05** at limit **
   4  Prefactor     11.415        7.0954        .32071E-07   -.11522E-03
   5  Prefactor     3.8970        4.9477        .80839E-07   -.13519E-03
   6  norm          30.109        9.4895       -.51642E-07    .22768E-04
   7  norm          4.5837        1.6957        .26822E-07    .29675E-04
   8  Prefactor     16.702        6.1015        .70650E-06    .10261E-03
   9  Prefactor     11.028        18.366       -.97221E-05    .25953E-06
  10  Prefactor     .10000E-03    1.0484       -.78378E-07** at limit **
  11  norm          .10000E-03    .77076       -.29436E-07** at limit **
  12  norm          .10000E-03    .33490        .39822E-08** at limit **
  13  norm          .54162        .35030        .10405E-07    .63182E-03
  14  Prefactor     .10000E-03    7.4602       -.17991E-05** at limit **
  15  Prefactor     23.149        9.9456        .64678E-06    .26568E-03
  16  Prefactor     .10000E-03    .59473       -.13800E-06** at limit **
  17  Prefactor     .10000E-03    7.6435       -.19687E-05** at limit **
  18  Prefactor     14.168        6.1901        .65943E-08    .90025E-04
  19  Prefactor     7.0349        5.0483        .77972E-08   -.72524E-04
  20  norm          .10000E-03    1.1550       -.31342E-07** at limit **
  21  norm          2.0413        .88151        .35937E-07   -.19167E-02
  22  Prefactor     .81284E-01    .51819       -.51717E-07    .15841E-03
  23  Prefactor     .10000E-03    14.505       -.54660E-05** at limit **
  24  Prefactor     .10000E-03    12.933        .68685E-05** at limit **
  25  Prefactor     3.4272        2.1881        .20227E-07   -.37588E-04
  26  Prefactor     13.878        13.120       -.50223E-06   -.53195E-04
  27  norm          .39576        .56849       -.35214E-07   -.31242E-03
  28  Prefactor     9.6019        4.8726        .36091E-07   -.39567E-03
  29  Normalizat    .85008        .11614        .29760E-06    .15322E-03
  30  Prefactor     1.0239        .87885E-01    .23704E-07    .18369E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.348666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4154
  Prefactor  = 3.89698
  norm       = 30.1094
  norm       = 4.58372
  Prefactor  = 16.7023
  Prefactor  = 11.0275
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.541618
  Prefactor  = 0.0001
  Prefactor  = 23.1494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1676
  Prefactor  = 7.03488
  norm       = 0.0001
  norm       = 2.04127
  Prefactor  = 0.0812844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42724
  Prefactor  = 13.8782
  norm       = 0.395761
  Prefactor  = 9.6019
  Normalizat = 0.850077
  Prefactor  = 1.02391
 **********
 **   18 **HESSE 
 **********

 FCN=   15920.80     FROM HESSE     STATUS=OK           606 CALLS     4038 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34867        7.8892        .34191E-02   -1.5590    
   2  Prefactor     .10000E-03    2.2941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.6038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.415        7.1030        .59286E-03   -1.5032    
   5  Prefactor     3.8970        4.9597        .10219E-02   -1.5313    
   6  norm          30.109        9.5010        .73017E-04   -1.4610    
   7  norm          4.5837        1.6947        .95001E-04   -1.5280    
   8  Prefactor     16.702        6.0828        .97998E-04   -1.4890    
   9  Prefactor     11.028        18.338        .12061E-03   -1.5044    
  10  Prefactor     .10000E-03    3.6489        .23902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .77768        .10811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .56589        .14192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .54162        .32838        .55616E-03   -1.5561    
  14  Prefactor     .10000E-03    7.4846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.149        9.3868        .83255E-04   -1.4745    
  16  Prefactor     .10000E-03    2.7326        .17830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.6738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.168        6.1906        .10641E-03   -1.4955    
  19  Prefactor     7.0349        5.0723        .75625E-03   -1.5177    
  20  norm          .10000E-03    1.1627        .13239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0413        3.5226        .14472E-02   -1.5422    
  22  Prefactor     .81284E-01    5.3723        .17108E-02   -1.5651    
  23  Prefactor     .10000E-03    14.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.4272        2.1852        .13856E-03   -1.5338    
  26  Prefactor     13.878        13.122        .10751E-03   -1.4963    
  27  norm          .39576        .47447        .76329E-03   -1.5582    
  28  Prefactor     9.6019        4.6405        .64664E-03   -1.5088    
  29  Normalizat    .85008        .13339        .28694E-03   -.98237    
  30  Prefactor     1.0239        .10158        .20908E-03   -.91937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31761e-07
Minuit parameter uncertainties:
  1  3.31707
  2  7.27285e-07
  3  1.4512e-06
  4  7.10353
  5  4.96018
  6  9.50148
  7  1.69472
  8  6.08303
  9  18.3477
  10  1.12644e-05
  11  1.88732e-07
  12  7.31773e-07
  13  0.328385
  14  1.06784e-06
  15  9.38737
  16  3.35823e-05
  17  3.38801e-06
  18  6.19092
  19  5.07261
  20  3.11775e-08
  21  3.52291
  22  1.32095
  23  2.01866e-06
  24  1.42972e-06
  25  2.18529
  26  13.1247
  27  0.474472
  28  4.64066
  29  0.133439
  30  0.101596
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  5.416e-01  3.284e-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.024e+00  1.016e-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:  8.501e-01  1.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.19
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 1.64e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 9.23e-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) = 15920.8011034
delta logL = 9.90446533251e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15920.8010988
delta logL = 0.000103618238427

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54100       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9890       1.0000          .0000       5.0000    
     3 'Normalizat'    .85025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0239       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=   15920.80     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54100        6.5018        .11437E-01    .77717E-03
   2  alpha         1.9889        3.4143        .42294       -.23071E-04
   3  Normalizat    .85025        .42379E-01    .64860E-01   -.14004E-03
   4  Prefactor     1.0239        .32355E-01    .41775E-01    .10438E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.541002
  alpha      = 1.98885
  Normalizat = 0.850253
  Prefactor  = 1.02387
 **********
 **   18 **HESSE 
 **********

 FCN=   15920.80     FROM HESSE     STATUS=OK            35 CALLS      246 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54100        .32232        .55673E-03   -1.5561    
   2  alpha         1.9889        .48387        .18816E-01   -.20591    
   3  Normalizat    .85025        .12288        .28691E-03   -.98231    
   4  Prefactor     1.0239        .97713E-01    .20909E-03   -.91938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36245e-10
Minuit parameter uncertainties:
  1  0.322324
  2  0.48708
  3  0.122925
  4  0.0977299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569254': 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) = 15920.8010988
delta logL = 0.00010368286712

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  5.410e-01  3.223e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.989e+00  4.871e-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.024e+00  9.773e-02  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  8.503e-01  1.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.20
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.99 +/- 0.49
Photon Flux (Free Index): 2.68e-08 +/- 2.14e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.03e-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/569254/cmap_HighResolution_492998401_493603201_4FGL_J0818.2+4222_weekly_bin420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='1.53e-05', photon_flux_error='1.64e-08', dlogl='1.04e-04', energy_flux='1.52e-05', photon_flux2='2.68e-08', job_status='DONE', time_completed='2021-07-13 15:11:33.344434', photon_index_error2='0.49', photon_index2='1.99', ts='5.19', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='0.85', time_epoch_completed='1626214293.34', return_code='0', job_id='569254', GAL2='1.02', EG2='0.85', return_code2='0', energy_flux_error='9.23e-06', photon_flux_error2='2.14e-08', ts2='5.20', photon_index='2.00' WHERE bin_id='420' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:11:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 569254: <4FGL_J0818.2+4222_weekly_bin420> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin420 124.557 42.3819 492998401 493603201 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 :                                   1493.00 sec.
    Max Memory :                                 783 MB
    Average Memory :                             615.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1891 sec.
    Turnaround time :                            113960 sec.

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

