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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin411
RA = 124.695, Dec = 31.8862
tmin = 487555201, tmax = 488160001
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='574238', job_status='RUN', time_executed='2021-07-13 15:01:29.303615', time_epoch_executed='1626213689.3' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574238

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574238/ft1_4FGL_J0818.7+3153_weekly_bin411.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574238/ft2_4FGL_J0818.7+3153_weekly_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574238/ft1_4FGL_J0818.7+3153_weekly_bin411.fits outfile=/scratch/kocevski/574238/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin411.fits ra=124.695 dec=31.8862 rad=12.0 tmin=487555201.0 tmax=488160001.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 11.55
user 10.99
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574238/ft1_filtered_4FGL_J0818.7+3153_weekly_bin411.fits" evtable="EVENTS" scfile=/scratch/kocevski/574238/ft2_4FGL_J0818.7+3153_weekly_bin411.fits sctable="SC_DATA" outfile=/scratch/kocevski/574238/ltcube_487555201_488160001_4FGL_J0818.7+3153_weekly_bin411.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/574238/ft2_4FGL_J0818.7+3153_weekly_bin411.fits
.....................!
real 29.57
user 28.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574238/ft1_filtered_4FGL_J0818.7+3153_weekly_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/574238/ft2_4FGL_J0818.7+3153_weekly_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/574238/ltcube_487555201_488160001_4FGL_J0818.7+3153_weekly_bin411.fits outfile=/scratch/kocevski/574238/expmap_487555201_488160001_4FGL_J0818.7+3153_weekly_bin411.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/574238/ltcube_487555201_488160001_4FGL_J0818.7+3153_weekly_bin411.fits
.....................!
real 192.64
user 185.51
sys 5.87

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/574238/ft1_filtered_4FGL_J0818.7+3153_weekly_bin411.fits scfile=/scratch/kocevski/574238/ft2_4FGL_J0818.7+3153_weekly_bin411.fits outfile=/scratch/kocevski/574238/cmap_487555201_488160001_4FGL_J0818.7+3153_weekly_bin411.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.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574238/ft1_filtered_4FGL_J0818.7+3153_weekly_bin411.fits scfile=/scratch/kocevski/574238/ft2_4FGL_J0818.7+3153_weekly_bin411.fits outfile=/scratch/kocevski/574238/cmap_HighResolution_487555201_488160001_4FGL_J0818.7+3153_weekly_bin411.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.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574238/ft1_filtered_4FGL_J0818.7+3153_weekly_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/574238/ft2_4FGL_J0818.7+3153_weekly_bin411.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574238/Model_4FGL_J0818.7+3153_weekly_bin411.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/574238/ft1_filtered_4FGL_J0818.7+3153_weekly_bin411.fits.....................!
real 128.51
user 125.94
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7085       1.0000         .10000E-03   10000.    
     2 'norm      '    .10935E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.128       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.524       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4497       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5149       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.067       1.0000         .10000E-03   10000.    
    10 'norm      '    .67055       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.727       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4033       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.729       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0611       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2816       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4257       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75335       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=   15007.31     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2378 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7080        10.120        .16218E-05   -.30265E-04
   2  norm          .10000E-03    2.3676       -.47300E-06** at limit **
   3  Prefactor     .10000E-03    16.129        .25029E-07** at limit **
   4  Prefactor     24.121        12.710       -.30350E-07   -.75456E-04
   5  Prefactor     12.512        18.630       -.18607E-05   -.18762E-03
   6  norm          1.4474        8.5787        .21999E-05   -.41819E-04
   7  norm          .10000E-03    16.630       -.37803E-06** at limit **
   8  Prefactor     2.5160        3.0902        .56685E-06   -.35879E-04
   9  Prefactor     19.066        14.118       -.17612E-08   -.24560E-04
  10  norm          .67057        .32755       -.14102E-07   -.29563E-03
  11  Prefactor     16.727        13.248        .10650E-07   -.15257E-04
  12  Prefactor     .10000E-03    4.5099        .41288E-07** at limit **
  13  Prefactor     5.4075        6.1374        .46786E-07    .59384E-04
  14  Prefactor     14.733        12.348        .14843E-06   -.30384E-04
  15  Prefactor     .10000E-03    .56364       -.56610E-07** at limit **
  16  norm          .10000E-03    .21081        .10707E-06** at limit **
  17  Prefactor     6.0639        14.890        .65798E-06    .34617E-04
  18  Prefactor     .10000E-03    2.0516        .42905E-07** at limit **
  19  Prefactor     .10000E-03    10.316        .63406E-07** at limit **
  20  Prefactor     2.2816        1.7855        .56530E-07   -.10053E-04
  21  Normalizat    1.4257        .12185       -.40487E-06   -.10125E-03
  22  Prefactor     .75334        .93316E-01   -.15522E-06   -.15075E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.70797
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.1209
  Prefactor  = 12.5121
  norm       = 1.44744
  norm       = 0.0001
  Prefactor  = 2.51602
  Prefactor  = 19.0663
  norm       = 0.670567
  Prefactor  = 16.727
  Prefactor  = 0.0001
  Prefactor  = 5.40749
  Prefactor  = 14.7332
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.06386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.28157
  Normalizat = 1.42566
  Prefactor  = 0.75334
 **********
 **   18 **HESSE 
 **********

 FCN=   15007.31     FROM HESSE     STATUS=OK           350 CALLS     2728 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7080        10.255        .32165E-03   -1.5447    
   2  norm          .10000E-03    2.3994        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.121        12.701        .81550E-04   -1.4725    
   5  Prefactor     12.512        19.555        .11319E-03   -1.5000    
   6  norm          1.4474        8.8576        .35785E-03   -1.5467    
   7  norm          .10000E-03    16.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5160        3.0913        .22346E-03   -1.5391    
   9  Prefactor     19.066        14.119        .91725E-04   -1.4834    
  10  norm          .67057        .32025        .46207E-04   -1.5544    
  11  Prefactor     16.727        13.248        .97929E-04   -1.4890    
  12  Prefactor     .10000E-03    4.5188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4075        6.0242        .17288E-03   -1.5243    
  14  Prefactor     14.733        11.985        .10436E-03   -1.4940    
  15  Prefactor     .10000E-03    3.0813        .17261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .33052        .10537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.0639        14.871        .16308E-03   -1.5215    
  18  Prefactor     .10000E-03    2.0642        .17134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2816        1.7828        .14097E-03   -1.5406    
  21  Normalizat    1.4257        .14096        .23794E-03   -.79889    
  22  Prefactor     .75334        .10825        .24472E-03   -1.0147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78338e-10
Minuit parameter uncertainties:
  1  8.37211
  2  1.85371e-05
  3  8.31448e-05
  4  12.7021
  5  19.5647
  6  7.16257
  7  4.14061e-05
  8  3.09153
  9  14.121
  10  0.320249
  11  13.2503
  12  2.6647e-06
  13  6.02488
  14  11.9869
  15  2.08295e-05
  16  2.76056e-06
  17  14.8799
  18  1.11229e-06
  19  7.50561e-06
  20  1.78286
  21  0.141002
  22  0.108277
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.665e-06  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:  7.533e-01  1.083e-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.426e+00  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/574238/likelihoodResults_487555201_488160001_4FGL_J0818.7+3153_weekly_bin411.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) = 15007.3110046
delta logL = -0.00105306121804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15007.3099525
delta logL = -9.03295585886e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0951       1.0000          .0000       10.000    
     3 'Normalizat'    1.4257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75326       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=   15007.31     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      247 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10117E-03    22.114        .18142E-02** at limit **
   2  Index         2.0403        5.0811        .50000        .55104E-04
   3  Normalizat    1.4257        .64085E-02    .23794E-03   -.73388E-04
   4  Prefactor     .75334        .49924E-02    .24472E-03   -.86407E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101167
  Index      = 2.0403
  Normalizat = 1.42566
  Prefactor  = 0.75334
 **********
 **   18 **HESSE 
 **********

 FCN=   15007.31     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10117E-03    100.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0403        6.6074        .50000       -.63346    
   3  Normalizat    1.4257        .13878E-01    .95178E-05   -.79889    
   4  Prefactor     .75334        .10811E-01    .97889E-05   -1.0147    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.84926e-08
Minuit parameter uncertainties:
  1  0.0216608
  2  162.237
  3  0.0138776
  4  0.0108109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574238': 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) = 15007.3099502
delta logL = 1.34353831527e-06

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.012e-04  2.166e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.040e+00  1.622e+02  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:  7.533e-01  1.081e-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.426e+00  1.388e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 124.695 31.886

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/574238/cmap_HighResolution_487555201_488160001_4FGL_J0818.7+3153_weekly_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-03', job_status='DONE', photon_flux_upper_limit='2.32e-08', time_completed='2021-07-13 15:28:35.382621', job_id='574238', GAL2='0.75', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1626215315.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.34e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='411' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:28:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 574238: <4FGL_J0818.7+3153_weekly_bin411> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin411> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul 12 07:48:00 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:54:10 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:54:10 2021
Terminated at Tue Jul 13 15:28:43 2021
Results reported at Tue Jul 13 15:28:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin411 124.695 31.8862 487555201 488160001 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 :                                   1207.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2309 sec.
    Turnaround time :                            114043 sec.

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

