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


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin357
RA = 124.695, Dec = 31.8862
tmin = 454896001, tmax = 455500801
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='574159', job_status='RUN', time_executed='2021-07-13 14:55:41.633576', time_epoch_executed='1626213341.63' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574159

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574159/ft1_4FGL_J0818.7+3153_weekly_bin357.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574159/ft2_4FGL_J0818.7+3153_weekly_bin357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574159/ft1_4FGL_J0818.7+3153_weekly_bin357.fits outfile=/scratch/kocevski/574159/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin357.fits ra=124.695 dec=31.8862 rad=12.0 tmin=454896001.0 tmax=455500801.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.44
user 7.08
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574159/ft1_filtered_4FGL_J0818.7+3153_weekly_bin357.fits" evtable="EVENTS" scfile=/scratch/kocevski/574159/ft2_4FGL_J0818.7+3153_weekly_bin357.fits sctable="SC_DATA" outfile=/scratch/kocevski/574159/ltcube_454896001_455500801_4FGL_J0818.7+3153_weekly_bin357.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/574159/ft2_4FGL_J0818.7+3153_weekly_bin357.fits
.....................!
real 30.45
user 29.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574159/ft1_filtered_4FGL_J0818.7+3153_weekly_bin357.fits evtable="EVENTS" scfile=/scratch/kocevski/574159/ft2_4FGL_J0818.7+3153_weekly_bin357.fits sctable="SC_DATA" expcube=/scratch/kocevski/574159/ltcube_454896001_455500801_4FGL_J0818.7+3153_weekly_bin357.fits outfile=/scratch/kocevski/574159/expmap_454896001_455500801_4FGL_J0818.7+3153_weekly_bin357.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/574159/ltcube_454896001_455500801_4FGL_J0818.7+3153_weekly_bin357.fits
.....................!
real 192.79
user 186.57
sys 5.49

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/574159/ft1_filtered_4FGL_J0818.7+3153_weekly_bin357.fits scfile=/scratch/kocevski/574159/ft2_4FGL_J0818.7+3153_weekly_bin357.fits outfile=/scratch/kocevski/574159/cmap_454896001_455500801_4FGL_J0818.7+3153_weekly_bin357.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/574159/ft1_filtered_4FGL_J0818.7+3153_weekly_bin357.fits scfile=/scratch/kocevski/574159/ft2_4FGL_J0818.7+3153_weekly_bin357.fits outfile=/scratch/kocevski/574159/cmap_HighResolution_454896001_455500801_4FGL_J0818.7+3153_weekly_bin357.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.61
user 0.42
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574159/ft1_filtered_4FGL_J0818.7+3153_weekly_bin357.fits evtable="EVENTS" scfile=/scratch/kocevski/574159/ft2_4FGL_J0818.7+3153_weekly_bin357.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574159/Model_4FGL_J0818.7+3153_weekly_bin357.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/574159/ft1_filtered_4FGL_J0818.7+3153_weekly_bin357.fits.....................!
real 124.95
user 123.10
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5705       1.0000         .10000E-03   10000.    
     2 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1042       1.0000         .10000E-03   10000.    
     6 'norm      '    3.5037       1.0000         .10000E-03   10000.    
     7 'norm      '    48.147       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4856       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .93468       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .49499E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.586       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11077E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2934       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3198       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0556       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0504       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=   15209.82     FROM MIGRAD    STATUS=CONVERGED    853 CALLS     3117 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5731        5.4880        .18829E-03   -.41902E-04
   2  norm          .10000E-03    1.0457        .12199E-02** at limit **
   3  Prefactor     .10000E-03    15.713        .18142E-02** at limit **
   4  Prefactor     .10000E-03    4.1422        .18142E-02** at limit **
   5  Prefactor     9.1058        11.396        .13283E-03   -.19172E-04
   6  norm          3.5061        5.6868        .21600E-03   -.90741E-04
   7  norm          48.207        57.724        .28895E-03    .38401E-04
   8  Prefactor     1.4877        3.0548        .28956E-03   -.35101E-03
   9  Prefactor     .10000E-03    4.8339        .18142E-02** at limit **
  10  norm          .93464        .38113        .46068E-04   -.12294E-02
  11  Prefactor     .10000E-03    4.5116        .18142E-02** at limit **
  12  Prefactor     .10000E-03    14.255        .11960    ** at limit **
  13  Prefactor     10.578        8.2360        .12314E-03   -.27567E-03
  14  Prefactor     .10000E-03    2.9405        .18142E-02** at limit **
  15  Prefactor     .10000E-03    2.2486        .21635E-02** at limit **
  16  norm          .10000E-03    1.6169        .10981E-02** at limit **
  17  Prefactor     2.3233        27.918        .27103E-03   -.39848E-04
  18  Prefactor     .10000E-03    4.8625        .18142E-02** at limit **
  19  Prefactor     9.3206        10.543        .13128E-03   -.28925E-04
  20  Prefactor     .10000E-03    3.2185        .28518E-02** at limit **
  21  Normalizat    1.0558        .14173        .27074E-03   -.33719E-03
  22  Prefactor     1.0500        .11081        .21369E-03   -.68068E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.57307
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.1058
  norm       = 3.50615
  norm       = 48.2073
  Prefactor  = 1.48772
  Prefactor  = 0.0001
  norm       = 0.934641
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10.5782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.32328
  Prefactor  = 0.0001
  Prefactor  = 9.32062
  Prefactor  = 0.000100001
  Normalizat = 1.05577
  Prefactor  = 1.05002
 **********
 **   18 **HESSE 
 **********

 FCN=   15209.82     FROM HESSE     STATUS=OK           330 CALLS     3447 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5731        5.4880        .75317E-05   -1.5280    
   2  norm          .10000E-03    1.0460        .24397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.717        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1429        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1058        11.397        .53132E-05   -1.5104    
   6  norm          3.5061        5.6865        .86398E-05   -1.5333    
   7  norm          48.207        57.727        .11558E-04   -1.4318    
   8  Prefactor     1.4877        3.0536        .11582E-04   -1.5464    
   9  Prefactor     .10000E-03    4.8340        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .93464        .38108        .18427E-05   -1.5515    
  11  Prefactor     .10000E-03    4.5117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.613        .12347       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.578        8.2318        .49256E-05   -1.5057    
  14  Prefactor     .10000E-03    2.9406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2695        .43270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6472        .21962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3233        27.916        .10841E-04   -1.5403    
  18  Prefactor     .10000E-03    4.8667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3206        10.543        .52511E-05   -1.5097    
  20  Prefactor     .10000E-03    3.2358        .57036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0558        .14184        .10829E-04   -.91185    
  22  Prefactor     1.0500        .11091        .42738E-04   -.91080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81105e-10
Minuit parameter uncertainties:
  1  5.48859
  2  4.48144e-06
  3  3.20149e-05
  4  2.65813e-06
  5  11.3995
  6  5.68741
  7  57.7941
  8  3.05389
  9  3.63552e-06
  10  0.381079
  11  5.48128e-06
  12  0.000331997
  13  8.23272
  14  2.78625e-06
  15  3.19412e-05
  16  8.2151e-06
  17  16.1158
  18  1.76548e-05
  19  10.5453
  20  0.000134323
  21  0.141892
  22  0.11093
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.320e-04  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.050e+00  1.109e-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.056e+00  1.419e-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: 5.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574159/likelihoodResults_454896001_455500801_4FGL_J0818.7+3153_weekly_bin357.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) = 15209.8175375
delta logL = -3.47414024873e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15209.8175375
delta logL = -3.47348195646e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1347       1.0000          .0000       10.000    
     3 'Normalizat'    1.0558       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0500       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=   15209.13     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      293 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85748        10.704        .90712E-02   -.15872E-02
   2  Index         3.5255        1.6840        .99463E-01   -.20317E-03
   3  Normalizat    1.0108        .26887E-01    .62394E-01   -.16412E-03
   4  Prefactor     1.0668        .21173E-01    .39909E-01    .29798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.857484
  Index      = 3.52553
  Normalizat = 1.01077
  Prefactor  = 1.06684
 **********
 **   18 **HESSE 
 **********

 FCN=   15209.13     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      324 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85748        32.826        .98125E-04   -1.5523    
   2  Index         3.5255        3.7035        .53992E-02   -.29934    
   3  Normalizat    1.0108        .11716        .27598E-03   -.92671    
   4  Prefactor     1.0668        .91744E-01    .21216E-03   -.90533    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42688e-09
Minuit parameter uncertainties:
  1  10.6165
  2  4.23766
  3  0.11719
  4  0.0917579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574159': 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) = 15209.1347838
delta logL = 0.682718877208

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  8.575e-01  1.062e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  3.526e+00  4.238e+00  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.067e+00  9.176e-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.011e+00  1.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.43
Ra Dec: 124.695 31.886
Photon Index (Free Index): 3.53 +/- 4.24
Photon Flux (Free Index): 4.27e-08 +/- 3.76e-08
Energy Flux (Free Index): 7.06e-06 +/- 9.47e-06

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/574159/cmap_HighResolution_454896001_455500801_4FGL_J0818.7+3153_weekly_bin357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', comment='SUCCESS', energy_flux2='7.06e-06', dlogl='6.83e-01', photon_flux2='4.27e-08', job_status='DONE', time_completed='2021-07-13 15:25:13.117528', photon_index_error2='4.24', photon_index2='3.53', ts='-0.00', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='5.07e-08', energy_flux_error2='9.47e-06', EG='1.06', time_epoch_completed='1626215113.12', return_code='0', job_id='574159', GAL2='1.07', EG2='1.01', return_code2='102', photon_flux_error2='3.76e-08', ts2='1.43', photon_index='2.13' WHERE bin_id='357' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:25:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 574159: <4FGL_J0818.7+3153_weekly_bin357> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin357 124.695 31.8862 454896001 455500801 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 :                                   1310.07 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2175 sec.
    Turnaround time :                            113842 sec.

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

