/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 36 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 = 7645
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin1059
RA = 214.029, Dec = 13.347
tmin = 513820801, tmax = 514080001
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='283764', job_status='RUN', time_executed='2021-09-09 06:24:30.678354', time_epoch_executed='1631193870.68' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283764

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283764/ft1_4FGL_J1416.1+1320_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283764/ft2_4FGL_J1416.1+1320_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283764/ft1_4FGL_J1416.1+1320_daily_bin1059.fits outfile=/scratch/kocevski/283764/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin1059.fits ra=214.029 dec=13.347 rad=12.0 tmin=513820801.0 tmax=514080001.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 5.18
user 3.49
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283764/ft1_filtered_4FGL_J1416.1+1320_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/283764/ft2_4FGL_J1416.1+1320_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/283764/ltcube_513820801_514080001_4FGL_J1416.1+1320_daily_bin1059.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/283764/ft2_4FGL_J1416.1+1320_daily_bin1059.fits
.....................!
real 13.30
user 11.38
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283764/ft1_filtered_4FGL_J1416.1+1320_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/283764/ft2_4FGL_J1416.1+1320_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/283764/ltcube_513820801_514080001_4FGL_J1416.1+1320_daily_bin1059.fits outfile=/scratch/kocevski/283764/expmap_513820801_514080001_4FGL_J1416.1+1320_daily_bin1059.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/283764/ltcube_513820801_514080001_4FGL_J1416.1+1320_daily_bin1059.fits
.....................!
real 193.06
user 184.90
sys 5.01

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/283764/ft1_filtered_4FGL_J1416.1+1320_daily_bin1059.fits scfile=/scratch/kocevski/283764/ft2_4FGL_J1416.1+1320_daily_bin1059.fits outfile=/scratch/kocevski/283764/cmap_513820801_514080001_4FGL_J1416.1+1320_daily_bin1059.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 1.09
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283764/ft1_filtered_4FGL_J1416.1+1320_daily_bin1059.fits scfile=/scratch/kocevski/283764/ft2_4FGL_J1416.1+1320_daily_bin1059.fits outfile=/scratch/kocevski/283764/cmap_HighResolution_513820801_514080001_4FGL_J1416.1+1320_daily_bin1059.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.68
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2596       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6202       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .98589E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.649       1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.792       1.0000         .10000E-03   10000.    
     9 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.599       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8094       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11983E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.0084       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11742       1.0000         .10000E-03   10000.    
    15 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.884       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.072       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82953       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2222       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=   7200.057     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2497 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.827        .13015E-07** at limit **
   2  Prefactor     1.2703        4.9666        .27394E-05   -.63608E-04
   3  Prefactor     1.6235        4.1036        .83810E-06   -.54129E-04
   4  Prefactor     .10000E-03    5.3800       -.51343E-07** at limit **
   5  Prefactor     .37339        9.0987        .38908E-06    .33067E-04
   6  Prefactor     .10000E-03    8.4393        .28543E-07** at limit **
   7  Prefactor     58.676        41.562       -.16597E-06   -.14746E-03
   8  Prefactor     40.832        26.418        .51218E-07   -.44441E-04
   9  norm          .10000E-03    12.778       -.10343E-07** at limit **
  10  Prefactor     20.605        10.932        .14230E-06   -.98952E-05
  11  norm          4.8102        2.5578        .33587E-07   -.19928E-04
  12  Prefactor     .10000E-03    13.875        .96357E-07** at limit **
  13  norm          7.0132        4.5216        .23933E-06   -.41041E-04
  14  Prefactor     .19704E-03    24.270       -.49678E-06** at limit **
  15  norm          .10000E-03    11.752        .19548E-06** at limit **
  16  Prefactor     28.927        32.617        .44396E-06   -.57133E-05
  17  Prefactor     45.112        29.563        .33535E-06    .71747E-04
  18  Prefactor     .10000E-03    13.768        .35070E-06** at limit **
  19  Prefactor     .10000E-03    11.318        .88761E-07** at limit **
  20  Prefactor     .10000E-03    13.103        .29820E-07** at limit **
  21  Normalizat    .82841        .22840       -.34467E-06   -.12708E-03
  22  Prefactor     1.2223        .16068       -.11896E-05   -.91196E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.27034
  Prefactor  = 1.62353
  Prefactor  = 0.0001
  Prefactor  = 0.373385
  Prefactor  = 0.0001
  Prefactor  = 58.6756
  Prefactor  = 40.8323
  norm       = 0.0001
  Prefactor  = 20.6052
  norm       = 4.81017
  Prefactor  = 0.0001
  norm       = 7.01316
  Prefactor  = 0.000197043
  norm       = 0.0001
  Prefactor  = 28.9267
  Prefactor  = 45.1123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.828412
  Prefactor  = 1.22232
 **********
 **   18 **HESSE 
 **********

 FCN=   7200.057     FROM HESSE     STATUS=OK           350 CALLS     2847 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2703        5.0177        .34420E-03   -1.5483    
   3  Prefactor     1.6235        4.0661        .26175E-03   -1.5453    
   4  Prefactor     .10000E-03    5.3897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .37339        100.68        .47324E-02   -1.5586    
   6  Prefactor     .10000E-03    8.4504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     58.676        41.710        .52387E-04   -1.4174    
   8  Prefactor     40.832        26.491        .62761E-04   -1.4429    
   9  norm          .10000E-03    12.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.605        10.921        .88249E-04   -1.4800    
  11  norm          4.8102        2.5572        .96261E-04   -1.5269    
  12  Prefactor     .10000E-03    14.248        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.0132        4.5250        .13461E-03   -1.5178    
  14  Prefactor     .19704E-03    26.397        .12785       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.927        32.676        .74546E-04   -1.4632    
  17  Prefactor     45.112        29.590        .59719E-04   -1.4364    
  18  Prefactor     .10000E-03    13.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .82841        .26457        .34330E-03   -.99023    
  22  Prefactor     1.2223        .18479        .21322E-03   -.85647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83834e-10
Minuit parameter uncertainties:
  1  2.88395e-07
  2  5.01934
  3  4.06677
  4  2.51031e-06
  5  12.282
  6  3.59176e-06
  7  41.7309
  8  26.4991
  9  1.84004e-05
  10  10.9224
  11  2.55723
  12  2.73976e-05
  13  4.52527
  14  0.10127
  15  1.51228e-05
  16  32.6964
  17  29.6001
  18  2.07469e-05
  19  3.96545e-06
  20  6.78184e-06
  21  0.264979
  22  0.184884
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  5.868e+01  4.173e+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:  1.222e+00  1.849e-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:  8.284e-01  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.96
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 7.67e-08 +/- 5.45e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 1.85e-05

TS (Fixed Index): 2.96
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 1.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/283764/likelihoodResults_513820801_514080001_4FGL_J1416.1+1320_daily_bin1059.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): 0
logL (Free Index) = 7199.07059952
delta logL = 0.986675318318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7199.06114042
delta logL = 0.996134416873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.573       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2435       1.0000          .0000       10.000    
     3 'Normalizat'    .74936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2603       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=   7199.061     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      302 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.571        40.640        .77714E-04   -.18008E-03
   2  Index         3.2440        .92083        .46005E-02   -.10096E-03
   3  Normalizat    .74896        .25850        .35921E-03   -.21221E-03
   4  Prefactor     1.2605        .18759        .21030E-03   -.39103E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5709
  Index      = 3.24399
  Normalizat = 0.748958
  Prefactor  = 1.26048
 **********
 **   18 **HESSE 
 **********

 FCN=   7199.061     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.571        31.608        .31085E-05   -1.4677    
   2  Index         3.2440        .71665        .18402E-03   -.35885    
   3  Normalizat    .74896        .25742        .14368E-04   -1.0199    
   4  Prefactor     1.2605        .18670        .42059E-04   -.84490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90839e-10
Minuit parameter uncertainties:
  1  31.6283
  2  0.719475
  3  0.257836
  4  0.186794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283764': 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) = 7199.06113881
delta logL = 0.996136026627

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.657e+01  3.163e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  3.244e+00  7.195e-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.260e+00  1.868e-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:  7.490e-01  2.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.17
Ra Dec: 214.029 13.347
Photon Index (Free Index): 3.24 +/- 0.72
Photon Flux (Free Index): 1.43e-07 +/- 8.17e-08
Energy Flux (Free Index): 2.57e-05 +/- 1.40e-05

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/283764/cmap_HighResolution_513820801_514080001_4FGL_J1416.1+1320_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', photon_flux='7.67e-08', energy_flux2='2.57e-05', photon_flux_error='5.45e-08', dlogl='9.96e-01', energy_flux='2.61e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-09 06:35:06.994583', photon_index_error2='0.72', photon_index2='3.24', ts='2.96', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.40e-05', EG='0.83', time_epoch_completed='1631194506.99', return_code='0', job_id='283764', GAL2='1.26', EG2='0.75', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='8.17e-08', ts2='5.17', photon_index='2.37' WHERE bin_id='1059' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:35:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 283764: <4FGL_J1416.1+1320_daily_bin1059> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin1059> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:21:29 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:21:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 06:21:30 2021
Terminated at Thu Sep  9 06:35:07 2021
Results reported at Thu Sep  9 06:35:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin1059 214.029 13.347 513820801 514080001 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 :                                   607.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            818 sec.

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

