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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin401
RA = 124.695, Dec = 31.8862
tmin = 481507201, tmax = 482112001
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='574228', job_status='RUN', time_executed='2021-07-13 14:57:15.620160', time_epoch_executed='1626213435.62' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574228

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574228/ft1_4FGL_J0818.7+3153_weekly_bin401.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574228/ft2_4FGL_J0818.7+3153_weekly_bin401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574228/ft1_4FGL_J0818.7+3153_weekly_bin401.fits outfile=/scratch/kocevski/574228/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin401.fits ra=124.695 dec=31.8862 rad=12.0 tmin=481507201.0 tmax=482112001.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.93
user 7.50
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574228/ft1_filtered_4FGL_J0818.7+3153_weekly_bin401.fits" evtable="EVENTS" scfile=/scratch/kocevski/574228/ft2_4FGL_J0818.7+3153_weekly_bin401.fits sctable="SC_DATA" outfile=/scratch/kocevski/574228/ltcube_481507201_482112001_4FGL_J0818.7+3153_weekly_bin401.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/574228/ft2_4FGL_J0818.7+3153_weekly_bin401.fits
.....................!
real 29.94
user 29.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574228/ft1_filtered_4FGL_J0818.7+3153_weekly_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/574228/ft2_4FGL_J0818.7+3153_weekly_bin401.fits sctable="SC_DATA" expcube=/scratch/kocevski/574228/ltcube_481507201_482112001_4FGL_J0818.7+3153_weekly_bin401.fits outfile=/scratch/kocevski/574228/expmap_481507201_482112001_4FGL_J0818.7+3153_weekly_bin401.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/574228/ltcube_481507201_482112001_4FGL_J0818.7+3153_weekly_bin401.fits
.....................!
real 191.45
user 185.47
sys 5.22

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/574228/ft1_filtered_4FGL_J0818.7+3153_weekly_bin401.fits scfile=/scratch/kocevski/574228/ft2_4FGL_J0818.7+3153_weekly_bin401.fits outfile=/scratch/kocevski/574228/cmap_481507201_482112001_4FGL_J0818.7+3153_weekly_bin401.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574228/ft1_filtered_4FGL_J0818.7+3153_weekly_bin401.fits scfile=/scratch/kocevski/574228/ft2_4FGL_J0818.7+3153_weekly_bin401.fits outfile=/scratch/kocevski/574228/cmap_HighResolution_481507201_482112001_4FGL_J0818.7+3153_weekly_bin401.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574228/ft1_filtered_4FGL_J0818.7+3153_weekly_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/574228/ft2_4FGL_J0818.7+3153_weekly_bin401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574228/Model_4FGL_J0818.7+3153_weekly_bin401.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/574228/ft1_filtered_4FGL_J0818.7+3153_weekly_bin401.fits.....................!
real 133.89
user 132.25
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7323       1.0000         .10000E-03   10000.    
     2 'norm      '    5.4155       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7815       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37793E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .41548       1.0000         .10000E-03   10000.    
     7 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3212       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0868       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11870E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7411       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .20200E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2806       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0393       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1291       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=   15845.89     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2496 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7323        7.9729       -.22404E-05    .84821E-04
   2  norm          5.4152        2.6507        .12145E-06    .26646E-03
   3  Prefactor     7.7643        21.103       -.21244E-05   -.21312E-03
   4  Prefactor     .10000E-03    3.6423       -.84847E-07** at limit **
   5  Prefactor     .10001E-03    11.546       -.95777E-06** at limit **
   6  norm          .39125        16.486        .80900E-05   -.19213E-03
   7  norm          .10000E-03    15.435        .88599E-06** at limit **
   8  Prefactor     3.3217        3.1658       -.10031E-05    .59403E-03
   9  Prefactor     .10000E-03    5.0044       -.53340E-07** at limit **
  10  norm          1.0869        .35529        .16845E-07    .93753E-03
  11  Prefactor     .10000E-03    3.9164       -.27463E-07** at limit **
  12  Prefactor     .10002E-03    13.706       -.65060E-05** at limit **
  13  Prefactor     .10000E-03    3.4385        .13344E-06** at limit **
  14  Prefactor     8.7549        15.706        .13143E-05    .15881E-03
  15  Prefactor     .10000E-03    .55908       -.82795E-07** at limit **
  16  norm          .18569E-01    .28710       -.48603E-06    .72946E-03
  17  Prefactor     .10000E-03    21.879       -.90268E-06** at limit **
  18  Prefactor     7.2796        6.1534       -.58071E-06   -.17597E-03
  19  Prefactor     .10000E-03    8.4648       -.14246E-06** at limit **
  20  Prefactor     .10000E-03    .88794       -.25239E-07** at limit **
  21  Normalizat    1.0393        .12493        .94065E-06    .37521E-03
  22  Prefactor     1.1291        .97508E-01    .26061E-06    .64979E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.73228
  norm       = 5.41516
  Prefactor  = 7.76434
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 0.391252
  norm       = 0.0001
  Prefactor  = 3.32174
  Prefactor  = 0.0001
  norm       = 1.08686
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 8.7549
  Prefactor  = 0.0001
  norm       = 0.0185689
  Prefactor  = 0.0001
  Prefactor  = 7.27962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03929
  Prefactor  = 1.12914
 **********
 **   18 **HESSE 
 **********

 FCN=   15845.89     FROM HESSE     STATUS=OK           360 CALLS     2856 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7323        7.9450        .24634E-03   -1.5377    
   2  norm          5.4152        2.6461        .13404E-03   -1.5243    
   3  Prefactor     7.7643        21.332        .14375E-03   -1.5151    
   4  Prefactor     .10000E-03    3.6567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    11.883        .13786       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .39125        21.044        .38328E-02   -1.5583    
   7  norm          .10000E-03    15.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3217        3.1275        .20434E-03   -1.5343    
   9  Prefactor     .10000E-03    5.0082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0869        .35449        .41093E-04   -1.5499    
  11  Prefactor     .10000E-03    3.9180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    35.554        .60760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.7549        17.799        .13558E-03   -1.5116    
  15  Prefactor     .10000E-03    4.6146        .17934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .18569E-01    9.9221        .11125E-02   -1.5681    
  17  Prefactor     .10000E-03    22.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.2796        6.1577        .14865E-03   -1.5168    
  19  Prefactor     .10000E-03    8.6189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .89895        .11582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0393        .14451        .28024E-03   -.91725    
  22  Prefactor     1.1291        .11463        .21534E-03   -.88541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.694e-08
Minuit parameter uncertainties:
  1  7.94804
  2  2.64613
  3  21.3527
  4  1.00616e-05
  5  0.000826696
  6  5.74017
  7  0.000108377
  8  3.12762
  9  8.35686e-06
  10  0.354494
  11  4.47123e-06
  12  0.00174741
  13  4.03967e-06
  14  17.8096
  15  1.00802e-05
  16  0.856298
  17  0.00018283
  18  6.15827
  19  4.9643e-05
  20  5.4103e-06
  21  0.144567
  22  0.11466
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.747e-03  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.129e+00  1.147e-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.039e+00  1.446e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574228/likelihoodResults_481507201_482112001_4FGL_J0818.7+3153_weekly_bin401.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) = 15845.8879059
delta logL = -0.00012958975276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15844.9732382
delta logL = 0.914538095962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5825       1.0000         .10000E-03   10000.    
     2 'Index     '    .84761       1.0000          .0000       10.000    
     3 'Normalizat'    1.0357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1304       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=   15844.97     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      288 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5825        10.841        .39103E-02   -.46791E-03
   2  Index         .84753        .77710        .44334       -.10373E-03
   3  Normalizat    1.0356        .12103        .63435E-01    .32136E-04
   4  Prefactor     1.1304        .96917E-01    .36532E-01    .66482E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.58251
  Index      = 0.847534
  Normalizat = 1.03564
  Prefactor  = 1.13044
 **********
 **   18 **HESSE 
 **********

 FCN=   15844.97     FROM HESSE     STATUS=OK            33 CALLS      321 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5825        10.337        .15641E-03   -1.5195    
   2  Index         .84753        .71502        .25556E-01   -.97999    
   3  Normalizat    1.0356        .14142        .28058E-03   -.91846    
   4  Prefactor     1.1304        .11341        .21519E-03   -.88500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37526e-10
Minuit parameter uncertainties:
  1  10.3396
  2  0.723116
  3  0.141468
  4  0.113431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574228': 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) = 15844.973238
delta logL = 0.914538294386

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  6.583e+00  1.034e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  8.475e-01  7.231e-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:  1.130e+00  1.134e-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.036e+00  1.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 124.695 31.886
Photon Index (Free Index): 0.85 +/- 0.72
Photon Flux (Free Index): 1.36e-09 +/- 1.77e-09
Energy Flux (Free Index): 2.75e-05 +/- 4.26e-05

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/574228/cmap_HighResolution_481507201_482112001_4FGL_J0818.7+3153_weekly_bin401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-03', comment='SUCCESS', energy_flux2='2.75e-05', dlogl='9.15e-01', photon_flux2='1.36e-09', job_status='DONE', time_completed='2021-07-13 15:25:39.687099', photon_index_error2='0.72', photon_index2='0.85', ts='-0.00', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='3.04e-08', energy_flux_error2='4.26e-05', EG='1.04', time_epoch_completed='1626215139.69', return_code='0', job_id='574228', GAL2='1.13', EG2='1.04', return_code2='0', photon_flux_error2='1.77e-09', ts2='1.83', photon_index='2.13' WHERE bin_id='401' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:25:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 574228: <4FGL_J0818.7+3153_weekly_bin401> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin401 124.695 31.8862 481507201 482112001 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 :                                   1258.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             12.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2162 sec.
    Turnaround time :                            113861 sec.

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

