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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin386
RA = 124.695, Dec = 31.8862
tmin = 472435201, tmax = 473040001
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='574213', job_status='RUN', time_executed='2021-07-13 14:57:01.777591', time_epoch_executed='1626213421.78' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='386'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574213

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574213/ft1_4FGL_J0818.7+3153_weekly_bin386.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574213/ft2_4FGL_J0818.7+3153_weekly_bin386.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574213/ft1_4FGL_J0818.7+3153_weekly_bin386.fits outfile=/scratch/kocevski/574213/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin386.fits ra=124.695 dec=31.8862 rad=12.0 tmin=472435201.0 tmax=473040001.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.87
user 7.52
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574213/ft2_4FGL_J0818.7+3153_weekly_bin386.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/574213/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin386.fits evtable="EVENTS" outfile="/scratch/kocevski/574213/ft1_filtered_4FGL_J0818.7+3153_weekly_bin386.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.60
user 0.41
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574213/ft1_filtered_4FGL_J0818.7+3153_weekly_bin386.fits" evtable="EVENTS" scfile=/scratch/kocevski/574213/ft2_4FGL_J0818.7+3153_weekly_bin386.fits sctable="SC_DATA" outfile=/scratch/kocevski/574213/ltcube_472435201_473040001_4FGL_J0818.7+3153_weekly_bin386.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/574213/ft2_4FGL_J0818.7+3153_weekly_bin386.fits
.....................!
real 31.81
user 31.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574213/ft1_filtered_4FGL_J0818.7+3153_weekly_bin386.fits evtable="EVENTS" scfile=/scratch/kocevski/574213/ft2_4FGL_J0818.7+3153_weekly_bin386.fits sctable="SC_DATA" expcube=/scratch/kocevski/574213/ltcube_472435201_473040001_4FGL_J0818.7+3153_weekly_bin386.fits outfile=/scratch/kocevski/574213/expmap_472435201_473040001_4FGL_J0818.7+3153_weekly_bin386.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/574213/ltcube_472435201_473040001_4FGL_J0818.7+3153_weekly_bin386.fits
.....................!
real 192.35
user 187.04
sys 4.39

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/574213/ft1_filtered_4FGL_J0818.7+3153_weekly_bin386.fits scfile=/scratch/kocevski/574213/ft2_4FGL_J0818.7+3153_weekly_bin386.fits outfile=/scratch/kocevski/574213/cmap_472435201_473040001_4FGL_J0818.7+3153_weekly_bin386.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.60
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574213/ft1_filtered_4FGL_J0818.7+3153_weekly_bin386.fits scfile=/scratch/kocevski/574213/ft2_4FGL_J0818.7+3153_weekly_bin386.fits outfile=/scratch/kocevski/574213/cmap_HighResolution_472435201_473040001_4FGL_J0818.7+3153_weekly_bin386.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.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574213/ft1_filtered_4FGL_J0818.7+3153_weekly_bin386.fits evtable="EVENTS" scfile=/scratch/kocevski/574213/ft2_4FGL_J0818.7+3153_weekly_bin386.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574213/Model_4FGL_J0818.7+3153_weekly_bin386.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/574213/ft1_filtered_4FGL_J0818.7+3153_weekly_bin386.fits.....................!
real 142.24
user 140.61
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1127       1.0000         .10000E-03   10000.    
     2 'norm      '    .38415       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.809       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5758       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0640       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25069       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12947E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6299       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .91841       1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.187       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.650       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.933       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3331       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2479       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85605       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=   16013.13     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2450 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1116        5.4191        .53803E-06    .77275E-04
   2  norm          .38044        1.4767        .10158E-05   -.15411E-02
   3  Prefactor     31.813        26.475       -.45030E-05   -.68385E-03
   4  Prefactor     3.5762        7.9094        .20355E-05   -.12396E-02
   5  Prefactor     .10000E-03    8.1845        .22591E-06** at limit **
   6  norm          .10000E-03    5.2722        .43029E-07** at limit **
   7  norm          .10000E-03    57.297        .78439E-06** at limit **
   8  Prefactor     .10000E-03    .65113        .41409E-07** at limit **
   9  Prefactor     .10000E-03    11.957       -.10584E-06** at limit **
  10  norm          1.0639        .35144       -.98714E-08   -.29194E-03
  11  Prefactor     .10004E-03    12.229       -.14287E-06** at limit **
  12  Prefactor     .10000E-03    3.9446        .31350E-07** at limit **
  13  Prefactor     .10000E-03    3.4901        .54328E-08** at limit **
  14  Prefactor     8.6360        12.460        .30293E-05    .15824E-03
  15  Prefactor     .91813        1.6454        .96225E-07   -.80907E-03
  16  norm          .10000E-03    .23646       -.71083E-07** at limit **
  17  Prefactor     14.184        13.896        .59049E-06    .23248E-04
  18  Prefactor     17.649        7.6505        .11092E-05    .34536E-03
  19  Prefactor     18.929        13.302       -.21220E-06   -.53670E-04
  20  Prefactor     2.3327        2.2006        .73259E-07   -.23794E-03
  21  Normalizat    1.2480        .12169       -.46591E-06   -.53482E-03
  22  Prefactor     .85607        .90658E-01   -.80547E-07   -.58945E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.11163
  norm       = 0.380436
  Prefactor  = 31.8132
  Prefactor  = 3.5762
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.06392
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.636
  Prefactor  = 0.918132
  norm       = 0.0001
  Prefactor  = 14.184
  Prefactor  = 17.6491
  Prefactor  = 18.929
  Prefactor  = 2.33271
  Normalizat = 1.248
  Prefactor  = 0.856073
 **********
 **   18 **HESSE 
 **********

 FCN=   16013.13     FROM HESSE     STATUS=OK           356 CALLS     2806 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1116        5.4177        .16239E-03   -1.5213    
   2  norm          .38044        9.3158        .23722E-02   -1.5585    
   3  Prefactor     31.813        27.950        .71045E-04   -1.4579    
   4  Prefactor     3.5762        13.661        .10686E-02   -1.5330    
   5  Prefactor     .10000E-03    8.1965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.3768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    57.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .65567        .99677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0639        .34848        .41254E-04   -1.5502    
  11  Prefactor     .10004E-03    13.562        .12759       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.701        .42825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.6360        12.421        .13645E-03   -1.5120    
  15  Prefactor     .91813        1.5575        .19892E-03   -1.5516    
  16  norm          .10000E-03    .24751        .12008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.184        13.843        .10634E-03   -1.4955    
  18  Prefactor     17.649        7.6417        .95335E-04   -1.4868    
  19  Prefactor     18.929        13.368        .92048E-04   -1.4838    
  20  Prefactor     2.3327        2.1984        .17659E-03   -1.5402    
  21  Normalizat    1.2480        .14330        .25378E-03   -.85132    
  22  Prefactor     .85607        .10684        .23216E-03   -.97693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36017e-09
Minuit parameter uncertainties:
  1  5.4181
  2  3.76531
  3  27.9617
  4  13.6734
  5  2.60756e-05
  6  9.76268e-06
  7  5.68054e-05
  8  7.45143e-07
  9  3.8695e-06
  10  0.348484
  11  0.00154469
  12  1.55108e-06
  13  3.72162e-05
  14  12.4245
  15  1.55759
  16  5.2613e-06
  17  13.846
  18  7.64215
  19  13.3697
  20  2.19849
  21  0.143347
  22  0.106867
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.551e-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.561e-01  1.069e-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.248e+00  1.433e-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.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574213/likelihoodResults_472435201_473040001_4FGL_J0818.7+3153_weekly_bin386.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) = 16013.1265435
delta logL = -0.00120506180974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16013.1253386
delta logL = -1.21666744235e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   16013.13     FROM MIGRAD    STATUS=FAILED        90 CALLS      245 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10218E-03    30.094        .18142E-02** at limit **
   2  Index         2.0348        6.2699        .50000        .53740E-04
   3  Normalizat    1.2480        .79044E-02    .25378E-03    .42378E-04
   4  Prefactor     .85607        .61472E-02    .23216E-03    .50047E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   16013.13     FROM SIMPLEX   STATUS=PROGRESS     120 CALLS      365 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10050E-03    30.094        .24361E-03** at limit **
   2  Index         2.0332        6.2699        .53539E-03    .53740E-04
   3  Normalizat    1.2480        .79044E-02    .79818E-06    .42378E-04
   4  Prefactor     .85607        .61472E-02    .10804E-05    .50047E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16013.13     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      425 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    123.01        .36285E-02** at limit **
   2  Index         1.1093        8.6912        .50000       -.32196E-07
   3  Normalizat    1.2480        .11899E-01    .10151E-04   -.40765E-03
   4  Prefactor     .85607        .92535E-02    .92863E-05   -.24681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 1.10926
  Normalizat = 1.248
  Prefactor  = 0.856074
 **********
 **   18 **HESSE 
 **********

 FCN=   16013.13     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      454 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    541.90        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1093        6.6305        .50000       -.89171    
   3  Normalizat    1.2480        .26855E-01    .20303E-05   -.85132    
   4  Prefactor     .85607        .20885E-01    .18573E-05   -.97693    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.43158e-08
Minuit parameter uncertainties:
  1  0.00279663
  2  1438.01
  3  0.0268551
  4  0.0208849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574213': 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) = 16013.1253319
delta logL = 6.56894189888e-06

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.797e-03  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.109e+00  1.438e+03  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.561e-01  2.088e-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.248e+00  2.686e-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/574213/cmap_HighResolution_472435201_473040001_4FGL_J0818.7+3153_weekly_bin386.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-03', job_status='DONE', photon_flux_upper_limit='2.29e-08', time_completed='2021-07-13 15:26:20.854383', job_id='574213', GAL2='0.86', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1626215180.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='6.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='386' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:26:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0130>
Subject: Job 574213: <4FGL_J0818.7+3153_weekly_bin386> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin386 124.695 31.8862 472435201 473040001 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 :                                   1280.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             51.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2201 sec.
    Turnaround time :                            113905 sec.

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

