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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin297
RA = 124.695, Dec = 31.8862
tmin = 418608001, tmax = 419212801
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='574058', job_status='RUN', time_executed='2021-07-13 14:57:06.107922', time_epoch_executed='1626213426.11' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574058

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574058/ft1_4FGL_J0818.7+3153_weekly_bin297.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574058/ft2_4FGL_J0818.7+3153_weekly_bin297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574058/ft1_4FGL_J0818.7+3153_weekly_bin297.fits outfile=/scratch/kocevski/574058/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin297.fits ra=124.695 dec=31.8862 rad=12.0 tmin=418608001.0 tmax=419212801.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.74
user 11.35
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574058/ft1_filtered_4FGL_J0818.7+3153_weekly_bin297.fits" evtable="EVENTS" scfile=/scratch/kocevski/574058/ft2_4FGL_J0818.7+3153_weekly_bin297.fits sctable="SC_DATA" outfile=/scratch/kocevski/574058/ltcube_418608001_419212801_4FGL_J0818.7+3153_weekly_bin297.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/574058/ft2_4FGL_J0818.7+3153_weekly_bin297.fits
.....................!
real 28.69
user 28.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574058/ft1_filtered_4FGL_J0818.7+3153_weekly_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/574058/ft2_4FGL_J0818.7+3153_weekly_bin297.fits sctable="SC_DATA" expcube=/scratch/kocevski/574058/ltcube_418608001_419212801_4FGL_J0818.7+3153_weekly_bin297.fits outfile=/scratch/kocevski/574058/expmap_418608001_419212801_4FGL_J0818.7+3153_weekly_bin297.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/574058/ltcube_418608001_419212801_4FGL_J0818.7+3153_weekly_bin297.fits
.....................!
real 193.49
user 186.95
sys 5.51

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/574058/ft1_filtered_4FGL_J0818.7+3153_weekly_bin297.fits scfile=/scratch/kocevski/574058/ft2_4FGL_J0818.7+3153_weekly_bin297.fits outfile=/scratch/kocevski/574058/cmap_418608001_419212801_4FGL_J0818.7+3153_weekly_bin297.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.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574058/ft1_filtered_4FGL_J0818.7+3153_weekly_bin297.fits scfile=/scratch/kocevski/574058/ft2_4FGL_J0818.7+3153_weekly_bin297.fits outfile=/scratch/kocevski/574058/cmap_HighResolution_418608001_419212801_4FGL_J0818.7+3153_weekly_bin297.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.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574058/ft1_filtered_4FGL_J0818.7+3153_weekly_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/574058/ft2_4FGL_J0818.7+3153_weekly_bin297.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574058/Model_4FGL_J0818.7+3153_weekly_bin297.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/574058/ft1_filtered_4FGL_J0818.7+3153_weekly_bin297.fits.....................!
real 130.02
user 128.23
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.386       1.0000         .10000E-03   10000.    
     6 'norm      '    6.6028       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .86416       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3534       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2096       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7059       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.042       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.796       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11282E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2633       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98766       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0456       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=   15032.97     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2026 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5588       -.12585E-06** at limit **
   2  norm          .10000E-03    1.3491       -.46110E-07** at limit **
   3  Prefactor     .10000E-03    13.335       -.27727E-05** at limit **
   4  Prefactor     .10000E-03    7.8674        .17937E-05** at limit **
   5  Prefactor     29.385        19.935       -.55869E-07   -.28022E-05
   6  norm          6.6028        7.2578        .12225E-06   -.54019E-04
   7  norm          .10000E-03    25.942        .11869E-06** at limit **
   8  Prefactor     .10000E-03    1.2839        .10952E-06** at limit **
   9  Prefactor     .10000E-03    8.1714       -.22937E-05** at limit **
  10  norm          .86407        .34553        .19019E-07    .16985E-03
  11  Prefactor     .10000E-03    10.954        .27114E-05** at limit **
  12  Prefactor     .10000E-03    43.234       -.10078E-05** at limit **
  13  Prefactor     .10000E-03    4.5276       -.98934E-07** at limit **
  14  Prefactor     2.3499        9.4016        .34368E-06   -.78912E-04
  15  Prefactor     1.2091        1.4441        .18718E-06   -.41298E-03
  16  norm          2.7062        1.0366        .44367E-07    .60044E-04
  17  Prefactor     18.039        14.691       -.96960E-08   -.65576E-05
  18  Prefactor     11.797        7.6563        .28585E-07   -.13145E-04
  19  Prefactor     .10000E-03    25.825        .22226E-05** at limit **
  20  Prefactor     5.2632        2.3599        .70312E-06   -.28317E-02
  21  Normalizat    .98764        .12252        .27017E-07   -.61930E-04
  22  Prefactor     1.0457        .95054E-01   -.25421E-06   -.47838E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 29.385
  norm       = 6.60281
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.864073
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.34992
  Prefactor  = 1.20907
  norm       = 2.70617
  Prefactor  = 18.039
  Prefactor  = 11.7967
  Prefactor  = 0.000100001
  Prefactor  = 5.26322
  Normalizat = 0.987639
  Prefactor  = 1.04565
 **********
 **   18 **HESSE 
 **********

 FCN=   15032.97     FROM HESSE     STATUS=OK           340 CALLS     2366 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.3774        .13883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.385        19.916        .73908E-04   -1.4623    
   6  norm          6.6028        7.2590        .15617E-03   -1.5194    
   7  norm          .10000E-03    25.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3113        .13553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.5551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .86407        .34209        .43873E-04   -1.5522    
  11  Prefactor     .10000E-03    11.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3499        9.3639        .26719E-03   -1.5401    
  15  Prefactor     1.2091        1.4246        .15452E-03   -1.5488    
  16  norm          2.7062        1.0288        .69878E-04   -1.5379    
  17  Prefactor     18.039        14.684        .94293E-04   -1.4858    
  18  Prefactor     11.797        7.6488        .11664E-03   -1.5021    
  19  Prefactor     .10000E-03    26.936        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.2632        2.7380        .70739E-03   -1.5249    
  21  Normalizat    .98764        .14039        .27598E-03   -.93446    
  22  Prefactor     1.0457        .10900        .21316E-03   -.91223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87247e-09
Minuit parameter uncertainties:
  1  7.50851e-06
  2  1.5344e-06
  3  0.000354313
  4  0.000173252
  5  19.9209
  6  7.25999
  7  2.18661e-05
  8  3.17028e-06
  9  0.000229705
  10  0.342089
  11  0.000317198
  12  0.000210182
  13  1.00943e-05
  14  9.36972
  15  1.42461
  16  1.02877
  17  14.687
  18  7.64946
  19  0.000318707
  20  2.73803
  21  0.140446
  22  0.109027
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.102e-04  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.046e+00  1.090e-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:  9.876e-01  1.404e-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: 4.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574058/likelihoodResults_418608001_419212801_4FGL_J0818.7+3153_weekly_bin297.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) = 15032.9725807
delta logL = -0.000107615129309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15032.972473
delta logL = 7.01875251252e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1885       1.0000          .0000       10.000    
     3 'Normalizat'    .98767       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0456       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15032.97     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      225 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    .43256        .11487    ** at limit **
   2  Index         2.2657        .95451        .50000       -.17776E-04
   3  Normalizat    .98764        .70315E-03    .46012E-01   -.82126E-05
   4  Prefactor     1.0457        .55994E-03    .40172E-01   -.42389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100051
  Index      = 2.2657
  Normalizat = 0.987639
  Prefactor  = 1.04565
 **********
 **   18 **HESSE 
 **********

 FCN=   15032.97     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      262 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    254.82        .68581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2657        5.0490        .50000       -.57861    
   3  Normalizat    .98764        .60118E-02    .27597E-03   -.93446    
   4  Prefactor     1.0457        .47889E-02    .21316E-03   -.91223    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.5926e-10
Minuit parameter uncertainties:
  1  0.00723781
  2  8.20811
  3  0.00601178
  4  0.00478887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574058': 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) = 15032.9724727
delta logL = 4.24430254498e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.001e-04  7.238e-03  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.266e+00  8.208e+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.046e+00  4.789e-03  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:  9.876e-01  6.012e-03  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/574058/cmap_HighResolution_418608001_419212801_4FGL_J0818.7+3153_weekly_bin297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-03', job_status='DONE', photon_flux_upper_limit='4.49e-08', time_completed='2021-07-13 15:24:06.410897', job_id='574058', GAL2='1.05', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1626215046.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='4.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='297' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:24:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 574058: <4FGL_J0818.7+3153_weekly_bin297> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin297> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul 12 07:47:44 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:51:26 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:26 2021
Terminated at Tue Jul 13 15:24:07 2021
Results reported at Tue Jul 13 15:24:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin297 124.695 31.8862 418608001 419212801 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 :                                   1116.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             50.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2216 sec.
    Turnaround time :                            113783 sec.

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

