aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 173 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 = 7478
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1813.5+3144_daily_bin1694
RA = 273.387, Dec = 31.7497
tmin = 678412801, tmax = 678672001
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='640971', job_status='RUN', time_executed='2022-07-05 03:59:37.238341', time_epoch_executed='1657018777.24' WHERE source_name='4FGL J1813.5+3144' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640971

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640971/ft1_4FGL_J1813.5+3144_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640971/ft2_4FGL_J1813.5+3144_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640971/ft1_4FGL_J1813.5+3144_daily_bin1694.fits outfile=/scratch/kocevski/640971/ft1_filteredMKT_4FGL_J1813.5+3144_daily_bin1694.fits ra=273.387 dec=31.7497 rad=12.0 tmin=678412801.0 tmax=678672001.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 3.74
user 3.49
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/640971/ft2_4FGL_J1813.5+3144_daily_bin1694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640971/ft2_4FGL_J1813.5+3144_daily_bin1694.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/640971/ft1_filteredMKT_4FGL_J1813.5+3144_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/640971/ft1_filtered_4FGL_J1813.5+3144_daily_bin1694.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.51
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 1047

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640971/ft1_filtered_4FGL_J1813.5+3144_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/640971/ft2_4FGL_J1813.5+3144_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/640971/ltcube_678412801_678672001_4FGL_J1813.5+3144_daily_bin1694.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/640971/ft2_4FGL_J1813.5+3144_daily_bin1694.fits
.....................!
real 14.19
user 13.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640971/ft1_filtered_4FGL_J1813.5+3144_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640971/ft2_4FGL_J1813.5+3144_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/640971/ltcube_678412801_678672001_4FGL_J1813.5+3144_daily_bin1694.fits outfile=/scratch/kocevski/640971/expmap_678412801_678672001_4FGL_J1813.5+3144_daily_bin1694.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/640971/ltcube_678412801_678672001_4FGL_J1813.5+3144_daily_bin1694.fits
.....................!
real 193.21
user 187.37
sys 5.24

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 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1813.5+3144 @ 273.387 31.7497

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/640971/ft1_filtered_4FGL_J1813.5+3144_daily_bin1694.fits scfile=/scratch/kocevski/640971/ft2_4FGL_J1813.5+3144_daily_bin1694.fits outfile=/scratch/kocevski/640971/cmap_678412801_678672001_4FGL_J1813.5+3144_daily_bin1694.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=273.387 yref=31.7497 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640971/ft1_filtered_4FGL_J1813.5+3144_daily_bin1694.fits scfile=/scratch/kocevski/640971/ft2_4FGL_J1813.5+3144_daily_bin1694.fits outfile=/scratch/kocevski/640971/cmap_HighResolution_678412801_678672001_4FGL_J1813.5+3144_daily_bin1694.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=273.387 yref=31.7497 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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640971/ft1_filtered_4FGL_J1813.5+3144_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640971/ft2_4FGL_J1813.5+3144_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640971/Model_4FGL_J1813.5+3144_daily_bin1694.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/640971/ft1_filtered_4FGL_J1813.5+3144_daily_bin1694.fits.....................!
real 95.39
user 93.83
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640971/ft1_filtered_4FGL_J1813.5+3144_daily_bin1694.fits', '/scratch/kocevski/640971/ft2_4FGL_J1813.5+3144_daily_bin1694.fits', expMap='/scratch/kocevski/640971/expmap_678412801_678672001_4FGL_J1813.5+3144_daily_bin1694.fits', expCube='/scratch/kocevski/640971/ltcube_678412801_678672001_4FGL_J1813.5+3144_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640971/Model_4FGL_J1813.5+3144_daily_bin1694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1813.5+3144'

4FGL J1813.5+3144
   Spectrum: PowerLaw
345    Prefactor:  1.997e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        Index:  2.169e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  2.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/640971/ft1_filtered_4FGL_J1813.5+3144_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/640971/ft2_4FGL_J1813.5+3144_daily_bin1694.fits
Exposure map: /scratch/kocevski/640971/expmap_678412801_678672001_4FGL_J1813.5+3144_daily_bin1694.fits
Exposure cube: /scratch/kocevski/640971/ltcube_678412801_678672001_4FGL_J1813.5+3144_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640971/Model_4FGL_J1813.5+3144_daily_bin1694.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) = 10690.6747155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.369       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.058       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20999E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .94655       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .66048       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.902       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6100       1.0000         .10000E-03   10000.    
    18 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .49797       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6628       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3959       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3992       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86750       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10690.67     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     2934 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7983       -.62420E-07** at limit **
   2  norm          14.368        5.9850        .50571E-07   -.10695E-03
   3  Prefactor     .10002E-03    29.155        .67283E-05** at limit **
   4  Prefactor     .10000E-03    139.80        .23507E-05** at limit **
   5  Prefactor     .10000E-03    13.453        .43764E-06** at limit **
   6  Prefactor     36.109        51.114        .11429E-05    .11488E-03
   7  Prefactor     .10000E-03    8.1284        .89472E-08** at limit **
   8  Prefactor     .10000E-03    16.873        .20131E-05** at limit **
   9  Prefactor     .10001E-03    26.696       -.54600E-05** at limit **
  10  norm          .10000E-03    .40695       -.77775E-09** at limit **
  11  norm          .65224        43.043       -.23141E-05    .10609E-03
  12  Prefactor     .66126        3.1145        .20291E-05   -.57579E-03
  13  norm          .10000E-03    1.5615       -.27423E-08** at limit **
  14  Prefactor     .10000E-03    2.1663        .18960E-07** at limit **
  15  Prefactor     37.902        19.440        .37466E-06    .15163E-03
  16  norm          .10000E-03    6.3356       -.14611E-07** at limit **
  17  Prefactor     8.6074        5.7497        .21022E-06    .16045E-03
  18  norm          .10000E-03    41.659       -.23169E-05** at limit **
  19  norm          .50546        3.1055        .29420E-05   -.63824E-03
  20  norm          1.6581        1.5994       -.75217E-06   -.78611E-03
  21  Prefactor     2.3934        11.586        .77597E-06   -.75364E-04
  22  Prefactor     .10000E-03    15.646       -.20284E-05** at limit **
  23  Prefactor     .10000E-03    7.2646       -.15333E-09** at limit **
  24  Normalizat    1.3995        .19670       -.46631E-06    .58566E-04
  25  Prefactor     .86748        .75014E-01   -.30338E-06    .65597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.3683
  Prefactor  = 0.00010002
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 36.1093
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100009
  norm       = 0.0001
  norm       = 0.652243
  Prefactor  = 0.661258
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.9022
  norm       = 0.0001
  Prefactor  = 8.60744
  norm       = 0.000100002
  norm       = 0.505456
  norm       = 1.65808
  Prefactor  = 2.39337
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.39945
  Prefactor  = 0.867476
 **********
 **   18 **HESSE 
 **********

 FCN=   10690.67     FROM HESSE     STATUS=OK           429 CALLS     3363 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.368        5.9953        .10566E-03   -1.4950    
   3  Prefactor     .10002E-03    31.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    140.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.109        51.438        .66740E-04   -1.4505    
   7  Prefactor     .10000E-03    8.1321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    28.490        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .40812        .64405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .65224        42.596        .19132       -1.5546    
  12  Prefactor     .66126        3.2963        .36262E-03   -1.5545    
  13  norm          .10000E-03    1.5615        .12618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1862        .14843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     37.902        19.474        .65102E-04   -1.4476    
  16  norm          .10000E-03    6.3360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.6074        5.7493        .13661E-03   -1.5121    
  18  norm          .10000E-03    42.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .50546        3.3059        .27516E-03   -1.5566    
  20  norm          1.6581        1.5764        .94791E-04   -1.5450    
  21  Prefactor     2.3934        11.724        .26456E-03   -1.5399    
  22  Prefactor     .10000E-03    15.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.2791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3995        .22913        .34568E-03   -.80645    
  25  Prefactor     .86748        .87446E-01    .16382E-03   -.97287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14599e-09
Minuit parameter uncertainties:
  1  7.35366e-06
  2  5.99551
  3  0.00158525
  4  0.00120336
  5  9.65622e-05
  6  51.5017
  7  1.42516e-06
  8  0.000344091
  9  0.000986174
  10  2.4572e-07
  11  10.5489
  12  2.95278
  13  6.09889e-07
  14  2.56954e-06
  15  19.4775
  16  2.33817e-06
  17  5.74971
  18  0.000625101
  19  2.58529
  20  1.57645
  21  10.5974
  22  0.000336174
  23  1.0135e-06
  24  0.229298
  25  0.0874602
Done.

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

Extracting fit parameters...

4FGL J1813.5+3144
   Spectrum: PowerLaw
345    Prefactor:  1.000e-04  2.570e-06  1.000e-04  1.000e+04 ( 1.000e-13)
346        Index:  2.169e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  2.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
717    Prefactor:  8.675e-01  8.746e-02  0.000e+00  1.000e+01 ( 1.000e+00)
718        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
719        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
716   Normalization:  1.399e+00  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 273.387 31.750
Photon Flux Upper Limit: 6.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640971/likelihoodResults_678412801_678672001_4FGL_J1813.5+3144_daily_bin1694.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) = 10690.6682517
delta logL = -0.0021795931425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10690.6660722
delta logL = -1.14290742204e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10690.67     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5115        .90712E-02** at limit **
   2  Index         2.1766        5.6136        .50000       -.17896E-04
   3  Normalizat    1.3995        .84635E-02    .78104E-01   -.46151E-04
   4  Prefactor     .86748        .32673E-02    .44589E-01   -.10072E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17659
  Normalizat = 1.39945
  Prefactor  = 0.867476
 **********
 **   18 **HESSE 
 **********

 FCN=   10690.67     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      236 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.704        .14850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1766        6.8991        .50000       -.60005    
   3  Normalizat    1.3995        .29906E-01    .34568E-03   -.80645    
   4  Prefactor     .86748        .11558E-01    .16382E-03   -.97287    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01885e-08
Minuit parameter uncertainties:
  1  1.20597e-05
  2  22.642
  3  0.0299062
  4  0.0115584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640971': 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) = 10690.6660721
delta logL = 3.10210452881e-08

Extracting fit parameters...

4FGL J1813.5+3144
   Spectrum: PowerLaw
345    Prefactor:  1.000e-04  1.206e-05  1.000e-04  1.000e+04 ( 1.000e-13)
346        Index:  2.177e+00  2.264e+01  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  2.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
717    Prefactor:  8.675e-01  1.156e-02  0.000e+00  1.000e+01 ( 1.000e+00)
718        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
719        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
716   Normalization:  1.399e+00  2.991e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 273.387 31.750

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/640971/cmap_HighResolution_678412801_678672001_4FGL_J1813.5+3144_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='6.10e-08', time_completed='2022-07-05 04:19:36.576901', job_id='640971', GAL2='0.87', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1657019976.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1694' AND source_name='4FGL J1813.5+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 04:19:36 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 640858: <4FGL_J1813.5+3144_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1813.5+3144_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:07:03 2022
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:55:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:55:26 2022
Terminated at Tue Jul  5 04:17:25 2022
Results reported at Tue Jul  5 04:17:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1813.5+3144_daily_bin1694 273.387 31.7497 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1813.5+3144 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1195.00 sec.
    Max Memory :                                 619 MB
    Average Memory :                             305.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1319 sec.
    Turnaround time :                            15022 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0198>
Subject: Job 640971: <4FGL_J1813.5+3144_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1813.5+3144_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:07:08 2022
Job was executed on host(s) <bullet0198>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:56:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:56:35 2022
Terminated at Tue Jul  5 04:19:36 2022
Results reported at Tue Jul  5 04:19:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1813.5+3144_daily_bin1694 273.387 31.7497 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1813.5+3144 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1196.28 sec.
    Max Memory :                                 793 MB
    Average Memory :                             306.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2932 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1381 sec.
    Turnaround time :                            15148 sec.

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

