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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin276
RA = 124.695, Dec = 31.8862
tmin = 405907201, tmax = 406512001
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='573963', job_status='RUN', time_executed='2021-07-13 14:58:51.491259', time_epoch_executed='1626213531.49' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573963

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573963/ft1_4FGL_J0818.7+3153_weekly_bin276.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573963/ft2_4FGL_J0818.7+3153_weekly_bin276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573963/ft1_4FGL_J0818.7+3153_weekly_bin276.fits outfile=/scratch/kocevski/573963/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin276.fits ra=124.695 dec=31.8862 rad=12.0 tmin=405907201.0 tmax=406512001.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.72
user 7.38
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573963/ft1_filtered_4FGL_J0818.7+3153_weekly_bin276.fits" evtable="EVENTS" scfile=/scratch/kocevski/573963/ft2_4FGL_J0818.7+3153_weekly_bin276.fits sctable="SC_DATA" outfile=/scratch/kocevski/573963/ltcube_405907201_406512001_4FGL_J0818.7+3153_weekly_bin276.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/573963/ft2_4FGL_J0818.7+3153_weekly_bin276.fits
.....................!
real 28.82
user 28.34
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573963/ft1_filtered_4FGL_J0818.7+3153_weekly_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/573963/ft2_4FGL_J0818.7+3153_weekly_bin276.fits sctable="SC_DATA" expcube=/scratch/kocevski/573963/ltcube_405907201_406512001_4FGL_J0818.7+3153_weekly_bin276.fits outfile=/scratch/kocevski/573963/expmap_405907201_406512001_4FGL_J0818.7+3153_weekly_bin276.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/573963/ltcube_405907201_406512001_4FGL_J0818.7+3153_weekly_bin276.fits
.....................!
real 191.85
user 185.04
sys 5.89

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/573963/ft1_filtered_4FGL_J0818.7+3153_weekly_bin276.fits scfile=/scratch/kocevski/573963/ft2_4FGL_J0818.7+3153_weekly_bin276.fits outfile=/scratch/kocevski/573963/cmap_405907201_406512001_4FGL_J0818.7+3153_weekly_bin276.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.44
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573963/ft1_filtered_4FGL_J0818.7+3153_weekly_bin276.fits scfile=/scratch/kocevski/573963/ft2_4FGL_J0818.7+3153_weekly_bin276.fits outfile=/scratch/kocevski/573963/cmap_HighResolution_405907201_406512001_4FGL_J0818.7+3153_weekly_bin276.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=124.695 yref=31.8862 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.60
user 0.44
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/573963/ft1_filtered_4FGL_J0818.7+3153_weekly_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/573963/ft2_4FGL_J0818.7+3153_weekly_bin276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/573963/Model_4FGL_J0818.7+3153_weekly_bin276.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/573963/ft1_filtered_4FGL_J0818.7+3153_weekly_bin276.fits.....................!
real 134.39
user 131.67
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10480E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.694       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3236       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10929E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6608       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .58889       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4713       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23408E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.058       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .33729       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1290       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6923       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1437       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0941       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88418       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=   15458.37     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2077 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2498       -.89321E-08** at limit **
   2  norm          .10000E-03    .58575       -.11686E-07** at limit **
   3  Prefactor     19.757        20.945        .10320E-05    .20316E-04
   4  Prefactor     8.3212        6.4682       -.12783E-06   -.68222E-05
   5  Prefactor     .10000E-03    5.3164       -.12082E-05** at limit **
   6  norm          .10000E-03    4.9101        .19765E-06** at limit **
   7  norm          .10000E-03    23.542       -.30899E-06** at limit **
   8  Prefactor     4.6629        2.9184       -.40827E-07   -.93622E-04
   9  Prefactor     .10000E-03    3.8752       -.18476E-07** at limit **
  10  norm          .58906        .28521       -.13486E-08    .23787E-05
  11  Prefactor     3.4703        7.4004        .30794E-06   -.49707E-03
  12  Prefactor     .10000E-03    5.3827        .11954E-05** at limit **
  13  Prefactor     .10000E-03    10.687       -.12745E-07** at limit **
  14  Prefactor     24.074        15.087       -.27685E-05   -.89010E-04
  15  Prefactor     .10000E-03    .50250       -.17239E-07** at limit **
  16  norm          .33680        .68833        .40565E-06    .60303E-04
  17  Prefactor     .10000E-03    14.284        .87716E-07** at limit **
  18  Prefactor     9.1305        5.7321        .42590E-07   -.28454E-04
  19  Prefactor     4.6924        5.6547        .64994E-07   -.76519E-03
  20  Prefactor     1.1435        2.0593        .15445E-07   -.34319E-03
  21  Normalizat    1.0940        .10925        .21035E-06   -.33550E-04
  22  Prefactor     .88426        .85258E-01   -.18648E-07    .20633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.7565
  Prefactor  = 8.32122
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.66293
  Prefactor  = 0.0001
  norm       = 0.589061
  Prefactor  = 3.47034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.0739
  Prefactor  = 0.0001
  norm       = 0.336803
  Prefactor  = 0.0001
  Prefactor  = 9.13053
  Prefactor  = 4.69241
  Prefactor  = 1.14347
  Normalizat = 1.09403
  Prefactor  = 0.884255
 **********
 **   18 **HESSE 
 **********

 FCN=   15458.37     FROM HESSE     STATUS=OK           348 CALLS     2425 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .58916        .92790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.757        20.975        .90252E-04   -1.4819    
   4  Prefactor     8.3212        6.4659        .13896E-03   -1.5131    
   5  Prefactor     .10000E-03    5.3238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.0190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    23.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6629        2.8934        .15745E-03   -1.5276    
   9  Prefactor     .10000E-03    3.8771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .58906        .28640        .44138E-04   -1.5554    
  11  Prefactor     3.4703        9.6439        .10852E-02   -1.5335    
  12  Prefactor     .10000E-03    5.3919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.031        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.074        15.097        .81667E-04   -1.4726    
  15  Prefactor     .10000E-03    6.8867        .16650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .33680        .68626        .42350E-04   -1.5592    
  17  Prefactor     .10000E-03    14.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.1305        5.7258        .13265E-03   -1.5104    
  19  Prefactor     4.6924        7.5007        .92886E-03   -1.5275    
  20  Prefactor     1.1435        2.0629        .23381E-03   -1.5494    
  21  Normalizat    1.0940        .12800        .24193E-03   -.89944    
  22  Prefactor     .88426        .99784E-01    .21501E-03   -.96693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40178e-09
Minuit parameter uncertainties:
  1  6.83708e-07
  2  1.26879e-06
  3  20.9823
  4  6.46647
  5  9.56413e-06
  6  4.23802e-06
  7  2.82591e-06
  8  2.89351
  9  1.41102e-06
  10  0.286396
  11  9.64824
  12  5.21758e-06
  13  3.13855e-06
  14  15.0993
  15  2.27584e-06
  16  0.686272
  17  3.99561e-06
  18  5.72616
  19  7.50222
  20  2.06307
  21  0.12804
  22  0.0998045
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.218e-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:  8.843e-01  9.980e-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.094e+00  1.280e-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/573963/likelihoodResults_405907201_406512001_4FGL_J0818.7+3153_weekly_bin276.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) = 15458.3716111
delta logL = -0.000883877606611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15458.3707279
delta logL = -6.6360735218e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10898E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0999       1.0000          .0000       10.000    
     3 'Normalizat'    1.0939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88433       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=   15458.37     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      244 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10115E-03    28.602        .18142E-02** at limit **
   2  Index         2.0474        5.1107        .50000        .41008E-04
   3  Normalizat    1.0940        .60484E-02    .24193E-03    .58458E-04
   4  Prefactor     .88425        .49131E-02    .21501E-03    .15651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101154
  Index      = 2.04745
  Normalizat = 1.09403
  Prefactor  = 0.884255
 **********
 **   18 **HESSE 
 **********

 FCN=   15458.37     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10115E-03    134.81        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0474        8.9285        .50000       -.63169    
   3  Normalizat    1.0940        .13406E-01    .96771E-05   -.89944    
   4  Prefactor     .88425        .10889E-01    .86003E-05   -.96693    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.69893e-08
Minuit parameter uncertainties:
  1  0.0250065
  2  220.085
  3  0.0134065
  4  0.0108895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573963': 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) = 15458.3707263
delta logL = 8.91250238055e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.012e-04  2.501e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.047e+00  2.201e+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:  8.843e-01  1.089e-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.094e+00  1.341e-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/573963/cmap_HighResolution_405907201_406512001_4FGL_J0818.7+3153_weekly_bin276.png

Cleaning up...

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

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:26:27.653587', job_id='573963', GAL2='0.88', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1626215187.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='8.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='276' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:26:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 573963: <4FGL_J0818.7+3153_weekly_bin276> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin276 124.695 31.8862 405907201 406512001 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 :                                   1165.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2405 sec.
    Turnaround time :                            113929 sec.

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

