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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin372
RA = 124.695, Dec = 31.8862
tmin = 463968001, tmax = 464572801
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='574191', job_status='RUN', time_executed='2021-07-13 14:58:06.114103', time_epoch_executed='1626213486.11' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574191

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574191/ft1_4FGL_J0818.7+3153_weekly_bin372.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574191/ft2_4FGL_J0818.7+3153_weekly_bin372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574191/ft1_4FGL_J0818.7+3153_weekly_bin372.fits outfile=/scratch/kocevski/574191/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin372.fits ra=124.695 dec=31.8862 rad=12.0 tmin=463968001.0 tmax=464572801.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 7.72
user 7.11
sys 0.34

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/574191/ft2_4FGL_J0818.7+3153_weekly_bin372.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574191/ft2_4FGL_J0818.7+3153_weekly_bin372.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/574191/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin372.fits evtable="EVENTS" outfile="/scratch/kocevski/574191/ft1_filtered_4FGL_J0818.7+3153_weekly_bin372.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.69
user 0.38
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574191/ft1_filtered_4FGL_J0818.7+3153_weekly_bin372.fits" evtable="EVENTS" scfile=/scratch/kocevski/574191/ft2_4FGL_J0818.7+3153_weekly_bin372.fits sctable="SC_DATA" outfile=/scratch/kocevski/574191/ltcube_463968001_464572801_4FGL_J0818.7+3153_weekly_bin372.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/574191/ft2_4FGL_J0818.7+3153_weekly_bin372.fits
.....................!
real 27.65
user 27.17
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574191/ft1_filtered_4FGL_J0818.7+3153_weekly_bin372.fits evtable="EVENTS" scfile=/scratch/kocevski/574191/ft2_4FGL_J0818.7+3153_weekly_bin372.fits sctable="SC_DATA" expcube=/scratch/kocevski/574191/ltcube_463968001_464572801_4FGL_J0818.7+3153_weekly_bin372.fits outfile=/scratch/kocevski/574191/expmap_463968001_464572801_4FGL_J0818.7+3153_weekly_bin372.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/574191/ltcube_463968001_464572801_4FGL_J0818.7+3153_weekly_bin372.fits
.....................!
real 192.29
user 186.10
sys 5.59

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 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J0818.7+3153 @ 124.695 31.8862

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/574191/ft1_filtered_4FGL_J0818.7+3153_weekly_bin372.fits scfile=/scratch/kocevski/574191/ft2_4FGL_J0818.7+3153_weekly_bin372.fits outfile=/scratch/kocevski/574191/cmap_463968001_464572801_4FGL_J0818.7+3153_weekly_bin372.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.695 yref=31.8862 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.67
user 0.45
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574191/ft1_filtered_4FGL_J0818.7+3153_weekly_bin372.fits scfile=/scratch/kocevski/574191/ft2_4FGL_J0818.7+3153_weekly_bin372.fits outfile=/scratch/kocevski/574191/cmap_HighResolution_463968001_464572801_4FGL_J0818.7+3153_weekly_bin372.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.695 yref=31.8862 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.67
user 0.46
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574191/ft1_filtered_4FGL_J0818.7+3153_weekly_bin372.fits evtable="EVENTS" scfile=/scratch/kocevski/574191/ft2_4FGL_J0818.7+3153_weekly_bin372.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574191/Model_4FGL_J0818.7+3153_weekly_bin372.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/574191/ft1_filtered_4FGL_J0818.7+3153_weekly_bin372.fits.....................!
real 145.06
user 143.23
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574191/ft1_filtered_4FGL_J0818.7+3153_weekly_bin372.fits', '/scratch/kocevski/574191/ft2_4FGL_J0818.7+3153_weekly_bin372.fits', expMap='/scratch/kocevski/574191/expmap_463968001_464572801_4FGL_J0818.7+3153_weekly_bin372.fits', expCube='/scratch/kocevski/574191/ltcube_463968001_464572801_4FGL_J0818.7+3153_weekly_bin372.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574191/Model_4FGL_J0818.7+3153_weekly_bin372.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0818.7+3153'

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.482e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/574191/ft1_filtered_4FGL_J0818.7+3153_weekly_bin372.fits
Spacecraft file(s): /scratch/kocevski/574191/ft2_4FGL_J0818.7+3153_weekly_bin372.fits
Exposure map: /scratch/kocevski/574191/expmap_463968001_464572801_4FGL_J0818.7+3153_weekly_bin372.fits
Exposure cube: /scratch/kocevski/574191/ltcube_463968001_464572801_4FGL_J0818.7+3153_weekly_bin372.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574191/Model_4FGL_J0818.7+3153_weekly_bin372.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 17024.983487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.964       1.0000         .10000E-03   10000.    
     2 'norm      '    4.3419       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2339       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .14754E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .56364       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6282       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0964       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.002       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6681       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2474       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80058       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17024.80     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2079 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.965        7.8656        .16765E-07   -.23015E-03
   2  norm          4.3418        1.1613        .65243E-07   -.21517E-02
   3  Prefactor     .10000E-03    5.6371        .13076E-05** at limit **
   4  Prefactor     9.2339        8.4382        .38165E-08   -.17300E-03
   5  Prefactor     .10000E-03    10.035       -.23000E-05** at limit **
   6  norm          .10000E-03    2.8727        .31758E-07** at limit **
   7  norm          .10000E-03    117.85       -.27580E-05** at limit **
   8  Prefactor     .56349        1.7573       -.25677E-06    .30328E-04
   9  Prefactor     .10000E-03    7.2739       -.54856E-06** at limit **
  10  norm          1.3188        .36766       -.73251E-08    .62510E-03
  11  Prefactor     .10000E-03    4.9430       -.18670E-05** at limit **
  12  Prefactor     .10000E-03    5.3839        .37259E-06** at limit **
  13  Prefactor     .10000E-03    6.7038       -.14387E-05** at limit **
  14  Prefactor     .10000E-03    13.397        .21633E-06** at limit **
  15  Prefactor     1.6281        1.7177        .45648E-07    .95358E-04
  16  norm          1.0966        .74646       -.92904E-07   -.90207E-03
  17  Prefactor     .10000E-03    4.7828        .90142E-06** at limit **
  18  Prefactor     .10000E-03    8.3650        .32787E-05** at limit **
  19  Prefactor     12.003        11.399       -.38042E-06   -.15381E-04
  20  Prefactor     2.6680        2.2128       -.13352E-09   -.86208E-04
  21  Normalizat    1.2475        .11302        .80706E-07    .33812E-04
  22  Prefactor     .80056        .85123E-01    .22035E-06    .42023E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9649
  norm       = 4.34176
  Prefactor  = 0.0001
  Prefactor  = 9.2339
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.56349
  Prefactor  = 0.0001
  norm       = 1.3188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.62812
  norm       = 1.09659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0029
  Prefactor  = 2.66799
  Normalizat = 1.24745
  Prefactor  = 0.800562
 **********
 **   18 **HESSE 
 **********

 FCN=   17024.80     FROM HESSE     STATUS=OK           344 CALLS     2423 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.965        8.0875        .60498E-03   -1.5046    
   2  norm          4.3418        2.6457        .77250E-03   -1.5291    
   3  Prefactor     .10000E-03    5.6394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.2339        8.4255        .65945E-03   -1.5100    
   5  Prefactor     .10000E-03    10.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.9077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    120.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .56349        2.7933        .28455E-02   -1.5558    
   9  Prefactor     .10000E-03    7.2905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3188        .36454        .39666E-04   -1.5478    
  11  Prefactor     .10000E-03    4.9551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.3912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.7913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6281        1.6977        .16488E-03   -1.5453    
  16  norm          1.0966        .73639        .88867E-04   -1.5499    
  17  Prefactor     .10000E-03    4.7909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.5237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.003        11.479        .11563E-03   -1.5015    
  20  Prefactor     2.6680        2.2129        .17158E-03   -1.5381    
  21  Normalizat    1.2475        .13466        .24539E-03   -.85149    
  22  Prefactor     .80056        .10051        .23073E-03   -.99708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.41481e-10
Minuit parameter uncertainties:
  1  8.08829
  2  2.64581
  3  9.11197e-07
  4  8.42656
  5  9.42374e-06
  6  2.03711e-06
  7  7.73448e-06
  8  2.50914
  9  2.51121e-06
  10  0.364539
  11  4.02046e-06
  12  8.81695e-07
  13  1.58455e-06
  14  1.23365e-05
  15  1.69778
  16  0.7364
  17  1.15051e-06
  18  2.75955e-05
  19  11.4812
  20  2.21293
  21  0.134701
  22  0.100534
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  8.817e-07  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  8.006e-01  1.005e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.247e+00  1.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 124.695 31.886
Photon Flux Upper Limit: 2.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574191/likelihoodResults_463968001_464572801_4FGL_J0818.7+3153_weekly_bin372.txt

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): 102
logL (Free Index) = 17024.7959838
delta logL = -0.000883912191057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17024.7950999
delta logL = 6.85395207256e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1277       1.0000          .0000       10.000    
     3 'Normalizat'    1.2474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80056       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17024.80     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      258 TOTAL
                     EDM=   .88E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    231.24        .18142E-01** at limit **
   2  Index         1.6946        6.9116        .10041        .90578E-08
   3  Normalizat    1.2475        .18736E-01    .24539E-03    .73201E-04
   4  Prefactor     .80056        .14529E-01    .23073E-03    .90070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.69463
  Normalizat = 1.24745
  Prefactor  = 0.800562
 **********
 **   18 **HESSE 
 **********

 FCN=   17024.80     FROM HESSE     STATUS=OK            23 CALLS      281 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8626        .30719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6946        5.6320        .40164E-02   -.72225    
   3  Normalizat    1.2475        .12869        .98155E-05   -.85149    
   4  Prefactor     .80056        .99794E-01    .92292E-05   -.99708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34865e-12
Minuit parameter uncertainties:
  1  1.05348e-05
  2  331.623
  3  0.128722
  4  0.0998162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574191': 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) = 17024.7950992
delta logL = 6.77533535054e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.053e-05  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.695e+00  3.316e+02  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  8.006e-01  9.982e-02  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.247e+00  1.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 124.695 31.886

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/574191/cmap_HighResolution_463968001_464572801_4FGL_J0818.7+3153_weekly_bin372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-03', job_status='DONE', photon_flux_upper_limit='2.69e-08', time_completed='2021-07-13 15:25:23.527252', job_id='574191', GAL2='0.80', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1626215123.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='6.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='372' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:25:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 574191: <4FGL_J0818.7+3153_weekly_bin372> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin372> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul 12 07:47:54 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:53:24 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:53:24 2021
Terminated at Tue Jul 13 15:25:24 2021
Results reported at Tue Jul 13 15:25:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin372 124.695 31.8862 463968001 464572801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0818.7+3153 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1227.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             50.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2199 sec.
    Turnaround time :                            113850 sec.

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

