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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin371
RA = 124.695, Dec = 31.8862
tmin = 463363201, tmax = 463968001
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='574190', job_status='RUN', time_executed='2021-07-13 14:56:06.353730', time_epoch_executed='1626213366.35' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='371'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574190

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574190/ft1_4FGL_J0818.7+3153_weekly_bin371.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574190/ft2_4FGL_J0818.7+3153_weekly_bin371.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574190/ft1_4FGL_J0818.7+3153_weekly_bin371.fits outfile=/scratch/kocevski/574190/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin371.fits ra=124.695 dec=31.8862 rad=12.0 tmin=463363201.0 tmax=463968001.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.50
user 7.22
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574190/ft1_filtered_4FGL_J0818.7+3153_weekly_bin371.fits" evtable="EVENTS" scfile=/scratch/kocevski/574190/ft2_4FGL_J0818.7+3153_weekly_bin371.fits sctable="SC_DATA" outfile=/scratch/kocevski/574190/ltcube_463363201_463968001_4FGL_J0818.7+3153_weekly_bin371.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/574190/ft2_4FGL_J0818.7+3153_weekly_bin371.fits
.....................!
real 27.87
user 26.88
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574190/ft1_filtered_4FGL_J0818.7+3153_weekly_bin371.fits evtable="EVENTS" scfile=/scratch/kocevski/574190/ft2_4FGL_J0818.7+3153_weekly_bin371.fits sctable="SC_DATA" expcube=/scratch/kocevski/574190/ltcube_463363201_463968001_4FGL_J0818.7+3153_weekly_bin371.fits outfile=/scratch/kocevski/574190/expmap_463363201_463968001_4FGL_J0818.7+3153_weekly_bin371.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/574190/ltcube_463363201_463968001_4FGL_J0818.7+3153_weekly_bin371.fits
.....................!
real 191.54
user 186.07
sys 4.90

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/574190/ft1_filtered_4FGL_J0818.7+3153_weekly_bin371.fits scfile=/scratch/kocevski/574190/ft2_4FGL_J0818.7+3153_weekly_bin371.fits outfile=/scratch/kocevski/574190/cmap_463363201_463968001_4FGL_J0818.7+3153_weekly_bin371.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/574190/ft1_filtered_4FGL_J0818.7+3153_weekly_bin371.fits scfile=/scratch/kocevski/574190/ft2_4FGL_J0818.7+3153_weekly_bin371.fits outfile=/scratch/kocevski/574190/cmap_HighResolution_463363201_463968001_4FGL_J0818.7+3153_weekly_bin371.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.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574190/ft1_filtered_4FGL_J0818.7+3153_weekly_bin371.fits evtable="EVENTS" scfile=/scratch/kocevski/574190/ft2_4FGL_J0818.7+3153_weekly_bin371.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574190/Model_4FGL_J0818.7+3153_weekly_bin371.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/574190/ft1_filtered_4FGL_J0818.7+3153_weekly_bin371.fits.....................!
real 142.27
user 140.69
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.681       1.0000         .10000E-03   10000.    
     2 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.399       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.875       1.0000         .10000E-03   10000.    
     7 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10552E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7557       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.396       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17880       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3159       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0537       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8947       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14144E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.771       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7727       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1080       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98359       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=   16627.64     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2141 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.680        8.5707        .81227E-07   -.90247E-04
   2  norm          .10000E-03    1.9853       -.15255E-05** at limit **
   3  Prefactor     26.380        22.942       -.11552E-05    .22390E-04
   4  Prefactor     .10003E-03    8.2947       -.16357E-05** at limit **
   5  Prefactor     .10000E-03    21.377        .14635E-05** at limit **
   6  norm          12.873        7.9219        .26276E-07   -.17016E-03
   7  norm          .10000E-03    13.029        .77725E-07** at limit **
   8  Prefactor     .10000E-03    1.8357        .94520E-07** at limit **
   9  Prefactor     .10000E-03    12.059        .12238E-06** at limit **
  10  norm          1.7557        .46182        .78105E-08   -.47253E-03
  11  Prefactor     .10000E-03    5.2033        .42521E-07** at limit **
  12  Prefactor     .10000E-03    4.2900        .51966E-07** at limit **
  13  Prefactor     11.394        8.5549       -.14917E-07   -.11550E-03
  14  Prefactor     .10067        70.611       -.15326E-04    .39525E-03
  15  Prefactor     2.3160        1.8132        .40654E-07   -.43314E-03
  16  norm          2.0544        .95039        .36421E-06    .29129E-02
  17  Prefactor     7.8948        15.286        .26033E-07   -.40887E-04
  18  Prefactor     .10003E-03    18.986       -.78881E-05** at limit **
  19  Prefactor     21.756        13.555        .59787E-07    .37636E-05
  20  Prefactor     1.7728        1.5945        .90395E-08    .18497E-03
  21  Normalizat    1.1079        .12368        .98146E-06   -.16327E-03
  22  Prefactor     .98371        .91454E-01   -.12456E-05   -.10509E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6802
  norm       = 0.0001
  Prefactor  = 26.3796
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  norm       = 12.8727
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.75569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.394
  Prefactor  = 0.100669
  Prefactor  = 2.31599
  norm       = 2.05438
  Prefactor  = 7.89476
  Prefactor  = 0.000100028
  Prefactor  = 21.7556
  Prefactor  = 1.77277
  Normalizat = 1.1079
  Prefactor  = 0.983709
 **********
 **   18 **HESSE 
 **********

 FCN=   16627.64     FROM HESSE     STATUS=OK           358 CALLS     2499 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.680        8.5785        .10114E-03   -1.4916    
   2  norm          .10000E-03    2.1896        .24896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.380        22.863        .77968E-04   -1.4680    
   4  Prefactor     .10003E-03    18.304        .50457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.873        7.9296        .11163E-03   -1.4990    
   7  norm          .10000E-03    13.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8890        .34105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7557        .46098        .42447E-04   -1.5443    
  11  Prefactor     .10000E-03    5.2078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.394        8.5211        .11867E-03   -1.5033    
  14  Prefactor     .10067        17.437        .99612E-01   -1.5645    
  15  Prefactor     2.3160        1.7968        .14092E-03   -1.5404    
  16  norm          2.0544        1.0742        .78010E-04   -1.5421    
  17  Prefactor     7.8948        15.268        .14271E-03   -1.5146    
  18  Prefactor     .10003E-03    24.337        .41177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.756        13.612        .85845E-04   -1.4775    
  20  Prefactor     1.7728        1.6092        .15022E-03   -1.5442    
  21  Normalizat    1.1079        .14531        .27388E-03   -.89499    
  22  Prefactor     .98371        .10843        .22564E-03   -.93275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91755e-09
Minuit parameter uncertainties:
  1  8.5792
  2  5.61905e-05
  3  22.871
  4  0.00146826
  5  0.00018189
  6  7.93026
  7  2.44286e-05
  8  2.46978e-05
  9  7.1903e-05
  10  0.460982
  11  1.66253e-05
  12  1.78154e-05
  13  8.52198
  14  2.64929
  15  1.79683
  16  1.07425
  17  15.2758
  18  0.00165117
  19  13.6135
  20  1.60925
  21  0.14536
  22  0.108456
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.782e-05  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.837e-01  1.085e-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.108e+00  1.454e-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.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574190/likelihoodResults_463363201_463968001_4FGL_J0818.7+3153_weekly_bin371.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) = 16627.637046
delta logL = -0.00110794568536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16627.635942
delta logL = -3.91508729081e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12120E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1034       1.0000          .0000       10.000    
     3 'Normalizat'    1.1082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98352       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=   16627.64     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10156E-03    29.018        .18142E-02** at limit **
   2  Index         2.0447        5.9605        .50000        .47358E-04
   3  Normalizat    1.1079        .75304E-02    .27388E-03   -.15574E-03
   4  Prefactor     .98371        .59170E-02    .22564E-03   -.13200E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101557
  Index      = 2.04474
  Normalizat = 1.1079
  Prefactor  = 0.983713
 **********
 **   18 **HESSE 
 **********

 FCN=   16627.64     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10156E-03    132.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0447        5.7523        .50000       -.63236    
   3  Normalizat    1.1079        .16509E-01    .10955E-04   -.89499    
   4  Prefactor     .98371        .12970E-01    .90257E-05   -.93274    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.8078e-08
Minuit parameter uncertainties:
  1  0.0287913
  2  277.389
  3  0.0165086
  4  0.0129705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574190': 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) = 16627.6359371
delta logL = 9.88413376035e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.016e-04  2.879e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.045e+00  2.774e+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.837e-01  1.297e-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.108e+00  1.651e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/574190/cmap_HighResolution_463363201_463968001_4FGL_J0818.7+3153_weekly_bin371.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-03', job_status='DONE', photon_flux_upper_limit='2.31e-08', time_completed='2021-07-13 15:23:30.607761', job_id='574190', GAL2='0.98', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1626215010.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='9.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='371' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:23:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 574190: <4FGL_J0818.7+3153_weekly_bin371> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin371 124.695 31.8862 463363201 463968001 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 :                                   1215.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             50.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2063 sec.
    Turnaround time :                            113737 sec.

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

