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


Performing analysis on: 4FGL_J1416.1+1320_weekly_bin668
RA = 214.029, Dec = 13.347
tmin = 642988801, tmax = 643593601
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='281763', job_status='RUN', time_executed='2021-07-21 13:36:41.517725', time_epoch_executed='1626899801.52' WHERE source_name='4FGL J1416.1+1320' and cadence='weekly' and bin_id='668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/281763

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/281763/ft1_4FGL_J1416.1+1320_weekly_bin668.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/281763/ft2_4FGL_J1416.1+1320_weekly_bin668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/281763/ft1_4FGL_J1416.1+1320_weekly_bin668.fits outfile=/scratch/kocevski/281763/ft1_filteredMKT_4FGL_J1416.1+1320_weekly_bin668.fits ra=214.029 dec=13.347 rad=12.0 tmin=642988801.0 tmax=643593601.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.57
user 7.23
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/281763/ft2_4FGL_J1416.1+1320_weekly_bin668.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/281763/ft2_4FGL_J1416.1+1320_weekly_bin668.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/281763/ft1_filteredMKT_4FGL_J1416.1+1320_weekly_bin668.fits evtable="EVENTS" outfile="/scratch/kocevski/281763/ft1_filtered_4FGL_J1416.1+1320_weekly_bin668.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.57
user 0.40
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/281763/ft1_filtered_4FGL_J1416.1+1320_weekly_bin668.fits" evtable="EVENTS" scfile=/scratch/kocevski/281763/ft2_4FGL_J1416.1+1320_weekly_bin668.fits sctable="SC_DATA" outfile=/scratch/kocevski/281763/ltcube_642988801_643593601_4FGL_J1416.1+1320_weekly_bin668.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/281763/ft2_4FGL_J1416.1+1320_weekly_bin668.fits
.....................!
real 33.20
user 32.69
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/281763/ft1_filtered_4FGL_J1416.1+1320_weekly_bin668.fits evtable="EVENTS" scfile=/scratch/kocevski/281763/ft2_4FGL_J1416.1+1320_weekly_bin668.fits sctable="SC_DATA" expcube=/scratch/kocevski/281763/ltcube_642988801_643593601_4FGL_J1416.1+1320_weekly_bin668.fits outfile=/scratch/kocevski/281763/expmap_642988801_643593601_4FGL_J1416.1+1320_weekly_bin668.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/281763/ltcube_642988801_643593601_4FGL_J1416.1+1320_weekly_bin668.fits
.....................!
real 192.39
user 187.25
sys 4.51

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 142 point sources and 0 extended sources

Setting source of interest to:
4FGL J1416.1+1320 @ 214.029 13.347

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/281763/ft1_filtered_4FGL_J1416.1+1320_weekly_bin668.fits scfile=/scratch/kocevski/281763/ft2_4FGL_J1416.1+1320_weekly_bin668.fits outfile=/scratch/kocevski/281763/cmap_642988801_643593601_4FGL_J1416.1+1320_weekly_bin668.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=214.029 yref=13.347 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.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/281763/ft1_filtered_4FGL_J1416.1+1320_weekly_bin668.fits scfile=/scratch/kocevski/281763/ft2_4FGL_J1416.1+1320_weekly_bin668.fits outfile=/scratch/kocevski/281763/cmap_HighResolution_642988801_643593601_4FGL_J1416.1+1320_weekly_bin668.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=214.029 yref=13.347 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.59
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/281763/ft1_filtered_4FGL_J1416.1+1320_weekly_bin668.fits evtable="EVENTS" scfile=/scratch/kocevski/281763/ft2_4FGL_J1416.1+1320_weekly_bin668.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/281763/Model_4FGL_J1416.1+1320_weekly_bin668.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/281763/ft1_filtered_4FGL_J1416.1+1320_weekly_bin668.fits.....................!
real 83.47
user 81.93
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/281763/ft1_filtered_4FGL_J1416.1+1320_weekly_bin668.fits', '/scratch/kocevski/281763/ft2_4FGL_J1416.1+1320_weekly_bin668.fits', expMap='/scratch/kocevski/281763/expmap_642988801_643593601_4FGL_J1416.1+1320_weekly_bin668.fits', expCube='/scratch/kocevski/281763/ltcube_642988801_643593601_4FGL_J1416.1+1320_weekly_bin668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/281763/Model_4FGL_J1416.1+1320_weekly_bin668.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1416.1+1320'

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  8.909e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/281763/ft1_filtered_4FGL_J1416.1+1320_weekly_bin668.fits
Spacecraft file(s): /scratch/kocevski/281763/ft2_4FGL_J1416.1+1320_weekly_bin668.fits
Exposure map: /scratch/kocevski/281763/expmap_642988801_643593601_4FGL_J1416.1+1320_weekly_bin668.fits
Exposure cube: /scratch/kocevski/281763/ltcube_642988801_643593601_4FGL_J1416.1+1320_weekly_bin668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/281763/Model_4FGL_J1416.1+1320_weekly_bin668.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) = 13078.5012944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .81275       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4892       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.007       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7499       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19697       1.0000         .10000E-03   10000.    
    11 'norm      '    4.6805       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5235       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.884       1.0000         .10000E-03   10000.    
    15 'norm      '    .12551E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .87414       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94384       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99851       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   13077.49     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     2812 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.124        .18142E-02** at limit **
   2  Prefactor     .81273        1.7280        .21669E-03    .77440E-03
   3  Prefactor     .10001E-03    7.7602        .30105E-02** at limit **
   4  Prefactor     .10000E-03    2.7117        .18142E-02** at limit **
   5  Prefactor     3.4874        6.9751        .21646E-03    .20609E-03
   6  Prefactor     .10000E-03    4.1040        .18142E-02** at limit **
   7  Prefactor     43.010        19.109        .61130E-04   -.21521E-03
   8  Prefactor     6.7465        13.410        .15444E-03   -.54473E-05
   9  norm          .10000E-03    10.790        .18142E-02** at limit **
  10  Prefactor     .19669        5.0303        .28011E-02    .96843E-03
  11  norm          4.6805        1.7342        .88946E-04    .97906E-04
  12  Prefactor     1.5236        2.0116        .18213E-03    .39724E-03
  13  norm          .10000E-03    1.0850        .16666E-02** at limit **
  14  Prefactor     14.891        21.123        .10382E-03   -.15550E-04
  15  norm          .10000E-03    10.635        .90061E-01** at limit **
  16  Prefactor     .10000E-03    7.8785        .18142E-02** at limit **
  17  Prefactor     .87021        19.862        .43966E-02    .18283E-03
  18  Prefactor     .10001E-03    18.035        .39902E-02** at limit **
  19  Prefactor     .10000E-03    3.0496        .18142E-02** at limit **
  20  Prefactor     .10000E-03    4.9782        .18142E-02** at limit **
  21  Normalizat    .94388        .15751        .26659E-03    .21971E-03
  22  Prefactor     .99850        .11722        .19796E-03    .40303E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.812727
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 3.48744
  Prefactor  = 0.0001
  Prefactor  = 43.0096
  Prefactor  = 6.7465
  norm       = 0.0001
  Prefactor  = 0.196688
  norm       = 4.68051
  Prefactor  = 1.52365
  norm       = 0.0001
  Prefactor  = 14.8909
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.870211
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.943882
  Prefactor  = 0.998496
 **********
 **   18 **HESSE 
 **********

 FCN=   13077.49     FROM HESSE     STATUS=OK           334 CALLS     3146 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.125        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .81273        1.7278        .86675E-05   -1.5528    
   3  Prefactor     .10001E-03    7.8887        .60210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7120        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4874        6.9726        .86585E-05   -1.5334    
   6  Prefactor     .10000E-03    4.1043        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     43.010        19.098        .12226E-04   -1.4395    
   8  Prefactor     6.7465        13.408        .61777E-05   -1.5188    
   9  norm          .10000E-03    10.795        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .19669        5.0496        .11204E-03   -1.5619    
  11  norm          4.6805        1.7341        .35579E-05   -1.5275    
  12  Prefactor     1.5236        2.0110        .72852E-05   -1.5461    
  13  norm          .10000E-03    1.0888        .33332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.891        21.050        .41528E-05   -1.4936    
  15  norm          .10000E-03    10.156        .92830E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .87021        19.940        .17586E-03   -1.5521    
  18  Prefactor     .10001E-03    18.289        .79804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.0497        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94388        .15754        .10664E-04   -.94935    
  22  Prefactor     .99850        .11731        .39593E-04   -.92780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70843e-09
Minuit parameter uncertainties:
  1  6.39108e-05
  2  1.72789
  3  0.000626733
  4  4.27193e-06
  5  6.97419
  6  1.97696e-05
  7  19.1007
  8  13.4144
  9  9.07297e-05
  10  1.99287
  11  1.73414
  12  2.01109
  13  1.02463e-05
  14  21.0604
  15  0.000215412
  16  3.60515e-05
  17  8.33374
  18  0.00100438
  19  4.68138e-07
  20  2.08055e-05
  21  0.157621
  22  0.117341
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  4.301e+01  1.910e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.985e-01  1.173e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  9.439e-01  1.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.12
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.62e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 8.48e-06

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): 0
logL (Free Index) = 13077.4919347
delta logL = 0.00275989971851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13077.4905151
delta logL = 0.00417956358069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.885       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4102       1.0000          .0000       10.000    
     3 'Normalizat'    .94165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99960       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   13077.49     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      277 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.897        23.300        .61940E-04   -.23861E-04
   2  Index         2.4100        .42238        .70673E-02    .80444E-03
   3  Normalizat    .94165        .15523        .26686E-03   -.13121E-04
   4  Prefactor     .99957        .11730        .19787E-03    .93078E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.8969
  Index      = 2.41003
  Normalizat = 0.941655
  Prefactor  = 0.999568
 **********
 **   18 **HESSE 
 **********

 FCN=   13077.49     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.897        22.514        .24776E-05   -1.4413    
   2  Index         2.4100        .40795        .14135E-02   -.54451    
   3  Normalizat    .94165        .15528        .10675E-04   -.95012    
   4  Prefactor     .99957        .11737        .79148E-05   -.92744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45784e-12
Minuit parameter uncertainties:
  1  22.5185
  2  0.408574
  3  0.155356
  4  0.117396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/281763': 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) = 13077.4905147
delta logL = 0.00417987298715

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  4.190e+01  2.252e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.410e+00  4.086e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.996e-01  1.174e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  9.417e-01  1.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.13
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.41 +/- 0.41
Photon Flux (Free Index): 5.78e-08 +/- 3.05e-08
Energy Flux (Free Index): 1.87e-05 +/- 9.32e-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/281763/cmap_HighResolution_642988801_643593601_4FGL_J1416.1+1320_weekly_bin668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.62e-08', energy_flux2='1.87e-05', photon_flux_error='2.49e-08', dlogl='4.18e-03', energy_flux='1.91e-05', photon_flux2='5.78e-08', job_status='DONE', time_completed='2021-07-21 13:51:05.439627', photon_index_error2='0.41', photon_index2='2.41', ts='10.12', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='9.32e-06', EG='0.94', time_epoch_completed='1626900665.44', return_code='0', job_id='281763', GAL2='1.00', EG2='0.94', return_code2='0', energy_flux_error='8.48e-06', photon_flux_error2='3.05e-08', ts2='10.13', photon_index='2.37' WHERE bin_id='668' AND source_name='4FGL J1416.1+1320' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 21 13:51:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 281763: <4FGL_J1416.1+1320_weekly_bin668> in cluster <slac> Done

Job <4FGL_J1416.1+1320_weekly_bin668> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jul 21 13:35:43 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 21 13:36:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 21 13:36:26 2021
Terminated at Wed Jul 21 13:51:06 2021
Results reported at Wed Jul 21 13:51:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_weekly_bin668 214.029 13.347 642988801 643593601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1416.1+1320 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   852.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            923 sec.

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

