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


Performing analysis on: 4FGL_J1416.1+1320_weekly_bin654
RA = 214.029, Dec = 13.347
tmin = 634521601, tmax = 635126401
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='281729', job_status='RUN', time_executed='2021-07-21 13:36:27.400768', time_epoch_executed='1626899787.4' WHERE source_name='4FGL J1416.1+1320' and cadence='weekly' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/281729

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/281729/ft1_4FGL_J1416.1+1320_weekly_bin654.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/281729/ft2_4FGL_J1416.1+1320_weekly_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/281729/ft1_4FGL_J1416.1+1320_weekly_bin654.fits outfile=/scratch/kocevski/281729/ft1_filteredMKT_4FGL_J1416.1+1320_weekly_bin654.fits ra=214.029 dec=13.347 rad=12.0 tmin=634521601.0 tmax=635126401.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 6.45
user 6.15
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/281729/ft2_4FGL_J1416.1+1320_weekly_bin654.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/281729/ft1_filteredMKT_4FGL_J1416.1+1320_weekly_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/281729/ft1_filtered_4FGL_J1416.1+1320_weekly_bin654.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.54
user 0.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/281729/ft1_filtered_4FGL_J1416.1+1320_weekly_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/281729/ft2_4FGL_J1416.1+1320_weekly_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/281729/ltcube_634521601_635126401_4FGL_J1416.1+1320_weekly_bin654.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/281729/ft2_4FGL_J1416.1+1320_weekly_bin654.fits
.....................!
real 31.45
user 30.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/281729/ft1_filtered_4FGL_J1416.1+1320_weekly_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/281729/ft2_4FGL_J1416.1+1320_weekly_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/281729/ltcube_634521601_635126401_4FGL_J1416.1+1320_weekly_bin654.fits outfile=/scratch/kocevski/281729/expmap_634521601_635126401_4FGL_J1416.1+1320_weekly_bin654.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/281729/ltcube_634521601_635126401_4FGL_J1416.1+1320_weekly_bin654.fits
.....................!
real 191.28
user 186.44
sys 4.29

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/281729/ft1_filtered_4FGL_J1416.1+1320_weekly_bin654.fits scfile=/scratch/kocevski/281729/ft2_4FGL_J1416.1+1320_weekly_bin654.fits outfile=/scratch/kocevski/281729/cmap_634521601_635126401_4FGL_J1416.1+1320_weekly_bin654.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/281729/ft1_filtered_4FGL_J1416.1+1320_weekly_bin654.fits scfile=/scratch/kocevski/281729/ft2_4FGL_J1416.1+1320_weekly_bin654.fits outfile=/scratch/kocevski/281729/cmap_HighResolution_634521601_635126401_4FGL_J1416.1+1320_weekly_bin654.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.58
user 0.43
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/281729/ft1_filtered_4FGL_J1416.1+1320_weekly_bin654.fits', '/scratch/kocevski/281729/ft2_4FGL_J1416.1+1320_weekly_bin654.fits', expMap='/scratch/kocevski/281729/expmap_634521601_635126401_4FGL_J1416.1+1320_weekly_bin654.fits', expCube='/scratch/kocevski/281729/ltcube_634521601_635126401_4FGL_J1416.1+1320_weekly_bin654.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/281729/Model_4FGL_J1416.1+1320_weekly_bin654.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/281729/ft1_filtered_4FGL_J1416.1+1320_weekly_bin654.fits
Spacecraft file(s): /scratch/kocevski/281729/ft2_4FGL_J1416.1+1320_weekly_bin654.fits
Exposure map: /scratch/kocevski/281729/expmap_634521601_635126401_4FGL_J1416.1+1320_weekly_bin654.fits
Exposure cube: /scratch/kocevski/281729/ltcube_634521601_635126401_4FGL_J1416.1+1320_weekly_bin654.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/281729/Model_4FGL_J1416.1+1320_weekly_bin654.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) = 15304.2888234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.003       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5883       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.732       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.463       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.2114       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .83334E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    3.7204       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.4695       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15821E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.2466       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.578       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.374       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4428       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1485       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91227       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.

 FCN=   15304.21     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2044 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.968        31.787       -.61601E-04    .11953E-04
   2  Prefactor     .10000E-03    .91834        .90685E-07** at limit **
   3  Prefactor     .10000E-03    1.2795        .29853E-06** at limit **
   4  Prefactor     .10000E-03    3.9732       -.79428E-06** at limit **
   5  Prefactor     5.5878        6.7123       -.89587E-06   -.17805E-03
   6  Prefactor     13.730        12.203       -.12075E-05   -.53214E-05
   7  Prefactor     31.466        17.065        .16927E-05    .30221E-03
   8  Prefactor     .10000E-03    8.4768       -.27889E-05** at limit **
   9  norm          6.2117        9.3246       -.73371E-06   -.58838E-04
  10  Prefactor     .82712E-01    2.0104       -.16923E-05    .31000E-03
  11  norm          3.7203        1.4193       -.10366E-06    .80709E-04
  12  Prefactor     .10000E-03    2.8742       -.22506E-06** at limit **
  13  norm          5.4692        1.8832       -.24494E-06   -.13228E-04
  14  Prefactor     .10000E-03    19.932        .26434E-05** at limit **
  15  norm          6.2515        9.1082       -.11626E-05   -.18133E-03
  16  Prefactor     .10000E-03    6.5129        .13809E-05** at limit **
  17  Prefactor     11.577        9.8987       -.81717E-06   -.57323E-05
  18  Prefactor     .10000E-03    3.5223        .42184E-06** at limit **
  19  Prefactor     16.371        16.210        .84867E-06    .20157E-03
  20  Prefactor     2.4274        25.653       -.28111E-04   -.10363E-03
  21  Normalizat    1.1485        .12943        .18467E-05    .53397E-03
  22  Prefactor     .91226        .95171E-01    .17034E-05    .61131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.58784
  Prefactor  = 13.7302
  Prefactor  = 31.4659
  Prefactor  = 0.0001
  norm       = 6.21171
  Prefactor  = 0.0827121
  norm       = 3.72033
  Prefactor  = 0.0001
  norm       = 5.46923
  Prefactor  = 0.0001
  norm       = 6.25145
  Prefactor  = 0.0001
  Prefactor  = 11.5772
  Prefactor  = 0.0001
  Prefactor  = 16.3709
  Prefactor  = 2.42737
  Normalizat = 1.14855
  Prefactor  = 0.912261
 **********
 **   18 **HESSE 
 **********

 FCN=   15304.21     FROM HESSE     STATUS=OK           348 CALLS     2392 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.968        31.759        .89553E-04   -1.4814    
   2  Prefactor     .10000E-03    .92998        .11574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.2920        .13663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5878        6.7213        .16994E-03   -1.5235    
   6  Prefactor     13.730        12.205        .10809E-03   -1.4967    
   7  Prefactor     31.466        17.087        .71433E-04   -1.4585    
   8  Prefactor     .10000E-03    8.5449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.2117        9.3204        .16107E-03   -1.5209    
  10  Prefactor     .82712E-01    2.1718        .55190E-01   -1.5650    
  11  norm          3.7203        1.4198        .88504E-04   -1.5322    
  12  Prefactor     .10000E-03    2.9854        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.4692        1.8826        .95453E-04   -1.5240    
  14  Prefactor     .10000E-03    19.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.2515        9.0810        .16061E-03   -1.5208    
  16  Prefactor     .10000E-03    6.5357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.577        9.8977        .11773E-03   -1.5027    
  18  Prefactor     .10000E-03    3.5384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.371        16.107        .98978E-04   -1.4899    
  20  Prefactor     2.4274        25.628        .26176E-03   -1.5396    
  21  Normalizat    1.1485        .15914        .26530E-03   -.88208    
  22  Prefactor     .91226        .11696        .21678E-03   -.95714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69262e-09
Minuit parameter uncertainties:
  1  31.7862
  2  4.37556e-06
  3  2.14889e-05
  4  2.08283e-05
  5  6.72216
  6  12.2074
  7  17.0898
  8  3.50219e-05
  9  9.32253
  10  0.84719
  11  1.41983
  12  2.21446e-05
  13  1.88259
  14  1.16702e-05
  15  9.083
  16  1.91529e-05
  17  9.89913
  18  3.6434e-06
  19  16.111
  20  15.7828
  21  0.159204
  22  0.116989
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.147e+01  1.709e+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.123e-01  1.170e-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:  1.149e+00  1.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.45
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.11e-08 +/- 2.23e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 7.59e-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) = 15304.1978942
delta logL = 0.0090136728104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15304.1941467
delta logL = 0.0127612238884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.838       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4476       1.0000          .0000       10.000    
     3 'Normalizat'    1.1449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91409       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=   15304.19     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      263 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.839        20.270        .73348E-04   -.71298E-05
   2  Index         2.4474        .49334        .86930E-02    .77217E-03
   3  Normalizat    1.1449        .15833        .26567E-03   -.52379E-04
   4  Prefactor     .91409        .11612        .21659E-03   -.60782E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.839
  Index      = 2.44744
  Normalizat = 1.14487
  Prefactor  = 0.914086
 **********
 **   18 **HESSE 
 **********

 FCN=   15304.19     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.839        19.486        .29339E-05   -1.4615    
   2  Index         2.4474        .47399        .17386E-02   -.53578    
   3  Normalizat    1.1449        .15838        .10627E-04   -.88324    
   4  Prefactor     .91409        .11618        .86637E-05   -.95651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92e-12
Minuit parameter uncertainties:
  1  19.4898
  2  0.474953
  3  0.158442
  4  0.116215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/281729': 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) = 15304.1941467
delta logL = 0.0127612593424

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.984e+01  1.949e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.447e+00  4.750e-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.141e-01  1.162e-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:  1.145e+00  1.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.48
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.45 +/- 0.47
Photon Flux (Free Index): 4.35e-08 +/- 2.73e-08
Energy Flux (Free Index): 1.34e-05 +/- 7.87e-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/281729/cmap_HighResolution_634521601_635126401_4FGL_J1416.1+1320_weekly_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.11e-08', energy_flux2='1.34e-05', photon_flux_error='2.23e-08', dlogl='1.28e-02', energy_flux='1.40e-05', photon_flux2='4.35e-08', job_status='DONE', time_completed='2021-07-21 13:50:32.505331', photon_index_error2='0.47', photon_index2='2.45', ts='6.45', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='7.87e-06', EG='1.15', time_epoch_completed='1626900632.51', return_code='0', job_id='281729', GAL2='0.91', EG2='1.14', return_code2='0', energy_flux_error='7.59e-06', photon_flux_error2='2.73e-08', ts2='6.48', photon_index='2.37' WHERE bin_id='654' AND source_name='4FGL J1416.1+1320' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 21 13:50:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 281729: <4FGL_J1416.1+1320_weekly_bin654> in cluster <slac> Done

Job <4FGL_J1416.1+1320_weekly_bin654> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jul 21 13:35:39 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 21 13:36:17 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:17 2021
Terminated at Wed Jul 21 13:50:33 2021
Results reported at Wed Jul 21 13:50:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_weekly_bin654 214.029 13.347 634521601 635126401 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 :                                   831.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            894 sec.

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

