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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin352
RA = 124.695, Dec = 31.8862
tmin = 451872001, tmax = 452476801
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='574149', job_status='RUN', time_executed='2021-07-13 14:58:45.154532', time_epoch_executed='1626213525.15' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574149

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574149/ft1_4FGL_J0818.7+3153_weekly_bin352.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574149/ft2_4FGL_J0818.7+3153_weekly_bin352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574149/ft1_4FGL_J0818.7+3153_weekly_bin352.fits outfile=/scratch/kocevski/574149/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin352.fits ra=124.695 dec=31.8862 rad=12.0 tmin=451872001.0 tmax=452476801.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.24
user 6.85
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574149/ft2_4FGL_J0818.7+3153_weekly_bin352.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/574149/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin352.fits evtable="EVENTS" outfile="/scratch/kocevski/574149/ft1_filtered_4FGL_J0818.7+3153_weekly_bin352.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.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574149/ft1_filtered_4FGL_J0818.7+3153_weekly_bin352.fits" evtable="EVENTS" scfile=/scratch/kocevski/574149/ft2_4FGL_J0818.7+3153_weekly_bin352.fits sctable="SC_DATA" outfile=/scratch/kocevski/574149/ltcube_451872001_452476801_4FGL_J0818.7+3153_weekly_bin352.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/574149/ft2_4FGL_J0818.7+3153_weekly_bin352.fits
.....................!
real 29.17
user 28.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574149/ft1_filtered_4FGL_J0818.7+3153_weekly_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/574149/ft2_4FGL_J0818.7+3153_weekly_bin352.fits sctable="SC_DATA" expcube=/scratch/kocevski/574149/ltcube_451872001_452476801_4FGL_J0818.7+3153_weekly_bin352.fits outfile=/scratch/kocevski/574149/expmap_451872001_452476801_4FGL_J0818.7+3153_weekly_bin352.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/574149/ltcube_451872001_452476801_4FGL_J0818.7+3153_weekly_bin352.fits
.....................!
real 192.48
user 187.07
sys 4.25

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

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

This is gtbin version HEAD
real 0.61
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574149/ft1_filtered_4FGL_J0818.7+3153_weekly_bin352.fits scfile=/scratch/kocevski/574149/ft2_4FGL_J0818.7+3153_weekly_bin352.fits outfile=/scratch/kocevski/574149/cmap_HighResolution_451872001_452476801_4FGL_J0818.7+3153_weekly_bin352.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574149/ft1_filtered_4FGL_J0818.7+3153_weekly_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/574149/ft2_4FGL_J0818.7+3153_weekly_bin352.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574149/Model_4FGL_J0818.7+3153_weekly_bin352.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/574149/ft1_filtered_4FGL_J0818.7+3153_weekly_bin352.fits.....................!
real 124.33
user 121.78
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.512       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35486E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.4680       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29976E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1601       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4321       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7521       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5438       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6723       1.0000         .10000E-03   10000.    
    16 'norm      '    .22654       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.148       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5087       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.573       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0632       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98798       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92848       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=   15050.18     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2401 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6513        .90712E-02** at limit **
   2  norm          .10000E-03    .77269        .90712E-02** at limit **
   3  Prefactor     33.513        22.001        .17305E-02   -.15287E-03
   4  Prefactor     .10000E-03    4.1144        .10659    ** at limit **
   5  Prefactor     .10000E-03    9.0223        .90712E-02** at limit **
   6  norm          9.4676        6.5609        .32560E-02    .34871E-02
   7  norm          .10000E-03    87.477        .90712E-02** at limit **
   8  Prefactor     .10000E-03    .88601        .71742E-01** at limit **
   9  Prefactor     6.1600        8.0893        .40438E-02    .14029E-03
  10  norm          1.4322        .39082        .86200E-02    .34575E-04
  11  Prefactor     2.7520        8.3606        .61346E-02    .31473E-03
  12  Prefactor     .10000E-03    5.4596        .90712E-02** at limit **
  13  Prefactor     .10000E-03    3.5631        .90712E-02** at limit **
  14  Prefactor     4.5397        10.447        .47214E-02   -.17221E-03
  15  Prefactor     1.6727        1.4447        .81488E-02    .13816E-02
  16  norm          .22689        .46999        .25590E-01    .39257E-02
  17  Prefactor     19.148        13.650        .22883E-02    .37266E-03
  18  Prefactor     4.5078        4.6064        .47402E-02    .16229E-02
  19  Prefactor     11.572        8.8535        .29440E-02    .14191E-03
  20  Prefactor     2.0632        1.9186        .71918E-02    .74035E-03
  21  Normalizat    .98802        .11076        .46016E-01   -.30169E-04
  22  Prefactor     .92845        .87502E-01    .45367E-01   -.53537E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.5131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.46759
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.15997
  norm       = 1.43218
  Prefactor  = 2.75198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.53969
  Prefactor  = 1.67266
  norm       = 0.226894
  Prefactor  = 19.1484
  Prefactor  = 4.50778
  Prefactor  = 11.5723
  Prefactor  = 2.06316
  Normalizat = 0.988017
  Prefactor  = 0.928449
 **********
 **   18 **HESSE 
 **********

 FCN=   15050.18     FROM HESSE     STATUS=OK           350 CALLS     2751 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .78291        .10500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.513        21.894        .69221E-04   -1.4550    
   4  Prefactor     .10000E-03    25.338        .47775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.0376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.4676        6.5573        .65120E-03   -1.5092    
   7  norm          .10000E-03    88.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.4870        .21740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1600        8.0825        .16175E-03   -1.5212    
  10  norm          1.4322        .38567        .38115E-04   -1.5469    
  11  Prefactor     2.7520        8.3319        .24538E-03   -1.5376    
  12  Prefactor     .10000E-03    5.4720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.6133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.5397        9.9695        .18886E-03   -1.5282    
  15  Prefactor     1.6727        1.4235        .13034E-03   -1.5449    
  16  norm          .22689        .43267        .10618E-03   -1.5613    
  17  Prefactor     19.148        13.640        .91531E-04   -1.4833    
  18  Prefactor     4.5078        4.5608        .18961E-03   -1.5283    
  19  Prefactor     11.572        8.8627        .11776E-03   -1.5027    
  20  Prefactor     2.0632        1.9116        .15885E-03   -1.5421    
  21  Normalizat    .98802        .12719        .24841E-03   -.93433    
  22  Prefactor     .92845        .10134        .20962E-03   -.95154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00875e-09
Minuit parameter uncertainties:
  1  5.68716e-06
  2  4.95475e-07
  3  21.899
  4  8.13616e-05
  5  9.21375e-06
  6  6.5578
  7  0.000147219
  8  4.61746e-05
  9  8.08395
  10  0.385669
  11  8.33544
  12  6.60014e-07
  13  3.86721e-06
  14  9.97315
  15  1.42357
  16  0.432677
  17  13.6422
  18  4.56115
  19  8.86373
  20  1.91171
  21  0.127227
  22  0.101356
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  6.600e-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.284e-01  1.014e-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.880e-01  1.272e-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.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574149/likelihoodResults_451872001_452476801_4FGL_J0818.7+3153_weekly_bin352.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) = 15050.176445
delta logL = -0.000871032676514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15050.1755739
delta logL = 1.29644831759e-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.1156       1.0000          .0000       10.000    
     3 'Normalizat'    .98802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92845       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=   15050.18     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      205 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.739        .90712E-02** at limit **
   2  Index         2.0971        6.3731        .50000        .26723E-04
   3  Normalizat    .98802        .68935E-02    .46017E-01    .73335E-04
   4  Prefactor     .92845        .56867E-02    .45367E-01    .52218E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09705
  Normalizat = 0.988018
  Prefactor  = 0.928449
 **********
 **   18 **HESSE 
 **********

 FCN=   15050.18     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    895.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0971        5.4652        .50000       -.61945    
   3  Normalizat    .98802        .47420E-01    .24841E-03   -.93433    
   4  Prefactor     .92845        .39112E-01    .20962E-03   -.95154    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49352e-07
Minuit parameter uncertainties:
  1  0.000494842
  2  52.1922
  3  0.0474218
  4  0.0391137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574149': 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) = 15050.1755737
delta logL = 2.55198756349e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.948e-04  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.097e+00  5.219e+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.284e-01  3.911e-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:  9.880e-01  4.742e-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/574149/cmap_HighResolution_451872001_452476801_4FGL_J0818.7+3153_weekly_bin352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-03', job_status='DONE', photon_flux_upper_limit='2.57e-08', time_completed='2021-07-13 15:25:52.999868', job_id='574149', GAL2='0.93', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1626215153.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='352' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:25:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0181>
Subject: Job 574149: <4FGL_J0818.7+3153_weekly_bin352> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin352 124.695 31.8862 451872001 452476801 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 :                                   1192.12 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.98 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2233 sec.
    Turnaround time :                            113884 sec.

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

