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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin318
RA = 124.695, Dec = 31.8862
tmin = 431308801, tmax = 431913601
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='574092', job_status='RUN', time_executed='2021-07-13 14:57:01.500454', time_epoch_executed='1626213421.5' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574092

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574092/ft1_4FGL_J0818.7+3153_weekly_bin318.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574092/ft2_4FGL_J0818.7+3153_weekly_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574092/ft1_4FGL_J0818.7+3153_weekly_bin318.fits outfile=/scratch/kocevski/574092/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin318.fits ra=124.695 dec=31.8862 rad=12.0 tmin=431308801.0 tmax=431913601.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 12.85
user 12.35
sys 0.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574092/ft2_4FGL_J0818.7+3153_weekly_bin318.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/574092/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin318.fits evtable="EVENTS" outfile="/scratch/kocevski/574092/ft1_filtered_4FGL_J0818.7+3153_weekly_bin318.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.64
user 0.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574092/ft1_filtered_4FGL_J0818.7+3153_weekly_bin318.fits" evtable="EVENTS" scfile=/scratch/kocevski/574092/ft2_4FGL_J0818.7+3153_weekly_bin318.fits sctable="SC_DATA" outfile=/scratch/kocevski/574092/ltcube_431308801_431913601_4FGL_J0818.7+3153_weekly_bin318.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/574092/ft2_4FGL_J0818.7+3153_weekly_bin318.fits
.....................!
real 29.74
user 28.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574092/ft1_filtered_4FGL_J0818.7+3153_weekly_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/574092/ft2_4FGL_J0818.7+3153_weekly_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/574092/ltcube_431308801_431913601_4FGL_J0818.7+3153_weekly_bin318.fits outfile=/scratch/kocevski/574092/expmap_431308801_431913601_4FGL_J0818.7+3153_weekly_bin318.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/574092/ltcube_431308801_431913601_4FGL_J0818.7+3153_weekly_bin318.fits
.....................!
real 193.07
user 185.40
sys 5.89

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/574092/ft1_filtered_4FGL_J0818.7+3153_weekly_bin318.fits scfile=/scratch/kocevski/574092/ft2_4FGL_J0818.7+3153_weekly_bin318.fits outfile=/scratch/kocevski/574092/cmap_431308801_431913601_4FGL_J0818.7+3153_weekly_bin318.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574092/ft1_filtered_4FGL_J0818.7+3153_weekly_bin318.fits scfile=/scratch/kocevski/574092/ft2_4FGL_J0818.7+3153_weekly_bin318.fits outfile=/scratch/kocevski/574092/cmap_HighResolution_431308801_431913601_4FGL_J0818.7+3153_weekly_bin318.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/574092/ft1_filtered_4FGL_J0818.7+3153_weekly_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/574092/ft2_4FGL_J0818.7+3153_weekly_bin318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574092/Model_4FGL_J0818.7+3153_weekly_bin318.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/574092/ft1_filtered_4FGL_J0818.7+3153_weekly_bin318.fits....................!
real 126.86
user 124.84
sys 1.52

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574092/ft1_filtered_4FGL_J0818.7+3153_weekly_bin318.fits', '/scratch/kocevski/574092/ft2_4FGL_J0818.7+3153_weekly_bin318.fits', expMap='/scratch/kocevski/574092/expmap_431308801_431913601_4FGL_J0818.7+3153_weekly_bin318.fits', expCube='/scratch/kocevski/574092/ltcube_431308801_431913601_4FGL_J0818.7+3153_weekly_bin318.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574092/Model_4FGL_J0818.7+3153_weekly_bin318.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/574092/ft1_filtered_4FGL_J0818.7+3153_weekly_bin318.fits
Spacecraft file(s): /scratch/kocevski/574092/ft2_4FGL_J0818.7+3153_weekly_bin318.fits
Exposure map: /scratch/kocevski/574092/expmap_431308801_431913601_4FGL_J0818.7+3153_weekly_bin318.fits
Exposure cube: /scratch/kocevski/574092/ltcube_431308801_431913601_4FGL_J0818.7+3153_weekly_bin318.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574092/Model_4FGL_J0818.7+3153_weekly_bin318.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 14575.4754422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.283       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5869       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3100       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9254       1.0000         .10000E-03   10000.    
     6 'norm      '    .80973       1.0000         .10000E-03   10000.    
     7 'norm      '    82.051       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9160       1.0000         .10000E-03   10000.    
    10 'norm      '    .86850       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11904E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5536       1.0000         .10000E-03   10000.    
    16 'norm      '    .42243       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.636       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2112       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9064       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0944       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98110       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=   14575.27     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2087 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.283        8.0563        .53612E-07   -.56522E-04
   2  norm          2.5868        2.3947        .55612E-07   -.15833E-03
   3  Prefactor     .10000E-03    6.5775        .12677E-06** at limit **
   4  Prefactor     3.3103        14.521        .85288E-06   -.23448E-04
   5  Prefactor     2.9250        29.346        .63895E-06   -.15362E-04
   6  norm          .80977        5.0839        .45716E-05   -.29944E-03
   7  norm          82.048        61.282       -.25155E-06   -.33935E-04
   8  Prefactor     .10000E-03    1.8660        .88156E-07** at limit **
   9  Prefactor     5.8940        18.328       -.53024E-05   -.34931E-03
  10  norm          .86848        .36893        .46375E-08   -.24505E-03
  11  Prefactor     .10000E-03    19.563       -.27407E-05** at limit **
  12  Prefactor     .10000E-03    10.533       -.45692E-06** at limit **
  13  Prefactor     .10000E-03    4.5953       -.76060E-07** at limit **
  14  Prefactor     .10000E-03    17.388        .86271E-06** at limit **
  15  Prefactor     1.5535        1.8014        .40996E-06   -.17103E-03
  16  norm          .42255        .83902        .83831E-06   -.60076E-03
  17  Prefactor     35.637        19.148        .11938E-06    .30200E-04
  18  Prefactor     .10000E-03    3.8107       -.14121E-06** at limit **
  19  Prefactor     8.2089        12.620        .12545E-06   -.71905E-04
  20  Prefactor     1.9064        1.4004       -.13684E-07    .40259E-04
  21  Normalizat    1.0946        .12418       -.70350E-06   -.30794E-03
  22  Prefactor     .98096        .95324E-01   -.27791E-06   -.37628E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2829
  norm       = 2.5868
  Prefactor  = 0.0001
  Prefactor  = 3.31031
  Prefactor  = 2.92501
  norm       = 0.809769
  norm       = 82.0483
  Prefactor  = 0.0001
  Prefactor  = 5.894
  norm       = 0.868485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.55353
  norm       = 0.422549
  Prefactor  = 35.6369
  Prefactor  = 0.0001
  Prefactor  = 8.20894
  Prefactor  = 1.90636
  Normalizat = 1.0946
  Prefactor  = 0.980964
 **********
 **   18 **HESSE 
 **********

 FCN=   14575.27     FROM HESSE     STATUS=OK           346 CALLS     2433 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.283        8.0549        .12495E-03   -1.5067    
   2  norm          2.5868        2.3524        .16085E-03   -1.5386    
   3  Prefactor     .10000E-03    6.5838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3103        14.163        .22251E-03   -1.5344    
   5  Prefactor     2.9250        29.160        .23751E-03   -1.5366    
   6  norm          .80977        5.3003        .49904E-03   -1.5528    
   7  norm          82.048        61.330        .44342E-04   -1.3894    
   8  Prefactor     .10000E-03    1.9109        .32160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8940        19.324        .16510E-03   -1.5222    
  10  norm          .86848        .36606        .45909E-04   -1.5522    
  11  Prefactor     .10000E-03    19.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5535        1.7852        .16528E-03   -1.5459    
  16  norm          .42255        .85020        .14542E-03   -1.5578    
  17  Prefactor     35.637        19.127        .67133E-04   -1.4513    
  18  Prefactor     .10000E-03    3.8542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.2089        12.674        .13991E-03   -1.5135    
  20  Prefactor     1.9064        1.4063        .11938E-03   -1.5432    
  21  Normalizat    1.0946        .14626        .26572E-03   -.89925    
  22  Prefactor     .98096        .11273        .21865E-03   -.93367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01662e-09
Minuit parameter uncertainties:
  1  8.05573
  2  2.3525
  3  1.47654e-05
  4  13.6998
  5  18.4822
  6  4.14371
  7  61.3774
  8  1.31474e-07
  9  19.3443
  10  0.366064
  11  1.53204e-05
  12  3.47237e-05
  13  1.19982e-05
  14  0.000127617
  15  1.78528
  16  0.850222
  17  19.1301
  18  1.7955e-05
  19  12.6778
  20  1.4063
  21  0.146317
  22  0.112753
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.472e-05  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.810e-01  1.128e-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.095e+00  1.463e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574092/likelihoodResults_431308801_431913601_4FGL_J0818.7+3153_weekly_bin318.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) = 14575.2713687
delta logL = -0.000450946059573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14575.2709176
delta logL = 6.75699993735e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1532       1.0000          .0000       10.000    
     3 'Normalizat'    1.0946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98096       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=   14575.27     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.878        .90712E-02** at limit **
   2  Index         2.1732        5.9052        .50000       -.16846E-04
   3  Normalizat    1.0946        .73504E-02    .60081E-01    .55815E-04
   4  Prefactor     .98096        .57893E-02    .46029E-01    .44361E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17315
  Normalizat = 1.0946
  Prefactor  = 0.980965
 **********
 **   18 **HESSE 
 **********

 FCN=   14575.27     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      247 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    636.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1732        5.7971        .50000       -.60088    
   3  Normalizat    1.0946        .25961E-01    .26572E-03   -.89925    
   4  Prefactor     .98096        .20458E-01    .21865E-03   -.93367    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.35336e-08
Minuit parameter uncertainties:
  1  0.0003068
  2  31.9177
  3  0.0259615
  4  0.0204577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574092': 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) = 14575.2709176
delta logL = 1.45113517647e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.068e-04  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.173e+00  3.192e+01  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.810e-01  2.046e-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.095e+00  2.596e-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/574092/cmap_HighResolution_431308801_431913601_4FGL_J0818.7+3153_weekly_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-03', job_status='DONE', photon_flux_upper_limit='3.79e-08', time_completed='2021-07-13 15:25:33.098410', job_id='574092', GAL2='0.98', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1626215133.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='318' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:25:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 574092: <4FGL_J0818.7+3153_weekly_bin318> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin318 124.695 31.8862 431308801 431913601 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 :                                   1150.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2238 sec.
    Turnaround time :                            113867 sec.

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

