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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin325
RA = 124.695, Dec = 31.8862
tmin = 435542401, tmax = 436147201
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='574104', job_status='RUN', time_executed='2021-07-13 14:55:45.909812', time_epoch_executed='1626213345.91' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574104

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574104/ft1_4FGL_J0818.7+3153_weekly_bin325.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574104/ft2_4FGL_J0818.7+3153_weekly_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574104/ft1_4FGL_J0818.7+3153_weekly_bin325.fits outfile=/scratch/kocevski/574104/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin325.fits ra=124.695 dec=31.8862 rad=12.0 tmin=435542401.0 tmax=436147201.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 12.30
user 11.73
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574104/ft1_filtered_4FGL_J0818.7+3153_weekly_bin325.fits" evtable="EVENTS" scfile=/scratch/kocevski/574104/ft2_4FGL_J0818.7+3153_weekly_bin325.fits sctable="SC_DATA" outfile=/scratch/kocevski/574104/ltcube_435542401_436147201_4FGL_J0818.7+3153_weekly_bin325.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/574104/ft2_4FGL_J0818.7+3153_weekly_bin325.fits
.....................!
real 29.91
user 29.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574104/ft1_filtered_4FGL_J0818.7+3153_weekly_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/574104/ft2_4FGL_J0818.7+3153_weekly_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/574104/ltcube_435542401_436147201_4FGL_J0818.7+3153_weekly_bin325.fits outfile=/scratch/kocevski/574104/expmap_435542401_436147201_4FGL_J0818.7+3153_weekly_bin325.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/574104/ltcube_435542401_436147201_4FGL_J0818.7+3153_weekly_bin325.fits
.....................!
real 191.32
user 185.61
sys 4.80

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/574104/ft1_filtered_4FGL_J0818.7+3153_weekly_bin325.fits scfile=/scratch/kocevski/574104/ft2_4FGL_J0818.7+3153_weekly_bin325.fits outfile=/scratch/kocevski/574104/cmap_435542401_436147201_4FGL_J0818.7+3153_weekly_bin325.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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574104/ft1_filtered_4FGL_J0818.7+3153_weekly_bin325.fits scfile=/scratch/kocevski/574104/ft2_4FGL_J0818.7+3153_weekly_bin325.fits outfile=/scratch/kocevski/574104/cmap_HighResolution_435542401_436147201_4FGL_J0818.7+3153_weekly_bin325.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.60
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574104/ft1_filtered_4FGL_J0818.7+3153_weekly_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/574104/ft2_4FGL_J0818.7+3153_weekly_bin325.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574104/Model_4FGL_J0818.7+3153_weekly_bin325.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/574104/ft1_filtered_4FGL_J0818.7+3153_weekly_bin325.fits.....................!
real 116.56
user 114.87
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574104/ft1_filtered_4FGL_J0818.7+3153_weekly_bin325.fits', '/scratch/kocevski/574104/ft2_4FGL_J0818.7+3153_weekly_bin325.fits', expMap='/scratch/kocevski/574104/expmap_435542401_436147201_4FGL_J0818.7+3153_weekly_bin325.fits', expCube='/scratch/kocevski/574104/ltcube_435542401_436147201_4FGL_J0818.7+3153_weekly_bin325.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574104/Model_4FGL_J0818.7+3153_weekly_bin325.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/574104/ft1_filtered_4FGL_J0818.7+3153_weekly_bin325.fits
Spacecraft file(s): /scratch/kocevski/574104/ft2_4FGL_J0818.7+3153_weekly_bin325.fits
Exposure map: /scratch/kocevski/574104/expmap_435542401_436147201_4FGL_J0818.7+3153_weekly_bin325.fits
Exposure cube: /scratch/kocevski/574104/ltcube_435542401_436147201_4FGL_J0818.7+3153_weekly_bin325.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574104/Model_4FGL_J0818.7+3153_weekly_bin325.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) = 13727.8258873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .42694E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17117E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    72.862       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3844       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .91925       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.236       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1686       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3959       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .40811       1.0000         .10000E-03   10000.    
    16 'norm      '    .12595       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.368       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.399       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.102       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8907       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95660       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99362       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=   13727.72     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2479 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.540        .10399E-04** at limit **
   2  norm          .10000E-03    .85209        .25229E-07** at limit **
   3  Prefactor     .10000E-03    21.089        .51629E-05** at limit **
   4  Prefactor     .10005E-03    5.5495       -.98847E-07** at limit **
   5  Prefactor     .10000E-03    9.1599        .51460E-06** at limit **
   6  norm          .10000E-03    3.8480        .20363E-06** at limit **
   7  norm          72.845        55.854       -.14373E-04    .45934E-05
   8  Prefactor     2.3832        3.4649       -.86161E-06   -.12003E-02
   9  Prefactor     .10000E-03    12.115       -.84538E-05** at limit **
  10  norm          .91945        .41047       -.72825E-07    .72079E-03
  11  Prefactor     .10000E-03    18.018       -.70366E-05** at limit **
  12  Prefactor     16.241        14.149       -.27094E-05    .54761E-04
  13  Prefactor     8.1566        10.987        .21916E-05    .62248E-03
  14  Prefactor     2.3917        23.437        .68297E-05    .13586E-03
  15  Prefactor     .41971        1.3873       -.12727E-05    .33938E-03
  16  norm          .12653        .48457       -.78188E-06    .41330E-03
  17  Prefactor     22.356        18.096        .49061E-05    .19905E-03
  18  Prefactor     11.393        8.5558        .36997E-06    .53808E-03
  19  Prefactor     24.100        12.908        .90198E-06    .62592E-04
  20  Prefactor     3.8908        2.5345       -.92162E-07   -.40547E-03
  21  Normalizat    .95665        .12461       -.48535E-06    .79756E-03
  22  Prefactor     .99354        .93508E-01    .48389E-06    .60235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100049
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 72.8454
  Prefactor  = 2.38316
  Prefactor  = 0.0001
  norm       = 0.919452
  Prefactor  = 0.0001
  Prefactor  = 16.241
  Prefactor  = 8.15663
  Prefactor  = 2.39166
  Prefactor  = 0.419711
  norm       = 0.126534
  Prefactor  = 22.3565
  Prefactor  = 11.3935
  Prefactor  = 24.1004
  Prefactor  = 3.89084
  Normalizat = 0.956645
  Prefactor  = 0.99354
 **********
 **   18 **HESSE 
 **********

 FCN=   13727.72     FROM HESSE     STATUS=OK           362 CALLS     2841 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.805        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    16.618        .20231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10005E-03    5.7443        .85605E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.9658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          72.845        55.600        .23517E-03   -1.3999    
   8  Prefactor     2.3832        3.4564        .23961E-03   -1.5399    
   9  Prefactor     .10000E-03    12.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .91945        .40156        .46342E-04   -1.5516    
  11  Prefactor     .10000E-03    18.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.241        14.145        .99398E-04   -1.4902    
  13  Prefactor     8.1566        11.191        .14028E-03   -1.5137    
  14  Prefactor     2.3917        22.793        .26456E-03   -1.5399    
  15  Prefactor     .41971        4.0428        .19292E-02   -1.5578    
  16  norm          .12653        1.7245        .12146E-02   -1.5637    
  17  Prefactor     22.356        18.053        .84691E-04   -1.4762    
  18  Prefactor     11.393        8.4499        .11866E-03   -1.5033    
  19  Prefactor     24.100        12.921        .81592E-04   -1.4726    
  20  Prefactor     3.8908        2.5335        .14583E-03   -1.5313    
  21  Normalizat    .95665        .14243        .26640E-03   -.94497    
  22  Prefactor     .99354        .10824        .20888E-03   -.92945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17209e-09
Minuit parameter uncertainties:
  1  0.000158252
  2  0.000134476
  3  1.19241e-05
  4  0.00106275
  5  1.50582e-06
  6  1.17326e-06
  7  55.6398
  8  3.45672
  9  2.37216e-05
  10  0.401564
  11  6.85577e-05
  12  14.148
  13  11.1934
  14  14.7736
  15  2.60514
  16  0.933921
  17  18.0576
  18  8.45074
  19  12.9224
  20  2.53354
  21  0.142489
  22  0.108267
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.624e+01  1.415e+01  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:  9.935e-01  1.083e-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:  9.566e-01  1.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.11
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.75e-08 +/- 1.52e-08
Energy Flux (Fixed Index): 8.92e-06 +/- 7.77e-06

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

Saving results to:
/scratch/kocevski/574104/likelihoodResults_435542401_436147201_4FGL_J0818.7+3153_weekly_bin325.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): 0
logL (Free Index) = 13727.5043959
delta logL = 0.216116357087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13727.4899662
delta logL = 0.230546048624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.231       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7705       1.0000          .0000       10.000    
     3 'Normalizat'    .96341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99058       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.

 FCN=   13727.49     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      271 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.231        650.78        .19937E-02    .12722E-03
   2  Index         1.7705        5.7878        .18194        .12097E-03
   3  Normalizat    .96349        .69982E-01    .45707E-01    .27853E-04
   4  Prefactor     .99051        .39868E-01    .46149E-01    .91630E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2307
  Index      = 1.77048
  Normalizat = 0.963492
  Prefactor  = 0.990512
 **********
 **   18 **HESSE 
 **********

 FCN=   13727.49     FROM HESSE     STATUS=OK            31 CALLS      302 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.231        23.436        .79750E-04   -1.4703    
   2  Index         1.7705        .51721        .10699E-01   -.70221    
   3  Normalizat    .96349        .13399        .26554E-03   -.94264    
   4  Prefactor     .99051        .10736        .20914E-03   -.93046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04784e-09
Minuit parameter uncertainties:
  1  23.444
  2  0.518808
  3  0.134039
  4  0.107385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574104': 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) = 13727.489966
delta logL = 0.23054627392

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.523e+01  2.344e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.770e+00  5.188e-01  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:  9.905e-01  1.074e-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:  9.635e-01  1.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 124.695 31.886
Photon Index (Free Index): 1.77 +/- 0.52
Photon Flux (Free Index): 1.18e-08 +/- 1.29e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.92e-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/574104/cmap_HighResolution_435542401_436147201_4FGL_J0818.7+3153_weekly_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', comment='SUCCESS', photon_flux='1.75e-08', energy_flux2='1.55e-05', photon_flux_error='1.52e-08', dlogl='2.31e-01', energy_flux='8.92e-06', photon_flux2='1.18e-08', job_status='DONE', time_completed='2021-07-13 15:23:16.572301', photon_index_error2='0.52', photon_index2='1.77', ts='2.11', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='5.27e-08', energy_flux_error2='1.92e-05', EG='0.96', time_epoch_completed='1626214996.57', return_code='0', job_id='574104', GAL2='0.99', EG2='0.96', return_code2='0', energy_flux_error='7.77e-06', photon_flux_error2='1.29e-08', ts2='2.57', photon_index='2.13' WHERE bin_id='325' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:23:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0133>
Subject: Job 574104: <4FGL_J0818.7+3153_weekly_bin325> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin325 124.695 31.8862 435542401 436147201 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 :                                   1153.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2107 sec.
    Turnaround time :                            113729 sec.

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

