/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 74 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 = 7423
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin374
RA = 214.029, Dec = 13.347
tmin = 336268801, tmax = 336528001
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='278308', job_status='RUN', time_executed='2021-09-09 06:09:57.487706', time_epoch_executed='1631192997.49' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='374'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278308

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278308/ft1_4FGL_J1416.1+1320_daily_bin374.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278308/ft2_4FGL_J1416.1+1320_daily_bin374.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278308/ft1_4FGL_J1416.1+1320_daily_bin374.fits outfile=/scratch/kocevski/278308/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin374.fits ra=214.029 dec=13.347 rad=12.0 tmin=336268801.0 tmax=336528001.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.43
user 6.74
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278308/ft1_filtered_4FGL_J1416.1+1320_daily_bin374.fits" evtable="EVENTS" scfile=/scratch/kocevski/278308/ft2_4FGL_J1416.1+1320_daily_bin374.fits sctable="SC_DATA" outfile=/scratch/kocevski/278308/ltcube_336268801_336528001_4FGL_J1416.1+1320_daily_bin374.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/278308/ft2_4FGL_J1416.1+1320_daily_bin374.fits
.....................!
real 11.40
user 10.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278308/ft1_filtered_4FGL_J1416.1+1320_daily_bin374.fits evtable="EVENTS" scfile=/scratch/kocevski/278308/ft2_4FGL_J1416.1+1320_daily_bin374.fits sctable="SC_DATA" expcube=/scratch/kocevski/278308/ltcube_336268801_336528001_4FGL_J1416.1+1320_daily_bin374.fits outfile=/scratch/kocevski/278308/expmap_336268801_336528001_4FGL_J1416.1+1320_daily_bin374.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/278308/ltcube_336268801_336528001_4FGL_J1416.1+1320_daily_bin374.fits
.....................!
real 190.74
user 185.49
sys 4.51

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/278308/ft1_filtered_4FGL_J1416.1+1320_daily_bin374.fits scfile=/scratch/kocevski/278308/ft2_4FGL_J1416.1+1320_daily_bin374.fits outfile=/scratch/kocevski/278308/cmap_336268801_336528001_4FGL_J1416.1+1320_daily_bin374.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.90
user 0.37
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278308/ft1_filtered_4FGL_J1416.1+1320_daily_bin374.fits scfile=/scratch/kocevski/278308/ft2_4FGL_J1416.1+1320_daily_bin374.fits outfile=/scratch/kocevski/278308/cmap_HighResolution_336268801_336528001_4FGL_J1416.1+1320_daily_bin374.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 1.05
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13242E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.261       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.902       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.207       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    20.182       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5351       1.0000         .10000E-03   10000.    
    11 'norm      '    7.7140       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18953E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6049       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8060       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1916       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88028       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=   5673.593     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2034 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.404        .86682E-05** at limit **
   2  Prefactor     .10006E-03    2.3599       -.18728E-05** at limit **
   3  Prefactor     .10000E-03    3.4452       -.43075E-07** at limit **
   4  Prefactor     11.258        16.820       -.17736E-05   -.12862E-04
   5  Prefactor     31.901        14.863       -.60618E-06   -.23486E-04
   6  Prefactor     .10000E-03    13.072       -.33304E-05** at limit **
   7  Prefactor     30.206        23.052       -.92508E-06   -.29182E-04
   8  Prefactor     .10000E-03    16.769       -.32858E-05** at limit **
   9  norm          20.181        18.170       -.24382E-06    .61763E-05
  10  Prefactor     3.5358        5.4442        .81082E-06   -.35133E-03
  11  norm          7.7140        3.4020       -.48559E-07   -.23379E-04
  12  Prefactor     .10002E-03    6.3170        .11148E-05** at limit **
  13  norm          2.6053        2.9798       -.32416E-06   -.48670E-03
  14  Prefactor     .10000E-03    22.838        .11310E-04** at limit **
  15  norm          .10000E-03    7.1307        .15012E-05** at limit **
  16  Prefactor     .10000E-03    30.211       -.17533E-04** at limit **
  17  Prefactor     .10000E-03    9.8146        .78813E-05** at limit **
  18  Prefactor     9.8032        14.944       -.10679E-05   -.68115E-05
  19  Prefactor     .10000E-03    8.8726        .15125E-05** at limit **
  20  Prefactor     .10000E-03    14.227       -.61348E-05** at limit **
  21  Normalizat    1.1918        .21702        .82676E-06    .11302E-03
  22  Prefactor     .88011        .15450       -.18200E-06    .16682E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  Prefactor  = 11.2582
  Prefactor  = 31.9007
  Prefactor  = 0.0001
  Prefactor  = 30.2061
  Prefactor  = 0.0001
  norm       = 20.1813
  Prefactor  = 3.53579
  norm       = 7.71401
  Prefactor  = 0.000100021
  norm       = 2.60527
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.80324
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19178
  Prefactor  = 0.880107
 **********
 **   18 **HESSE 
 **********

 FCN=   5673.593     FROM HESSE     STATUS=OK           344 CALLS     2378 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10006E-03    8.0806        .21561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5061        .13648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.258        16.863        .11939E-03   -1.5037    
   5  Prefactor     31.901        14.947        .70941E-04   -1.4578    
   6  Prefactor     .10000E-03    13.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.206        23.041        .72899E-04   -1.4608    
   8  Prefactor     .10000E-03    16.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          20.181        18.173        .89157E-04   -1.4809    
  10  Prefactor     3.5358        5.3334        .20696E-03   -1.5332    
  11  norm          7.7140        3.4020        .89501E-04   -1.5152    
  12  Prefactor     .10002E-03    19.012        .34763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6053        2.9570        .13255E-03   -1.5385    
  14  Prefactor     .10000E-03    23.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.1856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.8627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.8032        14.937        .12797E-03   -1.5082    
  19  Prefactor     .10000E-03    8.8830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1918        .26167        .26213E-03   -.86857    
  22  Prefactor     .88011        .18829        .22196E-03   -.96840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0282e-09
Minuit parameter uncertainties:
  1  5.2788e-06
  2  0.00142875
  3  6.34451e-06
  4  16.8702
  5  14.9486
  6  3.27246e-06
  7  23.0474
  8  5.36967e-06
  9  18.1778
  10  5.33409
  11  3.40211
  12  0.00125592
  13  2.95715
  14  0.000131683
  15  2.88223e-05
  16  0.000109802
  17  8.64038e-06
  18  14.9425
  19  6.99932e-06
  20  4.4827e-06
  21  0.261955
  22  0.188424
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.021e+01  2.305e+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:  8.801e-01  1.884e-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.192e+00  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.54
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.95e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.02e-05

TS (Fixed Index): 3.54
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278308/likelihoodResults_336268801_336528001_4FGL_J1416.1+1320_daily_bin374.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) = 5673.47207643
delta logL = 0.121009744586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5673.46722426
delta logL = 0.125861914051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.746       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0834       1.0000          .0000       10.000    
     3 'Normalizat'    1.2006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87533       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=   5673.467     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      302 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.752        30.506        .65236E-04    .12722E-04
   2  Index         2.0833        .55201        .76793E-02    .12316E-03
   3  Normalizat    1.2006        .25172        .26129E-03   -.40899E-05
   4  Prefactor     .87535        .18693        .22247E-03   -.88919E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.7518
  Index      = 2.08331
  Normalizat = 1.20064
  Prefactor  = 0.875349
 **********
 **   18 **HESSE 
 **********

 FCN=   5673.467     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .92E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.752        30.210        .26094E-05   -1.4478    
   2  Index         2.0833        .54674        .15359E-02   -.62283    
   3  Normalizat    1.2006        .25200        .10452E-04   -.86583    
   4  Prefactor     .87535        .18714        .88987E-05   -.97008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17972e-13
Minuit parameter uncertainties:
  1  30.2227
  2  0.548409
  3  0.252256
  4  0.187282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278308': 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) = 5673.4672242
delta logL = 0.125861972433

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.775e+01  3.022e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.083e+00  5.484e-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:  8.753e-01  1.873e-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.201e+00  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.78
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.08 +/- 0.55
Photon Flux (Free Index): 3.32e-08 +/- 2.87e-08
Energy Flux (Free Index): 1.89e-05 +/- 2.05e-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/278308/cmap_HighResolution_336268801_336528001_4FGL_J1416.1+1320_daily_bin374.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-03', comment='SUCCESS', photon_flux='3.95e-08', energy_flux2='1.89e-05', photon_flux_error='3.01e-08', dlogl='1.26e-01', energy_flux='1.34e-05', photon_flux2='3.32e-08', job_status='DONE', time_completed='2021-09-09 06:19:23.789562', photon_index_error2='0.55', photon_index2='2.08', ts='3.54', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='2.05e-05', EG='1.19', time_epoch_completed='1631193563.79', return_code='0', job_id='278308', GAL2='0.88', EG2='1.20', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='2.87e-08', ts2='3.78', photon_index='2.37' WHERE bin_id='374' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:19:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 278308: <4FGL_J1416.1+1320_daily_bin374> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin374 214.029 13.347 336268801 336528001 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 :                                   542.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            762 sec.

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

