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 36 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 = 17193
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin116
RA = 124.695, Dec = 31.8862
tmin = 309139201, tmax = 309744001
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='571995', job_status='RUN', time_executed='2021-07-13 14:59:20.485377', time_epoch_executed='1626213560.49' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571995

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571995/ft1_4FGL_J0818.7+3153_weekly_bin116.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571995/ft2_4FGL_J0818.7+3153_weekly_bin116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571995/ft1_4FGL_J0818.7+3153_weekly_bin116.fits outfile=/scratch/kocevski/571995/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin116.fits ra=124.695 dec=31.8862 rad=12.0 tmin=309139201.0 tmax=309744001.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.12
user 9.64
sys 0.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571995/ft1_filtered_4FGL_J0818.7+3153_weekly_bin116.fits" evtable="EVENTS" scfile=/scratch/kocevski/571995/ft2_4FGL_J0818.7+3153_weekly_bin116.fits sctable="SC_DATA" outfile=/scratch/kocevski/571995/ltcube_309139201_309744001_4FGL_J0818.7+3153_weekly_bin116.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/571995/ft2_4FGL_J0818.7+3153_weekly_bin116.fits
.....................!
real 28.99
user 28.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571995/ft1_filtered_4FGL_J0818.7+3153_weekly_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/571995/ft2_4FGL_J0818.7+3153_weekly_bin116.fits sctable="SC_DATA" expcube=/scratch/kocevski/571995/ltcube_309139201_309744001_4FGL_J0818.7+3153_weekly_bin116.fits outfile=/scratch/kocevski/571995/expmap_309139201_309744001_4FGL_J0818.7+3153_weekly_bin116.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/571995/ltcube_309139201_309744001_4FGL_J0818.7+3153_weekly_bin116.fits
.....................!
real 193.96
user 186.16
sys 5.12

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/571995/ft1_filtered_4FGL_J0818.7+3153_weekly_bin116.fits scfile=/scratch/kocevski/571995/ft2_4FGL_J0818.7+3153_weekly_bin116.fits outfile=/scratch/kocevski/571995/cmap_309139201_309744001_4FGL_J0818.7+3153_weekly_bin116.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/571995/ft1_filtered_4FGL_J0818.7+3153_weekly_bin116.fits scfile=/scratch/kocevski/571995/ft2_4FGL_J0818.7+3153_weekly_bin116.fits outfile=/scratch/kocevski/571995/cmap_HighResolution_309139201_309744001_4FGL_J0818.7+3153_weekly_bin116.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.66
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571995/ft1_filtered_4FGL_J0818.7+3153_weekly_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/571995/ft2_4FGL_J0818.7+3153_weekly_bin116.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571995/Model_4FGL_J0818.7+3153_weekly_bin116.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/571995/ft1_filtered_4FGL_J0818.7+3153_weekly_bin116.fits.....................!
real 127.22
user 124.31
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.120       1.0000         .10000E-03   10000.    
     2 'norm      '    .10931E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.821       1.0000         .10000E-03   10000.    
     6 'norm      '    3.6457       1.0000         .10000E-03   10000.    
     7 'norm      '    80.410       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20029       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.565       1.0000         .10000E-03   10000.    
    10 'norm      '    .76052       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4299       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3498       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1577       1.0000         .10000E-03   10000.    
    16 'norm      '    4.6619       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.527       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2726       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94170       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97229       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=   15198.05     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2389 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.119        7.1631       -.17391E-06   -.89492E-04
   2  norm          .10001E-03    .81192       -.14392E-05** at limit **
   3  Prefactor     .10000E-03    10.826        .12510E-05** at limit **
   4  Prefactor     .10000E-03    2.5958       -.14419E-06** at limit **
   5  Prefactor     17.833        18.674        .17518E-04    .35130E-03
   6  norm          3.6453        4.4795       -.55039E-06   -.47000E-03
   7  norm          80.399        59.247       -.12507E-04    .62382E-05
   8  Prefactor     .18683        .87309       -.26600E-06   -.32657E-03
   9  Prefactor     19.564        16.947       -.14414E-05    .38542E-04
  10  norm          .76069        .31526        .24488E-07    .26754E-03
  11  Prefactor     .10000E-03    5.6494        .32716E-06** at limit **
  12  Prefactor     5.4237        16.150       -.14651E-04   -.47317E-04
  13  Prefactor     .10000E-03    2.3442        .35112E-07** at limit **
  14  Prefactor     6.3494        8.6870       -.22295E-06   -.28221E-04
  15  Prefactor     4.1582        1.9892       -.22865E-07   -.41382E-03
  16  norm          4.6618        1.0384       -.47802E-08   -.56106E-05
  17  Prefactor     20.526        16.498       -.18433E-05    .10003E-04
  18  Prefactor     5.2720        5.2503       -.38536E-06   -.31665E-03
  19  Prefactor     .10000E-03    7.8657       -.14377E-05** at limit **
  20  Prefactor     .10000E-03    .46851        .41764E-07** at limit **
  21  Normalizat    .94175        .11270        .58776E-06    .62936E-03
  22  Prefactor     .97232        .89862E-01    .20085E-06    .69500E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1185
  norm       = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 17.8326
  norm       = 3.64528
  norm       = 80.3986
  Prefactor  = 0.186827
  Prefactor  = 19.5637
  norm       = 0.760686
  Prefactor  = 0.0001
  Prefactor  = 5.42371
  Prefactor  = 0.0001
  Prefactor  = 6.34942
  Prefactor  = 4.15819
  norm       = 4.66176
  Prefactor  = 20.5258
  Prefactor  = 5.27201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.941746
  Prefactor  = 0.97232
 **********
 **   18 **HESSE 
 **********

 FCN=   15198.05     FROM HESSE     STATUS=OK           348 CALLS     2737 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.119        7.1640        .12596E-03   -1.5072    
   2  norm          .10001E-03    1.5331        .21503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.833        18.666        .94875E-04   -1.4863    
   6  norm          3.6453        4.4794        .21157E-03   -1.5326    
   7  norm          80.399        59.086        .44788E-04   -1.3912    
   8  Prefactor     .18683        6.6892        .21618E-02   -1.5622    
   9  Prefactor     19.564        16.949        .90550E-04   -1.4823    
  10  norm          .76069        .31319        .42423E-04   -1.5534    
  11  Prefactor     .10000E-03    5.6527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4237        16.168        .17244E-03   -1.5242    
  13  Prefactor     .10000E-03    2.3484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3494        8.6817        .15929E-03   -1.5204    
  15  Prefactor     4.1582        1.9808        .11214E-03   -1.5300    
  16  norm          4.6618        1.0384        .54574E-04   -1.5276    
  17  Prefactor     20.526        16.484        .88404E-04   -1.4802    
  18  Prefactor     5.2720        5.2454        .17504E-03   -1.5249    
  19  Prefactor     .10000E-03    7.9886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .47086        .82396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94175        .12920        .26136E-03   -.95008    
  22  Prefactor     .97232        .10388        .21126E-03   -.93658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51052e-09
Minuit parameter uncertainties:
  1  7.16459
  2  0.000182307
  3  0.000189853
  4  8.47433e-06
  5  18.6723
  6  4.4798
  7  59.1294
  8  2.2355
  9  16.9533
  10  0.313193
  11  1.17139e-05
  12  16.1812
  13  3.77723e-06
  14  8.68346
  15  1.98079
  16  1.03841
  17  16.488
  18  5.24587
  19  4.63274e-06
  20  3.60733e-07
  21  0.129246
  22  0.1039
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  5.424e+00  1.618e+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.723e-01  1.039e-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:  9.417e-01  1.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/571995/likelihoodResults_309139201_309744001_4FGL_J0818.7+3153_weekly_bin116.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) = 15197.9712159
delta logL = 0.0817616844924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15197.9516391
delta logL = 0.101338506609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2482       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6473       1.0000          .0000       10.000    
     3 'Normalizat'    .93394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97477       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15197.95     FROM MIGRAD    STATUS=FAILED       107 CALLS      278 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2382        510.29        .11236E-02    .55952E-03
   2  Index         2.6494        5.2968        .11919E-01    .15034E-02
   3  Normalizat    .93403        .10403        .26232E-03   -.36404E-04
   4  Prefactor     .97471        .87568E-01    .21102E-03   -.20041E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15197.95     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      371 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2382        510.29        .29028E-03    .55952E-03
   2  Index         2.6494        5.2968        .12290E-02    .15034E-02
   3  Normalizat    .93403        .10403        .86241E-04   -.36404E-04
   4  Prefactor     .97471        .87568E-01    .46515E-04   -.20041E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15197.95     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      403 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2382        12.305        .22473E-03   -.10523E-04
   2  Index         2.6494        1.3239        .23839E-02    .58512E-04
   3  Normalizat    .93403        .12635        .10493E-04   -.36404E-04
   4  Prefactor     .97471        .10290        .84408E-05   -.19934E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23816
  Index      = 2.64938
  Normalizat = 0.934031
  Prefactor  = 0.97471
 **********
 **   18 **HESSE 
 **********

 FCN=   15197.95     FROM HESSE     STATUS=OK            25 CALLS      428 TOTAL
                     EDM=   .93E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2382        10.731        .89890E-05   -1.5348    
   2  Index         2.6494        1.1582        .47677E-03   -.48943    
   3  Normalizat    .93403        .12628        .20986E-05   -.95274    
   4  Prefactor     .97471        .10281        .16882E-05   -.93577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26225e-13
Minuit parameter uncertainties:
  1  10.7378
  2  1.17191
  3  0.126319
  4  0.102829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571995': 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) = 15197.9516363
delta logL = 0.101341305211

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  3.238e+00  1.074e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.649e+00  1.172e+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:  9.747e-01  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:  9.340e-01  1.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/571995/cmap_HighResolution_309139201_309744001_4FGL_J0818.7+3153_weekly_bin116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-03', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2021-07-13 15:27:50.654320', job_id='571995', GAL2='0.97', fit_tolerance='1e-08', EG2='0.93', EG='0.94', time_epoch_completed='1626215270.65', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.01e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='116' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:27:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 571995: <4FGL_J0818.7+3153_weekly_bin116> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin116> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 07:41:24 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 13 14:55:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 13 14:55:22 2021
Terminated at Tue Jul 13 15:28:00 2021
Results reported at Tue Jul 13 15:28:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin116 124.695 31.8862 309139201 309744001 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 :                                   1245.10 sec.
    Max Memory :                                 783 MB
    Average Memory :                             237.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1957 sec.
    Turnaround time :                            114396 sec.

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

