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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin407
RA = 124.695, Dec = 31.8862
tmin = 485136001, tmax = 485740801
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='574234', job_status='RUN', time_executed='2021-07-13 15:00:26.963399', time_epoch_executed='1626213626.96' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574234

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574234/ft1_4FGL_J0818.7+3153_weekly_bin407.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574234/ft2_4FGL_J0818.7+3153_weekly_bin407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574234/ft1_4FGL_J0818.7+3153_weekly_bin407.fits outfile=/scratch/kocevski/574234/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin407.fits ra=124.695 dec=31.8862 rad=12.0 tmin=485136001.0 tmax=485740801.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 10.05
user 9.67
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574234/ft1_filtered_4FGL_J0818.7+3153_weekly_bin407.fits" evtable="EVENTS" scfile=/scratch/kocevski/574234/ft2_4FGL_J0818.7+3153_weekly_bin407.fits sctable="SC_DATA" outfile=/scratch/kocevski/574234/ltcube_485136001_485740801_4FGL_J0818.7+3153_weekly_bin407.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/574234/ft2_4FGL_J0818.7+3153_weekly_bin407.fits
.....................!
real 31.27
user 30.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574234/ft1_filtered_4FGL_J0818.7+3153_weekly_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/574234/ft2_4FGL_J0818.7+3153_weekly_bin407.fits sctable="SC_DATA" expcube=/scratch/kocevski/574234/ltcube_485136001_485740801_4FGL_J0818.7+3153_weekly_bin407.fits outfile=/scratch/kocevski/574234/expmap_485136001_485740801_4FGL_J0818.7+3153_weekly_bin407.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/574234/ltcube_485136001_485740801_4FGL_J0818.7+3153_weekly_bin407.fits
.....................!
real 192.49
user 186.57
sys 5.29

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/574234/ft1_filtered_4FGL_J0818.7+3153_weekly_bin407.fits scfile=/scratch/kocevski/574234/ft2_4FGL_J0818.7+3153_weekly_bin407.fits outfile=/scratch/kocevski/574234/cmap_485136001_485740801_4FGL_J0818.7+3153_weekly_bin407.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.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574234/ft1_filtered_4FGL_J0818.7+3153_weekly_bin407.fits scfile=/scratch/kocevski/574234/ft2_4FGL_J0818.7+3153_weekly_bin407.fits outfile=/scratch/kocevski/574234/cmap_HighResolution_485136001_485740801_4FGL_J0818.7+3153_weekly_bin407.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.61
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574234/ft1_filtered_4FGL_J0818.7+3153_weekly_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/574234/ft2_4FGL_J0818.7+3153_weekly_bin407.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574234/Model_4FGL_J0818.7+3153_weekly_bin407.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/574234/ft1_filtered_4FGL_J0818.7+3153_weekly_bin407.fits.....................!
real 130.12
user 128.36
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10597E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4682       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.433       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.657       1.0000         .10000E-03   10000.    
     7 'norm      '    23.656       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2046       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3968       1.0000         .10000E-03   10000.    
    10 'norm      '    .47402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.321       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26373E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1901       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18515       1.0000         .10000E-03   10000.    
    16 'norm      '    .10558E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1793       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7092       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91705       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99784       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=   15480.91     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2123 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7459       -.58014E-05** at limit **
   2  norm          .10000E-03    .85341       -.60028E-07** at limit **
   3  Prefactor     8.4664        15.747       -.59694E-06   -.37736E-04
   4  Prefactor     33.431        13.212        .28089E-06    .59953E-05
   5  Prefactor     .10000E-03    6.5606        .69329E-05** at limit **
   6  norm          12.657        7.0474        .18206E-06    .28333E-04
   7  norm          23.649        43.646       -.13042E-04   -.11414E-04
   8  Prefactor     2.2030        .67811       -.18258E-07   -.51718E-02
   9  Prefactor     6.3968        6.7942       -.60926E-07    .14201E-03
  10  norm          .47393        .26710       -.18026E-08   -.70554E-03
  11  Prefactor     .10000E-03    3.0042       -.87437E-06** at limit **
  12  Prefactor     27.322        18.058        .75775E-06   -.48837E-05
  13  Prefactor     .10000E-03    3.0995        .53184E-06** at limit **
  14  Prefactor     1.2081        18.000        .94499E-05    .56072E-04
  15  Prefactor     .18624        .73585        .79504E-07   -.67967E-03
  16  norm          .10000E-03    .30603       -.33847E-06** at limit **
  17  Prefactor     .10000E-03    9.9134       -.12220E-05** at limit **
  18  Prefactor     9.1828        5.3034       -.16130E-06    .14053E-03
  19  Prefactor     .10000E-03    3.2612        .16283E-05** at limit **
  20  Prefactor     1.7092        2.0053        .43127E-07   -.16385E-03
  21  Normalizat    .91706        .10855       -.50628E-06    .57272E-04
  22  Prefactor     .99783        .86661E-01    .11044E-06   -.87723E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.4664
  Prefactor  = 33.4311
  Prefactor  = 0.0001
  norm       = 12.6572
  norm       = 23.6486
  Prefactor  = 2.20297
  Prefactor  = 6.3968
  norm       = 0.473926
  Prefactor  = 0.0001
  Prefactor  = 27.3218
  Prefactor  = 0.000100003
  Prefactor  = 1.20812
  Prefactor  = 0.186242
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.18276
  Prefactor  = 0.0001
  Prefactor  = 1.70921
  Normalizat = 0.91706
  Prefactor  = 0.997832
 **********
 **   18 **HESSE 
 **********

 FCN=   15480.91     FROM HESSE     STATUS=OK           358 CALLS     2481 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.4201        .20797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.4664        15.465        .13776E-03   -1.5126    
   4  Prefactor     33.431        12.695        .69302E-04   -1.4551    
   5  Prefactor     .10000E-03    6.5306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.657        7.0479        .11259E-03   -1.4996    
   7  norm          23.649        43.542        .82358E-04   -1.4735    
   8  Prefactor     2.2030        2.6068        .10255E-02   -1.5411    
   9  Prefactor     6.3968        6.8002        .79347E-03   -1.5202    
  10  norm          .47393        .25662        .46162E-03   -1.5570    
  11  Prefactor     .10000E-03    3.0046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.322        18.066        .76644E-04   -1.4662    
  13  Prefactor     .10000E-03    9.7791        .40240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2081        17.444        .41762E-03   -1.5488    
  15  Prefactor     .18624        1.4724        .19288E-02   -1.5622    
  16  norm          .10000E-03    .53452        .12700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.1828        5.2461        .13228E-03   -1.5102    
  19  Prefactor     .10000E-03    3.2778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7092        1.9933        .18453E-03   -1.5446    
  21  Normalizat    .91706        .12442        .25772E-03   -.95863    
  22  Prefactor     .99783        .99971E-01    .20502E-03   -.92802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04442e-07
Minuit parameter uncertainties:
  1  1.9649e-05
  2  2.32394e-05
  3  15.4726
  4  12.6961
  5  1.19088e-05
  6  7.04832
  7  43.601
  8  2.6069
  9  6.801
  10  0.25662
  11  2.3958e-06
  12  18.0696
  13  0.000359209
  14  9.18417
  15  1.04707
  16  2.53385e-05
  17  3.42023e-07
  18  5.2464
  19  1.13651e-06
  20  1.99334
  21  0.124456
  22  0.0999895
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.732e+01  1.807e+01  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.978e-01  9.999e-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.171e-01  1.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.12
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 1.95e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 9.93e-06

TS (Fixed Index): 3.12
Ra Dec: 124.695 31.886
Photon Flux Upper Limit: 6.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574234/likelihoodResults_485136001_485740801_4FGL_J0818.7+3153_weekly_bin407.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): 0
logL (Free Index) = 15480.2630666
delta logL = 0.646560362029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15480.2068947
delta logL = 0.702732192161

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1177       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9301       1.0000          .0000       10.000    
     3 'Normalizat'    .87983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0173       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=   15480.21     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      295 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1167        79.991        .15444E-03   -.31746E-02
   2  Index         2.9304        2.6670        .43618E-02   -.96701E-03
   3  Normalizat    .87967        .13647        .26252E-03   -.68050E-03
   4  Prefactor     1.0174        .10238        .20325E-03   -.10343E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.11666
  Index      = 2.93044
  Normalizat = 0.879671
  Prefactor  = 1.01741
 **********
 **   18 **HESSE 
 **********

 FCN=   15480.21     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1167        14.456        .61776E-05   -1.5213    
   2  Index         2.9304        .92523        .17447E-03   -.42675    
   3  Normalizat    .87967        .12761        .10501E-04   -.97178    
   4  Prefactor     1.0174        .10274        .40650E-04   -.92151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91316e-09
Minuit parameter uncertainties:
  1  14.4639
  2  0.931723
  3  0.127652
  4  0.102755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574234': 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) = 15480.2068932
delta logL = 0.702733744884

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  6.117e+00  1.446e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.930e+00  9.317e-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:  1.017e+00  1.028e-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:  8.797e-01  1.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.62
Ra Dec: 124.695 31.886
Photon Index (Free Index): 2.93 +/- 0.93
Photon Flux (Free Index): 5.49e-08 +/- 3.41e-08
Energy Flux (Free Index): 1.14e-05 +/- 6.46e-06

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/574234/cmap_HighResolution_485136001_485740801_4FGL_J0818.7+3153_weekly_bin407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-03', comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='1.14e-05', photon_flux_error='1.95e-08', dlogl='7.03e-01', energy_flux='1.50e-05', photon_flux2='5.49e-08', job_status='DONE', time_completed='2021-07-13 15:28:50.779278', photon_index_error2='0.93', photon_index2='2.93', ts='3.12', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='6.79e-08', energy_flux_error2='6.46e-06', EG='0.92', time_epoch_completed='1626215330.78', return_code='0', job_id='574234', GAL2='1.02', EG2='0.88', return_code2='0', energy_flux_error='9.93e-06', photon_flux_error2='3.41e-08', ts2='4.62', photon_index='2.13' WHERE bin_id='407' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:28:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 574234: <4FGL_J0818.7+3153_weekly_bin407> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin407 124.695 31.8862 485136001 485740801 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 :                                   1228.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             50.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2356 sec.
    Turnaround time :                            114060 sec.

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

