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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin423
RA = 124.695, Dec = 31.8862
tmin = 494812801, tmax = 495417601
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='574251', job_status='RUN', time_executed='2021-07-13 14:55:35.908180', time_epoch_executed='1626213335.91' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574251

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574251/ft1_4FGL_J0818.7+3153_weekly_bin423.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574251/ft2_4FGL_J0818.7+3153_weekly_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574251/ft1_4FGL_J0818.7+3153_weekly_bin423.fits outfile=/scratch/kocevski/574251/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin423.fits ra=124.695 dec=31.8862 rad=12.0 tmin=494812801.0 tmax=495417601.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.29
user 7.84
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574251/ft1_filtered_4FGL_J0818.7+3153_weekly_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/574251/ft2_4FGL_J0818.7+3153_weekly_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/574251/ltcube_494812801_495417601_4FGL_J0818.7+3153_weekly_bin423.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/574251/ft2_4FGL_J0818.7+3153_weekly_bin423.fits
.....................!
real 31.36
user 30.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574251/ft1_filtered_4FGL_J0818.7+3153_weekly_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/574251/ft2_4FGL_J0818.7+3153_weekly_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/574251/ltcube_494812801_495417601_4FGL_J0818.7+3153_weekly_bin423.fits outfile=/scratch/kocevski/574251/expmap_494812801_495417601_4FGL_J0818.7+3153_weekly_bin423.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/574251/ltcube_494812801_495417601_4FGL_J0818.7+3153_weekly_bin423.fits
.....................!
real 191.99
user 186.38
sys 5.02

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/574251/ft1_filtered_4FGL_J0818.7+3153_weekly_bin423.fits scfile=/scratch/kocevski/574251/ft2_4FGL_J0818.7+3153_weekly_bin423.fits outfile=/scratch/kocevski/574251/cmap_494812801_495417601_4FGL_J0818.7+3153_weekly_bin423.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.40
sys 0.18

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574251/ft1_filtered_4FGL_J0818.7+3153_weekly_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/574251/ft2_4FGL_J0818.7+3153_weekly_bin423.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574251/Model_4FGL_J0818.7+3153_weekly_bin423.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/574251/ft1_filtered_4FGL_J0818.7+3153_weekly_bin423.fits.....................!
real 138.04
user 136.40
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.615       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.782       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12166E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    47.800       1.0000         .10000E-03   10000.    
     7 'norm      '    .12684E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85665       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.405       1.0000         .10000E-03   10000.    
    10 'norm      '    .42247       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10211E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0697       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.695       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.461       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4983       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13234E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1795       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95762       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=   16343.44     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2158 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9955        .10476E-06** at limit **
   2  norm          .10000E-03    1.6694       -.53509E-07** at limit **
   3  Prefactor     12.611        24.213       -.81961E-07   -.53490E-04
   4  Prefactor     16.791        10.125       -.95981E-06   -.64732E-03
   5  Prefactor     .10000E-03    38.327        .10416E-06** at limit **
   6  norm          47.798        9.9505        .25500E-06    .47514E-03
   7  norm          .10003E-03    76.474        .81479E-05** at limit **
   8  Prefactor     .85599        2.2338        .14057E-05   -.83123E-03
   9  Prefactor     24.412        15.598       -.18413E-06   -.50873E-04
  10  norm          .42244        .24745       -.43057E-07   -.69821E-03
  11  Prefactor     .10000E-03    34.563       -.18110E-05** at limit **
  12  Prefactor     .10000E-03    6.4634       -.73107E-07** at limit **
  13  Prefactor     2.0680        5.2869        .16321E-06   -.25864E-03
  14  Prefactor     12.697        11.861        .10599E-06    .52538E-04
  15  Prefactor     .10000E-03    .50945       -.73567E-07** at limit **
  16  norm          .10000E-03    .17454        .16335E-07** at limit **
  17  Prefactor     34.462        20.331       -.18300E-06   -.43991E-04
  18  Prefactor     6.4986        5.9716        .41336E-06    .20819E-03
  19  Prefactor     .10070E-03    5.7716       -.10822E-05** at limit **
  20  Prefactor     .10000E-03    .64387        .16982E-08** at limit **
  21  Normalizat    1.1796        .11991       -.56580E-07    .19090E-03
  22  Prefactor     .95765        .91610E-01   -.12106E-06    .12596E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.6112
  Prefactor  = 16.7913
  Prefactor  = 0.0001
  norm       = 47.7982
  norm       = 0.000100025
  Prefactor  = 0.855991
  Prefactor  = 24.4117
  norm       = 0.422439
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.06805
  Prefactor  = 12.6967
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.4618
  Prefactor  = 6.49857
  Prefactor  = 0.000100701
  Prefactor  = 0.0001
  Normalizat = 1.17955
  Prefactor  = 0.957652
 **********
 **   18 **HESSE 
 **********

 FCN=   16343.44     FROM HESSE     STATUS=OK           354 CALLS     2512 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2493        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.7153        .32041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.611        24.145        .11278E-03   -1.4998    
   4  Prefactor     16.791        10.471        .97767E-04   -1.4888    
   5  Prefactor     .10000E-03    38.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          47.798        9.9921        .57998E-04   -1.4324    
   7  norm          .10003E-03    82.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .85599        2.5332        .32535E-03   -1.5523    
   9  Prefactor     24.412        15.599        .81085E-04   -1.4719    
  10  norm          .42244        .25079        .46649E-04   -1.5578    
  11  Prefactor     .10000E-03    36.088        .41497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.4786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0680        5.1710        .28715E-03   -1.5420    
  14  Prefactor     12.697        11.717        .11242E-03   -1.4995    
  15  Prefactor     .10000E-03    3.9955        .17156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .22948        .10173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.462        20.269        .68265E-04   -1.4533    
  18  Prefactor     6.4986        5.9516        .15743E-03   -1.5198    
  19  Prefactor     .10070E-03    5.4540        .89327E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .64741        .10016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1796        .14106        .26192E-03   -.87237    
  22  Prefactor     .95765        .10737        .22810E-03   -.94155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73391e-09
Minuit parameter uncertainties:
  1  3.18158e-06
  2  1.40308e-05
  3  24.1634
  4  10.4722
  5  0.000118539
  6  9.99243
  7  0.00289944
  8  2.53351
  9  15.6019
  10  0.250787
  11  0.00035665
  12  8.79858e-06
  13  5.17216
  14  11.7195
  15  3.05832e-05
  16  1.39904e-06
  17  20.2732
  18  5.95217
  19  0.00391125
  20  9.83083e-08
  21  0.141105
  22  0.107396
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  9.577e-01  1.074e-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.180e+00  1.411e-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.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574251/likelihoodResults_494812801_495417601_4FGL_J0818.7+3153_weekly_bin423.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) = 16343.4451245
delta logL = -0.000735648489353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16343.4443891
delta logL = -2.54149199463e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1055       1.0000          .0000       10.000    
     3 'Normalizat'    1.1795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95769       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=   16343.44     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      257 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10071E-03    31.444        .18142E-02** at limit **
   2  Index         2.0633        7.1541        .50000        .29781E-04
   3  Normalizat    1.1796        .64049E-02    .26192E-03    .38631E-04
   4  Prefactor     .95765        .51124E-02    .22810E-03    .44159E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100713
  Index      = 2.06335
  Normalizat = 1.17955
  Prefactor  = 0.957652
 **********
 **   18 **HESSE 
 **********

 FCN=   16343.44     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 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     .10071E-03    147.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0633        5.9104        .50000       -.62776    
   3  Normalizat    1.1796        .14143E-01    .10477E-04   -.87237    
   4  Prefactor     .95765        .11289E-01    .91240E-05   -.94155    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44429e-08
Minuit parameter uncertainties:
  1  0.0205524
  2  212.673
  3  0.0141431
  4  0.0112889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574251': 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) = 16343.4443883
delta logL = 5.27301381226e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.007e-04  2.055e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.063e+00  2.127e+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.577e-01  1.129e-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.180e+00  1.414e-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/574251/cmap_HighResolution_494812801_495417601_4FGL_J0818.7+3153_weekly_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-03', job_status='DONE', photon_flux_upper_limit='2.94e-08', time_completed='2021-07-13 15:24:04.096547', job_id='574251', GAL2='0.96', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1626215044.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='423' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:24:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0014>
Subject: Job 574251: <4FGL_J0818.7+3153_weekly_bin423> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin423 124.695 31.8862 494812801 495417601 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 :                                   1237.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2053 sec.
    Turnaround time :                            113763 sec.

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

