/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 122 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 = 7445
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin112
RA = 214.029, Dec = 13.347
tmin = 268358401, tmax = 268617601
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='437099', job_status='RUN', time_executed='2021-09-09 14:28:12.618420', time_epoch_executed='1631222892.62' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='112'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437099/ft1_4FGL_J1416.1+1320_daily_bin112.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437099/ft2_4FGL_J1416.1+1320_daily_bin112.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437099/ft1_4FGL_J1416.1+1320_daily_bin112.fits outfile=/scratch/kocevski/437099/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin112.fits ra=214.029 dec=13.347 rad=12.0 tmin=268358401.0 tmax=268617601.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 1.45
user 1.27
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437099/ft1_filtered_4FGL_J1416.1+1320_daily_bin112.fits" evtable="EVENTS" scfile=/scratch/kocevski/437099/ft2_4FGL_J1416.1+1320_daily_bin112.fits sctable="SC_DATA" outfile=/scratch/kocevski/437099/ltcube_268358401_268617601_4FGL_J1416.1+1320_daily_bin112.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/437099/ft2_4FGL_J1416.1+1320_daily_bin112.fits
.....................!
real 17.30
user 16.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437099/ft1_filtered_4FGL_J1416.1+1320_daily_bin112.fits evtable="EVENTS" scfile=/scratch/kocevski/437099/ft2_4FGL_J1416.1+1320_daily_bin112.fits sctable="SC_DATA" expcube=/scratch/kocevski/437099/ltcube_268358401_268617601_4FGL_J1416.1+1320_daily_bin112.fits outfile=/scratch/kocevski/437099/expmap_268358401_268617601_4FGL_J1416.1+1320_daily_bin112.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/437099/ltcube_268358401_268617601_4FGL_J1416.1+1320_daily_bin112.fits
.....................!
real 192.29
user 187.05
sys 4.84

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/437099/ft1_filtered_4FGL_J1416.1+1320_daily_bin112.fits scfile=/scratch/kocevski/437099/ft2_4FGL_J1416.1+1320_daily_bin112.fits outfile=/scratch/kocevski/437099/cmap_268358401_268617601_4FGL_J1416.1+1320_daily_bin112.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437099/ft1_filtered_4FGL_J1416.1+1320_daily_bin112.fits scfile=/scratch/kocevski/437099/ft2_4FGL_J1416.1+1320_daily_bin112.fits outfile=/scratch/kocevski/437099/cmap_HighResolution_268358401_268617601_4FGL_J1416.1+1320_daily_bin112.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.568       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .65074       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33447E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20617E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11728E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.560       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4446       1.0000         .10000E-03   10000.    
     9 'norm      '    .10665E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2202       1.0000         .10000E-03   10000.    
    11 'norm      '    15.400       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10747E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.488       1.0000         .10000E-03   10000.    
    15 'norm      '    .30578E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2364       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8787       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11317E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .58342E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0860       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0118       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=   8745.279     FROM MIGRAD    STATUS=CONVERGED    897 CALLS     2847 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.446        38.364        .59394E-04    .65079E-05
   2  Prefactor     .10000E-03    1.6501        .11625E-02** at limit **
   3  Prefactor     .65699        7.2119        .26216E-02   -.24806E-03
   4  Prefactor     .10004E-03    75.494        .55164E-02** at limit **
   5  Prefactor     .10002E-03    38.008        .42533E-02** at limit **
   6  Prefactor     .10000E-03    13.718        .18142E-02** at limit **
   7  Prefactor     10.562        27.004        .12329E-03    .33748E-04
   8  Prefactor     2.4385        33.041        .13083E-02   -.37783E-04
   9  norm          .10000E-03    9.8681        .18142E-02** at limit **
  10  Prefactor     2.2183        6.3862        .27598E-03    .76950E-04
  11  norm          15.398        3.7151        .85905E-04    .11117E-04
  12  Prefactor     .10000E-03    3.9308        .17907E-02** at limit **
  13  norm          .10000E-03    .69520        .75354E-03** at limit **
  14  Prefactor     31.497        24.695        .71405E-04    .19106E-06
  15  norm          .10000E-03    46.096        .54966E-02** at limit **
  16  Prefactor     7.2429        11.751        .14911E-03   -.70907E-04
  17  Prefactor     4.8735        19.711        .18211E-03   -.45697E-04
  18  Prefactor     .10000E-03    11.425        .18142E-02** at limit **
  19  Prefactor     .72867E-01    16.769        .10126        .11865E-03
  20  Prefactor     .10000E-03    17.364        .18142E-02** at limit **
  21  Normalizat    1.0860        .20851        .27782E-03   -.16213E-03
  22  Prefactor     1.0119        .15337        .21363E-03   -.27648E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.4463
  Prefactor  = 0.0001
  Prefactor  = 0.656991
  Prefactor  = 0.000100036
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 10.5623
  Prefactor  = 2.43846
  norm       = 0.0001
  Prefactor  = 2.21832
  norm       = 15.3978
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.4972
  norm       = 0.0001
  Prefactor  = 7.24291
  Prefactor  = 4.87348
  Prefactor  = 0.0001
  Prefactor  = 0.0728674
  Prefactor  = 0.0001
  Normalizat = 1.08602
  Prefactor  = 1.01187
 **********
 **   18 **HESSE 
 **********

 FCN=   8745.279     FROM HESSE     STATUS=OK           334 CALLS     3181 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.446        38.351        .11879E-04   -1.4359    
   2  Prefactor     .10000E-03    1.6506        .23251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .65699        7.1877        .10486E-03   -1.5546    
   4  Prefactor     .10004E-03    77.588        .22066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    38.676        .85067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.721        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.562        27.007        .49318E-05   -1.5058    
   8  Prefactor     2.4385        32.965        .52331E-04   -1.5396    
   9  norm          .10000E-03    9.8689        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2183        6.3830        .11039E-04   -1.5410    
  11  norm          15.398        3.7149        .34362E-05   -1.4923    
  12  Prefactor     .10000E-03    3.9336        .35814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .69530        .15071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.497        24.563        .14281E-04   -1.4585    
  15  norm          .10000E-03    46.268        .10993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.2429        11.749        .59644E-05   -1.5170    
  17  Prefactor     4.8735        19.699        .72844E-05   -1.5266    
  18  Prefactor     .10000E-03    11.427        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .72867E-01    15.889        .10508       -1.5654    
  20  Prefactor     .10000E-03    17.364        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0860        .20850        .11113E-04   -.90202    
  22  Prefactor     1.0119        .15347        .42725E-04   -.92335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43408e-09
Minuit parameter uncertainties:
  1  38.3721
  2  9.01546e-06
  3  4.34649
  4  0.00333344
  5  0.00158507
  6  4.41405e-05
  7  27.0387
  8  17.9431
  9  9.84543e-06
  10  6.38495
  11  3.71492
  12  1.9741e-05
  13  1.73182e-06
  14  24.5707
  15  0.00021528
  16  11.7527
  17  19.6074
  18  2.43132e-05
  19  2.15109
  20  1.54936e-05
  21  0.208659
  22  0.153537
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.056e+01  2.704e+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.012e+00  1.535e-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.086e+00  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 9.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437099/likelihoodResults_268358401_268617601_4FGL_J1416.1+1320_daily_bin112.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) = 8743.27109472
delta logL = 2.00837852939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8741.91595313
delta logL = 3.3635201233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23368       1.0000         .10000E-03   10000.    
     2 'Index     '    .12126E-06   1.0000          .0000       10.000    
     3 'Normalizat'    1.0826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0193       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.

 FCN=   8741.916     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      263 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23407        .28967        .10104E-01   -.11819E-02
   2  Index         .14211E-12    .32951        .50000    ** at limit **
   3  Normalizat    1.0825        .16785        .62817E-01    .16180E-04
   4  Prefactor     1.0194        .12585        .42210E-01    .74589E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.234067
  Index      = 1.42109e-13
  Normalizat = 1.08249
  Prefactor  = 1.01939
 **********
 **   18 **HESSE 
 **********

 FCN=   8741.916     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23407        .23920        .41286E-03   -1.5611    
   2  Index         .14211E-12    .86481        .25168E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0825        .20306        .27785E-03   -.90316    
   4  Prefactor     1.0194        .15239        .21290E-03   -.92086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05576e-12
Minuit parameter uncertainties:
  1  0.239199
  2  7.11215e-07
  3  0.203206
  4  0.152458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437099': 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) = 8741.91595154
delta logL = 3.36352170977

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.341e-01  2.392e-01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.421e-13  7.112e-07  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.019e+00  1.525e-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.082e+00  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.91
Ra Dec: 214.029 13.347
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 2.34e-09 +/- 2.39e-09
Energy Flux (Free Index): 1.17e-04 +/- 1.20e-04

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/437099/cmap_HighResolution_268358401_268617601_4FGL_J1416.1+1320_daily_bin112.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.06e-03', comment='SUCCESS', energy_flux2='1.17e-04', dlogl='3.36e+00', photon_flux2='2.34e-09', job_status='DONE', time_completed='2021-09-09 14:40:22.084646', photon_index_error2='0.00', photon_index2='0.00', ts='0.19', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='9.15e-08', energy_flux_error2='1.20e-04', EG='1.09', time_epoch_completed='1631223622.08', return_code='0', job_id='437099', GAL2='1.02', EG2='1.08', return_code2='0', photon_flux_error2='2.39e-09', ts2='6.91', photon_index='2.37' WHERE bin_id='112' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 14:40:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 437099: <4FGL_J1416.1+1320_daily_bin112> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin112> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 14:26:00 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 14:26:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 14:26:01 2021
Terminated at Thu Sep  9 14:40:22 2021
Results reported at Thu Sep  9 14:40:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin112 214.029 13.347 268358401 268617601 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 :                                   727.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            862 sec.

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

