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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin382
RA = 124.695, Dec = 31.8862
tmin = 470016001, tmax = 470620801
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='574207', job_status='RUN', time_executed='2021-07-13 14:57:00.949783', time_epoch_executed='1626213420.95' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='382'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574207

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574207/ft1_4FGL_J0818.7+3153_weekly_bin382.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574207/ft2_4FGL_J0818.7+3153_weekly_bin382.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574207/ft1_4FGL_J0818.7+3153_weekly_bin382.fits outfile=/scratch/kocevski/574207/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin382.fits ra=124.695 dec=31.8862 rad=12.0 tmin=470016001.0 tmax=470620801.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.42
user 7.12
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574207/ft1_filtered_4FGL_J0818.7+3153_weekly_bin382.fits" evtable="EVENTS" scfile=/scratch/kocevski/574207/ft2_4FGL_J0818.7+3153_weekly_bin382.fits sctable="SC_DATA" outfile=/scratch/kocevski/574207/ltcube_470016001_470620801_4FGL_J0818.7+3153_weekly_bin382.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/574207/ft2_4FGL_J0818.7+3153_weekly_bin382.fits
.....................!
real 28.99
user 28.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574207/ft1_filtered_4FGL_J0818.7+3153_weekly_bin382.fits evtable="EVENTS" scfile=/scratch/kocevski/574207/ft2_4FGL_J0818.7+3153_weekly_bin382.fits sctable="SC_DATA" expcube=/scratch/kocevski/574207/ltcube_470016001_470620801_4FGL_J0818.7+3153_weekly_bin382.fits outfile=/scratch/kocevski/574207/expmap_470016001_470620801_4FGL_J0818.7+3153_weekly_bin382.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/574207/ltcube_470016001_470620801_4FGL_J0818.7+3153_weekly_bin382.fits
.....................!
real 190.83
user 185.74
sys 4.43

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/574207/ft1_filtered_4FGL_J0818.7+3153_weekly_bin382.fits scfile=/scratch/kocevski/574207/ft2_4FGL_J0818.7+3153_weekly_bin382.fits outfile=/scratch/kocevski/574207/cmap_470016001_470620801_4FGL_J0818.7+3153_weekly_bin382.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.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574207/ft1_filtered_4FGL_J0818.7+3153_weekly_bin382.fits scfile=/scratch/kocevski/574207/ft2_4FGL_J0818.7+3153_weekly_bin382.fits outfile=/scratch/kocevski/574207/cmap_HighResolution_470016001_470620801_4FGL_J0818.7+3153_weekly_bin382.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.59
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574207/ft1_filtered_4FGL_J0818.7+3153_weekly_bin382.fits evtable="EVENTS" scfile=/scratch/kocevski/574207/ft2_4FGL_J0818.7+3153_weekly_bin382.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574207/Model_4FGL_J0818.7+3153_weekly_bin382.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/574207/ft1_filtered_4FGL_J0818.7+3153_weekly_bin382.fits....................!
real 131.37
user 129.76
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8557       1.0000         .10000E-03   10000.    
     2 'norm      '    5.1458       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.020       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.989       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.3556       1.0000         .10000E-03   10000.    
     7 'norm      '    4.8687       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48424       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .28377E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7613       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6917       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.784       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9138       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3045       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.583       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .55211E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.192       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93804       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99029       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=   15388.54     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2431 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8552        5.2947       -.34523E-05   -.30602E-03
   2  norm          5.1458        2.8302       -.44781E-06   -.66643E-03
   3  Prefactor     50.020        23.534        .73701E-07    .31735E-04
   4  Prefactor     11.989        8.2058        .12774E-05    .34931E-04
   5  Prefactor     .10000E-03    8.8151       -.30577E-06** at limit **
   6  norm          3.3552        5.9535       -.23982E-05   -.45418E-03
   7  norm          4.8175        57.130       -.15000E-03    .17046E-04
   8  Prefactor     .47797        1.5022       -.13885E-05   -.97739E-03
   9  Prefactor     .10050E-03    7.8302       -.33101E-07** at limit **
  10  norm          1.7613        .42435        .30205E-07    .25463E-02
  11  Prefactor     4.6904        8.6963        .56597E-05   -.61025E-04
  12  Prefactor     15.783        16.019        .87589E-07    .57270E-05
  13  Prefactor     .10000E-03    2.6605       -.13388E-06** at limit **
  14  Prefactor     4.9145        8.8364       -.61102E-05   -.20085E-03
  15  Prefactor     1.3043        1.4925       -.43141E-06   -.16353E-02
  16  norm          .10000E-03    .17073        .83320E-07** at limit **
  17  Prefactor     15.583        16.116       -.12666E-05   -.51707E-03
  18  Prefactor     .59154E-03    2.6794        .35529E-06** at limit **
  19  Prefactor     13.192        9.7558       -.14580E-06   -.49345E-04
  20  Prefactor     .10000E-03    .43157       -.29124E-07** at limit **
  21  Normalizat    .93796        .11185       -.37899E-07    .61159E-03
  22  Prefactor     .99037        .89180E-01    .23635E-05    .13795E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.8552
  norm       = 5.14581
  Prefactor  = 50.0203
  Prefactor  = 11.9888
  Prefactor  = 0.0001
  norm       = 3.35515
  norm       = 4.81748
  Prefactor  = 0.477972
  Prefactor  = 0.000100499
  norm       = 1.76129
  Prefactor  = 4.69035
  Prefactor  = 15.7829
  Prefactor  = 0.0001
  Prefactor  = 4.9145
  Prefactor  = 1.3043
  norm       = 0.0001
  Prefactor  = 15.5826
  Prefactor  = 0.000591536
  Prefactor  = 13.1918
  Prefactor  = 0.0001
  Normalizat = 0.937958
  Prefactor  = 0.990374
 **********
 **   18 **HESSE 
 **********

 FCN=   15388.54     FROM HESSE     STATUS=OK           366 CALLS     2797 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8552        5.2942        .20552E-03   -1.5315    
   2  norm          5.1458        2.8232        .13922E-03   -1.5254    
   3  Prefactor     50.020        23.517        .56702E-04   -1.4292    
   4  Prefactor     11.989        8.2002        .11569E-03   -1.5015    
   5  Prefactor     .10000E-03    8.8298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.3552        5.9514        .22093E-03   -1.5342    
   7  norm          4.8175        57.123        .18230E-03   -1.5269    
   8  Prefactor     .47797        2.2904        .25221E-02   -1.5570    
   9  Prefactor     .10050E-03    78.034        .66583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7613        .42107        .37526E-04   -1.5443    
  11  Prefactor     4.6904        8.6242        .18579E-03   -1.5275    
  12  Prefactor     15.783        16.017        .10081E-03   -1.4913    
  13  Prefactor     .10000E-03    2.6681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9145        8.8110        .18145E-03   -1.5265    
  15  Prefactor     1.3043        1.4639        .15318E-03   -1.5480    
  16  norm          .10000E-03    .17649        .99545E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.583        16.110        .50730E-03   -1.4918    
  18  Prefactor     .59154E-03    3.1574        .58648E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.192        9.7599        .11028E-03   -1.4981    
  20  Prefactor     .10000E-03    .43301        .79578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93796        .12793        .26058E-03   -.95139    
  22  Prefactor     .99037        .10278        .20957E-03   -.93051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00628e-09
Minuit parameter uncertainties:
  1  5.29483
  2  2.82328
  3  23.5214
  4  8.20098
  5  6.18711e-06
  6  5.95245
  7  33.2168
  8  2.0925
  9  0.012493
  10  0.421072
  11  8.62646
  12  16.0217
  13  6.43843e-06
  14  8.8133
  15  1.46392
  16  3.13901e-06
  17  16.1149
  18  0.0787943
  19  9.76111
  20  9.53863e-07
  21  0.127976
  22  0.102804
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.578e+01  1.602e+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.904e-01  1.028e-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.380e-01  1.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.70e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 8.67e-06 +/- 8.80e-06

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

Saving results to:
/scratch/kocevski/574207/likelihoodResults_470016001_470620801_4FGL_J0818.7+3153_weekly_bin382.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) = 15387.3852919
delta logL = 1.15125147176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15386.6841442
delta logL = 1.85239908101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.6142       1.0000          .0000       10.000    
     3 'Normalizat'    .85315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0427       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15386.68     FROM MIGRAD    STATUS=FAILED       251 CALLS      663 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .87997E-02    .14889E-03** at limit **
   2  Index         6.6142        2.0706        .32338E-02    .21292E-02
   3  Normalizat    .85312        .68549E-01    .27187E-03    .30266E-03
   4  Prefactor     1.0427        .55229E-01    .20495E-03   -.40965E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15386.68     FROM SIMPLEX   STATUS=UNCHANGED    184 CALLS      847 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .87997E-02    .37345E-05** at limit **
   2  Index         6.6142        2.0706        .94504E-05    .21292E-02
   3  Normalizat    .85312        .68549E-01    .15135E-05    .30266E-03
   4  Prefactor     1.0427        .55229E-01    .10540E-05   -.40965E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15386.68     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      884 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .51707E-02    .19839E-03** at limit **
   2  Index         6.6142        2.0089        .64676E-03    .79073E-04
   3  Normalizat    .85312        .58792E-01    .10875E-04    .30275E-03
   4  Prefactor     1.0427        .47826E-01    .40991E-04   -.41003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.61416
  Normalizat = 0.853124
  Prefactor  = 1.04268
 **********
 **   18 **HESSE 
 **********

 FCN=   15386.68     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      919 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .65364E-02    .17594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.6142        2.0483        .12935E-03   -5.9545    
   3  Normalizat    .85312        .64047E-01    .21750E-05   -.98127    
   4  Prefactor     1.0427        .52039E-01    .81982E-05   -.91320    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.62963e-10
Minuit parameter uncertainties:
  1  1.07584e-08
  2  2.1183
  3  0.0640526
  4  0.0520418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574207': 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): 102
logL (Free Index) = 15386.6841388
delta logL = 1.85240455628

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.076e-08  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  6.614e+00  2.118e+00  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:  1.043e+00  5.204e-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:  8.531e-01  6.405e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.44
Ra Dec: 124.695 31.886
Photon Index (Free Index): 6.61 +/- 2.12
Photon Flux (Free Index): 6.63e-08 +/- 4.37e-07
Energy Flux (Free Index): 8.03e-06 +/- 5.25e-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/574207/cmap_HighResolution_470016001_470620801_4FGL_J0818.7+3153_weekly_bin382.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-03', comment='SUCCESS', photon_flux='1.70e-08', energy_flux2='8.03e-06', photon_flux_error='1.73e-08', dlogl='1.85e+00', energy_flux='8.67e-06', photon_flux2='6.63e-08', job_status='DONE', time_completed='2021-07-13 15:27:52.136306', photon_index_error2='2.12', photon_index2='6.61', ts='1.29', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='5.40e-08', energy_flux_error2='5.25e-05', EG='0.94', time_epoch_completed='1626215272.14', return_code='0', job_id='574207', GAL2='1.04', EG2='0.85', return_code2='102', energy_flux_error='8.80e-06', photon_flux_error2='4.37e-07', ts2='5.44', photon_index='2.13' WHERE bin_id='382' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:27:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 574207: <4FGL_J0818.7+3153_weekly_bin382> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin382 124.695 31.8862 470016001 470620801 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 :                                   1351.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             51.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2319 sec.
    Turnaround time :                            113997 sec.

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

