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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin403
RA = 124.695, Dec = 31.8862
tmin = 482716801, tmax = 483321601
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='574230', job_status='RUN', time_executed='2021-07-13 14:53:42.515385', time_epoch_executed='1626213222.52' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574230

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574230/ft1_4FGL_J0818.7+3153_weekly_bin403.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574230/ft2_4FGL_J0818.7+3153_weekly_bin403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574230/ft1_4FGL_J0818.7+3153_weekly_bin403.fits outfile=/scratch/kocevski/574230/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin403.fits ra=124.695 dec=31.8862 rad=12.0 tmin=482716801.0 tmax=483321601.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 8.27
user 7.96
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574230/ft1_filtered_4FGL_J0818.7+3153_weekly_bin403.fits" evtable="EVENTS" scfile=/scratch/kocevski/574230/ft2_4FGL_J0818.7+3153_weekly_bin403.fits sctable="SC_DATA" outfile=/scratch/kocevski/574230/ltcube_482716801_483321601_4FGL_J0818.7+3153_weekly_bin403.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/574230/ft2_4FGL_J0818.7+3153_weekly_bin403.fits
.....................!
real 31.08
user 30.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574230/ft1_filtered_4FGL_J0818.7+3153_weekly_bin403.fits evtable="EVENTS" scfile=/scratch/kocevski/574230/ft2_4FGL_J0818.7+3153_weekly_bin403.fits sctable="SC_DATA" expcube=/scratch/kocevski/574230/ltcube_482716801_483321601_4FGL_J0818.7+3153_weekly_bin403.fits outfile=/scratch/kocevski/574230/expmap_482716801_483321601_4FGL_J0818.7+3153_weekly_bin403.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/574230/ltcube_482716801_483321601_4FGL_J0818.7+3153_weekly_bin403.fits
.....................!
real 194.01
user 187.74
sys 5.70

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/574230/ft1_filtered_4FGL_J0818.7+3153_weekly_bin403.fits scfile=/scratch/kocevski/574230/ft2_4FGL_J0818.7+3153_weekly_bin403.fits outfile=/scratch/kocevski/574230/cmap_482716801_483321601_4FGL_J0818.7+3153_weekly_bin403.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=124.695 yref=31.8862 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.60
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574230/ft1_filtered_4FGL_J0818.7+3153_weekly_bin403.fits scfile=/scratch/kocevski/574230/ft2_4FGL_J0818.7+3153_weekly_bin403.fits outfile=/scratch/kocevski/574230/cmap_HighResolution_482716801_483321601_4FGL_J0818.7+3153_weekly_bin403.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/574230/ft1_filtered_4FGL_J0818.7+3153_weekly_bin403.fits evtable="EVENTS" scfile=/scratch/kocevski/574230/ft2_4FGL_J0818.7+3153_weekly_bin403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574230/Model_4FGL_J0818.7+3153_weekly_bin403.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/574230/ft1_filtered_4FGL_J0818.7+3153_weekly_bin403.fits.....................!
real 134.43
user 128.31
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10386E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.341       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.268       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.4391       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .92050       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0530       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.208       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.355       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9275       1.0000         .10000E-03   10000.    
    16 'norm      '    .22727       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.785       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4495       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.658       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7604       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0992       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94426       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=   14961.02     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     3011 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9179        .68666E-07** at limit **
   2  norm          .10000E-03    1.6673       -.50391E-06** at limit **
   3  Prefactor     38.320        26.592       -.25735E-05   -.30466E-03
   4  Prefactor     17.265        11.890        .50980E-06    .53361E-04
   5  Prefactor     .10000E-03    28.906        .26787E-06** at limit **
   6  norm          8.4393        6.6400        .21981E-06    .14754E-05
   7  norm          .10000E-03    30.372       -.13674E-05** at limit **
   8  Prefactor     .92067        2.8566        .24551E-05   -.32275E-03
   9  Prefactor     .10000E-03    16.628       -.74284E-06** at limit **
  10  norm          1.0529        .38191       -.78758E-07   -.13977E-02
  11  Prefactor     .10000E-03    16.821        .82856E-06** at limit **
  12  Prefactor     20.205        16.351       -.21157E-06   -.61386E-04
  13  Prefactor     .10000E-03    1.9035       -.50235E-07** at limit **
  14  Prefactor     12.365        15.429       -.67510E-06   -.80457E-04
  15  Prefactor     1.9274        1.3057       -.54969E-07   -.30989E-03
  16  norm          .22715        .54065        .36591E-06   -.93721E-03
  17  Prefactor     10.782        17.640       -.45858E-06   -.59417E-04
  18  Prefactor     2.4500        3.2125        .13673E-07   -.82641E-04
  19  Prefactor     13.656        12.208       -.17049E-07   -.36098E-04
  20  Prefactor     3.7603        1.9817        .11775E-07   -.85448E-05
  21  Normalizat    1.0993        .12434       -.95879E-07   -.36385E-03
  22  Prefactor     .94416        .94447E-01   -.39896E-06   -.28552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.3202
  Prefactor  = 17.2651
  Prefactor  = 0.000100001
  norm       = 8.43932
  norm       = 0.0001
  Prefactor  = 0.920666
  Prefactor  = 0.0001
  norm       = 1.05293
  Prefactor  = 0.0001
  Prefactor  = 20.2047
  Prefactor  = 0.0001
  Prefactor  = 12.3647
  Prefactor  = 1.92739
  norm       = 0.227153
  Prefactor  = 10.7825
  Prefactor  = 2.45004
  Prefactor  = 13.6564
  Prefactor  = 3.76028
  Normalizat = 1.09934
  Prefactor  = 0.944157
 **********
 **   18 **HESSE 
 **********

 FCN=   14961.02     FROM HESSE     STATUS=OK           350 CALLS     3361 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6753        .15271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.320        27.842        .64729E-04   -1.4469    
   4  Prefactor     17.265        11.901        .96381E-04   -1.4877    
   5  Prefactor     .10000E-03    29.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.4393        6.6419        .13800E-03   -1.5127    
   7  norm          .10000E-03    30.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .92067        2.9394        .34518E-03   -1.5516    
   9  Prefactor     .10000E-03    16.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0529        .37768        .43049E-04   -1.5503    
  11  Prefactor     .10000E-03    16.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.205        16.370        .89099E-04   -1.4809    
  13  Prefactor     .10000E-03    1.9063        .16476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.365        14.867        .11396E-03   -1.5005    
  15  Prefactor     1.9274        1.2999        .11053E-03   -1.5430    
  16  norm          .22715        .61709        .11743E-02   -1.5613    
  17  Prefactor     10.782        17.650        .12200E-03   -1.5051    
  18  Prefactor     2.4500        3.1906        .24257E-03   -1.5395    
  19  Prefactor     13.656        12.253        .10838E-03   -1.4969    
  20  Prefactor     3.7603        1.9823        .12165E-03   -1.5320    
  21  Normalizat    1.0993        .14695        .26451E-03   -.89773    
  22  Prefactor     .94416        .11153        .22202E-03   -.94615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70068e-08
Minuit parameter uncertainties:
  1  1.17181e-06
  2  2.28587e-05
  3  27.8517
  4  11.9026
  5  0.000415785
  6  6.64246
  7  0.00015606
  8  2.93982
  9  4.85605e-05
  10  0.377676
  11  7.35473e-05
  12  16.3738
  13  2.63275e-06
  14  14.8712
  15  1.29992
  16  0.617108
  17  17.6584
  18  3.19078
  19  12.2554
  20  1.98238
  21  0.147006
  22  0.111557
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.020e+01  1.637e+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.442e-01  1.116e-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.099e+00  1.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 9.00e-06

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

Saving results to:
/scratch/kocevski/574230/likelihoodResults_482716801_483321601_4FGL_J0818.7+3153_weekly_bin403.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) = 14961.0177354
delta logL = 3.16952045978e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14961.0177081
delta logL = 5.89410446992e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.057       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1406       1.0000          .0000       10.000    
     3 'Normalizat'    1.0992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94418       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=   14961.02     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      284 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.053        23.545        .89434E-04    .17796E-03
   2  Index         2.1405        .58739        .88085E-02    .11623E-03
   3  Normalizat    1.0992        .14137        .26452E-03    .30583E-03
   4  Prefactor     .94422        .11082        .22201E-03    .22787E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0533
  Index      = 2.14054
  Normalizat = 1.09918
  Prefactor  = 0.944225
 **********
 **   18 **HESSE 
 **********

 FCN=   14961.02     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.053        21.443        .35774E-05   -1.4812    
   2  Index         2.1405        .53496        .35234E-03   -.60881    
   3  Normalizat    1.0992        .14125        .10581E-04   -.89778    
   4  Prefactor     .94422        .11084        .88806E-05   -.94612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74622e-11
Minuit parameter uncertainties:
  1  21.451
  2  0.536492
  3  0.141295
  4  0.110862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574230': 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) = 14961.0177077
delta logL = 5.93539825786e-05

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.005e+01  2.145e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.141e+00  5.365e-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.442e-01  1.109e-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.099e+00  1.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 124.695 31.886
Photon Index (Free Index): 2.14 +/- 0.54
Photon Flux (Free Index): 2.19e-08 +/- 2.23e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.03e-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/574230/cmap_HighResolution_482716801_483321601_4FGL_J0818.7+3153_weekly_bin403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='1.10e-05', photon_flux_error='1.76e-08', dlogl='5.94e-05', energy_flux='1.11e-05', photon_flux2='2.19e-08', job_status='DONE', time_completed='2021-07-13 15:22:59.866839', photon_index_error2='0.54', photon_index2='2.14', ts='2.38', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='6.09e-08', energy_flux_error2='1.03e-05', EG='1.10', time_epoch_completed='1626214979.87', return_code='0', job_id='574230', GAL2='0.94', EG2='1.10', return_code2='0', energy_flux_error='9.00e-06', photon_flux_error2='2.23e-08', ts2='2.38', photon_index='2.13' WHERE bin_id='403' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:22:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 574230: <4FGL_J0818.7+3153_weekly_bin403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin403 124.695 31.8862 482716801 483321601 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 :                                   1301.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2000 sec.
    Turnaround time :                            113701 sec.

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

