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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin304
RA = 124.695, Dec = 31.8862
tmin = 422841601, tmax = 423446401
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='574068', job_status='RUN', time_executed='2021-07-13 14:57:34.382491', time_epoch_executed='1626213454.38' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574068

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574068/ft1_4FGL_J0818.7+3153_weekly_bin304.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574068/ft2_4FGL_J0818.7+3153_weekly_bin304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574068/ft1_4FGL_J0818.7+3153_weekly_bin304.fits outfile=/scratch/kocevski/574068/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin304.fits ra=124.695 dec=31.8862 rad=12.0 tmin=422841601.0 tmax=423446401.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.09
user 9.74
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574068/ft1_filtered_4FGL_J0818.7+3153_weekly_bin304.fits" evtable="EVENTS" scfile=/scratch/kocevski/574068/ft2_4FGL_J0818.7+3153_weekly_bin304.fits sctable="SC_DATA" outfile=/scratch/kocevski/574068/ltcube_422841601_423446401_4FGL_J0818.7+3153_weekly_bin304.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/574068/ft2_4FGL_J0818.7+3153_weekly_bin304.fits
.....................!
real 27.22
user 26.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574068/ft1_filtered_4FGL_J0818.7+3153_weekly_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/574068/ft2_4FGL_J0818.7+3153_weekly_bin304.fits sctable="SC_DATA" expcube=/scratch/kocevski/574068/ltcube_422841601_423446401_4FGL_J0818.7+3153_weekly_bin304.fits outfile=/scratch/kocevski/574068/expmap_422841601_423446401_4FGL_J0818.7+3153_weekly_bin304.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/574068/ltcube_422841601_423446401_4FGL_J0818.7+3153_weekly_bin304.fits
.....................!
real 192.44
user 186.93
sys 4.53

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/574068/ft1_filtered_4FGL_J0818.7+3153_weekly_bin304.fits scfile=/scratch/kocevski/574068/ft2_4FGL_J0818.7+3153_weekly_bin304.fits outfile=/scratch/kocevski/574068/cmap_422841601_423446401_4FGL_J0818.7+3153_weekly_bin304.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574068/ft1_filtered_4FGL_J0818.7+3153_weekly_bin304.fits scfile=/scratch/kocevski/574068/ft2_4FGL_J0818.7+3153_weekly_bin304.fits outfile=/scratch/kocevski/574068/cmap_HighResolution_422841601_423446401_4FGL_J0818.7+3153_weekly_bin304.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.59
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574068/ft1_filtered_4FGL_J0818.7+3153_weekly_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/574068/ft2_4FGL_J0818.7+3153_weekly_bin304.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574068/Model_4FGL_J0818.7+3153_weekly_bin304.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/574068/ft1_filtered_4FGL_J0818.7+3153_weekly_bin304.fits.....................!
real 121.43
user 119.90
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8554       1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    40.919       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5349       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .99748       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2695       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.233       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4725       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0736       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9671       1.0000         .10000E-03   10000.    
    16 'norm      '    .74691       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .45451       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.216       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1067       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4157       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1244       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94904       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=   14074.18     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     2786 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3098        .18142E-02** at limit **
   2  norm          .10001E-03    3.0477        .22210E-02** at limit **
   3  Prefactor     .10000E-03    11.779        .18142E-02** at limit **
   4  Prefactor     .10000E-03    7.6141        .18142E-02** at limit **
   5  Prefactor     1.8603        39.616        .30600E-03   -.97785E-04
   6  norm          .10000E-03    2.5384        .18142E-02** at limit **
   7  norm          40.993        46.350        .31332E-03   -.13106E-03
   8  Prefactor     5.5341        3.7572        .17077E-03   -.58184E-04
   9  Prefactor     .10000E-03    6.6588        .18142E-02** at limit **
  10  norm          .99772        .42691        .47461E-04   -.29176E-03
  11  Prefactor     4.2704        13.487        .97494E-03   -.46247E-04
  12  Prefactor     17.232        18.857        .96480E-04   -.18618E-04
  13  Prefactor     6.4759        7.5706        .15775E-03   -.65293E-04
  14  Prefactor     9.0793        15.333        .13306E-03   -.15482E-03
  15  Prefactor     2.9675        2.1906        .13897E-03   -.13138E-03
  16  norm          .74622        .96638        .11586E-03    .16446E-02
  17  Prefactor     .41992        16.569        .11749        .26082E-03
  18  Prefactor     13.218        8.9864        .11018E-03   -.33121E-03
  19  Prefactor     8.1135        11.189        .14081E-03   -.95106E-04
  20  Prefactor     3.4157        2.0708        .12906E-03   -.21317E-04
  21  Normalizat    1.1244        .15580        .26713E-03   -.75136E-03
  22  Prefactor     .94907        .11569        .22313E-03   -.79458E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.86026
  norm       = 0.0001
  norm       = 40.9934
  Prefactor  = 5.53413
  Prefactor  = 0.0001
  norm       = 0.997716
  Prefactor  = 4.27041
  Prefactor  = 17.2319
  Prefactor  = 6.47587
  Prefactor  = 9.07934
  Prefactor  = 2.96747
  norm       = 0.746224
  Prefactor  = 0.419921
  Prefactor  = 13.2181
  Prefactor  = 8.11348
  Prefactor  = 3.41566
  Normalizat = 1.12439
  Prefactor  = 0.949073
 **********
 **   18 **HESSE 
 **********

 FCN=   14074.18     FROM HESSE     STATUS=OK           330 CALLS     3116 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    3.0603        .44419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.780        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.6171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8603        39.594        .12240E-04   -1.5435    
   6  norm          .10000E-03    2.5392        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          40.993        46.350        .12533E-04   -1.4427    
   8  Prefactor     5.5341        3.7567        .68309E-05   -1.5237    
   9  Prefactor     .10000E-03    6.6591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .99772        .42682        .18984E-05   -1.5508    
  11  Prefactor     4.2704        13.484        .38998E-04   -1.5295    
  12  Prefactor     17.232        18.857        .38592E-05   -1.4878    
  13  Prefactor     6.4759        7.5673        .63101E-05   -1.5199    
  14  Prefactor     9.0793        15.325        .53222E-05   -1.5105    
  15  Prefactor     2.9675        2.1901        .55589E-05   -1.5363    
  16  norm          .74622        .96562        .46344E-05   -1.5535    
  17  Prefactor     .41992        15.494        .12266       -1.5578    
  18  Prefactor     13.218        8.9838        .44072E-05   -1.4981    
  19  Prefactor     8.1135        11.189        .56326E-05   -1.5138    
  20  Prefactor     3.4157        2.0708        .51625E-05   -1.5338    
  21  Normalizat    1.1244        .15587        .53426E-04   -.88972    
  22  Prefactor     .94907        .11578        .44625E-04   -.94447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46552e-09
Minuit parameter uncertainties:
  1  1.71176e-05
  2  0.000261382
  3  1.66507e-05
  4  1.27866e-05
  5  17.177
  6  3.36812e-06
  7  46.3906
  8  3.75685
  9  2.43451e-05
  10  0.426822
  11  13.494
  12  18.8634
  13  7.56843
  14  15.3311
  15  2.19015
  16  0.965641
  17  5.10228
  18  8.98468
  19  11.1923
  20  2.07084
  21  0.155932
  22  0.115811
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.723e+01  1.886e+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.491e-01  1.158e-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.124e+00  1.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.86e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 9.47e-06 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/574068/likelihoodResults_422841601_423446401_4FGL_J0818.7+3153_weekly_bin304.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) = 14074.1237222
delta logL = 0.0554511829832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14074.119383
delta logL = 0.0597904110309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.364       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9172       1.0000          .0000       10.000    
     3 'Normalizat'    1.1286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94667       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=   14074.12     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      316 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.365        32.715        .81153E-04   -.42307E-04
   2  Index         1.9170        .63171        .10625E-01    .71575E-03
   3  Normalizat    1.1289        .14741        .26665E-03    .52270E-04
   4  Prefactor     .94642        .11476        .22339E-03    .87840E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.3645
  Index      = 1.91698
  Normalizat = 1.1289
  Prefactor  = 0.946424
 **********
 **   18 **HESSE 
 **********

 FCN=   14074.12     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.365        30.753        .32461E-05   -1.4720    
   2  Index         1.9170        .59408        .21250E-02   -.66442    
   3  Normalizat    1.1289        .14743        .10666E-04   -.88829    
   4  Prefactor     .94642        .11481        .89355E-05   -.94537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6706e-11
Minuit parameter uncertainties:
  1  30.7727
  2  0.596358
  3  0.147487
  4  0.114837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574068': 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) = 14074.1193806
delta logL = 0.0597928438074

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.436e+01  3.077e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.917e+00  5.964e-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:  9.464e-01  1.148e-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.129e+00  1.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 124.695 31.886
Photon Index (Free Index): 1.92 +/- 0.60
Photon Flux (Free Index): 1.57e-08 +/- 1.93e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.93e-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/574068/cmap_HighResolution_422841601_423446401_4FGL_J0818.7+3153_weekly_bin304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-03', comment='SUCCESS', photon_flux='1.86e-08', energy_flux2='1.35e-05', photon_flux_error='2.03e-08', dlogl='5.98e-02', energy_flux='9.47e-06', photon_flux2='1.57e-08', job_status='DONE', time_completed='2021-07-13 15:26:03.262374', photon_index_error2='0.60', photon_index2='1.92', ts='1.07', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='6.24e-08', energy_flux_error2='1.93e-05', EG='1.12', time_epoch_completed='1626215163.26', return_code='0', job_id='574068', GAL2='0.95', EG2='1.13', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='1.93e-08', ts2='1.19', photon_index='2.13' WHERE bin_id='304' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:26:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 574068: <4FGL_J0818.7+3153_weekly_bin304> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin304> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul 12 07:47:45 2021
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:51:34 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:51:34 2021
Terminated at Tue Jul 13 15:26:04 2021
Results reported at Tue Jul 13 15:26:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin304 124.695 31.8862 422841601 423446401 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 :                                   1203.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2326 sec.
    Turnaround time :                            113899 sec.

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

