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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin146
RA = 124.695, Dec = 31.8862
tmin = 327283201, tmax = 327888001
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='572045', job_status='RUN', time_executed='2021-07-13 14:59:41.616412', time_epoch_executed='1626213581.62' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/572045

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/572045/ft1_4FGL_J0818.7+3153_weekly_bin146.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/572045/ft2_4FGL_J0818.7+3153_weekly_bin146.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/572045/ft1_4FGL_J0818.7+3153_weekly_bin146.fits outfile=/scratch/kocevski/572045/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin146.fits ra=124.695 dec=31.8862 rad=12.0 tmin=327283201.0 tmax=327888001.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.04
user 6.68
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/572045/ft1_filtered_4FGL_J0818.7+3153_weekly_bin146.fits" evtable="EVENTS" scfile=/scratch/kocevski/572045/ft2_4FGL_J0818.7+3153_weekly_bin146.fits sctable="SC_DATA" outfile=/scratch/kocevski/572045/ltcube_327283201_327888001_4FGL_J0818.7+3153_weekly_bin146.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/572045/ft2_4FGL_J0818.7+3153_weekly_bin146.fits
.....................!
real 31.48
user 30.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/572045/ft1_filtered_4FGL_J0818.7+3153_weekly_bin146.fits evtable="EVENTS" scfile=/scratch/kocevski/572045/ft2_4FGL_J0818.7+3153_weekly_bin146.fits sctable="SC_DATA" expcube=/scratch/kocevski/572045/ltcube_327283201_327888001_4FGL_J0818.7+3153_weekly_bin146.fits outfile=/scratch/kocevski/572045/expmap_327283201_327888001_4FGL_J0818.7+3153_weekly_bin146.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/572045/ltcube_327283201_327888001_4FGL_J0818.7+3153_weekly_bin146.fits
.....................!
real 194.06
user 186.60
sys 5.16

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/572045/ft1_filtered_4FGL_J0818.7+3153_weekly_bin146.fits scfile=/scratch/kocevski/572045/ft2_4FGL_J0818.7+3153_weekly_bin146.fits outfile=/scratch/kocevski/572045/cmap_327283201_327888001_4FGL_J0818.7+3153_weekly_bin146.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.61
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/572045/ft1_filtered_4FGL_J0818.7+3153_weekly_bin146.fits scfile=/scratch/kocevski/572045/ft2_4FGL_J0818.7+3153_weekly_bin146.fits outfile=/scratch/kocevski/572045/cmap_HighResolution_327283201_327888001_4FGL_J0818.7+3153_weekly_bin146.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.62
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/572045/ft1_filtered_4FGL_J0818.7+3153_weekly_bin146.fits evtable="EVENTS" scfile=/scratch/kocevski/572045/ft2_4FGL_J0818.7+3153_weekly_bin146.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/572045/Model_4FGL_J0818.7+3153_weekly_bin146.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/572045/ft1_filtered_4FGL_J0818.7+3153_weekly_bin146.fits.....................!
real 132.19
user 129.18
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3000       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5105       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.066       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    26.640       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1700       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .68210       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.564       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.005       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2234       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5168       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5614       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6038       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.9510       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7855       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1320       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85739       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=   15379.92     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2345 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2986        8.9380        .19157E-06   -.31060E-04
   2  norm          .10000E-03    1.5715        .46663E-06** at limit **
   3  Prefactor     .10000E-03    8.4484        .67724E-06** at limit **
   4  Prefactor     6.5134        7.0480        .52064E-07   -.39525E-04
   5  Prefactor     10.076        16.493        .19065E-05    .19810E-03
   6  norm          .10000E-03    3.6526        .14538E-06** at limit **
   7  norm          26.626        47.076       -.22564E-05   -.91721E-04
   8  Prefactor     6.1702        3.0538       -.36172E-08   -.28542E-03
   9  Prefactor     .10000E-03    9.0141       -.32235E-07** at limit **
  10  norm          .68204        .33366        .61524E-08   -.13501E-04
  11  Prefactor     20.565        21.611        .21309E-06    .17473E-04
  12  Prefactor     10.004        14.593        .19768E-07   -.26440E-04
  13  Prefactor     6.2237        6.3486        .59879E-07   -.22478E-04
  14  Prefactor     .10000E-03    3.7910       -.11545E-06** at limit **
  15  Prefactor     3.5167        1.7314        .56698E-07   -.20120E-04
  16  norm          1.5614        .79140       -.69854E-07   -.26384E-03
  17  Prefactor     .10000E-03    7.0615       -.13463E-06** at limit **
  18  Prefactor     9.6036        6.3786        .16357E-05   -.13951E-03
  19  Prefactor     9.9495        10.036        .51934E-08   -.48239E-04
  20  Prefactor     3.7855        1.8896        .10821E-07    .61746E-05
  21  Normalizat    1.1320        .11611       -.29225E-06   -.35067E-04
  22  Prefactor     .85743        .90369E-01   -.95188E-07   -.81036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.29862
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.51341
  Prefactor  = 10.0756
  norm       = 0.0001
  norm       = 26.6262
  Prefactor  = 6.17016
  Prefactor  = 0.0001
  norm       = 0.682037
  Prefactor  = 20.5649
  Prefactor  = 10.0039
  Prefactor  = 6.22367
  Prefactor  = 0.0001
  Prefactor  = 3.51673
  norm       = 1.56144
  Prefactor  = 0.0001
  Prefactor  = 9.6036
  Prefactor  = 9.9495
  Prefactor  = 3.78552
  Normalizat = 1.13198
  Prefactor  = 0.857427
 **********
 **   18 **HESSE 
 **********

 FCN=   15379.92     FROM HESSE     STATUS=OK           350 CALLS     2695 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2986        8.9420        .14845E-03   -1.5168    
   2  norm          .10000E-03    1.6249        .30147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.4520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.5134        7.0366        .15729E-03   -1.5197    
   5  Prefactor     10.076        16.892        .12630E-03   -1.5073    
   6  norm          .10000E-03    3.7070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          26.626        47.883        .77615E-04   -1.4675    
   8  Prefactor     6.1702        3.0497        .14250E-03   -1.5211    
   9  Prefactor     .10000E-03    9.0351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .68204        .33002        .47049E-04   -1.5543    
  11  Prefactor     20.565        21.625        .88325E-04   -1.4801    
  12  Prefactor     10.004        14.603        .12668E-03   -1.5075    
  13  Prefactor     6.2237        6.3172        .16092E-03   -1.5209    
  14  Prefactor     .10000E-03    3.7979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5167        1.7251        .10586E-03   -1.5333    
  16  norm          1.5614        .78195        .73600E-04   -1.5458    
  17  Prefactor     .10000E-03    7.1157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.6036        6.4935        .64656E-03   -1.5088    
  19  Prefactor     9.9495        10.080        .12703E-03   -1.5077    
  20  Prefactor     3.7855        1.8912        .11714E-03   -1.5319    
  21  Normalizat    1.1320        .13662        .24781E-03   -.88731    
  22  Prefactor     .85743        .10610        .22520E-03   -.97645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25489e-10
Minuit parameter uncertainties:
  1  8.94367
  2  9.07475e-06
  3  1.70416e-05
  4  7.03745
  5  16.8998
  6  7.806e-06
  7  47.9525
  8  3.0498
  9  1.09655e-05
  10  0.330024
  11  21.6333
  12  14.6082
  13  6.31784
  14  8.56741e-06
  15  1.72508
  16  0.781958
  17  9.50196e-06
  18  6.49398
  19  10.0819
  20  1.89124
  21  0.136661
  22  0.106122
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e+01  1.461e+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:  8.574e-01  1.061e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.132e+00  1.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/572045/likelihoodResults_327283201_327888001_4FGL_J0818.7+3153_weekly_bin146.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) = 15379.331047
delta logL = 0.587889885266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15379.3067216
delta logL = 0.612215234567

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8127       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2024       1.0000          .0000       10.000    
     3 'Normalizat'    1.0998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87222       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=   15379.31     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      278 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8179        22.915        .77571E-02    .20207E-02
   2  Index         3.2011        1.8511        .10045        .48825E-03
   3  Normalizat    1.0998        .29711E-01    .56748E-01    .29799E-04
   4  Prefactor     .87218        .23192E-01    .44650E-01    .11628E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.81787
  Index      = 3.20114
  Normalizat = 1.09982
  Prefactor  = 0.872179
 **********
 **   18 **HESSE 
 **********

 FCN=   15379.31     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      311 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8179        57.325        .12969E-03   -1.5438    
   2  Index         3.2011        3.6669        .55190E-02   -.36802    
   3  Normalizat    1.0998        .12513        .25094E-03   -.89758    
   4  Prefactor     .87218        .94346E-01    .22346E-03   -.97120    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.30273e-09
Minuit parameter uncertainties:
  1  20.4375
  2  4.21895
  3  0.125163
  4  0.0943636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/572045': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15379.3067207
delta logL = 0.612216186628

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.818e+00  2.044e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  3.201e+00  4.219e+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:  8.722e-01  9.436e-02  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.100e+00  1.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 124.695 31.886
Photon Index (Free Index): 3.20 +/- 4.22
Photon Flux (Free Index): 3.52e-08 +/- 4.26e-08
Energy Flux (Free Index): 6.45e-06 +/- 6.69e-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/572045/cmap_HighResolution_327283201_327888001_4FGL_J0818.7+3153_weekly_bin146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-03', comment='SUCCESS', energy_flux2='6.45e-06', dlogl='6.12e-01', photon_flux2='3.52e-08', job_status='DONE', time_completed='2021-07-13 15:28:02.337102', photon_index_error2='4.22', photon_index2='3.20', ts='0.63', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='4.82e-08', energy_flux_error2='6.69e-06', EG='1.13', time_epoch_completed='1626215282.34', return_code='0', job_id='572045', GAL2='0.87', EG2='1.10', return_code2='102', photon_flux_error2='4.26e-08', ts2='1.90', photon_index='2.13' WHERE bin_id='146' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:28:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0134>
Subject: Job 572045: <4FGL_J0818.7+3153_weekly_bin146> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin146> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 07:41:28 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 13 14:56:06 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:56:06 2021
Terminated at Tue Jul 13 15:28:13 2021
Results reported at Tue Jul 13 15:28:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin146 124.695 31.8862 327283201 327888001 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 :                                   1220.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             247.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1926 sec.
    Turnaround time :                            114405 sec.

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

