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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin441
RA = 124.695, Dec = 31.8862
tmin = 505699201, tmax = 506304001
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='574281', job_status='RUN', time_executed='2021-07-13 14:58:00.838235', time_epoch_executed='1626213480.84' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574281

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574281/ft1_4FGL_J0818.7+3153_weekly_bin441.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574281/ft2_4FGL_J0818.7+3153_weekly_bin441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574281/ft1_4FGL_J0818.7+3153_weekly_bin441.fits outfile=/scratch/kocevski/574281/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin441.fits ra=124.695 dec=31.8862 rad=12.0 tmin=505699201.0 tmax=506304001.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.36
user 7.96
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574281/ft1_filtered_4FGL_J0818.7+3153_weekly_bin441.fits" evtable="EVENTS" scfile=/scratch/kocevski/574281/ft2_4FGL_J0818.7+3153_weekly_bin441.fits sctable="SC_DATA" outfile=/scratch/kocevski/574281/ltcube_505699201_506304001_4FGL_J0818.7+3153_weekly_bin441.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/574281/ft2_4FGL_J0818.7+3153_weekly_bin441.fits
.....................!
real 29.33
user 28.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574281/ft1_filtered_4FGL_J0818.7+3153_weekly_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/574281/ft2_4FGL_J0818.7+3153_weekly_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/574281/ltcube_505699201_506304001_4FGL_J0818.7+3153_weekly_bin441.fits outfile=/scratch/kocevski/574281/expmap_505699201_506304001_4FGL_J0818.7+3153_weekly_bin441.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/574281/ltcube_505699201_506304001_4FGL_J0818.7+3153_weekly_bin441.fits
.....................!
real 193.41
user 186.43
sys 5.57

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/574281/ft1_filtered_4FGL_J0818.7+3153_weekly_bin441.fits scfile=/scratch/kocevski/574281/ft2_4FGL_J0818.7+3153_weekly_bin441.fits outfile=/scratch/kocevski/574281/cmap_505699201_506304001_4FGL_J0818.7+3153_weekly_bin441.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/574281/ft1_filtered_4FGL_J0818.7+3153_weekly_bin441.fits scfile=/scratch/kocevski/574281/ft2_4FGL_J0818.7+3153_weekly_bin441.fits outfile=/scratch/kocevski/574281/cmap_HighResolution_505699201_506304001_4FGL_J0818.7+3153_weekly_bin441.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.58
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574281/ft1_filtered_4FGL_J0818.7+3153_weekly_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/574281/ft2_4FGL_J0818.7+3153_weekly_bin441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574281/Model_4FGL_J0818.7+3153_weekly_bin441.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/574281/ft1_filtered_4FGL_J0818.7+3153_weekly_bin441.fits.....................!
real 135.34
user 133.69
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    3.7819       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.127       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.051       1.0000         .10000E-03   10000.    
     6 'norm      '    53.112       1.0000         .10000E-03   10000.    
     7 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0521       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.204       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1753       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2521       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .20436E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5793       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4296       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.277       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7182       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2740       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82943       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=   15158.08     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2400 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7509        .16323E-05** at limit **
   2  norm          3.7820        3.4682       -.16587E-06   -.11284E-02
   3  Prefactor     .10000E-03    18.519       -.14510E-05** at limit **
   4  Prefactor     29.128        17.099       -.18057E-06   -.40703E-04
   5  Prefactor     16.051        22.430       -.15172E-06   -.13132E-04
   6  norm          53.111        11.804        .59321E-06   -.72744E-04
   7  norm          .10000E-03    102.95       -.16667E-04** at limit **
   8  Prefactor     .10000E-03    .99612       -.15162E-08** at limit **
   9  Prefactor     .10000E-03    10.943        .13944E-05** at limit **
  10  norm          1.0520        .33504       -.20368E-06   -.33890E-02
  11  Prefactor     25.201        20.874       -.29802E-06   -.87730E-04
  12  Prefactor     .10000E-03    10.010       -.19673E-05** at limit **
  13  Prefactor     3.1749        4.2422       -.16695E-05   -.86863E-03
  14  Prefactor     6.2435        15.987       -.61050E-05   -.56369E-03
  15  Prefactor     .10000E-03    .49459       -.85902E-07** at limit **
  16  norm          .10000E-03    .28936        .60938E-06** at limit **
  17  Prefactor     1.5493        48.145        .62463E-04   -.16245E-03
  18  Prefactor     4.4281        6.8851       -.78761E-06   -.79877E-03
  19  Prefactor     25.277        13.846        .27611E-06   -.10321E-03
  20  Prefactor     1.7183        1.5320        .33235E-08    .19105E-03
  21  Normalizat    1.2740        .12841       -.78031E-06   -.10741E-02
  22  Prefactor     .82944        .95770E-01   -.79373E-06   -.10386E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.78201
  Prefactor  = 0.0001
  Prefactor  = 29.1278
  Prefactor  = 16.0514
  norm       = 53.1113
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.05203
  Prefactor  = 25.2009
  Prefactor  = 0.0001
  Prefactor  = 3.1749
  Prefactor  = 6.24353
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 1.54933
  Prefactor  = 4.42812
  Prefactor  = 25.2769
  Prefactor  = 1.71827
  Normalizat = 1.274
  Prefactor  = 0.82944
 **********
 **   18 **HESSE 
 **********

 FCN=   15158.08     FROM HESSE     STATUS=OK           348 CALLS     2748 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.7820        3.4419        .18946E-03   -1.5319    
   3  Prefactor     .10000E-03    18.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.128        17.014        .74235E-04   -1.4628    
   5  Prefactor     16.051        22.382        .99972E-04   -1.4906    
   6  norm          53.111        11.817        .55035E-04   -1.4249    
   7  norm          .10000E-03    103.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0096        .11993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0520        .33696        .38771E-04   -1.5503    
  11  Prefactor     25.201        20.872        .79792E-04   -1.4704    
  12  Prefactor     .10000E-03    10.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1749        4.2439        .22743E-03   -1.5352    
  14  Prefactor     6.2435        14.963        .16054E-03   -1.5208    
  15  Prefactor     .10000E-03    .50374        .84490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.9866        .11419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5493        45.173        .33800E-03   -1.5459    
  18  Prefactor     4.4281        6.7900        .19134E-03   -1.5287    
  19  Prefactor     25.277        13.913        .79677E-04   -1.4702    
  20  Prefactor     1.7183        1.5431        .14002E-03   -1.5446    
  21  Normalizat    1.2740        .15094        .25703E-03   -.84346    
  22  Prefactor     .82944        .11196        .24111E-03   -.98652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64905e-09
Minuit parameter uncertainties:
  1  5.06087e-06
  2  3.44203
  3  5.88233e-05
  4  17.0173
  5  22.3934
  6  11.8173
  7  0.000247143
  8  9.72395e-07
  9  2.89604e-05
  10  0.336959
  11  20.8781
  12  2.12784e-05
  13  4.24427
  14  14.9715
  15  6.41166e-06
  16  0.00027459
  17  16.7451
  18  6.79114
  19  13.9152
  20  1.54315
  21  0.150995
  22  0.111994
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.128e-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:  8.294e-01  1.120e-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.274e+00  1.510e-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.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574281/likelihoodResults_505699201_506304001_4FGL_J0818.7+3153_weekly_bin441.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) = 15158.0837882
delta logL = -0.000474633332487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15158.0833135
delta logL = -1.00244506029e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1276       1.0000          .0000       10.000    
     3 'Normalizat'    1.2740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82945       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=   15158.08     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.243        .90712E-02** at limit **
   2  Index         2.1206        5.8954        .50000        .56116E-05
   3  Normalizat    1.2740        .73616E-02    .58120E-01    .20992E-03
   4  Prefactor     .82944        .57350E-02    .44099E-01    .22538E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12055
  Normalizat = 1.274
  Prefactor  = 0.829441
 **********
 **   18 **HESSE 
 **********

 FCN=   15158.08     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1206        6.0370        .50000       -.61369    
   3  Normalizat    1.2740        .14223        .25703E-03   -.84346    
   4  Prefactor     .82944        .11083        .24111E-03   -.98652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04512e-10
Minuit parameter uncertainties:
  1  0.000100407
  2  4.47042
  3  0.142274
  4  0.11086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574281': 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): 0
logL (Free Index) = 15158.0833135
delta logL = 2.01853254111e-08

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.004e-04  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.121e+00  4.470e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  8.294e-01  1.109e-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.274e+00  1.423e-01  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/574281/cmap_HighResolution_505699201_506304001_4FGL_J0818.7+3153_weekly_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-03', job_status='DONE', photon_flux_upper_limit='3.71e-08', time_completed='2021-07-13 15:25:34.811464', job_id='574281', GAL2='0.83', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1626215134.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.02e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='441' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:25:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 574281: <4FGL_J0818.7+3153_weekly_bin441> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin441 124.695 31.8862 505699201 506304001 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 :                                   1195.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2079 sec.
    Turnaround time :                            113851 sec.

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

