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


Performing analysis on: 4FGL_J1416.1+1320_weekly_bin714
RA = 214.029, Dec = 13.347
tmin = 670809601, tmax = 671414401
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='428064', job_status='RUN', time_executed='2022-04-12 01:26:31.632309', time_epoch_executed='1649751991.63' WHERE source_name='4FGL J1416.1+1320' and cadence='weekly' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428064

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428064/ft1_4FGL_J1416.1+1320_weekly_bin714.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428064/ft2_4FGL_J1416.1+1320_weekly_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428064/ft1_4FGL_J1416.1+1320_weekly_bin714.fits outfile=/scratch/kocevski/428064/ft1_filteredMKT_4FGL_J1416.1+1320_weekly_bin714.fits ra=214.029 dec=13.347 rad=12.0 tmin=670809601.0 tmax=671414401.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 11.65
user 11.28
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428064/ft2_4FGL_J1416.1+1320_weekly_bin714.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/428064/ft1_filteredMKT_4FGL_J1416.1+1320_weekly_bin714.fits evtable="EVENTS" outfile="/scratch/kocevski/428064/ft1_filtered_4FGL_J1416.1+1320_weekly_bin714.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.34
sys 0.18

Number of photons that the gtmktime cut: 1268

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428064/ft1_filtered_4FGL_J1416.1+1320_weekly_bin714.fits" evtable="EVENTS" scfile=/scratch/kocevski/428064/ft2_4FGL_J1416.1+1320_weekly_bin714.fits sctable="SC_DATA" outfile=/scratch/kocevski/428064/ltcube_670809601_671414401_4FGL_J1416.1+1320_weekly_bin714.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/428064/ft2_4FGL_J1416.1+1320_weekly_bin714.fits
.....................!
real 26.01
user 25.48
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428064/ft1_filtered_4FGL_J1416.1+1320_weekly_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/428064/ft2_4FGL_J1416.1+1320_weekly_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/428064/ltcube_670809601_671414401_4FGL_J1416.1+1320_weekly_bin714.fits outfile=/scratch/kocevski/428064/expmap_670809601_671414401_4FGL_J1416.1+1320_weekly_bin714.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/428064/ltcube_670809601_671414401_4FGL_J1416.1+1320_weekly_bin714.fits
.....................!
real 191.10
user 185.71
sys 4.98

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/428064/ft1_filtered_4FGL_J1416.1+1320_weekly_bin714.fits scfile=/scratch/kocevski/428064/ft2_4FGL_J1416.1+1320_weekly_bin714.fits outfile=/scratch/kocevski/428064/cmap_670809601_671414401_4FGL_J1416.1+1320_weekly_bin714.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428064/ft1_filtered_4FGL_J1416.1+1320_weekly_bin714.fits scfile=/scratch/kocevski/428064/ft2_4FGL_J1416.1+1320_weekly_bin714.fits outfile=/scratch/kocevski/428064/cmap_HighResolution_670809601_671414401_4FGL_J1416.1+1320_weekly_bin714.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.297       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3672       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9961       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2844       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.465       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .74760       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7030       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38746E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.421       1.0000         .10000E-03   10000.    
    15 'norm      '    .10366E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.468       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8329       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1163       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98656       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=   13668.08     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2068 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.297        22.573        .40723E-06    .37406E-04
   2  Prefactor     4.3672        2.4199        .10013E-08   -.11394E-03
   3  Prefactor     4.9962        3.0119       -.37562E-07   -.81569E-04
   4  Prefactor     .10000E-03    4.6909       -.92881E-06** at limit **
   5  Prefactor     4.2847        6.5840        .35986E-07   -.12811E-03
   6  Prefactor     .10000E-03    4.5027        .71951E-06** at limit **
   7  Prefactor     41.463        21.230       -.13497E-05   -.25702E-03
   8  Prefactor     .10000E-03    15.002        .41607E-05** at limit **
   9  norm          .10000E-03    3.1664        .32781E-07** at limit **
  10  Prefactor     .74729        2.4805        .96283E-06   -.94172E-03
  11  norm          2.7030        1.4214       -.11135E-08   -.66717E-04
  12  Prefactor     .10000E-03    1.4545       -.16978E-07** at limit **
  13  norm          .10002E-03    .56033       -.13104E-06** at limit **
  14  Prefactor     11.422        13.092        .41705E-06    .27710E-04
  15  norm          .10000E-03    6.7421        .84897E-06** at limit **
  16  Prefactor     .10000E-03    17.729       -.30631E-05** at limit **
  17  Prefactor     36.469        16.869        .35446E-07    .87887E-05
  18  Prefactor     8.8330        8.6142        .41003E-06   -.84265E-03
  19  Prefactor     .10000E-03    6.9618        .33099E-06** at limit **
  20  Prefactor     .10000E-03    7.3518       -.72354E-06** at limit **
  21  Normalizat    1.1163        .13678        .20718E-06   -.78289E-05
  22  Prefactor     .98659        .10072       -.11977E-06    .62458E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2973
  Prefactor  = 4.36722
  Prefactor  = 4.99619
  Prefactor  = 0.0001
  Prefactor  = 4.28467
  Prefactor  = 0.0001
  Prefactor  = 41.4626
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.747291
  norm       = 2.70304
  Prefactor  = 0.0001
  norm       = 0.000100016
  Prefactor  = 11.4218
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 36.4692
  Prefactor  = 8.83297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11629
  Prefactor  = 0.986588
 **********
 **   18 **HESSE 
 **********

 FCN=   13668.08     FROM HESSE     STATUS=OK           354 CALLS     2422 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.297        22.578        .86794E-04   -1.4785    
   2  Prefactor     4.3672        2.4213        .13081E-03   -1.5290    
   3  Prefactor     4.9962        3.0134        .15234E-03   -1.5261    
   4  Prefactor     .10000E-03    4.7478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2847        6.6298        .19464E-03   -1.5294    
   6  Prefactor     .10000E-03    4.5228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.463        21.324        .62252E-04   -1.4419    
   8  Prefactor     .10000E-03    15.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .74729        2.9877        .39380E-03   -1.5535    
  11  norm          2.7030        1.4198        .98319E-04   -1.5379    
  12  Prefactor     .10000E-03    16.961        .26502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10002E-03    .87672        .32286E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.422        13.060        .11854E-03   -1.5032    
  15  norm          .10000E-03    6.7640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.469        16.865        .66365E-04   -1.4499    
  18  Prefactor     8.8330        9.8378        .67433E-03   -1.5113    
  19  Prefactor     .10000E-03    6.9913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.3745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1163        .16552        .26972E-03   -.89231    
  22  Prefactor     .98659        .12265        .21518E-03   -.93178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21066e-09
Minuit parameter uncertainties:
  1  22.5872
  2  2.4214
  3  3.01346
  4  4.01014e-05
  5  6.63093
  6  3.06413e-05
  7  21.3277
  8  0.000315868
  9  6.11029e-07
  10  2.98833
  11  1.41982
  12  4.79254e-05
  13  0.000239307
  14  13.0636
  15  3.46074e-05
  16  0.000251101
  17  16.8675
  18  9.83962
  19  1.99534e-05
  20  4.00186e-05
  21  0.165595
  22  0.122682
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  4.146e+01  2.133e+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.866e-01  1.227e-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.116e+00  1.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.72
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.42e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 9.47e-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) = 13667.3912127
delta logL = 0.688484911714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13667.3410651
delta logL = 0.738632577715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.167       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0004       1.0000          .0000       10.000    
     3 'Normalizat'    1.0769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0060       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=   13667.34     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      278 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.165        26.603        .83221E-04   -.77075E-03
   2  Index         3.0005        .73595        .52558E-02   -.29085E-03
   3  Normalizat    1.0769        .16675        .27388E-03   -.52880E-03
   4  Prefactor     1.0060        .12413        .21330E-03   -.63948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.1653
  Index      = 3.00046
  Normalizat = 1.07691
  Prefactor  = 1.006
 **********
 **   18 **HESSE 
 **********

 FCN=   13667.34     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.165        21.119        .33288E-05   -1.4745    
   2  Index         3.0005        .58441        .21023E-03   -.41142    
   3  Normalizat    1.0769        .16596        .54776E-04   -.90497    
   4  Prefactor     1.0060        .12363        .42660E-04   -.92530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67174e-10
Minuit parameter uncertainties:
  1  21.1257
  2  0.586011
  3  0.166042
  4  0.123669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428064': 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) = 13667.3410651
delta logL = 0.738632591421

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.317e+01  2.113e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  3.000e+00  5.860e-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:  1.006e+00  1.237e-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.077e+00  1.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.29
Ra Dec: 214.029 13.347
Photon Index (Free Index): 3.00 +/- 0.59
Photon Flux (Free Index): 8.20e-08 +/- 3.93e-08
Energy Flux (Free Index): 1.64e-05 +/- 7.39e-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/428064/cmap_HighResolution_670809601_671414401_4FGL_J1416.1+1320_weekly_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.42e-08', energy_flux2='1.64e-05', photon_flux_error='2.78e-08', dlogl='7.39e-01', energy_flux='1.84e-05', photon_flux2='8.20e-08', job_status='DONE', time_completed='2022-04-12 01:39:51.542948', photon_index_error2='0.59', photon_index2='3.00', ts='5.72', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='7.39e-06', EG='1.12', time_epoch_completed='1649752791.54', return_code='0', job_id='428064', GAL2='1.01', EG2='1.08', return_code2='0', energy_flux_error='9.47e-06', photon_flux_error2='3.93e-08', ts2='7.29', photon_index='2.37' WHERE bin_id='714' AND source_name='4FGL J1416.1+1320' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 12 01:39:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 428064: <4FGL_J1416.1+1320_weekly_bin714> in cluster <slac> Done

Job <4FGL_J1416.1+1320_weekly_bin714> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Apr 12 01:25:37 2022
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 01:25:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 01:25:39 2022
Terminated at Tue Apr 12 01:39:52 2022
Results reported at Tue Apr 12 01:39:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_weekly_bin714 214.029 13.347 670809601 671414401 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 :                                   800.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            855 sec.

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

