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 179 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 = 17142
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin266
RA = 124.695, Dec = 31.8862
tmin = 399859201, tmax = 400464001
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='573829', job_status='RUN', time_executed='2021-07-13 14:57:08.885036', time_epoch_executed='1626213428.89' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='266'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573829

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573829/ft1_4FGL_J0818.7+3153_weekly_bin266.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573829/ft2_4FGL_J0818.7+3153_weekly_bin266.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573829/ft1_4FGL_J0818.7+3153_weekly_bin266.fits outfile=/scratch/kocevski/573829/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin266.fits ra=124.695 dec=31.8862 rad=12.0 tmin=399859201.0 tmax=400464001.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 9.35
user 9.00
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573829/ft1_filtered_4FGL_J0818.7+3153_weekly_bin266.fits" evtable="EVENTS" scfile=/scratch/kocevski/573829/ft2_4FGL_J0818.7+3153_weekly_bin266.fits sctable="SC_DATA" outfile=/scratch/kocevski/573829/ltcube_399859201_400464001_4FGL_J0818.7+3153_weekly_bin266.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/573829/ft2_4FGL_J0818.7+3153_weekly_bin266.fits
.....................!
real 28.28
user 27.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573829/ft1_filtered_4FGL_J0818.7+3153_weekly_bin266.fits evtable="EVENTS" scfile=/scratch/kocevski/573829/ft2_4FGL_J0818.7+3153_weekly_bin266.fits sctable="SC_DATA" expcube=/scratch/kocevski/573829/ltcube_399859201_400464001_4FGL_J0818.7+3153_weekly_bin266.fits outfile=/scratch/kocevski/573829/expmap_399859201_400464001_4FGL_J0818.7+3153_weekly_bin266.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/573829/ltcube_399859201_400464001_4FGL_J0818.7+3153_weekly_bin266.fits
.....................!
real 191.27
user 186.28
sys 4.55

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/573829/ft1_filtered_4FGL_J0818.7+3153_weekly_bin266.fits scfile=/scratch/kocevski/573829/ft2_4FGL_J0818.7+3153_weekly_bin266.fits outfile=/scratch/kocevski/573829/cmap_399859201_400464001_4FGL_J0818.7+3153_weekly_bin266.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=124.695 yref=31.8862 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573829/ft1_filtered_4FGL_J0818.7+3153_weekly_bin266.fits scfile=/scratch/kocevski/573829/ft2_4FGL_J0818.7+3153_weekly_bin266.fits outfile=/scratch/kocevski/573829/cmap_HighResolution_399859201_400464001_4FGL_J0818.7+3153_weekly_bin266.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=124.695 yref=31.8862 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.60
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1510       1.0000         .10000E-03   10000.    
     2 'norm      '    5.0867       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.824       1.0000         .10000E-03   10000.    
     6 'norm      '    10.225       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2682       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.961       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.177       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0358       1.0000         .10000E-03   10000.    
    16 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.046       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6005       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.234       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4631       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0908       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94736       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=   16695.21     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2376 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1513        6.9453       -.41401E-06   -.15083E-03
   2  norm          5.0876        2.9589       -.11776E-06   -.11524E-02
   3  Prefactor     .10000E-03    15.286       -.15854E-04** at limit **
   4  Prefactor     .10000E-03    16.368        .13542E-04** at limit **
   5  Prefactor     16.822        25.805       -.15475E-05    .53406E-04
   6  norm          10.225        6.8928       -.22250E-06   -.94385E-04
   7  norm          .10000E-03    49.695       -.30639E-05** at limit **
   8  Prefactor     .10000E-03    1.8891       -.35606E-07** at limit **
   9  Prefactor     .10000E-03    12.534        .33584E-05** at limit **
  10  norm          1.2681        .39705       -.19818E-07   -.52407E-03
  11  Prefactor     17.962        14.179       -.83422E-07   -.20049E-04
  12  Prefactor     .10000E-03    4.2891        .35983E-07** at limit **
  13  Prefactor     .10000E-03    2.2070       -.20880E-07** at limit **
  14  Prefactor     22.166        14.651        .15101E-05    .87184E-04
  15  Prefactor     2.0359        1.5111       -.75852E-07   -.52461E-03
  16  norm          .10000E-03    .32601       -.78899E-07** at limit **
  17  Prefactor     29.047        16.719       -.42112E-07   -.31636E-05
  18  Prefactor     2.5993        6.4266       -.21430E-05   -.55100E-03
  19  Prefactor     14.236        11.761       -.62637E-06   -.36883E-04
  20  Prefactor     1.4632        1.4510       -.24831E-07   -.91687E-04
  21  Normalizat    1.0906        .11864        .36344E-06   -.59317E-04
  22  Prefactor     .94748        .90274E-01   -.26769E-07   -.48127E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.15129
  norm       = 5.08758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8222
  norm       = 10.2253
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26815
  Prefactor  = 17.9624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1655
  Prefactor  = 2.03594
  norm       = 0.0001
  Prefactor  = 29.0473
  Prefactor  = 2.59929
  Prefactor  = 14.2357
  Prefactor  = 1.46319
  Normalizat = 1.09062
  Prefactor  = 0.947476
 **********
 **   18 **HESSE 
 **********

 FCN=   16695.21     FROM HESSE     STATUS=OK           348 CALLS     2724 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1513        6.9499        .15000E-03   -1.5173    
   2  norm          5.0876        2.9559        .15116E-03   -1.5257    
   3  Prefactor     .10000E-03    15.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.515        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.822        25.684        .97646E-04   -1.4887    
   6  norm          10.225        6.8957        .12531E-03   -1.5068    
   7  norm          .10000E-03    49.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9566        .34632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2681        .39413        .43738E-04   -1.5483    
  11  Prefactor     17.962        14.180        .94505E-04   -1.4860    
  12  Prefactor     .10000E-03    4.2943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.166        14.043        .85056E-04   -1.4766    
  15  Prefactor     2.0359        1.5115        .13090E-03   -1.5423    
  16  norm          .10000E-03    .55649        .13299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.047        16.713        .74338E-04   -1.4630    
  18  Prefactor     2.5993        6.4441        .25299E-03   -1.5386    
  19  Prefactor     14.236        11.826        .10616E-03   -1.4953    
  20  Prefactor     1.4632        1.4524        .15089E-03   -1.5466    
  21  Normalizat    1.0906        .14073        .26742E-03   -.90054    
  22  Prefactor     .94748        .10688        .22362E-03   -.94501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05292e-10
Minuit parameter uncertainties:
  1  6.95071
  2  2.95594
  3  4.60818e-05
  4  0.000160312
  5  25.7008
  6  6.89626
  7  5.92402e-07
  8  1.87886e-07
  9  1.48254e-05
  10  0.394132
  11  14.1831
  12  9.87756e-07
  13  5.26906e-07
  14  14.0449
  15  1.51148
  16  5.2765e-06
  17  16.7156
  18  6.44586
  19  11.8284
  20  1.45246
  21  0.140777
  22  0.106905
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  9.878e-07  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.475e-01  1.069e-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.091e+00  1.408e-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.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573829/likelihoodResults_399859201_400464001_4FGL_J0818.7+3153_weekly_bin266.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) = 16695.2107093
delta logL = -0.00110942722677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16695.2095995
delta logL = 4.13008820033e-07

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     '    2.1044       1.0000          .0000       10.000    
     3 'Normalizat'    1.0906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94748       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=   16695.21     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10148E-03    28.317        .18142E-02** at limit **
   2  Index         2.0472        6.0417        .50000        .47355E-04
   3  Normalizat    1.0906        .72087E-02    .26742E-03    .34691E-04
   4  Prefactor     .94748        .56927E-02    .22362E-03   -.89478E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101479
  Index      = 2.04718
  Normalizat = 1.09062
  Prefactor  = 0.947476
 **********
 **   18 **HESSE 
 **********

 FCN=   16695.21     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10148E-03    129.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0472        8.5086        .50000       -.63176    
   3  Normalizat    1.0906        .15801E-01    .10697E-04   -.90054    
   4  Prefactor     .94748        .12477E-01    .89447E-05   -.94501    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.95068e-08
Minuit parameter uncertainties:
  1  0.0277263
  2  267.48
  3  0.0158006
  4  0.0124768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573829': 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) = 16695.2095989
delta logL = 9.71453118837e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.015e-04  2.773e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.047e+00  2.675e+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.475e-01  1.248e-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.091e+00  1.580e-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/573829/cmap_HighResolution_399859201_400464001_4FGL_J0818.7+3153_weekly_bin266.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-03', job_status='DONE', photon_flux_upper_limit='2.32e-08', time_completed='2021-07-13 15:27:20.276341', job_id='573829', GAL2='0.95', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1626215240.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='266' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:27:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 573829: <4FGL_J0818.7+3153_weekly_bin266> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin266 124.695 31.8862 399859201 400464001 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 :                                   1262.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             51.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2457 sec.
    Turnaround time :                            114001 sec.

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

