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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin280
RA = 124.695, Dec = 31.8862
tmin = 408326401, tmax = 408931201
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='573970', job_status='RUN', time_executed='2021-07-13 14:58:11.659382', time_epoch_executed='1626213491.66' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573970

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573970/ft1_4FGL_J0818.7+3153_weekly_bin280.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573970/ft2_4FGL_J0818.7+3153_weekly_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573970/ft1_4FGL_J0818.7+3153_weekly_bin280.fits outfile=/scratch/kocevski/573970/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin280.fits ra=124.695 dec=31.8862 rad=12.0 tmin=408326401.0 tmax=408931201.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.36
user 9.89
sys 0.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573970/ft1_filtered_4FGL_J0818.7+3153_weekly_bin280.fits" evtable="EVENTS" scfile=/scratch/kocevski/573970/ft2_4FGL_J0818.7+3153_weekly_bin280.fits sctable="SC_DATA" outfile=/scratch/kocevski/573970/ltcube_408326401_408931201_4FGL_J0818.7+3153_weekly_bin280.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/573970/ft2_4FGL_J0818.7+3153_weekly_bin280.fits
.....................!
real 35.65
user 35.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573970/ft1_filtered_4FGL_J0818.7+3153_weekly_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/573970/ft2_4FGL_J0818.7+3153_weekly_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/573970/ltcube_408326401_408931201_4FGL_J0818.7+3153_weekly_bin280.fits outfile=/scratch/kocevski/573970/expmap_408326401_408931201_4FGL_J0818.7+3153_weekly_bin280.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/573970/ltcube_408326401_408931201_4FGL_J0818.7+3153_weekly_bin280.fits
.....................!
real 192.57
user 186.28
sys 4.99

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/573970/ft1_filtered_4FGL_J0818.7+3153_weekly_bin280.fits scfile=/scratch/kocevski/573970/ft2_4FGL_J0818.7+3153_weekly_bin280.fits outfile=/scratch/kocevski/573970/cmap_408326401_408931201_4FGL_J0818.7+3153_weekly_bin280.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.62
user 0.41
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/573970/ft1_filtered_4FGL_J0818.7+3153_weekly_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/573970/ft2_4FGL_J0818.7+3153_weekly_bin280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/573970/Model_4FGL_J0818.7+3153_weekly_bin280.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/573970/ft1_filtered_4FGL_J0818.7+3153_weekly_bin280.fits.....................!
real 96.55
user 94.97
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.061       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .73891       1.0000         .10000E-03   10000.    
     6 'norm      '    .31468E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    49.302       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .80318       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .76600E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3809       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.623       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.769       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .91397       1.0000         .10000E-03   10000.    
    16 'norm      '    .34637       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4490       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .70535       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3521       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0552       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94765       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=   10790.94     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2804 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.060        14.866        .29556E-06    .99352E-04
   2  norm          .10000E-03    .84894       -.11957E-06** at limit **
   3  Prefactor     .10000E-03    12.302       -.15476E-05** at limit **
   4  Prefactor     .10000E-03    5.3260       -.34256E-06** at limit **
   5  Prefactor     .73651        11.962       -.27672E-05   -.18075E-03
   6  norm          .10000E-03    27.026        .15566E-04** at limit **
   7  norm          49.312        50.383       -.84478E-05    .69790E-04
   8  Prefactor     .80032        2.6140        .23195E-07   -.36395E-03
   9  Prefactor     .10065E-03    20.384       -.69894E-05** at limit **
  10  norm          1.3810        .56378       -.10242E-06    .57177E-03
  11  Prefactor     .10000E-03    25.006        .72223E-05** at limit **
  12  Prefactor     25.612        24.715       -.46022E-05    .16360E-03
  13  Prefactor     .10000E-03    15.856        .19210E-06** at limit **
  14  Prefactor     41.761        23.151       -.27516E-05   -.25912E-05
  15  Prefactor     .91369        2.1746       -.25384E-06   -.25560E-04
  16  norm          .34657        .96175        .45901E-06    .85980E-03
  17  Prefactor     .10000E-03    82.444       -.72241E-05** at limit **
  18  Prefactor     4.4468        3.9263        .13282E-05    .52294E-03
  19  Prefactor     .70559        5.0856       -.16233E-05   -.39026E-04
  20  Prefactor     3.3522        2.6489       -.18779E-06    .50469E-04
  21  Normalizat    1.0554        .14842        .15962E-05    .52221E-03
  22  Prefactor     .94756        .11039        .15731E-05    .57039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0602
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.736508
  norm       = 0.000100001
  norm       = 49.3125
  Prefactor  = 0.800318
  Prefactor  = 0.000100655
  norm       = 1.38104
  Prefactor  = 0.0001
  Prefactor  = 25.6125
  Prefactor  = 0.0001
  Prefactor  = 41.7608
  Prefactor  = 0.913687
  norm       = 0.34657
  Prefactor  = 0.0001
  Prefactor  = 4.44676
  Prefactor  = 0.705593
  Prefactor  = 3.35221
  Normalizat = 1.05535
  Prefactor  = 0.947557
 **********
 **   18 **HESSE 
 **********

 FCN=   10790.94     FROM HESSE     STATUS=OK           358 CALLS     3162 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.060        14.865        .85279E-04   -1.4768    
   2  norm          .10000E-03    .85780        .93410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .73651        66.060        .67956E-02   -1.5536    
   6  norm          .10000E-03    29.777        .45609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          49.312        50.212        .57111E-04   -1.4302    
   8  Prefactor     .80032        6.5146        .28102E-02   -1.5529    
   9  Prefactor     .10065E-03    18.248        .12527       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3810        .56483        .47502E-04   -1.5473    
  11  Prefactor     .10000E-03    24.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.612        24.665        .79138E-04   -1.4695    
  13  Prefactor     .10000E-03    16.256        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.761        21.782        .62026E-04   -1.4415    
  15  Prefactor     .91369        2.1176        .22522E-03   -1.5517    
  16  norm          .34657        .86927        .13075E-03   -1.5590    
  17  Prefactor     .10000E-03    84.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4468        4.9132        .95454E-03   -1.5286    
  19  Prefactor     .70559        39.057        .44168E-02   -1.5540    
  20  Prefactor     3.3522        2.6538        .14580E-03   -1.5342    
  21  Normalizat    1.0554        .17788        .27017E-03   -.91198    
  22  Prefactor     .94756        .13151        .22001E-03   -.94499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46225e-08
Minuit parameter uncertainties:
  1  14.8671
  2  6.5391e-06
  3  2.00304e-05
  4  2.17676e-05
  5  13.9654
  6  0.00029559
  7  50.2554
  8  4.56713
  9  0.00691616
  10  0.564828
  11  0.000155287
  12  24.6751
  13  4.14224e-05
  14  21.7862
  15  2.1178
  16  0.869297
  17  6.17571e-05
  18  4.91368
  19  10.5057
  20  2.65386
  21  0.177985
  22  0.131558
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.561e+01  2.468e+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.476e-01  1.316e-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.055e+00  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.76e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/573970/likelihoodResults_408326401_408931201_4FGL_J0818.7+3153_weekly_bin280.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) = 10788.7877527
delta logL = 2.15457349012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10788.7683911
delta logL = 2.17393508607

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57737       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0283       1.0000          .0000       10.000    
     3 'Normalizat'    .93185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0112       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=   10788.77     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      243 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57560        2.7730        .78862E-02    .17781E-02
   2  Index         4.0296        1.2425        .71083E-01    .42170E-03
   3  Normalizat    .93202        .39683E-01    .45307E-01    .33108E-04
   4  Prefactor     1.0111        .30664E-01    .43155E-01    .17310E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.575603
  Index      = 4.02958
  Normalizat = 0.932022
  Prefactor  = 1.01112
 **********
 **   18 **HESSE 
 **********

 FCN=   10788.77     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57560        5.9007        .35557E-04   -1.5556    
   2  Index         4.0296        2.1136        .27323E-02   -.19532    
   3  Normalizat    .93202        .15709        .28498E-03   -.95344    
   4  Prefactor     1.0111        .11946        .21374E-03   -.92360    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.65919e-07
Minuit parameter uncertainties:
  1  3.68604
  2  2.18515
  3  0.157166
  4  0.119486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573970': 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) = 10788.768388
delta logL = 2.17393823396

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  5.756e-01  3.686e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  4.030e+00  2.185e+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.011e+00  1.195e-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.320e-01  1.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.30
Ra Dec: 124.695 31.886
Photon Index (Free Index): 4.03 +/- 2.19
Photon Flux (Free Index): 1.28e-07 +/- 6.41e-08
Energy Flux (Free Index): 1.91e-05 +/- 9.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/573970/cmap_HighResolution_408326401_408931201_4FGL_J0818.7+3153_weekly_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', comment='SUCCESS', photon_flux='2.76e-08', energy_flux2='1.91e-05', photon_flux_error='2.66e-08', dlogl='2.17e+00', energy_flux='1.41e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-07-13 15:24:10.668181', photon_index_error2='2.19', photon_index2='4.03', ts='1.45', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='8.41e-08', energy_flux_error2='9.69e-06', EG='1.06', time_epoch_completed='1626215050.67', return_code='0', job_id='573970', GAL2='1.01', EG2='0.93', return_code2='102', energy_flux_error='1.36e-05', photon_flux_error2='6.41e-08', ts2='6.30', photon_index='2.13' WHERE bin_id='280' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:24:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 573970: <4FGL_J0818.7+3153_weekly_bin280> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin280 124.695 31.8862 408326401 408931201 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 :                                   1021.14 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             50.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2235 sec.
    Turnaround time :                            113791 sec.

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

