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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin388
RA = 124.695, Dec = 31.8862
tmin = 473644801, tmax = 474249601
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='574215', job_status='RUN', time_executed='2021-07-13 14:59:52.940321', time_epoch_executed='1626213592.94' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574215

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574215/ft1_4FGL_J0818.7+3153_weekly_bin388.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574215/ft2_4FGL_J0818.7+3153_weekly_bin388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574215/ft1_4FGL_J0818.7+3153_weekly_bin388.fits outfile=/scratch/kocevski/574215/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin388.fits ra=124.695 dec=31.8862 rad=12.0 tmin=473644801.0 tmax=474249601.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 9.67
user 9.14
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574215/ft1_filtered_4FGL_J0818.7+3153_weekly_bin388.fits" evtable="EVENTS" scfile=/scratch/kocevski/574215/ft2_4FGL_J0818.7+3153_weekly_bin388.fits sctable="SC_DATA" outfile=/scratch/kocevski/574215/ltcube_473644801_474249601_4FGL_J0818.7+3153_weekly_bin388.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/574215/ft2_4FGL_J0818.7+3153_weekly_bin388.fits
.....................!
real 28.02
user 27.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574215/ft1_filtered_4FGL_J0818.7+3153_weekly_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/574215/ft2_4FGL_J0818.7+3153_weekly_bin388.fits sctable="SC_DATA" expcube=/scratch/kocevski/574215/ltcube_473644801_474249601_4FGL_J0818.7+3153_weekly_bin388.fits outfile=/scratch/kocevski/574215/expmap_473644801_474249601_4FGL_J0818.7+3153_weekly_bin388.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/574215/ltcube_473644801_474249601_4FGL_J0818.7+3153_weekly_bin388.fits
.....................!
real 194.48
user 186.42
sys 5.67

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/574215/ft1_filtered_4FGL_J0818.7+3153_weekly_bin388.fits scfile=/scratch/kocevski/574215/ft2_4FGL_J0818.7+3153_weekly_bin388.fits outfile=/scratch/kocevski/574215/cmap_473644801_474249601_4FGL_J0818.7+3153_weekly_bin388.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.60
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574215/ft1_filtered_4FGL_J0818.7+3153_weekly_bin388.fits scfile=/scratch/kocevski/574215/ft2_4FGL_J0818.7+3153_weekly_bin388.fits outfile=/scratch/kocevski/574215/cmap_HighResolution_473644801_474249601_4FGL_J0818.7+3153_weekly_bin388.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.44
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8060       1.0000         .10000E-03   10000.    
     2 'norm      '    5.0523       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21818E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9746       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4401       1.0000         .10000E-03   10000.    
     7 'norm      '    .10994E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7611       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10813E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1053       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4563       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9642       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.625       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .43229       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4217       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83197       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1772       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=   22565.84     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2167 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8049        5.6353        .15903E-05   -.42695E-04
   2  norm          5.0536        2.2727       -.20160E-08   -.29971E-03
   3  Prefactor     .10000E-03    9.2456       -.17793E-06** at limit **
   4  Prefactor     .10000E-03    5.9740       -.43046E-07** at limit **
   5  Prefactor     7.9380        10.503        .77430E-06    .84376E-04
   6  norm          1.4402        1.9907       -.23109E-08   -.21131E-03
   7  norm          .10000E-03    22.581       -.49012E-06** at limit **
   8  Prefactor     5.7612        2.8972        .10977E-07   -.47912E-03
   9  Prefactor     .10000E-03    4.4005        .18247E-07** at limit **
  10  norm          1.1053        .34905        .44716E-08   -.36841E-03
  11  Prefactor     .10000E-03    3.7632        .78218E-08** at limit **
  12  Prefactor     4.4645        7.5209        .18593E-05    .14943E-03
  13  Prefactor     5.9585        3.0961        .17784E-06   -.19153E-02
  14  Prefactor     .10000E-03    12.384        .23912E-06** at limit **
  15  Prefactor     .10000E-03    .44617       -.41363E-07** at limit **
  16  norm          .10000E-03    .12808        .91103E-08** at limit **
  17  Prefactor     11.693        14.845       -.32330E-06   -.41734E-04
  18  Prefactor     .44533        2.0237       -.23701E-06   -.11705E-03
  19  Prefactor     .10000E-03    3.8373        .12463E-07** at limit **
  20  Prefactor     2.4225        1.8020        .14287E-07   -.27526E-03
  21  Normalizat    .83188        .97699E-01   -.15710E-06    .40641E-04
  22  Prefactor     1.1772        .77301E-01   -.94192E-07    .75583E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.80488
  norm       = 5.05358
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.938
  norm       = 1.44018
  norm       = 0.0001
  Prefactor  = 5.76118
  Prefactor  = 0.0001
  norm       = 1.10527
  Prefactor  = 0.0001
  Prefactor  = 4.4645
  Prefactor  = 5.95853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.6931
  Prefactor  = 0.445332
  Prefactor  = 0.0001
  Prefactor  = 2.42248
  Normalizat = 0.831878
  Prefactor  = 1.17716
 **********
 **   18 **HESSE 
 **********

 FCN=   22565.84     FROM HESSE     STATUS=OK           360 CALLS     2527 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8049        5.6391        .24285E-03   -1.5373    
   2  norm          5.0536        2.2765        .13496E-03   -1.5258    
   3  Prefactor     .10000E-03    9.8260        .11913       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9380        10.525        .14198E-03   -1.5144    
   6  norm          1.4402        1.9728        .24328E-03   -1.5468    
   7  norm          .10000E-03    22.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7612        2.8818        .16734E-03   -1.5228    
   9  Prefactor     .10000E-03    4.4168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1053        .34257        .46787E-04   -1.5498    
  11  Prefactor     .10000E-03    3.7687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4645        7.5677        .19075E-03   -1.5285    
  13  Prefactor     5.9585        5.1948        .82211E-03   -1.5220    
  14  Prefactor     .10000E-03    12.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .84758        .19245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .19275        .10271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.693        14.817        .11750E-03   -1.5024    
  18  Prefactor     .44533        11.150        .40983E-02   -1.5575    
  19  Prefactor     .10000E-03    3.8544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4225        1.8035        .16931E-03   -1.5397    
  21  Normalizat    .83188        .11195        .28809E-03   -.98897    
  22  Prefactor     1.1772        .88963E-01    .20126E-03   -.87037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37817e-07
Minuit parameter uncertainties:
  1  5.64018
  2  2.27652
  3  0.000172745
  4  1.2744e-06
  5  10.5274
  6  1.97291
  7  2.82096e-05
  8  2.88189
  9  9.68915e-08
  10  0.34257
  11  1.34063e-07
  12  7.56928
  13  5.19523
  14  2.22694e-05
  15  5.62243e-06
  16  1.27555e-06
  17  14.8212
  18  4.45708
  19  1.67799e-06
  20  1.80354
  21  0.111983
  22  0.088974
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  4.464e+00  7.569e+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

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.177e+00  8.897e-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:  8.319e-01  1.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
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/574215/likelihoodResults_473644801_474249601_4FGL_J0818.7+3153_weekly_bin388.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) = 22565.8393383
delta logL = 0.000283998895611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22565.8391619
delta logL = 0.000460422972537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3045       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1807       1.0000          .0000       10.000    
     3 'Normalizat'    .83140       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1773       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=   22565.84     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      270 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2567        13.694        .97086E-03   -.35406E-03
   2  Index         2.2003        2.6875        .14956E-01   -.10767E-03
   3  Normalizat    .83121        .11325        .28820E-03   -.10256E-04
   4  Prefactor     1.1774        .89505E-01    .20124E-03   -.48038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.25668
  Index      = 2.20027
  Normalizat = 0.831205
  Prefactor  = 1.17739
 **********
 **   18 **HESSE 
 **********

 FCN=   22565.84     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2567        10.157        .38834E-04   -1.5295    
   2  Index         2.2003        2.0658        .59824E-03   -.59432    
   3  Normalizat    .83121        .11057        .11528E-04   -.98921    
   4  Prefactor     1.1774        .89024E-01    .40248E-04   -.87030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63208e-09
Minuit parameter uncertainties:
  1  10.1606
  2  2.16268
  3  0.110604
  4  0.0890358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574215': 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) = 22565.8391149
delta logL = 0.000507420176291

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  4.257e+00  1.016e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.200e+00  2.163e+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:  1.177e+00  8.904e-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:  8.312e-01  1.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.55
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/574215/cmap_HighResolution_473644801_474249601_4FGL_J0818.7+3153_weekly_bin388.png

Cleaning up...

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

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:32:35.625323', job_id='574215', GAL2='1.18', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1626215555.63', return_code2='0', ts='0.55', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='5.07e-04', ts2='0.55', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='388' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:32:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 574215: <4FGL_J0818.7+3153_weekly_bin388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin388 124.695 31.8862 473644801 474249601 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 :                                   1579.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             51.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2575 sec.
    Turnaround time :                            114284 sec.

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

