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 34 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 = 17214
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin6
RA = 124.695, Dec = 31.8862
tmin = 242611201, tmax = 243216001
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='571823', job_status='RUN', time_executed='2021-07-13 14:56:50.603093', time_epoch_executed='1626213410.6' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571823

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571823/ft1_4FGL_J0818.7+3153_weekly_bin6.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571823/ft2_4FGL_J0818.7+3153_weekly_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571823/ft1_4FGL_J0818.7+3153_weekly_bin6.fits outfile=/scratch/kocevski/571823/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin6.fits ra=124.695 dec=31.8862 rad=12.0 tmin=242611201.0 tmax=243216001.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 2.31
user 1.96
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571823/ft2_4FGL_J0818.7+3153_weekly_bin6.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/571823/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin6.fits evtable="EVENTS" outfile="/scratch/kocevski/571823/ft1_filtered_4FGL_J0818.7+3153_weekly_bin6.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.50
user 0.30
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571823/ft1_filtered_4FGL_J0818.7+3153_weekly_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/571823/ft2_4FGL_J0818.7+3153_weekly_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/571823/ltcube_242611201_243216001_4FGL_J0818.7+3153_weekly_bin6.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/571823/ft2_4FGL_J0818.7+3153_weekly_bin6.fits
.....................!
real 24.29
user 23.90
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571823/ft1_filtered_4FGL_J0818.7+3153_weekly_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/571823/ft2_4FGL_J0818.7+3153_weekly_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/571823/ltcube_242611201_243216001_4FGL_J0818.7+3153_weekly_bin6.fits outfile=/scratch/kocevski/571823/expmap_242611201_243216001_4FGL_J0818.7+3153_weekly_bin6.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/571823/ltcube_242611201_243216001_4FGL_J0818.7+3153_weekly_bin6.fits
.....................!
real 153.94
user 149.19
sys 4.19

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/571823/ft1_filtered_4FGL_J0818.7+3153_weekly_bin6.fits scfile=/scratch/kocevski/571823/ft2_4FGL_J0818.7+3153_weekly_bin6.fits outfile=/scratch/kocevski/571823/cmap_242611201_243216001_4FGL_J0818.7+3153_weekly_bin6.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.52
user 0.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571823/ft1_filtered_4FGL_J0818.7+3153_weekly_bin6.fits scfile=/scratch/kocevski/571823/ft2_4FGL_J0818.7+3153_weekly_bin6.fits outfile=/scratch/kocevski/571823/cmap_HighResolution_242611201_243216001_4FGL_J0818.7+3153_weekly_bin6.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.53
user 0.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571823/ft1_filtered_4FGL_J0818.7+3153_weekly_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/571823/ft2_4FGL_J0818.7+3153_weekly_bin6.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571823/Model_4FGL_J0818.7+3153_weekly_bin6.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/571823/ft1_filtered_4FGL_J0818.7+3153_weekly_bin6.fits.....................!
real 148.77
user 147.27
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6874       1.0000         .10000E-03   10000.    
     2 'norm      '    .18678E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4002       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.5162       1.0000         .10000E-03   10000.    
     7 'norm      '    41.921       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .40353       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8965       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3585       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2525       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.654       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9637       1.0000         .10000E-03   10000.    
    16 'norm      '    .45891       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.865       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4320       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1471       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0230       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=   22389.45     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2126 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6878        6.4259        .36005E-07   -.82826E-05
   2  norm          .10009E-03    .64578        .75641E-06** at limit **
   3  Prefactor     3.3929        11.446        .75037E-06   -.65074E-04
   4  Prefactor     .10000E-03    6.6187        .32615E-06** at limit **
   5  Prefactor     .10000E-03    6.1400       -.60372E-06** at limit **
   6  norm          3.5163        4.5554        .29540E-05    .21403E-03
   7  norm          41.898        35.129        .35340E-05   -.46216E-04
   8  Prefactor     .39830        1.1617        .72225E-07   -.27981E-03
   9  Prefactor     .10000E-03    7.1218        .50322E-06** at limit **
  10  norm          1.8964        .42157       -.11357E-07   -.34234E-03
  11  Prefactor     .10000E-03    7.5048        .26361E-06** at limit **
  12  Prefactor     8.3585        14.159        .23709E-06   -.84610E-05
  13  Prefactor     2.2706        11.608        .91731E-06    .11635E-04
  14  Prefactor     13.642        13.412        .16719E-05    .25179E-03
  15  Prefactor     1.9597        2.2199        .12901E-07   -.25539E-03
  16  norm          .45961        .74962       -.24734E-06   -.14020E-02
  17  Prefactor     12.862        12.734        .42027E-06   -.27015E-04
  18  Prefactor     .10000E-03    3.5449        .96515E-07** at limit **
  19  Prefactor     5.4310        9.2202        .23336E-05    .77095E-04
  20  Prefactor     .10000E-03    .89320        .93271E-07** at limit **
  21  Normalizat    1.1472        .10221       -.43038E-06   -.23570E-04
  22  Prefactor     1.0230        .78061E-01   -.24501E-06   -.88015E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.68778
  norm       = 0.000100087
  Prefactor  = 3.39291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.51632
  norm       = 41.8976
  Prefactor  = 0.398301
  Prefactor  = 0.0001
  norm       = 1.89645
  Prefactor  = 0.0001
  Prefactor  = 8.3585
  Prefactor  = 2.27059
  Prefactor  = 13.6418
  Prefactor  = 1.95969
  norm       = 0.45961
  Prefactor  = 12.8619
  Prefactor  = 0.0001
  Prefactor  = 5.43099
  Prefactor  = 0.0001
  Normalizat = 1.14717
  Prefactor  = 1.023
 **********
 **   18 **HESSE 
 **********

 FCN=   22389.45     FROM HESSE     STATUS=OK           356 CALLS     2482 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6878        6.4239        .12875E-03   -1.5085    
   2  norm          .10009E-03    8.1567        .20848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3929        11.229        .21940E-03   -1.5340    
   4  Prefactor     .10000E-03    6.7364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.5163        4.5714        .10780E-02   -1.5333    
   7  norm          41.898        34.721        .61914E-04   -1.4412    
   8  Prefactor     .39830        3.4718        .24949E-02   -1.5582    
   9  Prefactor     .10000E-03    7.1343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8964        .41891        .42025E-04   -1.5433    
  11  Prefactor     .10000E-03    7.5194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3585        14.153        .13866E-03   -1.5130    
  13  Prefactor     2.2706        10.081        .27376E-03   -1.5407    
  14  Prefactor     13.642        13.008        .10840E-03   -1.4969    
  15  Prefactor     1.9597        2.0829        .18521E-03   -1.5428    
  16  norm          .45961        .72249        .13406E-03   -1.5572    
  17  Prefactor     12.862        12.696        .11168E-03   -1.4991    
  18  Prefactor     .10000E-03    3.6457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4310        9.2509        .86205E-03   -1.5242    
  20  Prefactor     .10000E-03    2.9872        .27348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1472        .11709        .26464E-03   -.88251    
  22  Prefactor     1.0230        .90443E-01    .22256E-03   -.91967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58762e-08
Minuit parameter uncertainties:
  1  6.42438
  2  0.00168723
  3  11.2362
  4  3.04086e-05
  5  2.28898e-06
  6  4.57185
  7  34.7375
  8  2.35175
  9  1.50227e-05
  10  0.418908
  11  1.43162e-05
  12  14.1583
  13  9.57117
  14  13.0109
  15  2.08296
  16  0.722499
  17  12.6991
  18  8.9286e-06
  19  9.25332
  20  4.5228e-06
  21  0.117114
  22  0.090456
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  8.359e+00  1.416e+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:  1.023e+00  9.046e-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.147e+00  1.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/571823/likelihoodResults_242611201_243216001_4FGL_J0818.7+3153_weekly_bin6.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) = 22388.1901543
delta logL = 1.25535355773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 22388.1645723
delta logL = 1.2809355857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31142       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9384       1.0000          .0000       10.000    
     3 'Normalizat'    1.0917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0493       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=   22388.16     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      291 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31151        1.6035        .10475E-01    .59202E-02
   2  Index         3.9386        1.1894        .78832E-01    .77844E-03
   3  Normalizat    1.0917        .20320E-01    .61140E-01    .15673E-04
   4  Prefactor     1.0494        .16302E-01    .39951E-01    .33072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.311511
  Index      = 3.93864
  Normalizat = 1.09172
  Prefactor  = 1.04935
 **********
 **   18 **HESSE 
 **********

 FCN=   22388.16     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      326 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31151        5.4036        .50039E-03   -1.5596    
   2  Index         3.9386        2.7004        .48579E-02   -.21390    
   3  Normalizat    1.0917        .80445E-01    .27041E-03   -.90018    
   4  Prefactor     1.0494        .62876E-01    .22006E-03   -.91102    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.05731e-07
Minuit parameter uncertainties:
  1  2.59468
  2  2.86114
  3  0.080454
  4  0.0628801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571823': 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) = 22388.1645701
delta logL = 1.2809377464

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  3.115e-01  2.595e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  3.939e+00  2.861e+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.049e+00  6.288e-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.092e+00  8.045e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 124.695 31.886
Photon Index (Free Index): 3.94 +/- 2.86
Photon Flux (Free Index): 5.28e-08 +/- 3.27e-08
Energy Flux (Free Index): 7.99e-06 +/- 5.00e-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/571823/cmap_HighResolution_242611201_243216001_4FGL_J0818.7+3153_weekly_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-03', comment='SUCCESS', energy_flux2='7.99e-06', dlogl='1.28e+00', photon_flux2='5.28e-08', job_status='DONE', time_completed='2021-07-13 15:25:12.740941', photon_index_error2='2.86', photon_index2='3.94', ts='0.41', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='4.26e-08', energy_flux_error2='5.00e-06', EG='1.15', time_epoch_completed='1626215112.74', return_code='0', job_id='571823', GAL2='1.05', EG2='1.09', return_code2='102', photon_flux_error2='3.27e-08', ts2='3.16', photon_index='2.13' WHERE bin_id='6' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:25:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 571823: <4FGL_J0818.7+3153_weekly_bin6> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin6 124.695 31.8862 242611201 243216001 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 :                                   1244.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             23.02 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   2032 sec.
    Turnaround time :                            114242 sec.

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

