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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin389
RA = 124.695, Dec = 31.8862
tmin = 474249601, tmax = 474854401
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='574216', job_status='RUN', time_executed='2021-07-13 14:53:26.618243', time_epoch_executed='1626213206.62' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574216

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574216/ft1_4FGL_J0818.7+3153_weekly_bin389.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574216/ft2_4FGL_J0818.7+3153_weekly_bin389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574216/ft1_4FGL_J0818.7+3153_weekly_bin389.fits outfile=/scratch/kocevski/574216/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin389.fits ra=124.695 dec=31.8862 rad=12.0 tmin=474249601.0 tmax=474854401.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 9.14
user 8.57
sys 0.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574216/ft1_filtered_4FGL_J0818.7+3153_weekly_bin389.fits" evtable="EVENTS" scfile=/scratch/kocevski/574216/ft2_4FGL_J0818.7+3153_weekly_bin389.fits sctable="SC_DATA" outfile=/scratch/kocevski/574216/ltcube_474249601_474854401_4FGL_J0818.7+3153_weekly_bin389.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/574216/ft2_4FGL_J0818.7+3153_weekly_bin389.fits
.....................!
real 31.09
user 30.11
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574216/ft1_filtered_4FGL_J0818.7+3153_weekly_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/574216/ft2_4FGL_J0818.7+3153_weekly_bin389.fits sctable="SC_DATA" expcube=/scratch/kocevski/574216/ltcube_474249601_474854401_4FGL_J0818.7+3153_weekly_bin389.fits outfile=/scratch/kocevski/574216/expmap_474249601_474854401_4FGL_J0818.7+3153_weekly_bin389.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/574216/ltcube_474249601_474854401_4FGL_J0818.7+3153_weekly_bin389.fits
.....................!
real 192.39
user 185.90
sys 5.76

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/574216/ft1_filtered_4FGL_J0818.7+3153_weekly_bin389.fits scfile=/scratch/kocevski/574216/ft2_4FGL_J0818.7+3153_weekly_bin389.fits outfile=/scratch/kocevski/574216/cmap_474249601_474854401_4FGL_J0818.7+3153_weekly_bin389.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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574216/ft1_filtered_4FGL_J0818.7+3153_weekly_bin389.fits scfile=/scratch/kocevski/574216/ft2_4FGL_J0818.7+3153_weekly_bin389.fits outfile=/scratch/kocevski/574216/cmap_HighResolution_474249601_474854401_4FGL_J0818.7+3153_weekly_bin389.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/574216/ft1_filtered_4FGL_J0818.7+3153_weekly_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/574216/ft2_4FGL_J0818.7+3153_weekly_bin389.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574216/Model_4FGL_J0818.7+3153_weekly_bin389.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/574216/ft1_filtered_4FGL_J0818.7+3153_weekly_bin389.fits.....................!
real 174.09
user 172.33
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1776       1.0000         .10000E-03   10000.    
     2 'norm      '    .10751E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.471       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .51500E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.997       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.144       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7630       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0068       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9010       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.588       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.650       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1917       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88631       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1428       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=   20555.60     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2064 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1764        2.6854        .11222E-05   -.27683E-02
   2  norm          .10000E-03    1.2000        .40393E-07** at limit **
   3  Prefactor     14.469        19.486       -.17601E-05   -.62782E-04
   4  Prefactor     .10000E-03    3.7579        .50144E-06** at limit **
   5  Prefactor     10.995        16.665       -.75845E-06   -.42559E-04
   6  norm          .10000E-03    2.4603       -.45456E-06** at limit **
   7  norm          15.129        43.268       -.28676E-04   -.80586E-04
   8  Prefactor     .10000E-03    .91054       -.87214E-07** at limit **
   9  Prefactor     6.7594        11.237       -.26123E-05   -.65499E-04
  10  norm          1.0069        .30701        .26969E-07    .69923E-03
  11  Prefactor     .10000E-03    2.8364        .53949E-07** at limit **
  12  Prefactor     .10000E-03    4.8234        .13344E-05** at limit **
  13  Prefactor     .10000E-03    4.6964       -.11871E-05** at limit **
  14  Prefactor     .10000E-03    2.2036        .10638E-06** at limit **
  15  Prefactor     1.9014        1.5116        .71239E-07   -.10995E-03
  16  norm          .10000E-03    .15344        .10231E-07** at limit **
  17  Prefactor     21.582        13.843       -.36464E-05   -.11608E-03
  18  Prefactor     .10000E-03    2.6613        .37625E-06** at limit **
  19  Prefactor     17.650        9.3811       -.35498E-06   -.20191E-04
  20  Prefactor     2.1916        1.6290       -.35526E-07   -.48459E-04
  21  Normalizat    .88631        .99727E-01    .21328E-06   -.39981E-04
  22  Prefactor     1.1428        .80635E-01    .49891E-06   -.17173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.17639
  norm       = 0.0001
  Prefactor  = 14.4688
  Prefactor  = 0.000100002
  Prefactor  = 10.9955
  norm       = 0.0001
  norm       = 15.1291
  Prefactor  = 0.0001
  Prefactor  = 6.75937
  norm       = 1.00691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.90142
  norm       = 0.0001
  Prefactor  = 21.5825
  Prefactor  = 0.0001
  Prefactor  = 17.6497
  Prefactor  = 2.19163
  Normalizat = 0.886312
  Prefactor  = 1.14279
 **********
 **   18 **HESSE 
 **********

 FCN=   20555.60     FROM HESSE     STATUS=OK           346 CALLS     2410 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1764        6.3208        .13950E-02   -1.5413    
   2  norm          .10000E-03    1.2337        .30413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.469        19.335        .10529E-03   -1.4947    
   4  Prefactor     .10000E-03    19.584        .52872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.995        16.587        .12081E-03   -1.5045    
   6  norm          .10000E-03    2.4867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.129        43.463        .10292E-03   -1.4930    
   8  Prefactor     .10000E-03    .92428        .13344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.7594        11.243        .15429E-03   -1.5188    
  10  norm          1.0069        .30628        .42132E-04   -1.5507    
  11  Prefactor     .10000E-03    2.8372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.7412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9014        1.4979        .14827E-03   -1.5432    
  16  norm          .10000E-03    .32741        .10897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.582        13.837        .86208E-04   -1.4778    
  18  Prefactor     .10000E-03    2.7152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.650        9.4021        .95333E-04   -1.4867    
  20  Prefactor     2.1916        1.6284        .15327E-03   -1.5412    
  21  Normalizat    .88631        .11307        .27294E-03   -.96943    
  22  Prefactor     1.1428        .91996E-01    .20128E-03   -.88110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41156e-08
Minuit parameter uncertainties:
  1  6.3227
  2  7.29046e-06
  3  19.3436
  4  0.000432813
  5  16.5944
  6  5.89831e-06
  7  43.5538
  8  9.77712e-07
  9  11.2466
  10  0.30628
  11  3.29244e-06
  12  6.26989e-06
  13  1.08144e-05
  14  1.49844e-07
  15  1.49795
  16  3.3361e-06
  17  13.839
  18  3.75384e-06
  19  9.40287
  20  1.62845
  21  0.113102
  22  0.0920091
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  6.270e-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:  1.143e+00  9.201e-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:  8.863e-01  1.131e-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.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574216/likelihoodResults_474249601_474854401_4FGL_J0818.7+3153_weekly_bin389.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) = 20555.6010467
delta logL = -0.000984302379948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20555.6000624
delta logL = 4.5129127102e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1152       1.0000          .0000       10.000    
     3 'Normalizat'    .88629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1428       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=   20555.60     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10316E-03    .29047        .18142E-01** at limit **
   2  Index         1.9917        5.6314        .50000        .23342E-04
   3  Normalizat    .88631        .57643E-03    .27294E-03    .13646E-03
   4  Prefactor     1.1428        .47880E-03    .20128E-03    .18585E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103162
  Index      = 1.99172
  Normalizat = 0.886311
  Prefactor  = 1.14279
 **********
 **   18 **HESSE 
 **********

 FCN=   20555.60     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10316E-03    16.614        .32204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9917        5.7988        .50000       -.64557    
   3  Normalizat    .88631        .43495E-02    .10918E-04   -.96943    
   4  Prefactor     1.1428        .36127E-02    .40256E-04   -.88110    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.94783e-08
Minuit parameter uncertainties:
  1  0.0145004
  2  253.035
  3  0.00434948
  4  0.00361275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574216': 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) = 20555.6000617
delta logL = 6.85176928528e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.032e-04  1.450e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.992e+00  2.530e+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:  1.143e+00  3.613e-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:  8.863e-01  4.349e-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/574216/cmap_HighResolution_474249601_474854401_4FGL_J0818.7+3153_weekly_bin389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-03', job_status='DONE', photon_flux_upper_limit='2.12e-08', time_completed='2021-07-13 15:20:15.839142', job_id='574216', GAL2='1.14', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1626214815.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='6.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='389' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:20:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 574216: <4FGL_J0818.7+3153_weekly_bin389> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin389 124.695 31.8862 474249601 474854401 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 :                                   1437.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             51.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1839 sec.
    Turnaround time :                            113539 sec.

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

