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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin458
RA = 124.695, Dec = 31.8862
tmin = 515980801, tmax = 516585601
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='574312', job_status='RUN', time_executed='2021-07-13 14:53:52.020307', time_epoch_executed='1626213232.02' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574312

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574312/ft1_4FGL_J0818.7+3153_weekly_bin458.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574312/ft2_4FGL_J0818.7+3153_weekly_bin458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574312/ft1_4FGL_J0818.7+3153_weekly_bin458.fits outfile=/scratch/kocevski/574312/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin458.fits ra=124.695 dec=31.8862 rad=12.0 tmin=515980801.0 tmax=516585601.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 7.84
user 7.38
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574312/ft2_4FGL_J0818.7+3153_weekly_bin458.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/574312/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin458.fits evtable="EVENTS" outfile="/scratch/kocevski/574312/ft1_filtered_4FGL_J0818.7+3153_weekly_bin458.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.60
user 0.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574312/ft1_filtered_4FGL_J0818.7+3153_weekly_bin458.fits" evtable="EVENTS" scfile=/scratch/kocevski/574312/ft2_4FGL_J0818.7+3153_weekly_bin458.fits sctable="SC_DATA" outfile=/scratch/kocevski/574312/ltcube_515980801_516585601_4FGL_J0818.7+3153_weekly_bin458.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/574312/ft2_4FGL_J0818.7+3153_weekly_bin458.fits
.....................!
real 29.88
user 29.38
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574312/ft1_filtered_4FGL_J0818.7+3153_weekly_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/574312/ft2_4FGL_J0818.7+3153_weekly_bin458.fits sctable="SC_DATA" expcube=/scratch/kocevski/574312/ltcube_515980801_516585601_4FGL_J0818.7+3153_weekly_bin458.fits outfile=/scratch/kocevski/574312/expmap_515980801_516585601_4FGL_J0818.7+3153_weekly_bin458.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/574312/ltcube_515980801_516585601_4FGL_J0818.7+3153_weekly_bin458.fits
.....................!
real 191.41
user 185.55
sys 5.24

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/574312/ft1_filtered_4FGL_J0818.7+3153_weekly_bin458.fits scfile=/scratch/kocevski/574312/ft2_4FGL_J0818.7+3153_weekly_bin458.fits outfile=/scratch/kocevski/574312/cmap_515980801_516585601_4FGL_J0818.7+3153_weekly_bin458.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574312/ft1_filtered_4FGL_J0818.7+3153_weekly_bin458.fits scfile=/scratch/kocevski/574312/ft2_4FGL_J0818.7+3153_weekly_bin458.fits outfile=/scratch/kocevski/574312/cmap_HighResolution_515980801_516585601_4FGL_J0818.7+3153_weekly_bin458.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.59
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574312/ft1_filtered_4FGL_J0818.7+3153_weekly_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/574312/ft2_4FGL_J0818.7+3153_weekly_bin458.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574312/Model_4FGL_J0818.7+3153_weekly_bin458.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/574312/ft1_filtered_4FGL_J0818.7+3153_weekly_bin458.fits.....................!
real 126.16
user 124.40
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13363       1.0000         .10000E-03   10000.    
     2 'norm      '    8.1704       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.850       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.959       1.0000         .10000E-03   10000.    
     7 'norm      '    14.456       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85015       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.695       1.0000         .10000E-03   10000.    
    10 'norm      '    .47130       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8141       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .64461       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5267       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .70029E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1820       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0266       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94508       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=   15374.44     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2127 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12308        2.5426        .12316E-06   -.62346E-04
   2  norm          8.1688        2.9999        .14982E-08    .32930E-04
   3  Prefactor     15.843        17.624        .72492E-06    .17100E-03
   4  Prefactor     .10000E-03    5.5926       -.13298E-05** at limit **
   5  Prefactor     .10000E-03    9.4690        .91050E-07** at limit **
   6  norm          19.957        7.8558        .30656E-06   -.18761E-03
   7  norm          14.249        54.159       -.33185E-06   -.19523E-04
   8  Prefactor     .84991        2.1133        .13779E-05   -.44801E-03
   9  Prefactor     31.691        17.652        .48056E-06    .14242E-03
  10  norm          .47119        .33702       -.21313E-07   -.13362E-02
  11  Prefactor     .10000E-03    5.6093        .13285E-05** at limit **
  12  Prefactor     .10000E-03    5.3510        .27825E-07** at limit **
  13  Prefactor     2.8191        6.5840        .38627E-06   -.25805E-04
  14  Prefactor     .10000E-03    13.962       -.29050E-06** at limit **
  15  Prefactor     .10000E-03    .73700       -.51761E-07** at limit **
  16  norm          .64406        .67003        .27120E-06    .36229E-04
  17  Prefactor     .10000E-03    17.842        .12017E-06** at limit **
  18  Prefactor     4.5253        5.0655        .26250E-06    .16929E-04
  19  Prefactor     .10000E-03    4.2423        .89150E-07** at limit **
  20  Prefactor     1.1821        1.6364        .35748E-06   -.18286E-03
  21  Normalizat    1.0267        .11308       -.77886E-06   -.16243E-03
  22  Prefactor     .94512        .89443E-01   -.68947E-07   -.22159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.123075
  norm       = 8.16885
  Prefactor  = 15.8429
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 19.9568
  norm       = 14.2485
  Prefactor  = 0.849909
  Prefactor  = 31.6906
  norm       = 0.471187
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.81912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.644058
  Prefactor  = 0.0001
  Prefactor  = 4.5253
  Prefactor  = 0.000100002
  Prefactor  = 1.18212
  Normalizat = 1.02665
  Prefactor  = 0.945123
 **********
 **   18 **HESSE 
 **********

 FCN=   15374.44     FROM HESSE     STATUS=OK           364 CALLS     2491 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12308        4.0013        .66880E-01   -1.5638    
   2  norm          8.1688        2.9957        .11911E-03   -1.5136    
   3  Prefactor     15.843        17.746        .10060E-03   -1.4912    
   4  Prefactor     .10000E-03    5.8943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.957        7.8624        .44826E-03   -1.4814    
   7  norm          14.249        54.241        .10534E-03   -1.4953    
   8  Prefactor     .84991        2.1318        .27120E-03   -1.5524    
   9  Prefactor     31.691        17.676        .71172E-04   -1.4581    
  10  norm          .47119        .31471        .56580E-03   -1.5571    
  11  Prefactor     .10000E-03    5.9011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.3668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8191        6.2705        .24247E-03   -1.5372    
  14  Prefactor     .10000E-03    14.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1635        .19637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .64406        .62999        .97911E-03   -1.5547    
  17  Prefactor     .10000E-03    18.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.5253        4.9788        .18922E-03   -1.5282    
  19  Prefactor     .10000E-03    31.946        .49108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1821        1.6091        .18198E-03   -1.5491    
  21  Normalizat    1.0267        .12764        .25089E-03   -.92143    
  22  Prefactor     .94512        .10304        .21340E-03   -.94582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37081e-09
Minuit parameter uncertainties:
  1  1.40304
  2  2.99576
  3  17.752
  4  0.000153864
  5  1.3554e-06
  6  7.86282
  7  54.4294
  8  2.13195
  9  17.6788
  10  0.314712
  11  0.000158562
  12  3.35502e-06
  13  6.27197
  14  5.4183e-05
  15  1.10499e-05
  16  0.629998
  17  1.89706e-05
  18  4.97927
  19  0.000515669
  20  1.60915
  21  0.127679
  22  0.103063
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.355e-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:  9.451e-01  1.031e-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.027e+00  1.277e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574312/likelihoodResults_515980801_516585601_4FGL_J0818.7+3153_weekly_bin458.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) = 15374.4434001
delta logL = -0.00088801527636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15374.4425138
delta logL = -1.70677049027e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11362E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0925       1.0000          .0000       10.000    
     3 'Normalizat'    1.0265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94527       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=   15374.44     FROM MIGRAD    STATUS=FAILED        91 CALLS      242 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16878E-03    105.23        .18142    ** at limit **
   2  Index         1.3825        5.4654        .20000E-01    .18827E-04
   3  Normalizat    1.0267        .11047E-01    .25089E-03   -.25556E-03
   4  Prefactor     .94512        .91005E-02    .21340E-03   -.31921E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15374.44     FROM SIMPLEX   STATUS=PROGRESS     109 CALLS      351 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10467E-03    105.23        .61215E-03** at limit **
   2  Index         1.3790        5.4654        .14296E-02    .18827E-04
   3  Normalizat    1.0266        .11047E-01    .12481E-04   -.25556E-03
   4  Prefactor     .94510        .91005E-02    .12209E-04   -.31921E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15374.44     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      393 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    1781.6        .63977E-02** at limit **
   2  Index         1.2152        5.5899        .40000E-01    .45077E-06
   3  Normalizat    1.0267        .29531E-01    .10036E-04    .22203E-03
   4  Prefactor     .94512        .24329E-01    .85361E-05   -.20297E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100038
  Index      = 1.21516
  Normalizat = 1.02666
  Prefactor  = 0.945122
 **********
 **   18 **HESSE 
 **********

 FCN=   15374.44     FROM HESSE     STATUS=OK            23 CALLS      416 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    21.992        .12795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2152        9.3629        .16000E-02   -.85866    
   3  Normalizat    1.0267        .12391        .20072E-05   -.92143    
   4  Prefactor     .94512        .10207        .17072E-05   -.94582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62904e-09
Minuit parameter uncertainties:
  1  0.00183567
  2  218.382
  3  0.123943
  4  0.102087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574312': 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) = 15374.4425051
delta logL = 7.00612508808e-06

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.836e-03  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.215e+00  2.184e+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:  9.451e-01  1.021e-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.027e+00  1.239e-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/574312/cmap_HighResolution_515980801_516585601_4FGL_J0818.7+3153_weekly_bin458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-03', job_status='DONE', photon_flux_upper_limit='2.48e-08', time_completed='2021-07-13 15:22:07.712397', job_id='574312', GAL2='0.95', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1626214927.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='7.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='458' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:22:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 574312: <4FGL_J0818.7+3153_weekly_bin458> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin458 124.695 31.8862 515980801 516585601 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 :                             12.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   1847 sec.
    Turnaround time :                            113641 sec.

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

