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 214 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 = 17205
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin83
RA = 124.695, Dec = 31.8862
tmin = 289180801, tmax = 289785601
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='571943', job_status='RUN', time_executed='2021-07-13 15:00:49.404169', time_epoch_executed='1626213649.4' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='83'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571943

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571943/ft1_4FGL_J0818.7+3153_weekly_bin83.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571943/ft2_4FGL_J0818.7+3153_weekly_bin83.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571943/ft1_4FGL_J0818.7+3153_weekly_bin83.fits outfile=/scratch/kocevski/571943/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin83.fits ra=124.695 dec=31.8862 rad=12.0 tmin=289180801.0 tmax=289785601.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.13
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571943/ft1_filtered_4FGL_J0818.7+3153_weekly_bin83.fits" evtable="EVENTS" scfile=/scratch/kocevski/571943/ft2_4FGL_J0818.7+3153_weekly_bin83.fits sctable="SC_DATA" outfile=/scratch/kocevski/571943/ltcube_289180801_289785601_4FGL_J0818.7+3153_weekly_bin83.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/571943/ft2_4FGL_J0818.7+3153_weekly_bin83.fits
.....................!
real 29.46
user 28.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571943/ft1_filtered_4FGL_J0818.7+3153_weekly_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/571943/ft2_4FGL_J0818.7+3153_weekly_bin83.fits sctable="SC_DATA" expcube=/scratch/kocevski/571943/ltcube_289180801_289785601_4FGL_J0818.7+3153_weekly_bin83.fits outfile=/scratch/kocevski/571943/expmap_289180801_289785601_4FGL_J0818.7+3153_weekly_bin83.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/571943/ltcube_289180801_289785601_4FGL_J0818.7+3153_weekly_bin83.fits
.....................!
real 190.55
user 185.68
sys 4.34

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/571943/ft1_filtered_4FGL_J0818.7+3153_weekly_bin83.fits scfile=/scratch/kocevski/571943/ft2_4FGL_J0818.7+3153_weekly_bin83.fits outfile=/scratch/kocevski/571943/cmap_289180801_289785601_4FGL_J0818.7+3153_weekly_bin83.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.61
user 0.40
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571943/ft1_filtered_4FGL_J0818.7+3153_weekly_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/571943/ft2_4FGL_J0818.7+3153_weekly_bin83.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571943/Model_4FGL_J0818.7+3153_weekly_bin83.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/571943/ft1_filtered_4FGL_J0818.7+3153_weekly_bin83.fits.....................!
real 139.06
user 137.23
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.0304       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.7657       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54601       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5354       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5021       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.094       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10768E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5401       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10658       1.0000         .10000E-03   10000.    
    16 'norm      '    .34884       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.536       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6173       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.321       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .75436       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2276       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88372       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=   16511.44     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2484 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8813       -.89603E-07** at limit **
   2  norm          4.0311        2.6119        .70664E-06    .55871E-04
   3  Prefactor     .10000E-03    11.148        .14879E-06** at limit **
   4  Prefactor     .10000E-03    11.313        .33362E-06** at limit **
   5  Prefactor     .10000E-03    9.7249        .20818E-06** at limit **
   6  norm          2.7663        4.9142        .10779E-06    .33746E-05
   7  norm          .10000E-03    64.887       -.29138E-06** at limit **
   8  Prefactor     .55451        1.6400        .98726E-07   -.21359E-03
   9  Prefactor     2.5775        63.605       -.73385E-05    .10577E-04
  10  norm          1.5021        .45623        .15444E-08   -.57741E-04
  11  Prefactor     23.051        24.742        .23922E-05   -.14564E-04
  12  Prefactor     .10000E-03    4.8776       -.41202E-08** at limit **
  13  Prefactor     .10000E-03    15.890       -.13566E-06** at limit **
  14  Prefactor     7.5415        9.8988        .23049E-06    .68347E-04
  15  Prefactor     .11672        .56174        .10758E-06   -.43367E-03
  16  norm          .34906        .57565       -.96723E-07   -.93294E-03
  17  Prefactor     23.536        18.425        .11523E-07   -.69463E-05
  18  Prefactor     1.6180        5.3607        .53888E-06    .49280E-04
  19  Prefactor     10.325        10.916        .63572E-07    .58879E-05
  20  Prefactor     .75440        1.4515        .26904E-07   -.11803E-03
  21  Normalizat    1.2274        .11995       -.41624E-07    .16442E-03
  22  Prefactor     .88374        .89222E-01    .83963E-07    .15678E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.03113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.76634
  norm       = 0.0001
  Prefactor  = 0.554509
  Prefactor  = 2.57747
  norm       = 1.50207
  Prefactor  = 23.0515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.54152
  Prefactor  = 0.116716
  norm       = 0.349064
  Prefactor  = 23.5355
  Prefactor  = 1.61804
  Prefactor  = 10.3249
  Prefactor  = 0.754404
  Normalizat = 1.22742
  Prefactor  = 0.883739
 **********
 **   18 **HESSE 
 **********

 FCN=   16511.44     FROM HESSE     STATUS=OK           358 CALLS     2842 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.0311        2.6065        .79592E-03   -1.5306    
   3  Prefactor     .10000E-03    11.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.7515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.7663        4.8992        .24474E-03   -1.5375    
   7  norm          .10000E-03    65.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55451        3.9731        .25310E-02   -1.5559    
   9  Prefactor     2.5775        63.327        .25650E-03   -1.5387    
  10  norm          1.5021        .44939        .44144E-04   -1.5463    
  11  Prefactor     23.051        24.658        .83352E-04   -1.4747    
  12  Prefactor     .10000E-03    4.8820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.310        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.5415        9.6847        .14605E-03   -1.5159    
  15  Prefactor     .11672        4.2794        .17807E-02   -1.5640    
  16  norm          .34906        .48141        .11290E-02   -1.5590    
  17  Prefactor     23.536        18.393        .82567E-04   -1.4737    
  18  Prefactor     1.6180        5.2426        .33289E-03   -1.5454    
  19  Prefactor     10.325        10.936        .12472E-03   -1.5065    
  20  Prefactor     .75440        1.3818        .20912E-02   -1.5534    
  21  Normalizat    1.2274        .14050        .25485E-03   -.85760    
  22  Prefactor     .88374        .10530        .22820E-03   -.96712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78476e-08
Minuit parameter uncertainties:
  1  6.23731e-06
  2  2.60654
  3  1.26285e-05
  4  8.78631e-06
  5  1.13548e-05
  6  4.89995
  7  0.000220584
  8  2.96859
  9  25.5817
  10  0.449394
  11  24.6691
  12  1.64279e-06
  13  6.27379e-05
  14  9.68675
  15  1.41298
  16  0.481413
  17  18.3976
  18  5.24411
  19  10.9384
  20  1.38185
  21  0.14054
  22  0.105329
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.643e-06  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.837e-01  1.053e-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.227e+00  1.405e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/571943/likelihoodResults_289180801_289785601_4FGL_J0818.7+3153_weekly_bin83.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) = 16511.438359
delta logL = -0.000976232498942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16511.4373826
delta logL = 1.9185608835e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1124       1.0000          .0000       10.000    
     3 'Normalizat'    1.2274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88375       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=   16511.44     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      245 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10545E-03    .78170        .18142E-01** at limit **
   2  Index         1.9079        5.7222        .50000        .21722E-04
   3  Normalizat    1.2274        .10884E-02    .25486E-03    .44608E-04
   4  Prefactor     .88374        .84666E-03    .22820E-03    .41849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105451
  Index      = 1.90792
  Normalizat = 1.22742
  Prefactor  = 0.883739
 **********
 **   18 **HESSE 
 **********

 FCN=   16511.44     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10545E-03    43.065        .30208E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9079        6.1260        .50000       -.66672    
   3  Normalizat    1.2274        .81370E-02    .10194E-04   -.85760    
   4  Prefactor     .88374        .63294E-02    .91279E-05   -.96712    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.5813e-08
Minuit parameter uncertainties:
  1  0.0306657
  2  428.761
  3  0.008137
  4  0.00632941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571943': 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) = 16511.4373816
delta logL = 1.15900184028e-06

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.055e-04  3.067e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.908e+00  4.288e+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.837e-01  6.329e-03  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.227e+00  8.137e-03  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/571943/cmap_HighResolution_289180801_289785601_4FGL_J0818.7+3153_weekly_bin83.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-03', job_status='DONE', photon_flux_upper_limit='2.67e-08', time_completed='2021-07-13 15:27:41.677055', job_id='571943', GAL2='0.88', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1626215261.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='83' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:27:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 571943: <4FGL_J0818.7+3153_weekly_bin83> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin83> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 07:41:21 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 13 14:54:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 13 14:54:32 2021
Terminated at Tue Jul 13 15:27:46 2021
Results reported at Tue Jul 13 15:27:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin83 124.695 31.8862 289180801 289785601 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 :                                   1273.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             252.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1996 sec.
    Turnaround time :                            114385 sec.

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

