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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin351
RA = 124.695, Dec = 31.8862
tmin = 451267201, tmax = 451872001
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='574147', job_status='RUN', time_executed='2021-07-13 14:55:53.199568', time_epoch_executed='1626213353.2' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574147

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574147/ft1_4FGL_J0818.7+3153_weekly_bin351.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574147/ft2_4FGL_J0818.7+3153_weekly_bin351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574147/ft1_4FGL_J0818.7+3153_weekly_bin351.fits outfile=/scratch/kocevski/574147/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin351.fits ra=124.695 dec=31.8862 rad=12.0 tmin=451267201.0 tmax=451872001.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.79
user 7.40
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574147/ft1_filtered_4FGL_J0818.7+3153_weekly_bin351.fits" evtable="EVENTS" scfile=/scratch/kocevski/574147/ft2_4FGL_J0818.7+3153_weekly_bin351.fits sctable="SC_DATA" outfile=/scratch/kocevski/574147/ltcube_451267201_451872001_4FGL_J0818.7+3153_weekly_bin351.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/574147/ft2_4FGL_J0818.7+3153_weekly_bin351.fits
.....................!
real 29.22
user 28.73
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574147/ft1_filtered_4FGL_J0818.7+3153_weekly_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/574147/ft2_4FGL_J0818.7+3153_weekly_bin351.fits sctable="SC_DATA" expcube=/scratch/kocevski/574147/ltcube_451267201_451872001_4FGL_J0818.7+3153_weekly_bin351.fits outfile=/scratch/kocevski/574147/expmap_451267201_451872001_4FGL_J0818.7+3153_weekly_bin351.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/574147/ltcube_451267201_451872001_4FGL_J0818.7+3153_weekly_bin351.fits
.....................!
real 192.71
user 186.18
sys 5.51

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/574147/ft1_filtered_4FGL_J0818.7+3153_weekly_bin351.fits scfile=/scratch/kocevski/574147/ft2_4FGL_J0818.7+3153_weekly_bin351.fits outfile=/scratch/kocevski/574147/cmap_451267201_451872001_4FGL_J0818.7+3153_weekly_bin351.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.61
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574147/ft1_filtered_4FGL_J0818.7+3153_weekly_bin351.fits scfile=/scratch/kocevski/574147/ft2_4FGL_J0818.7+3153_weekly_bin351.fits outfile=/scratch/kocevski/574147/cmap_HighResolution_451267201_451872001_4FGL_J0818.7+3153_weekly_bin351.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.66
user 0.45
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .28801E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.160       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .61725       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4437       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.9844       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2176       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .42480E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.847       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16486       1.0000         .10000E-03   10000.    
    16 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9317       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5774       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3985       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2534       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94574       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0505       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=   14980.86     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2465 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6028        .35554E-05** at limit **
   2  norm          .10000E-03    .87407        .61640E-06** at limit **
   3  Prefactor     23.100        21.322       -.58762E-05   -.19753E-03
   4  Prefactor     .10000E-03    4.6625        .14539E-07** at limit **
   5  Prefactor     .10000E-03    12.737       -.50595E-07** at limit **
   6  norm          .61834        3.0196       -.19723E-05    .10680E-02
   7  norm          .10000E-03    76.763        .55238E-05** at limit **
   8  Prefactor     1.4443        2.8576       -.12541E-06   -.15988E-03
   9  Prefactor     9.0121        18.057       -.15659E-05    .14011E-05
  10  norm          1.2177        .37078       -.26196E-07    .25006E-03
  11  Prefactor     .10000E-03    55.627        .41766E-06** at limit **
  12  Prefactor     .10000E-03    9.3491       -.29812E-05** at limit **
  13  Prefactor     .10000E-03    7.1872        .35705E-06** at limit **
  14  Prefactor     10.842        10.928       -.92784E-06    .41251E-04
  15  Prefactor     .16481        .70929       -.10222E-06   -.13198E-03
  16  norm          .10000E-03    .30176       -.76189E-07** at limit **
  17  Prefactor     2.9274        14.209       -.27994E-05   -.88041E-05
  18  Prefactor     2.5750        1.9254        .37809E-06   -.11435E-02
  19  Prefactor     6.3995        7.7567       -.25228E-06   -.42542E-05
  20  Prefactor     1.2534        1.1167       -.27211E-09    .13220E-04
  21  Normalizat    .94563        .11675        .11532E-05    .23264E-04
  22  Prefactor     1.0505        .92288E-01    .68518E-07    .14845E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.1001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.618344
  norm       = 0.0001
  Prefactor  = 1.44427
  Prefactor  = 9.01213
  norm       = 1.21772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8424
  Prefactor  = 0.16481
  norm       = 0.0001
  Prefactor  = 2.9274
  Prefactor  = 2.57498
  Prefactor  = 6.39947
  Prefactor  = 1.25341
  Normalizat = 0.945632
  Prefactor  = 1.05055
 **********
 **   18 **HESSE 
 **********

 FCN=   14980.86     FROM HESSE     STATUS=OK           354 CALLS     2819 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.1993        .21383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.100        21.585        .83234E-04   -1.4746    
   4  Prefactor     .10000E-03    4.6818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .61834        7.9361        .38789E-02   -1.5551    
   7  norm          .10000E-03    77.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4443        2.8410        .26930E-03   -1.5468    
   9  Prefactor     9.0121        18.004        .13372E-03   -1.5107    
  10  norm          1.2177        .36615        .38768E-04   -1.5487    
  11  Prefactor     .10000E-03    58.035        .38837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.3776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.3554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.842        10.624        .12165E-03   -1.5049    
  15  Prefactor     .16481        1.6398        .19489E-02   -1.5627    
  16  norm          .10000E-03    .56846        .12567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9274        14.115        .23724E-03   -1.5366    
  18  Prefactor     2.5750        6.0747        .12711E-02   -1.5387    
  19  Prefactor     6.3995        7.7560        .15867E-03   -1.5202    
  20  Prefactor     1.2534        1.1170        .39916E-04   -1.5484    
  21  Normalizat    .94563        .13431        .26150E-03   -.94875    
  22  Prefactor     1.0505        .10693        .20509E-03   -.91063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12416e-07
Minuit parameter uncertainties:
  1  3.88214e-05
  2  8.48519e-05
  3  21.592
  4  7.80463e-07
  5  5.9011e-05
  6  4.43083
  7  2.66961e-05
  8  2.84131
  9  18.0153
  10  0.36615
  11  0.000135093
  12  8.83142e-06
  13  4.98597e-06
  14  10.626
  15  1.03944
  16  5.04196e-06
  17  12.861
  18  6.07612
  19  7.75723
  20  1.11703
  21  0.134355
  22  0.106948
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  8.831e-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.051e+00  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:  9.456e-01  1.344e-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: 3.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574147/likelihoodResults_451267201_451872001_4FGL_J0818.7+3153_weekly_bin351.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) = 14980.8585554
delta logL = -0.000508288623678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14980.8580471
delta logL = 4.03633748647e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1302       1.0000          .0000       10.000    
     3 'Normalizat'    .94563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0505       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.

 FCN=   14980.86     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5790        .90712E-02** at limit **
   2  Index         2.1257        5.9312        .50000        .38510E-05
   3  Normalizat    .94563        .14939E-02    .45482E-01    .84029E-05
   4  Prefactor     1.0505        .12343E-02    .39878E-01   -.17371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12571
  Normalizat = 0.945632
  Prefactor  = 1.05055
 **********
 **   18 **HESSE 
 **********

 FCN=   14980.86     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1257        5.3946        .50000       -.61243    
   3  Normalizat    .94563        .58159E-02    .26150E-03   -.94875    
   4  Prefactor     1.0505        .48068E-02    .20509E-03   -.91063    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.07398e-08
Minuit parameter uncertainties:
  1  5.14897e-06
  2  109.808
  3  0.00581588
  4  0.00480682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574147': 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) = 14980.8580471
delta logL = 8.63656168804e-09

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.149e-06  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.126e+00  1.098e+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.051e+00  4.807e-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:  9.456e-01  5.816e-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/574147/cmap_HighResolution_451267201_451872001_4FGL_J0818.7+3153_weekly_bin351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-03', job_status='DONE', photon_flux_upper_limit='3.49e-08', time_completed='2021-07-13 15:21:38.289828', job_id='574147', GAL2='1.05', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1626214898.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='8.64e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='351' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:21:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 574147: <4FGL_J0818.7+3153_weekly_bin351> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin351 124.695 31.8862 451267201 451872001 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 :                                   1202.03 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1976 sec.
    Turnaround time :                            113628 sec.

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

