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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin397
RA = 124.695, Dec = 31.8862
tmin = 479088001, tmax = 479692801
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='574224', job_status='RUN', time_executed='2021-07-13 14:54:35.504270', time_epoch_executed='1626213275.5' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574224

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574224/ft1_4FGL_J0818.7+3153_weekly_bin397.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574224/ft2_4FGL_J0818.7+3153_weekly_bin397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574224/ft1_4FGL_J0818.7+3153_weekly_bin397.fits outfile=/scratch/kocevski/574224/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin397.fits ra=124.695 dec=31.8862 rad=12.0 tmin=479088001.0 tmax=479692801.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.52
user 7.18
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574224/ft1_filtered_4FGL_J0818.7+3153_weekly_bin397.fits" evtable="EVENTS" scfile=/scratch/kocevski/574224/ft2_4FGL_J0818.7+3153_weekly_bin397.fits sctable="SC_DATA" outfile=/scratch/kocevski/574224/ltcube_479088001_479692801_4FGL_J0818.7+3153_weekly_bin397.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/574224/ft2_4FGL_J0818.7+3153_weekly_bin397.fits
.....................!
real 30.31
user 29.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574224/ft1_filtered_4FGL_J0818.7+3153_weekly_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/574224/ft2_4FGL_J0818.7+3153_weekly_bin397.fits sctable="SC_DATA" expcube=/scratch/kocevski/574224/ltcube_479088001_479692801_4FGL_J0818.7+3153_weekly_bin397.fits outfile=/scratch/kocevski/574224/expmap_479088001_479692801_4FGL_J0818.7+3153_weekly_bin397.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/574224/ltcube_479088001_479692801_4FGL_J0818.7+3153_weekly_bin397.fits
.....................!
real 194.03
user 187.84
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/574224/ft1_filtered_4FGL_J0818.7+3153_weekly_bin397.fits scfile=/scratch/kocevski/574224/ft2_4FGL_J0818.7+3153_weekly_bin397.fits outfile=/scratch/kocevski/574224/cmap_479088001_479692801_4FGL_J0818.7+3153_weekly_bin397.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=124.695 yref=31.8862 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574224/ft1_filtered_4FGL_J0818.7+3153_weekly_bin397.fits scfile=/scratch/kocevski/574224/ft2_4FGL_J0818.7+3153_weekly_bin397.fits outfile=/scratch/kocevski/574224/cmap_HighResolution_479088001_479692801_4FGL_J0818.7+3153_weekly_bin397.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.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16112E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    8.6465       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.406       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49399       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13473E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.129       1.0000         .10000E-03   10000.    
     7 'norm      '    46.314       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5024       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.526       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1790       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8624       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3527       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7794       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7732       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76191       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1630       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=   15820.22     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2418 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2837       -.19767E-05** at limit **
   2  norm          8.6447        3.5314        .56164E-07    .31443E-03
   3  Prefactor     31.400        23.747        .98521E-06    .62570E-04
   4  Prefactor     .50948        68.359       -.24024E-04   -.87415E-06
   5  Prefactor     .10000E-03    83.775       -.37332E-05** at limit **
   6  norm          14.129        7.1703       -.20803E-06    .10304E-03
   7  norm          46.249        65.199       -.70408E-05    .13655E-03
   8  Prefactor     .10000E-03    1.1856       -.69077E-07** at limit **
   9  Prefactor     .10000E-03    4.8763       -.53160E-07** at limit **
  10  norm          1.5024        .38656       -.25105E-07    .61241E-03
  11  Prefactor     .10000E-03    6.8204       -.71525E-07** at limit **
  12  Prefactor     19.524        12.336       -.93333E-07    .12257E-04
  13  Prefactor     .10000E-03    1.6668       -.28511E-07** at limit **
  14  Prefactor     .10000E-03    13.692       -.11472E-06** at limit **
  15  Prefactor     .10000E-03    .31322       -.12021E-06** at limit **
  16  norm          1.1790        .74499       -.51931E-07    .13312E-03
  17  Prefactor     9.8604        13.758       -.23342E-06    .38064E-04
  18  Prefactor     4.3517        5.4563       -.45083E-06    .77310E-04
  19  Prefactor     1.7748        12.872       -.19581E-05   -.78075E-06
  20  Prefactor     1.7731        1.4783       -.43910E-07    .38201E-05
  21  Normalizat    .76201        .11756        .80749E-06    .30498E-03
  22  Prefactor     1.1630        .94116E-01    .56767E-06    .75254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 8.64467
  Prefactor  = 31.3996
  Prefactor  = 0.509483
  Prefactor  = 0.0001
  norm       = 14.1291
  norm       = 46.2494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50236
  Prefactor  = 0.0001
  Prefactor  = 19.5245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.17898
  Prefactor  = 9.86036
  Prefactor  = 4.35166
  Prefactor  = 1.77485
  Prefactor  = 1.77307
  Normalizat = 0.762012
  Prefactor  = 1.16297
 **********
 **   18 **HESSE 
 **********

 FCN=   15820.22     FROM HESSE     STATUS=OK           352 CALLS     2770 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.100        .41886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.6447        3.6243        .63870E-03   -1.5120    
   3  Prefactor     31.400        23.694        .71498E-04   -1.4587    
   4  Prefactor     .50948        71.841        .57253E-02   -1.5565    
   5  Prefactor     .10000E-03    86.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.129        7.1683        .10656E-03   -1.4956    
   7  norm          46.249        65.076        .29458E-03   -1.4347    
   8  Prefactor     .10000E-03    1.2236        .26719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5024        .38499        .38120E-04   -1.5463    
  11  Prefactor     .10000E-03    6.8373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.524        12.337        .90640E-04   -1.4824    
  13  Prefactor     .10000E-03    1.6716        .15853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .49406        .13636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1790        .72212        .79604E-04   -1.5491    
  17  Prefactor     9.8604        13.729        .12760E-03   -1.5080    
  18  Prefactor     4.3517        5.4089        .19306E-03   -1.5291    
  19  Prefactor     1.7748        12.954        .31376E-03   -1.5442    
  20  Prefactor     1.7731        1.4877        .13572E-03   -1.5442    
  21  Normalizat    .76201        .13299        .28927E-03   -1.0149    
  22  Prefactor     1.1630        .10834        .20063E-03   -.87479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01834e-07
Minuit parameter uncertainties:
  1  0.000451892
  2  3.62442
  3  23.7007
  4  12.1136
  5  0.000148706
  6  7.16874
  7  65.1764
  8  7.43368e-06
  9  8.10769e-06
  10  0.384995
  11  1.24485e-05
  12  12.3386
  13  2.6902e-06
  14  3.36927e-05
  15  4.472e-07
  16  0.722129
  17  13.7337
  18  5.40953
  19  9.59251
  20  1.48777
  21  0.133049
  22  0.108359
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.952e+01  1.234e+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:  1.163e+00  1.084e-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:  7.620e-01  1.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.78
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.10e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 6.78e-06

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) = 15819.090494
delta logL = 1.13320443859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15819.0893817
delta logL = 1.13431673

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.766       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3818       1.0000          .0000       10.000    
     3 'Normalizat'    .77738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1580       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=   15819.09     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      280 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.562        506.23        .18675E-02   -.33483E-05
   2  Index         1.3760        5.5484        .31318       -.26346E-04
   3  Normalizat    .77744        .70654E-01    .64785E-01    .54256E-04
   4  Prefactor     1.1581        .40462E-01    .35707E-01    .10950E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.5622
  Index      = 1.376
  Normalizat = 0.777436
  Prefactor  = 1.15812
 **********
 **   18 **HESSE 
 **********

 FCN=   15819.09     FROM HESSE     STATUS=OK            33 CALLS      313 TOTAL
                     EDM=   .61E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.562        21.100        .74699E-04   -1.4639    
   2  Index         1.3760        .47544        .11185E-01   -.81075    
   3  Normalizat    .77744        .12645        .28660E-03   -1.0091    
   4  Prefactor     1.1581        .10684        .20100E-03   -.87630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09846e-13
Minuit parameter uncertainties:
  1  21.105
  2  0.476959
  3  0.126494
  4  0.106862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574224': 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) = 15819.0892892
delta logL = 1.13440922617

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.856e+01  2.111e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.376e+00  4.770e-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.158e+00  1.069e-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:  7.774e-01  1.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.04
Ra Dec: 124.695 31.886
Photon Index (Free Index): 1.38 +/- 0.48
Photon Flux (Free Index): 6.87e-09 +/- 7.27e-09
Energy Flux (Free Index): 3.29e-05 +/- 3.49e-05

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/574224/cmap_HighResolution_479088001_479692801_4FGL_J0818.7+3153_weekly_bin397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.10e-08', energy_flux2='3.29e-05', photon_flux_error='1.33e-08', dlogl='1.13e+00', energy_flux='1.07e-05', photon_flux2='6.87e-09', job_status='DONE', time_completed='2021-07-13 15:18:57.086187', photon_index_error2='0.48', photon_index2='1.38', ts='10.78', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='3.49e-05', EG='0.76', time_epoch_completed='1626214737.09', return_code='0', job_id='574224', GAL2='1.16', EG2='0.78', return_code2='0', energy_flux_error='6.78e-06', photon_flux_error2='7.27e-09', ts2='13.04', photon_index='2.13' WHERE bin_id='397' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:18:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 574224: <4FGL_J0818.7+3153_weekly_bin397> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin397 124.695 31.8862 479088001 479692801 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 :                                   1132.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             50.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1761 sec.
    Turnaround time :                            113461 sec.

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

