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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin965
RA = 214.029, Dec = 13.347
tmin = 489456001, tmax = 489715201
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='283626', job_status='RUN', time_executed='2021-09-09 06:22:35.333411', time_epoch_executed='1631193755.33' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='965'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283626

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283626/ft1_4FGL_J1416.1+1320_daily_bin965.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283626/ft2_4FGL_J1416.1+1320_daily_bin965.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283626/ft1_4FGL_J1416.1+1320_daily_bin965.fits outfile=/scratch/kocevski/283626/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin965.fits ra=214.029 dec=13.347 rad=12.0 tmin=489456001.0 tmax=489715201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 7.66
user 4.87
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/283626/ft2_4FGL_J1416.1+1320_daily_bin965.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/283626/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin965.fits evtable="EVENTS" outfile="/scratch/kocevski/283626/ft1_filtered_4FGL_J1416.1+1320_daily_bin965.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 4.62
user 0.35
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283626/ft1_filtered_4FGL_J1416.1+1320_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/283626/ft2_4FGL_J1416.1+1320_daily_bin965.fits sctable="SC_DATA" expcube=/scratch/kocevski/283626/ltcube_489456001_489715201_4FGL_J1416.1+1320_daily_bin965.fits outfile=/scratch/kocevski/283626/expmap_489456001_489715201_4FGL_J1416.1+1320_daily_bin965.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/283626/ltcube_489456001_489715201_4FGL_J1416.1+1320_daily_bin965.fits
.....................!
real 205.01
user 184.93
sys 4.12

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/283626/ft1_filtered_4FGL_J1416.1+1320_daily_bin965.fits scfile=/scratch/kocevski/283626/ft2_4FGL_J1416.1+1320_daily_bin965.fits outfile=/scratch/kocevski/283626/cmap_489456001_489715201_4FGL_J1416.1+1320_daily_bin965.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.86
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17203E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5801       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.884       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10925E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3166       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .49068E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.592       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11036E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6837       1.0000         .10000E-03   10000.    
    11 'norm      '    9.3834       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14126E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12124E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11327E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3049       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91299       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=   5416.072     FROM MIGRAD    STATUS=CONVERGED    878 CALLS     2443 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.354        .18142E-02** at limit **
   2  Prefactor     1.5810        4.8268        .27078E-03   -.63313E-04
   3  Prefactor     12.880        8.1696        .55797E-03   -.46013E-03
   4  Prefactor     .10000E-03    46.470        .18142E-02** at limit **
   5  Prefactor     4.3361        14.920        .19389E-03   -.72119E-04
   6  Prefactor     .10001E-03    34.295        .11174    ** at limit **
   7  Prefactor     28.602        27.836        .74925E-04    .29437E-04
   8  Prefactor     .10000E-03    20.624        .18142E-02** at limit **
   9  norm          .10000E-03    11.117        .18142E-02** at limit **
  10  Prefactor     1.6904        8.6794        .16228E-02   -.32448E-03
  11  norm          9.3836        3.6961        .86285E-04    .41767E-04
  12  Prefactor     .10000E-03    4.9638        .15895E-02** at limit **
  13  norm          .10000E-03    1.2672        .80324E-03** at limit **
  14  Prefactor     .10000E-03    11.215        .18142E-02** at limit **
  15  norm          .10000E-03    7.5218        .18142E-02** at limit **
  16  Prefactor     .10000E-03    39.880        .18142E-02** at limit **
  17  Prefactor     .10009E-03    27.613        .10186    ** at limit **
  18  Prefactor     .10000E-03    13.706        .18142E-02** at limit **
  19  Prefactor     .10000E-03    44.927        .18142E-02** at limit **
  20  Prefactor     .10000E-03    35.008        .18142E-02** at limit **
  21  Normalizat    1.3049        .28622        .27654E-03   -.84893E-04
  22  Prefactor     .91292        .19823        .22920E-03    .36888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.58098
  Prefactor  = 12.88
  Prefactor  = 0.000100001
  Prefactor  = 4.33607
  Prefactor  = 0.000100006
  Prefactor  = 28.6022
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.69041
  norm       = 9.38362
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3049
  Prefactor  = 0.912923
 **********
 **   18 **HESSE 
 **********

 FCN=   5416.072     FROM HESSE     STATUS=OK           342 CALLS     2785 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5810        4.8258        .10831E-04   -1.5456    
   3  Prefactor     12.880        8.1689        .22319E-04   -1.4990    
   4  Prefactor     .10000E-03    46.496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3361        14.917        .77557E-05   -1.5291    
   6  Prefactor     .10001E-03    32.794        .11506       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.602        27.833        .14985E-04   -1.4638    
   8  Prefactor     .10000E-03    20.626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6904        8.6622        .64914E-04   -1.5448    
  11  norm          9.3836        3.6961        .34514E-05   -1.5095    
  12  Prefactor     .10000E-03    4.9658        .31790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2673        .16065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.215        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.5223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10009E-03    26.337        .10524       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.708        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    44.935        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.009        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3049        .28652        .11062E-04   -.83420    
  22  Prefactor     .91292        .19842        .45841E-04   -.95691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66891e-09
Minuit parameter uncertainties:
  1  0.000114106
  2  4.82698
  3  8.1696
  4  0.000385944
  5  14.9302
  6  0.000856495
  7  27.8453
  8  3.57584e-05
  9  6.13198e-06
  10  7.65468
  11  3.69622
  12  2.4283e-05
  13  3.53334e-06
  14  2.98933e-06
  15  4.6517e-06
  16  2.03571e-05
  17  0.00301965
  18  2.06951e-05
  19  0.000205515
  20  0.000177518
  21  0.286871
  22  0.198582
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.860e+01  2.785e+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.129e-01  1.986e-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.305e+00  2.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.53
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.74e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.24e-05

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

Saving results to:
/scratch/kocevski/283626/likelihoodResults_489456001_489715201_4FGL_J1416.1+1320_daily_bin965.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) = 5415.70994114
delta logL = 0.36248273914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5415.69883534
delta logL = 0.373588538861

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.095       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7911       1.0000          .0000       10.000    
     3 'Normalizat'    1.3223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90565       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=   5415.699     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.108        34.382        .34827E-03   -.32643E-07
   2  Index         1.7917        .63466        .90414E-02   -.47605E-05
   3  Normalizat    1.3224        .27641        .27499E-03   -.20134E-04
   4  Prefactor     .90559        .19664        .23001E-03    .21995E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.1084
  Index      = 1.79169
  Normalizat = 1.32244
  Prefactor  = 0.905594
 **********
 **   18 **HESSE 
 **********

 FCN=   5415.699     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.108        34.728        .13931E-04   -1.4557    
   2  Index         1.7917        .64113        .36166E-03   -.69666    
   3  Normalizat    1.3224        .27673        .11000E-04   -.82899    
   4  Prefactor     .90559        .19687        .92004E-05   -.95946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.37903e-12
Minuit parameter uncertainties:
  1  34.7496
  2  0.644156
  3  0.277045
  4  0.197025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283626': 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) = 5415.69883478
delta logL = 0.373589101232

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.311e+01  3.475e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.792e+00  6.442e-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.056e-01  1.970e-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.322e+00  2.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.28
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.79 +/- 0.64
Photon Flux (Free Index): 2.09e-08 +/- 2.88e-08
Energy Flux (Free Index): 2.57e-05 +/- 3.62e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/283626/cmap_HighResolution_489456001_489715201_4FGL_J1416.1+1320_daily_bin965.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='3.74e-08', energy_flux2='2.57e-05', photon_flux_error='3.64e-08', dlogl='3.74e-01', energy_flux='1.27e-05', photon_flux2='2.09e-08', job_status='DONE', time_completed='2021-09-09 06:32:10.038603', photon_index_error2='0.64', photon_index2='1.79', ts='2.53', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='3.62e-05', EG='1.30', time_epoch_completed='1631194330.04', return_code='0', job_id='283626', GAL2='0.91', EG2='1.32', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='2.88e-08', ts2='3.28', photon_index='2.37' WHERE bin_id='965' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:32:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 283626: <4FGL_J1416.1+1320_daily_bin965> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin965> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:21:19 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:21:21 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:21 2021
Terminated at Thu Sep  9 06:32:10 2021
Results reported at Thu Sep  9 06:32:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin965 214.029 13.347 489456001 489715201 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 :                                   529.40 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            651 sec.

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

