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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin410
RA = 124.695, Dec = 31.8862
tmin = 486950401, tmax = 487555201
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='574237', job_status='RUN', time_executed='2021-07-13 14:55:35.907749', time_epoch_executed='1626213335.91' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574237

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574237/ft1_4FGL_J0818.7+3153_weekly_bin410.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574237/ft2_4FGL_J0818.7+3153_weekly_bin410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574237/ft1_4FGL_J0818.7+3153_weekly_bin410.fits outfile=/scratch/kocevski/574237/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin410.fits ra=124.695 dec=31.8862 rad=12.0 tmin=486950401.0 tmax=487555201.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.90
user 7.55
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574237/ft1_filtered_4FGL_J0818.7+3153_weekly_bin410.fits" evtable="EVENTS" scfile=/scratch/kocevski/574237/ft2_4FGL_J0818.7+3153_weekly_bin410.fits sctable="SC_DATA" outfile=/scratch/kocevski/574237/ltcube_486950401_487555201_4FGL_J0818.7+3153_weekly_bin410.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/574237/ft2_4FGL_J0818.7+3153_weekly_bin410.fits
.....................!
real 29.16
user 28.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574237/ft1_filtered_4FGL_J0818.7+3153_weekly_bin410.fits evtable="EVENTS" scfile=/scratch/kocevski/574237/ft2_4FGL_J0818.7+3153_weekly_bin410.fits sctable="SC_DATA" expcube=/scratch/kocevski/574237/ltcube_486950401_487555201_4FGL_J0818.7+3153_weekly_bin410.fits outfile=/scratch/kocevski/574237/expmap_486950401_487555201_4FGL_J0818.7+3153_weekly_bin410.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/574237/ltcube_486950401_487555201_4FGL_J0818.7+3153_weekly_bin410.fits
.....................!
real 191.37
user 185.93
sys 4.67

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/574237/ft1_filtered_4FGL_J0818.7+3153_weekly_bin410.fits scfile=/scratch/kocevski/574237/ft2_4FGL_J0818.7+3153_weekly_bin410.fits outfile=/scratch/kocevski/574237/cmap_486950401_487555201_4FGL_J0818.7+3153_weekly_bin410.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.42
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574237/ft1_filtered_4FGL_J0818.7+3153_weekly_bin410.fits evtable="EVENTS" scfile=/scratch/kocevski/574237/ft2_4FGL_J0818.7+3153_weekly_bin410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574237/Model_4FGL_J0818.7+3153_weekly_bin410.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/574237/ft1_filtered_4FGL_J0818.7+3153_weekly_bin410.fits.....................!
real 135.83
user 134.11
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.734       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5689       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.932       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.2957       1.0000         .10000E-03   10000.    
     7 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31057E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.529       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2073       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8442       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4716       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10824E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6849       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7447       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0496       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1995       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99091       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=   15505.11     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2446 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.734        9.3606       -.69674E-07   -.30414E-04
   2  norm          1.5694        2.8713        .86718E-06   -.65404E-04
   3  Prefactor     15.927        20.567       -.23714E-06   -.99492E-05
   4  Prefactor     .10000E-03    11.272        .55705E-06** at limit **
   5  Prefactor     .10000E-03    5.8959       -.52496E-08** at limit **
   6  norm          7.2952        7.7239       -.56301E-07   -.29568E-04
   7  norm          .10000E-03    107.71       -.43664E-05** at limit **
   8  Prefactor     .10038E-03    1.1742        .42555E-06** at limit **
   9  Prefactor     23.530        22.097       -.16227E-06   -.21774E-06
  10  norm          1.2074        .40643       -.13310E-07   -.11032E-02
  11  Prefactor     .10000E-03    10.551       -.37449E-06** at limit **
  12  Prefactor     9.8436        14.887        .29715E-06    .69785E-05
  13  Prefactor     .10000E-03    5.5188        .33673E-07** at limit **
  14  Prefactor     5.4944        14.784       -.12532E-05   -.63230E-04
  15  Prefactor     .10000E-03    .85788        .41390E-07** at limit **
  16  norm          .10010E-03    .28000       -.14879E-06** at limit **
  17  Prefactor     .10000E-03    17.937       -.70361E-06** at limit **
  18  Prefactor     4.6871        6.8394        .15461E-05    .10986E-03
  19  Prefactor     3.7444        8.6139        .16954E-06   -.16256E-04
  20  Prefactor     1.0496        1.7751        .79332E-06    .81036E-03
  21  Normalizat    1.1996        .13020        .75236E-06   -.25128E-03
  22  Prefactor     .99090        .98116E-01   -.45603E-06   -.74064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7337
  norm       = 1.56939
  Prefactor  = 15.9269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.29519
  norm       = 0.0001
  Prefactor  = 0.000100378
  Prefactor  = 23.5295
  norm       = 1.20744
  Prefactor  = 0.0001
  Prefactor  = 9.84361
  Prefactor  = 0.0001
  Prefactor  = 5.49443
  Prefactor  = 0.0001
  norm       = 0.000100096
  Prefactor  = 0.0001
  Prefactor  = 4.68714
  Prefactor  = 3.7444
  Prefactor  = 1.04955
  Normalizat = 1.19959
  Prefactor  = 0.990902
 **********
 **   18 **HESSE 
 **********

 FCN=   15505.11     FROM HESSE     STATUS=OK           362 CALLS     2808 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.734        9.3611        .95107E-04   -1.4865    
   2  norm          1.5694        2.8259        .26095E-03   -1.5457    
   3  Prefactor     15.927        20.424        .10034E-03   -1.4910    
   4  Prefactor     .10000E-03    11.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.8976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.2952        7.7195        .14850E-03   -1.5168    
   7  norm          .10000E-03    108.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10038E-03    27.674        .24782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.530        22.082        .82579E-04   -1.4737    
  10  norm          1.2074        .39777        .43963E-04   -1.5488    
  11  Prefactor     .10000E-03    10.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.8436        14.882        .12772E-03   -1.5080    
  13  Prefactor     .10000E-03    5.5681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4944        16.717        .17178E-03   -1.5239    
  15  Prefactor     .10000E-03    .88005        .22486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10010E-03    .65421        .21113E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6871        6.7796        .18592E-03   -1.5275    
  19  Prefactor     3.7444        8.6059        .20865E-03   -1.5321    
  20  Prefactor     1.0496        1.6295        .22785E-02   -1.5503    
  21  Normalizat    1.1996        .14984        .26800E-03   -.86616    
  22  Prefactor     .99090        .11519        .22728E-03   -.93033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34989e-08
Minuit parameter uncertainties:
  1  9.36192
  2  2.82609
  3  20.4327
  4  3.00209e-05
  5  5.309e-06
  6  7.7206
  7  0.000367909
  8  0.00647171
  9  22.0899
  10  0.397773
  11  6.80161e-06
  12  14.8871
  13  1.02619e-05
  14  16.7307
  15  2.5459e-06
  16  0.000502008
  17  4.33355e-05
  18  6.7807
  19  8.60878
  20  1.62953
  21  0.149895
  22  0.115216
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  9.844e+00  1.489e+01  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.909e-01  1.152e-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.200e+00  1.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.57
Ra Dec: 124.695 31.886
Photon Flux Upper Limit: 4.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574237/likelihoodResults_486950401_487555201_4FGL_J0818.7+3153_weekly_bin410.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): 0
logL (Free Index) = 15505.0745169
delta logL = 0.0373833493159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15505.0623767
delta logL = 0.0495235025483

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5499       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3690       1.0000          .0000       10.000    
     3 'Normalizat'    1.1959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99200       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=   15505.06     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      259 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5483        16.662        .14595E-03    .16124E-03
   2  Index         2.3691        .88926        .11226E-01    .80216E-04
   3  Normalizat    1.1959        .14647        .26836E-03   -.60760E-03
   4  Prefactor     .99202        .11422        .22716E-03   -.78715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.54833
  Index      = 2.36913
  Normalizat = 1.1959
  Prefactor  = 0.992018
 **********
 **   18 **HESSE 
 **********

 FCN=   15505.06     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5483        13.997        .58381E-05   -1.5158    
   2  Index         2.3691        .74860        .44906E-03   -.55409    
   3  Normalizat    1.1959        .14637        .53672E-04   -.86730    
   4  Prefactor     .99202        .11419        .45433E-04   -.92996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97467e-10
Minuit parameter uncertainties:
  1  14.0027
  2  0.752526
  3  0.146417
  4  0.114218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574237': 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): 0
logL (Free Index) = 15505.0623766
delta logL = 0.0495236238603

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  7.548e+00  1.400e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.369e+00  7.525e-01  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.920e-01  1.142e-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.196e+00  1.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.57
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/574237/cmap_HighResolution_486950401_487555201_4FGL_J0818.7+3153_weekly_bin410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='4.97e-08', time_completed='2021-07-13 15:24:01.524450', job_id='574237', GAL2='0.99', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1626215041.52', return_code2='0', ts='0.57', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.95e-02', ts2='0.67', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='410' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:24:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0014>
Subject: Job 574237: <4FGL_J0818.7+3153_weekly_bin410> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin410> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul 12 07:48:00 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:54:04 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:54:04 2021
Terminated at Tue Jul 13 15:24:02 2021
Results reported at Tue Jul 13 15:24:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin410 124.695 31.8862 486950401 487555201 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 :                                   1214.11 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2047 sec.
    Turnaround time :                            113762 sec.

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

