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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin307
RA = 124.695, Dec = 31.8862
tmin = 424656001, tmax = 425260801
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='574074', job_status='RUN', time_executed='2021-07-13 14:56:54.483530', time_epoch_executed='1626213414.48' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574074

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574074/ft1_4FGL_J0818.7+3153_weekly_bin307.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574074/ft2_4FGL_J0818.7+3153_weekly_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574074/ft1_4FGL_J0818.7+3153_weekly_bin307.fits outfile=/scratch/kocevski/574074/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin307.fits ra=124.695 dec=31.8862 rad=12.0 tmin=424656001.0 tmax=425260801.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.73
user 8.10
sys 0.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574074/ft1_filtered_4FGL_J0818.7+3153_weekly_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/574074/ft2_4FGL_J0818.7+3153_weekly_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/574074/ltcube_424656001_425260801_4FGL_J0818.7+3153_weekly_bin307.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/574074/ft2_4FGL_J0818.7+3153_weekly_bin307.fits
.....................!
real 30.27
user 29.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574074/ft1_filtered_4FGL_J0818.7+3153_weekly_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/574074/ft2_4FGL_J0818.7+3153_weekly_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/574074/ltcube_424656001_425260801_4FGL_J0818.7+3153_weekly_bin307.fits outfile=/scratch/kocevski/574074/expmap_424656001_425260801_4FGL_J0818.7+3153_weekly_bin307.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/574074/ltcube_424656001_425260801_4FGL_J0818.7+3153_weekly_bin307.fits
.....................!
real 191.95
user 186.26
sys 5.03

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/574074/ft1_filtered_4FGL_J0818.7+3153_weekly_bin307.fits scfile=/scratch/kocevski/574074/ft2_4FGL_J0818.7+3153_weekly_bin307.fits outfile=/scratch/kocevski/574074/cmap_424656001_425260801_4FGL_J0818.7+3153_weekly_bin307.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.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574074/ft1_filtered_4FGL_J0818.7+3153_weekly_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/574074/ft2_4FGL_J0818.7+3153_weekly_bin307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574074/Model_4FGL_J0818.7+3153_weekly_bin307.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/574074/ft1_filtered_4FGL_J0818.7+3153_weekly_bin307.fits.....................!
real 117.14
user 115.45
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8512       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1479       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.727       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10621E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.4576       1.0000         .10000E-03   10000.    
     7 'norm      '    72.311       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59554       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12288E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0328       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4887       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5404       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4871       1.0000         .10000E-03   10000.    
    16 'norm      '    .28452       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.461       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3207       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0327       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0148       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=   13780.51     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2096 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8504        5.5632        .12900E-05   -.13349E-03
   2  norm          2.1515        2.4739       -.51447E-07    .34088E-04
   3  Prefactor     11.692        25.369        .37290E-06   -.12156E-03
   4  Prefactor     .10000E-03    17.805        .94874E-07** at limit **
   5  Prefactor     .10000E-03    15.346       -.14302E-05** at limit **
   6  norm          4.4581        6.1440        .29018E-06   -.13662E-04
   7  norm          72.309        57.870        .10863E-06   -.61866E-05
   8  Prefactor     .59482        1.4581        .72388E-06   -.41603E-03
   9  Prefactor     .10000E-03    27.104        .21911E-06** at limit **
  10  norm          1.0327        .39383       -.22598E-07   -.96288E-03
  11  Prefactor     3.4952        11.038        .50193E-06   -.30834E-04
  12  Prefactor     3.5409        20.745        .94041E-06   -.15777E-04
  13  Prefactor     .10000E-03    11.075        .19025E-07** at limit **
  14  Prefactor     .10000E-03    3.6998       -.55680E-07** at limit **
  15  Prefactor     1.4862        1.4232        .73795E-07   -.31766E-03
  16  norm          .28468        .46589        .53447E-06    .58696E-03
  17  Prefactor     .10000E-03    13.162        .15263E-06** at limit **
  18  Prefactor     11.461        6.0046       -.20840E-06   -.24165E-03
  19  Prefactor     .10000E-03    12.572        .46134E-06** at limit **
  20  Prefactor     1.3206        1.6900        .26628E-06   -.90154E-04
  21  Normalizat    1.0326        .12121       -.37258E-06   -.36423E-03
  22  Prefactor     1.0149        .98424E-01   -.39216E-06   -.25672E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85039
  norm       = 2.15153
  Prefactor  = 11.6921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.45807
  norm       = 72.3089
  Prefactor  = 0.594824
  Prefactor  = 0.0001
  norm       = 1.03265
  Prefactor  = 3.49521
  Prefactor  = 3.54091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.4862
  norm       = 0.284679
  Prefactor  = 0.0001
  Prefactor  = 11.4613
  Prefactor  = 0.0001
  Prefactor  = 1.3206
  Normalizat = 1.03259
  Prefactor  = 1.01488
 **********
 **   18 **HESSE 
 **********

 FCN=   13780.51     FROM HESSE     STATUS=OK           350 CALLS     2446 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8504        5.5224        .30642E-03   -1.5436    
   2  norm          2.1515        2.4257        .17533E-03   -1.5415    
   3  Prefactor     11.692        24.986        .11698E-03   -1.5024    
   4  Prefactor     .10000E-03    18.319        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4581        6.1352        .19072E-03   -1.5286    
   7  norm          72.309        57.883        .47211E-04   -1.4005    
   8  Prefactor     .59482        1.5014        .20621E-02   -1.5554    
   9  Prefactor     .10000E-03    27.992        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0327        .38771        .43513E-04   -1.5505    
  11  Prefactor     3.4952        11.004        .21648E-03   -1.5334    
  12  Prefactor     3.5409        20.738        .21482E-03   -1.5332    
  13  Prefactor     .10000E-03    11.386        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4862        1.4043        .13048E-03   -1.5464    
  16  norm          .28468        .46043        .10457E-02   -1.5601    
  17  Prefactor     .10000E-03    13.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.461        5.9875        .11833E-03   -1.5031    
  19  Prefactor     .10000E-03    13.031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3206        1.6610        .16783E-03   -1.5478    
  21  Normalizat    1.0326        .13972        .25420E-03   -.91946    
  22  Prefactor     1.0149        .11321        .21143E-03   -.92235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52156e-08
Minuit parameter uncertainties:
  1  5.5239
  2  2.42584
  3  25.0079
  4  3.79367e-05
  5  4.15147e-05
  6  6.13609
  7  57.9285
  8  1.50153
  9  3.31897e-05
  10  0.387716
  11  11.0099
  12  17.1472
  13  1.60966e-05
  14  9.23756e-06
  15  1.40436
  16  0.460434
  17  7.41901e-06
  18  5.98781
  19  8.43714e-06
  20  1.66111
  21  0.139771
  22  0.113239
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  3.541e+00  1.715e+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.015e+00  1.132e-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.033e+00  1.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/574074/likelihoodResults_424656001_425260801_4FGL_J0818.7+3153_weekly_bin307.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) = 13780.4764231
delta logL = 0.0344457205447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13780.4382032
delta logL = 0.072665546375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0805       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9935       1.0000          .0000       10.000    
     3 'Normalizat'    1.0236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0186       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13780.44     FROM MIGRAD    STATUS=FAILED        95 CALLS      277 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0761        274.59        .26898E-03    .10541E-03
   2  Index         2.9961        5.3674        .13389E-01    .80256E-04
   3  Normalizat    1.0233        .98603E-01    .25524E-03   -.10374E-02
   4  Prefactor     1.0187        .79048E-01    .21107E-03   -.10447E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13780.44     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      368 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0761        274.59        .18661E-03    .10541E-03
   2  Index         2.9961        5.3674        .17232E-02    .80256E-04
   3  Normalizat    1.0233        .98603E-01    .96514E-04   -.10374E-02
   4  Prefactor     1.0187        .79048E-01    .65482E-04   -.10447E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13780.44     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      397 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0761        8.5831        .10759E-04    .19907E-03
   2  Index         2.9961        1.9411        .53555E-03    .13459E-04
   3  Normalizat    1.0233        .13891        .51047E-04   -.97770E-03
   4  Prefactor     1.0187        .11313        .42215E-04   -.96983E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.07612
  Index      = 2.99612
  Normalizat = 1.02327
  Prefactor  = 1.01871
 **********
 **   18 **HESSE 
 **********

 FCN=   13780.44     FROM HESSE     STATUS=OK            23 CALLS      420 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0761        7.7844        .21518E-05   -1.5500    
   2  Index         2.9961        1.8535        .21422E-04   -.41236    
   3  Normalizat    1.0233        .13891        .10209E-04   -.92255    
   4  Prefactor     1.0187        .11312        .84429E-05   -.92109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10548e-10
Minuit parameter uncertainties:
  1  5.78937
  2  1.90822
  3  0.138956
  4  0.113151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574074': 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) = 13780.438198
delta logL = 0.072670742431

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.076e+00  5.789e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.996e+00  1.908e+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.019e+00  1.132e-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.023e+00  1.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/574074/cmap_HighResolution_424656001_425260801_4FGL_J0818.7+3153_weekly_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.59e-03', job_status='DONE', photon_flux_upper_limit='4.73e-08', time_completed='2021-07-13 15:23:50.894955', job_id='574074', GAL2='1.02', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1626215030.9', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='7.27e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='307' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:23:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 574074: <4FGL_J0818.7+3153_weekly_bin307> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin307> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul 12 07:47:45 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:51:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 12 07:51:48 2021
Terminated at Tue Jul 13 15:23:52 2021
Results reported at Tue Jul 13 15:23:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin307 124.695 31.8862 424656001 425260801 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 :                                   1117.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             50.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2180 sec.
    Turnaround time :                            113767 sec.

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

