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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin337
RA = 124.695, Dec = 31.8862
tmin = 442800001, tmax = 443404801
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='574123', job_status='RUN', time_executed='2021-07-13 14:54:08.087050', time_epoch_executed='1626213248.09' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574123

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574123/ft1_4FGL_J0818.7+3153_weekly_bin337.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574123/ft2_4FGL_J0818.7+3153_weekly_bin337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574123/ft1_4FGL_J0818.7+3153_weekly_bin337.fits outfile=/scratch/kocevski/574123/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin337.fits ra=124.695 dec=31.8862 rad=12.0 tmin=442800001.0 tmax=443404801.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.92
user 7.58
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574123/ft2_4FGL_J0818.7+3153_weekly_bin337.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/574123/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin337.fits evtable="EVENTS" outfile="/scratch/kocevski/574123/ft1_filtered_4FGL_J0818.7+3153_weekly_bin337.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/574123/ft1_filtered_4FGL_J0818.7+3153_weekly_bin337.fits" evtable="EVENTS" scfile=/scratch/kocevski/574123/ft2_4FGL_J0818.7+3153_weekly_bin337.fits sctable="SC_DATA" outfile=/scratch/kocevski/574123/ltcube_442800001_443404801_4FGL_J0818.7+3153_weekly_bin337.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/574123/ft2_4FGL_J0818.7+3153_weekly_bin337.fits
.....................!
real 27.51
user 27.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574123/ft1_filtered_4FGL_J0818.7+3153_weekly_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/574123/ft2_4FGL_J0818.7+3153_weekly_bin337.fits sctable="SC_DATA" expcube=/scratch/kocevski/574123/ltcube_442800001_443404801_4FGL_J0818.7+3153_weekly_bin337.fits outfile=/scratch/kocevski/574123/expmap_442800001_443404801_4FGL_J0818.7+3153_weekly_bin337.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/574123/ltcube_442800001_443404801_4FGL_J0818.7+3153_weekly_bin337.fits
.....................!
real 190.68
user 185.14
sys 4.72

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/574123/ft1_filtered_4FGL_J0818.7+3153_weekly_bin337.fits scfile=/scratch/kocevski/574123/ft2_4FGL_J0818.7+3153_weekly_bin337.fits outfile=/scratch/kocevski/574123/cmap_442800001_443404801_4FGL_J0818.7+3153_weekly_bin337.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.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574123/ft1_filtered_4FGL_J0818.7+3153_weekly_bin337.fits scfile=/scratch/kocevski/574123/ft2_4FGL_J0818.7+3153_weekly_bin337.fits outfile=/scratch/kocevski/574123/cmap_HighResolution_442800001_443404801_4FGL_J0818.7+3153_weekly_bin337.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.44
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574123/ft1_filtered_4FGL_J0818.7+3153_weekly_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/574123/ft2_4FGL_J0818.7+3153_weekly_bin337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574123/Model_4FGL_J0818.7+3153_weekly_bin337.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/574123/ft1_filtered_4FGL_J0818.7+3153_weekly_bin337.fits.....................!
real 121.97
user 120.34
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0765       1.0000         .10000E-03   10000.    
     2 'norm      '    3.8841       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.217       1.0000         .10000E-03   10000.    
     7 'norm      '    59.610       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .65479       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22050E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1723       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0328       1.0000         .10000E-03   10000.    
    16 'norm      '    .34738       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9478       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8902       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94682       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99398       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14356.06     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2378 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0897        10.353         .0000        .28769E-01
   2  norm          3.8854        2.7522         .0000        .11967E-02
   3  Prefactor     .10013E-03    12.079         .0000    ** at limit **
   4  Prefactor     .10003E-03    9.5163         .0000    ** at limit **
   5  Prefactor     .10002E-03    10.072         .0000    ** at limit **
   6  norm          14.217        7.0522         .0000        .17782E-03
   7  norm          59.609        55.213         .0000        .55003E-03
   8  Prefactor     .10000E-03    .98036         .0000    ** at limit **
   9  Prefactor     .10002E-03    8.8024         .0000    ** at limit **
  10  norm          .65484        .31691         .0000       -.52933E-03
  11  Prefactor     .10006E-03    13.823         .0000    ** at limit **
  12  Prefactor     .10000E-03    8.8830         .0000    ** at limit **
  13  Prefactor     7.1742        7.4916         .0000        .29845E-03
  14  Prefactor     .10000E-03    2.7526         .0000    ** at limit **
  15  Prefactor     1.0329        1.4737         .0000        .20337E-02
  16  norm          .34732        .48003         .0000        .35583E-02
  17  Prefactor     .10000E-03    6.0201         .0000    ** at limit **
  18  Prefactor     2.9486        4.1209         .0000        .18938E-01
  19  Prefactor     .10000E-03    13.165         .0000    ** at limit **
  20  Prefactor     3.8904        2.1242         .0000        .87942E-04
  21  Normalizat    .94680        .11202         .0000        .56213E-03
  22  Prefactor     .99392        .90962E-01     .0000        .42634E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0897
  norm       = 3.88535
  Prefactor  = 0.000100133
  Prefactor  = 0.000100032
  Prefactor  = 0.000100023
  norm       = 14.2169
  norm       = 59.6094
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  norm       = 0.654844
  Prefactor  = 0.000100057
  Prefactor  = 0.000100003
  Prefactor  = 7.1742
  Prefactor  = 0.0001
  Prefactor  = 1.03292
  norm       = 0.347318
  Prefactor  = 0.0001
  Prefactor  = 2.94856
  Prefactor  = 0.000100001
  Prefactor  = 3.89043
  Normalizat = 0.946798
  Prefactor  = 0.993916
 **********
 **   18 **HESSE 
 **********

 FCN=   14356.06     FROM HESSE     STATUS=OK           346 CALLS     2724 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0897        10.656        .23293E-02   -1.5499    
   2  norm          3.8854        2.7380        .15796E-03   -1.5314    
   3  Prefactor     .10013E-03    12.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    9.6045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    10.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.217        7.0516        .10623E-03   -1.4954    
   7  norm          59.609        55.238        .51965E-04   -1.4162    
   8  Prefactor     .10000E-03    .99490        .11571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    8.8375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .65484        .31302        .44500E-04   -1.5546    
  11  Prefactor     .10006E-03    14.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    74.861        .68421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.1742        7.3080        .14978E-03   -1.5172    
  14  Prefactor     .10000E-03    2.7610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0329        1.4018        .15616E-03   -1.5505    
  16  norm          .34732        .38896        .93200E-03   -1.5590    
  17  Prefactor     .10000E-03    6.0434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.9486        4.0899        .11827E-02   -1.5365    
  19  Prefactor     .10000E-03    13.595        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.8904        2.1240        .12545E-03   -1.5313    
  21  Normalizat    .94680        .12779        .25397E-03   -.94835    
  22  Prefactor     .99392        .10541        .20560E-03   -.92933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67771e-08
Minuit parameter uncertainties:
  1  6.81654
  2  2.73808
  3  0.00253639
  4  0.00111594
  5  0.000956556
  6  7.052
  7  55.2859
  8  3.81944e-06
  9  0.000831133
  10  0.313023
  11  0.00178602
  12  0.000920671
  13  7.30886
  14  9.56926e-06
  15  1.40187
  16  0.388964
  17  1.6019e-05
  18  4.09027
  19  0.000278731
  20  2.12408
  21  0.127831
  22  0.105431
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  9.207e-04  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.939e-01  1.054e-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.468e-01  1.278e-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: 3.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574123/likelihoodResults_442800001_443404801_4FGL_J0818.7+3153_weekly_bin337.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) = 14356.0591006
delta logL = -6.14707569184e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14356.0591006
delta logL = -6.14652890363e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1347       1.0000          .0000       10.000    
     3 'Normalizat'    .94679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99391       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=   14353.02     FROM MIGRAD    STATUS=CONVERGED    236 CALLS      401 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .11479E-02    .32456E-03** at limit **
   2  Index         6.6007        1.1361        .81468E-01    .38047E-03
   3  Normalizat    .85487        .29022E-01    .45497E-01    .72669E-04
   4  Prefactor     1.0420        .23697E-01    .46191E-01    .54400E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.60067
  Normalizat = 0.854865
  Prefactor  = 1.04197
 **********
 **   18 **HESSE 
 **********

 FCN=   14353.02     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      442 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .93909E-02    .14481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.6007        2.0001        .31318E-02    .32587    
   3  Normalizat    .85487        .69472E-01    .26562E-03   -.98065    
   4  Prefactor     1.0420        .57218E-01    .20133E-03   -.91343    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.90798e-07
Minuit parameter uncertainties:
  1  7.21563e-08
  2  2.06489
  3  0.0694791
  4  0.0572215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574123': 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) = 14353.0239962
delta logL = 3.03504291102

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.216e-08  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  6.601e+00  2.065e+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.042e+00  5.722e-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.549e-01  6.948e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.48
Ra Dec: 124.695 31.886
Photon Index (Free Index): 6.60 +/- 2.06
Photon Flux (Free Index): 6.35e-08 +/- 4.08e-07
Energy Flux (Free Index): 7.70e-06 +/- 4.91e-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/574123/cmap_HighResolution_442800001_443404801_4FGL_J0818.7+3153_weekly_bin337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-03', comment='SUCCESS', energy_flux2='7.70e-06', dlogl='3.04e+00', photon_flux2='6.35e-08', job_status='DONE', time_completed='2021-07-13 15:20:33.741532', photon_index_error2='2.06', photon_index2='6.60', ts='-0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='3.92e-08', energy_flux_error2='4.91e-05', EG='0.95', time_epoch_completed='1626214833.74', return_code='0', job_id='574123', GAL2='1.04', EG2='0.85', return_code2='102', photon_flux_error2='4.08e-07', ts2='6.48', photon_index='2.13' WHERE bin_id='337' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:20:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 574123: <4FGL_J0818.7+3153_weekly_bin337> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin337 124.695 31.8862 442800001 443404801 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 :                                   1186.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   1917 sec.
    Turnaround time :                            113565 sec.

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

