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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin8
RA = 124.695, Dec = 31.8862
tmin = 243820801, tmax = 244425601
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='571826', job_status='RUN', time_executed='2021-07-13 14:53:17.516354', time_epoch_executed='1626213197.52' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571826

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571826/ft1_4FGL_J0818.7+3153_weekly_bin8.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571826/ft2_4FGL_J0818.7+3153_weekly_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571826/ft1_4FGL_J0818.7+3153_weekly_bin8.fits outfile=/scratch/kocevski/571826/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin8.fits ra=124.695 dec=31.8862 rad=12.0 tmin=243820801.0 tmax=244425601.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 3.75
user 3.42
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571826/ft1_filtered_4FGL_J0818.7+3153_weekly_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/571826/ft2_4FGL_J0818.7+3153_weekly_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/571826/ltcube_243820801_244425601_4FGL_J0818.7+3153_weekly_bin8.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/571826/ft2_4FGL_J0818.7+3153_weekly_bin8.fits
.....................!
real 35.68
user 35.17
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571826/ft1_filtered_4FGL_J0818.7+3153_weekly_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/571826/ft2_4FGL_J0818.7+3153_weekly_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/571826/ltcube_243820801_244425601_4FGL_J0818.7+3153_weekly_bin8.fits outfile=/scratch/kocevski/571826/expmap_243820801_244425601_4FGL_J0818.7+3153_weekly_bin8.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/571826/ltcube_243820801_244425601_4FGL_J0818.7+3153_weekly_bin8.fits
.....................!
real 193.80
user 186.99
sys 5.62

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

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

This is gtbin version HEAD
real 0.62
user 0.41
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.9643       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11066E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3335       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12050E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.3718       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9146       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.397       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2090       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2373       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .80352       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.203       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0136       1.0000         .10000E-03   10000.    
    16 'norm      '    .94964       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30867       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22561E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3238       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3410       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85398       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=   19726.61     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2455 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5780        .84060E-07** at limit **
   2  norm          6.9579        2.8351       -.53428E-07   -.23885E-02
   3  Prefactor     .10000E-03    44.654        .11977E-05** at limit **
   4  Prefactor     3.3381        11.055       -.27177E-05   -.10791E-03
   5  Prefactor     .10000E-03    63.271        .28471E-06** at limit **
   6  norm          5.3716        4.3581       -.34130E-06   -.74085E-03
   7  norm          .10000E-03    9.6934       -.16238E-07** at limit **
   8  Prefactor     2.9148        2.6843        .50843E-08   -.19059E-03
   9  Prefactor     18.393        19.219        .23917E-06   -.11470E-04
  10  norm          1.2091        .38747       -.44273E-07   -.35989E-02
  11  Prefactor     7.2293        17.184        .14499E-07   -.28031E-04
  12  Prefactor     .80424        7.1579        .15731E-05   -.22875E-04
  13  Prefactor     .10000E-03    2.0755        .38717E-07** at limit **
  14  Prefactor     14.203        12.320       -.27135E-07   -.75645E-04
  15  Prefactor     1.0140        1.3599       -.53823E-07   -.53309E-03
  16  norm          .94959        .68159        .53945E-07    .11985E-02
  17  Prefactor     .10000E-03    22.202       -.10015E-05** at limit **
  18  Prefactor     .30805        3.3181        .25704E-05    .15880E-05
  19  Prefactor     .10001E-03    24.281       -.11455E-04** at limit **
  20  Prefactor     3.3239        1.9310        .72737E-08   -.44210E-04
  21  Normalizat    1.3409        .10938       -.60821E-06   -.14564E-02
  22  Prefactor     .85397        .83227E-01    .67871E-07   -.14170E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.95788
  Prefactor  = 0.0001
  Prefactor  = 3.33811
  Prefactor  = 0.000100003
  norm       = 5.37164
  norm       = 0.0001
  Prefactor  = 2.91484
  Prefactor  = 18.393
  norm       = 1.20909
  Prefactor  = 7.22932
  Prefactor  = 0.804242
  Prefactor  = 0.0001
  Prefactor  = 14.2033
  Prefactor  = 1.01399
  norm       = 0.949593
  Prefactor  = 0.000100003
  Prefactor  = 0.308047
  Prefactor  = 0.000100007
  Prefactor  = 3.3239
  Normalizat = 1.34095
  Prefactor  = 0.853969
 **********
 **   18 **HESSE 
 **********

 FCN=   19726.61     FROM HESSE     STATUS=OK           362 CALLS     2817 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.9579        2.8612        .13448E-03   -1.5180    
   3  Prefactor     .10000E-03    45.559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3381        11.117        .11084E-02   -1.5343    
   5  Prefactor     .10000E-03    65.450        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3716        4.3745        .17339E-03   -1.5244    
   7  norm          .10000E-03    9.6937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9148        2.6699        .20816E-03   -1.5366    
   9  Prefactor     18.393        19.152        .93379E-04   -1.4850    
  10  norm          1.2091        .38287        .47254E-04   -1.5488    
  11  Prefactor     7.2293        17.101        .14910E-03   -1.5170    
  12  Prefactor     .80424        47.903        .70627E-02   -1.5529    
  13  Prefactor     .10000E-03    2.0852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.203        12.078        .10628E-03   -1.4954    
  15  Prefactor     1.0140        1.3588        .52116E-04   -1.5507    
  16  norm          .94959        .61190        .86065E-03   -1.5513    
  17  Prefactor     .10000E-03    23.043        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .30805        18.397        .40489E-02   -1.5597    
  19  Prefactor     .10001E-03    2.8547        .83571E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3239        1.9293        .14456E-03   -1.5343    
  21  Normalizat    1.3409        .12760        .25005E-03   -.82352    
  22  Prefactor     .85397        .96722E-01    .23879E-03   -.97769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56044e-07
Minuit parameter uncertainties:
  1  1.14183e-05
  2  2.8613
  3  0.000197884
  4  11.1234
  5  0.000812026
  6  4.37474
  7  2.7149e-06
  8  2.67002
  9  19.1585
  10  0.382868
  11  17.1125
  12  12.4234
  13  5.75773e-06
  14  12.0804
  15  1.35887
  16  0.611906
  17  0.00049736
  18  4.7619
  19  0.000280221
  20  1.92929
  21  0.127626
  22  0.0967415
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  8.042e-01  1.242e+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:  8.540e-01  9.674e-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.341e+00  1.276e-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: 3.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/571826/likelihoodResults_243820801_244425601_4FGL_J0818.7+3153_weekly_bin8.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) = 19726.5965187
delta logL = 0.009510149368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19726.5946403
delta logL = 0.0113885587707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2558       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4503       1.0000          .0000       10.000    
     3 'Normalizat'    1.3394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85399       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=   19726.59     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      264 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2579        16.685        .39852E-03    .27272E-04
   2  Index         2.4554        1.8642        .26408E-02    .20949E-03
   3  Normalizat    1.3394        .12273        .25017E-03    .14632E-02
   4  Prefactor     .85398        .96021E-01    .23878E-03    .16473E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25788
  Index      = 2.45538
  Normalizat = 1.33942
  Prefactor  = 0.853983
 **********
 **   18 **HESSE 
 **********

 FCN=   19726.59     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2579        15.508        .15941E-04   -1.5484    
   2  Index         2.4554        1.8017        .10563E-03   -.53393    
   3  Normalizat    1.3394        .12282        .50034E-04   -.82397    
   4  Prefactor     .85398        .96082E-01    .47757E-04   -.97768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.6816e-09
Minuit parameter uncertainties:
  1  8.83597
  2  1.85893
  3  0.122851
  4  0.0961013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571826': 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) = 19726.5946352
delta logL = 0.0113936310336

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.258e+00  8.836e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.455e+00  1.859e+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:  8.540e-01  9.610e-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.339e+00  1.229e-01  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/571826/cmap_HighResolution_243820801_244425601_4FGL_J0818.7+3153_weekly_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-03', job_status='DONE', photon_flux_upper_limit='3.61e-08', time_completed='2021-07-13 15:18:08.467519', job_id='571826', GAL2='0.85', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1626214688.47', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.14e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='8' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:18:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 571826: <4FGL_J0818.7+3153_weekly_bin8> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin8 124.695 31.8862 243820801 244425601 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 :                                   1473.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             51.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1626 sec.
    Turnaround time :                            113825 sec.

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

