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


Performing analysis on: 4FGL_J1916.7-1516_daily_bin1690
RA = 289.176, Dec = -15.2779
tmin = 677376001, tmax = 677635201
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='158031', job_status='RUN', time_executed='2022-06-23 01:14:10.839755', time_epoch_executed='1655972050.84' WHERE source_name='4FGL J1916.7-1516' and cadence='daily' and bin_id='1690'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158031

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158031/ft1_4FGL_J1916.7-1516_daily_bin1690.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158031/ft2_4FGL_J1916.7-1516_daily_bin1690.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158031/ft1_4FGL_J1916.7-1516_daily_bin1690.fits outfile=/scratch/kocevski/158031/ft1_filteredMKT_4FGL_J1916.7-1516_daily_bin1690.fits ra=289.176 dec=-15.2779 rad=12.0 tmin=677376001.0 tmax=677635201.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 2.53
user 2.32
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/158031/ft2_4FGL_J1916.7-1516_daily_bin1690.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158031/ft2_4FGL_J1916.7-1516_daily_bin1690.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/158031/ft1_filteredMKT_4FGL_J1916.7-1516_daily_bin1690.fits evtable="EVENTS" outfile="/scratch/kocevski/158031/ft1_filtered_4FGL_J1916.7-1516_daily_bin1690.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.34
sys 0.15

Number of photons that the gtmktime cut: 188

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158031/ft1_filtered_4FGL_J1916.7-1516_daily_bin1690.fits" evtable="EVENTS" scfile=/scratch/kocevski/158031/ft2_4FGL_J1916.7-1516_daily_bin1690.fits sctable="SC_DATA" outfile=/scratch/kocevski/158031/ltcube_677376001_677635201_4FGL_J1916.7-1516_daily_bin1690.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/158031/ft2_4FGL_J1916.7-1516_daily_bin1690.fits
.....................!
real 15.16
user 14.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158031/ft1_filtered_4FGL_J1916.7-1516_daily_bin1690.fits evtable="EVENTS" scfile=/scratch/kocevski/158031/ft2_4FGL_J1916.7-1516_daily_bin1690.fits sctable="SC_DATA" expcube=/scratch/kocevski/158031/ltcube_677376001_677635201_4FGL_J1916.7-1516_daily_bin1690.fits outfile=/scratch/kocevski/158031/expmap_677376001_677635201_4FGL_J1916.7-1516_daily_bin1690.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/158031/ltcube_677376001_677635201_4FGL_J1916.7-1516_daily_bin1690.fits
.....................!
real 193.00
user 188.43
sys 4.11

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
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source W 28 in ROI with RadialDisk spatial model.
Extended source HESS J1804-216 in ROI with RadialDisk spatial model.
Extended source W 30 in ROI with RadialDisk spatial model.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Added 391 point sources and 16 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1916.7-1516 @ 289.176 -15.2779

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/158031/ft1_filtered_4FGL_J1916.7-1516_daily_bin1690.fits scfile=/scratch/kocevski/158031/ft2_4FGL_J1916.7-1516_daily_bin1690.fits outfile=/scratch/kocevski/158031/cmap_677376001_677635201_4FGL_J1916.7-1516_daily_bin1690.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=289.176 yref=-15.2779 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158031/ft1_filtered_4FGL_J1916.7-1516_daily_bin1690.fits scfile=/scratch/kocevski/158031/ft2_4FGL_J1916.7-1516_daily_bin1690.fits outfile=/scratch/kocevski/158031/cmap_HighResolution_677376001_677635201_4FGL_J1916.7-1516_daily_bin1690.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=289.176 yref=-15.2779 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158031/ft1_filtered_4FGL_J1916.7-1516_daily_bin1690.fits evtable="EVENTS" scfile=/scratch/kocevski/158031/ft2_4FGL_J1916.7-1516_daily_bin1690.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158031/Model_4FGL_J1916.7-1516_daily_bin1690.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 FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source G24.7+0.6
adding source GAL_V02
adding source HESS J1804-216
adding source HESS J1808-204
adding source HESS J1809-193
adding source HESS J1813-178
adding source HESS J1825-137
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 28
adding source W 30
adding source W 41
adding source W 44
Working on...
/scratch/kocevski/158031/ft1_filtered_4FGL_J1916.7-1516_daily_bin1690.fits.....................!
real 61.90
user 60.47
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/158031/ft1_filtered_4FGL_J1916.7-1516_daily_bin1690.fits', '/scratch/kocevski/158031/ft2_4FGL_J1916.7-1516_daily_bin1690.fits', expMap='/scratch/kocevski/158031/expmap_677376001_677635201_4FGL_J1916.7-1516_daily_bin1690.fits', expCube='/scratch/kocevski/158031/ltcube_677376001_677635201_4FGL_J1916.7-1516_daily_bin1690.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/158031/Model_4FGL_J1916.7-1516_daily_bin1690.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1916.7-1516'

4FGL J1916.7-1516
   Spectrum: PowerLaw
1106    Prefactor:  8.018e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
1107        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1108        Scale:  8.840e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/158031/ft1_filtered_4FGL_J1916.7-1516_daily_bin1690.fits
Spacecraft file(s): /scratch/kocevski/158031/ft2_4FGL_J1916.7-1516_daily_bin1690.fits
Exposure map: /scratch/kocevski/158031/expmap_677376001_677635201_4FGL_J1916.7-1516_daily_bin1690.fits
Exposure cube: /scratch/kocevski/158031/ltcube_677376001_677635201_4FGL_J1916.7-1516_daily_bin1690.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/158031/Model_4FGL_J1916.7-1516_daily_bin1690.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2162.50420613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2159.72695702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8109       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .82620       1.0000         .10000E-03   10000.    
     3 'norm      '    959.46       1.0000         .10000E-03   10000.    
     4 'norm      '    .10518E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13603E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10837E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11447E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    37.367       1.0000         .10000E-03   10000.    
    11 'norm      '    .62443E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11080E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    78.715       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8554       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10848E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4168       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91457       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1471E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2159.727     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      240 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8109        1.0021         .0000         .0000    
   2  Prefactor     .72875        1.0701       -.85993E-04    .19601E-02
   3  norm          959.46       1.00000       -.74830E-08    .24012E-03
   4  norm          .10000E-03    .20571       -.37817E-06** at limit **
   5  Prefactor     .21078E-03    .20571       -.92835E-04** at limit **
   6  Prefactor     .10000E-03    .20571        .22846E-05** at limit **
   7  norm          .10009E-03    .20571       -.48795E-05** at limit **
   8  Prefactor     .16349E-03    .20571       -.13895E-04** at limit **
   9  Prefactor     .13210E-03    .20571        .16978E-04** at limit **
  10  norm          37.306        .99928       -.46449E-05    .23941E-03
  11  norm          .10311E-03    .27674       -.18391E-04** at limit **
  12  Prefactor     .10157E-03    .20571       -.13920E-05** at limit **
  13  Prefactor     78.712       1.00000       -.29176E-06    .86093E-03
  14  Prefactor     4.8407        1.0039       -.26537E-04   -.38314E-02
  15  Prefactor     .15070E-03    .20571       -.79428E-04** at limit **
  16  Prefactor     .10003E-03    .20571        .52307E-05** at limit **
  17  Prefactor     1.4133        1.0806        .13481E-04   -.21992E-03
  18  Normalizat    .10000E-01    .25505       -.39106E-03** at limit **
  19  Prefactor     .91447        1.2587       -.96993E-05   -.52769E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.81092
  Prefactor  = 0.728751
  norm       = 959.458
  norm       = 0.0001
  Prefactor  = 0.000210784
  Prefactor  = 0.0001
  norm       = 0.00010009
  Prefactor  = 0.000163491
  Prefactor  = 0.000132098
  norm       = 37.3063
  norm       = 0.000103109
  Prefactor  = 0.000101568
  Prefactor  = 78.7116
  Prefactor  = 4.84067
  Prefactor  = 0.000150703
  Prefactor  = 0.000100033
  Prefactor  = 1.41327
  Normalizat = 0.01
  Prefactor  = 0.914469
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2159.727     FROM HESSE     STATUS=FAILED        11 CALLS      251 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          506.71        498.87         .0000       -1.5149    
   2  Prefactor     .72875        1.0701       -.85993E-04   -1.5537    
   3  norm          959.46       1.00000       -.74830E-08   -.94093    
   4  norm          .10000E-03    .20571       -.37817E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .21078E-03    .20571       -.92835E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .20571        .22846E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10009E-03    .20571       -.48795E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16349E-03    .20571       -.13895E-04   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .13210E-03    .20571        .16978E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          37.306        .99928       -.46449E-05   -1.4486    
  11  norm          .10311E-03    .27674       -.18391E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10157E-03    .20571       -.13920E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     78.712       1.00000       -.29176E-06   -1.3931    
  14  Prefactor     4.8407        1.0039       -.26537E-04   -1.5268    
  15  Prefactor     .15070E-03    .20571       -.79428E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10003E-03    .20571        .52307E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4133        1.0806        .13481E-04   -1.5470    
  18  Normalizat    .10000E-01    .25505       -.39106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .91447        1.2587       -.96993E-05   -.95637    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.50961e-09
Minuit parameter uncertainties:
  1  1.00206
  2  1.07015
  3  1
  4  1.36459e-07
  5  0.00954776
  6  1.83084e-06
  7  0.000272501
  8  0.007228
  9  0.00513929
  10  0.999282
  11  0.00185528
  12  0.00113605
  13  0.999999
  14  1.00388
  15  0.00645922
  16  0.000165209
  17  1.08065
  18  1.70625e-06
  19  1.30259
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2159.72695066

Extracting fit parameters...

4FGL J1916.7-1516
   Spectrum: PowerLaw
1106    Prefactor:  1.635e-04  7.228e-03  1.000e-04  1.000e+04 ( 1.000e-13)
1107        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1108        Scale:  8.840e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1421    Prefactor:  9.145e-01  1.303e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1422        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1423        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1410   Normalization:  1.000e-02  1.706e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 289.176 -15.278
Photon Flux Upper Limit: 1.83e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158031/likelihoodResults_677376001_677635201_4FGL_J1916.7-1516_daily_bin1690.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) = 2159.72697932
delta logL = -2.86623562715e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2159.72695221
delta logL = -1.54894496518e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1171       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91447       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1471E+06   .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=   2159.727     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      295 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10895E-03    122.60        .18142E-01** at limit **
   2  Index         2.9690        8.2995        .50000        .27705E-05
   3  Normalizat    .10000E-01    .65359E-02    .21967E-01** at limit **
   4  Prefactor     .91447        .33858E-02    .11610E-03   -.53144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108954
  Index      = 2.96897
  Normalizat = 0.01
  Prefactor  = 0.914468
 **********
 **   18 **HESSE 
 **********

 FCN=   2159.727     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      324 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10895E-03    584.00        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9690        8.4485        .50000       -.41830    
   3  Normalizat    .10000E-01    .32149E-01    .43934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .91447        .74782E-02    .23221E-04   -.95637    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24125e-09
Minuit parameter uncertainties:
  1  0.146074
  2  994.607
  3  4.51303e-06
  4  0.00747818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158031': 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) = 2159.72695066
delta logL = 2.19051798922e-09

Extracting fit parameters...

4FGL J1916.7-1516
   Spectrum: PowerLaw
1106    Prefactor:  1.090e-04  1.461e-01  1.000e-04  1.000e+04 ( 1.000e-13)
1107        Index:  2.969e+00  9.946e+02  0.000e+00  1.000e+01 (-1.000e+00)
1108        Scale:  8.840e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1421    Prefactor:  9.145e-01  7.478e-03  0.000e+00  1.000e+01 ( 1.000e+00)
1422        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1423        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1410   Normalization:  1.000e-02  4.513e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 289.176 -15.278

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/158031/cmap_HighResolution_677376001_677635201_4FGL_J1916.7-1516_daily_bin1690.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-01', job_status='DONE', photon_flux_upper_limit='1.83e-06', time_completed='2022-06-23 01:22:01.772577', job_id='158031', GAL2='0.91', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1655972521.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.91', dlogl='2.19e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1690' AND source_name='4FGL J1916.7-1516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jun 23 01:22:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 158031: <4FGL_J1916.7-1516_daily_bin1690> in cluster <slac> Done

Job <4FGL_J1916.7-1516_daily_bin1690> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 01:10:16 2022
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 01:10:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 01:10:29 2022
Terminated at Thu Jun 23 01:22:02 2022
Results reported at Thu Jun 23 01:22:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1916.7-1516_daily_bin1690 289.176 -15.2779 677376001 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1916.7-1516 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   473.46 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             278.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            706 sec.

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

