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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin473
RA = 124.695, Dec = 31.8862
tmin = 525052801, tmax = 525657601
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='574337', job_status='RUN', time_executed='2021-07-13 14:59:27.727466', time_epoch_executed='1626213567.73' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574337

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574337/ft1_4FGL_J0818.7+3153_weekly_bin473.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574337/ft2_4FGL_J0818.7+3153_weekly_bin473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574337/ft1_4FGL_J0818.7+3153_weekly_bin473.fits outfile=/scratch/kocevski/574337/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin473.fits ra=124.695 dec=31.8862 rad=12.0 tmin=525052801.0 tmax=525657601.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 8.52
user 7.77
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574337/ft1_filtered_4FGL_J0818.7+3153_weekly_bin473.fits" evtable="EVENTS" scfile=/scratch/kocevski/574337/ft2_4FGL_J0818.7+3153_weekly_bin473.fits sctable="SC_DATA" outfile=/scratch/kocevski/574337/ltcube_525052801_525657601_4FGL_J0818.7+3153_weekly_bin473.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/574337/ft2_4FGL_J0818.7+3153_weekly_bin473.fits
.....................!
real 29.28
user 28.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574337/ft1_filtered_4FGL_J0818.7+3153_weekly_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/574337/ft2_4FGL_J0818.7+3153_weekly_bin473.fits sctable="SC_DATA" expcube=/scratch/kocevski/574337/ltcube_525052801_525657601_4FGL_J0818.7+3153_weekly_bin473.fits outfile=/scratch/kocevski/574337/expmap_525052801_525657601_4FGL_J0818.7+3153_weekly_bin473.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/574337/ltcube_525052801_525657601_4FGL_J0818.7+3153_weekly_bin473.fits
.....................!
real 191.46
user 185.57
sys 4.85

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/574337/ft1_filtered_4FGL_J0818.7+3153_weekly_bin473.fits scfile=/scratch/kocevski/574337/ft2_4FGL_J0818.7+3153_weekly_bin473.fits outfile=/scratch/kocevski/574337/cmap_525052801_525657601_4FGL_J0818.7+3153_weekly_bin473.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/574337/ft1_filtered_4FGL_J0818.7+3153_weekly_bin473.fits scfile=/scratch/kocevski/574337/ft2_4FGL_J0818.7+3153_weekly_bin473.fits outfile=/scratch/kocevski/574337/cmap_HighResolution_525052801_525657601_4FGL_J0818.7+3153_weekly_bin473.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.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .22522E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4314       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.497       1.0000         .10000E-03   10000.    
     6 'norm      '    6.7751       1.0000         .10000E-03   10000.    
     7 'norm      '    43.639       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.090       1.0000         .10000E-03   10000.    
    10 'norm      '    .68195       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .40414E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3706       1.0000         .10000E-03   10000.    
    16 'norm      '    .62883       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6765       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.038       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0376       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93360       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=   14103.73     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2465 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7168        .19514E-08** at limit **
   2  norm          .10000E-03    .73408       -.11381E-06** at limit **
   3  Prefactor     .10000E-03    8.7228        .38909E-06** at limit **
   4  Prefactor     8.4368        10.476       -.69600E-06   -.15184E-03
   5  Prefactor     22.508        19.767        .35907E-05    .85338E-03
   6  norm          6.7747        7.1405        .15234E-06   -.54515E-04
   7  norm          43.638        51.135       -.45232E-06   -.44196E-04
   8  Prefactor     .10000E-03    .75069        .25035E-08** at limit **
   9  Prefactor     14.093        19.684        .85127E-06    .12836E-03
  10  norm          .68210        .34768        .98255E-09    .18936E-02
  11  Prefactor     .10000E-03    17.240        .13123E-06** at limit **
  12  Prefactor     .10000E-03    3.4859        .33215E-07** at limit **
  13  Prefactor     .10004E-03    3.9296       -.17377E-05** at limit **
  14  Prefactor     .10000E-03    2.4420        .93043E-08** at limit **
  15  Prefactor     3.3722        2.0200        .89248E-07    .15161E-02
  16  norm          .62887        .48886        .29834E-07   -.24864E-04
  17  Prefactor     4.6769        10.863        .48690E-05   -.39307E-03
  18  Prefactor     .10000E-03    1.4741        .26480E-08** at limit **
  19  Prefactor     16.036        11.743        .24673E-06    .45115E-04
  20  Prefactor     .10000E-03    .77353        .11930E-07** at limit **
  21  Normalizat    1.0376        .11707       -.34193E-06    .38280E-03
  22  Prefactor     .93357        .93190E-01   -.21858E-06    .37876E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 8.43683
  Prefactor  = 22.5079
  norm       = 6.77472
  norm       = 43.6378
  Prefactor  = 0.0001
  Prefactor  = 14.0928
  norm       = 0.682096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 3.37221
  norm       = 0.628866
  Prefactor  = 4.67691
  Prefactor  = 0.0001
  Prefactor  = 16.0361
  Prefactor  = 0.0001
  Normalizat = 1.03765
  Prefactor  = 0.933571
 **********
 **   18 **HESSE 
 **********

 FCN=   14103.73     FROM HESSE     STATUS=OK           352 CALLS     2817 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0897        .36497E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4368        10.474        .13806E-03   -1.5127    
   5  Prefactor     22.508        21.882        .84449E-04   -1.4759    
   6  norm          6.7747        7.1409        .15415E-03   -1.5187    
   7  norm          43.638        51.195        .60688E-04   -1.4386    
   8  Prefactor     .10000E-03    .75692        .10041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.093        19.695        .10670E-03   -1.4957    
  10  norm          .68210        .33071        .47567E-03   -1.5543    
  11  Prefactor     .10000E-03    17.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10004E-03    12.877        .40316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4451        .18122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3722        1.9254        .11794E-03   -1.5341    
  16  norm          .62887        .48100        .70757E-04   -1.5549    
  17  Prefactor     4.6769        11.831        .93047E-03   -1.5275    
  18  Prefactor     .10000E-03    1.4807        .14079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.036        11.773        .10001E-03   -1.4907    
  20  Prefactor     .10000E-03    .78015        .10198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0376        .13504        .24892E-03   -.91780    
  22  Prefactor     .93357        .10800        .21217E-03   -.94978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36974e-09
Minuit parameter uncertainties:
  1  4.74698e-06
  2  9.10595e-05
  3  8.87441e-07
  4  10.4764
  5  21.8902
  6  7.14176
  7  51.2464
  8  1.64381e-06
  9  19.7039
  10  0.330706
  11  1.50931e-05
  12  2.83498e-06
  13  0.00142222
  14  5.2381e-07
  15  1.92548
  16  0.481004
  17  11.8365
  18  5.84343e-07
  19  11.775
  20  9.27208e-07
  21  0.135084
  22  0.10802
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.835e-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:  9.336e-01  1.080e-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.038e+00  1.351e-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.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574337/likelihoodResults_525052801_525657601_4FGL_J0818.7+3153_weekly_bin473.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) = 14103.7306259
delta logL = -0.00136438398476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14103.7292631
delta logL = -1.56251007866e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1002       1.0000          .0000       10.000    
     3 'Normalizat'    1.0378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93345       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=   14103.73     FROM MIGRAD    STATUS=FAILED        89 CALLS      237 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10190E-03    23.354        .18142E-02** at limit **
   2  Index         2.0356        8.3502        .50000        .64226E-04
   3  Normalizat    1.0376        .71023E-02    .24892E-03   -.11600E-04
   4  Prefactor     .93357        .58028E-02    .21217E-03   -.39222E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   14103.73     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      360 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10190E-03    23.354        .40025E-03** at limit **
   2  Index         2.0356        8.3502        .90851E-02    .64226E-04
   3  Normalizat    1.0376        .71023E-02    .14910E-04   -.11600E-04
   4  Prefactor     .93357        .58028E-02    .51663E-05   -.39222E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14103.73     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      407 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.808        .36285E-02** at limit **
   2  Index         1.3912        5.4710        .50000        .65284E-06
   3  Normalizat    1.0376        .84810E-02    .99570E-05    .89013E-03
   4  Prefactor     .93357        .69293E-02    .84870E-05    .10888E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.39122
  Normalizat = 1.03765
  Prefactor  = 0.933572
 **********
 **   18 **HESSE 
 **********

 FCN=   14103.73     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      436 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    245.23        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3912        7.0171        .50000       -.80634    
   3  Normalizat    1.0376        .19185E-01    .19914E-05   -.91780    
   4  Prefactor     .93357        .15673E-01    .16974E-05   -.94978    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.2004e-09
Minuit parameter uncertainties:
  1  0.000784822
  2  714.481
  3  0.0191853
  4  0.0156732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574337': 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) = 14103.7292553
delta logL = 6.27952067589e-06

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.848e-04  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.391e+00  7.145e+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:  9.336e-01  1.567e-02  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.038e+00  1.919e-02  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/574337/cmap_HighResolution_525052801_525657601_4FGL_J0818.7+3153_weekly_bin473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-03', job_status='DONE', photon_flux_upper_limit='2.02e-08', time_completed='2021-07-13 15:26:54.304283', job_id='574337', GAL2='0.93', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1626215214.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='473' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:26:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 574337: <4FGL_J0818.7+3153_weekly_bin473> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin473 124.695 31.8862 525052801 525657601 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 :                                   1180.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2115 sec.
    Turnaround time :                            113926 sec.

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

