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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin852
RA = 198.688, Dec = 23.8124
tmin = 460166401, tmax = 460425601
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='380032', job_status='RUN', time_executed='2021-09-07 06:29:13.559576', time_epoch_executed='1631021353.56' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='852'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380032

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380032/ft1_4FGL_J1314.7+2348_daily_bin852.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380032/ft2_4FGL_J1314.7+2348_daily_bin852.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380032/ft1_4FGL_J1314.7+2348_daily_bin852.fits outfile=/scratch/kocevski/380032/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin852.fits ra=198.688 dec=23.8124 rad=12.0 tmin=460166401.0 tmax=460425601.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 3.47
user 3.18
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/380032/ft2_4FGL_J1314.7+2348_daily_bin852.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380032/ft2_4FGL_J1314.7+2348_daily_bin852.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/380032/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin852.fits evtable="EVENTS" outfile="/scratch/kocevski/380032/ft1_filtered_4FGL_J1314.7+2348_daily_bin852.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.58
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380032/ft1_filtered_4FGL_J1314.7+2348_daily_bin852.fits" evtable="EVENTS" scfile=/scratch/kocevski/380032/ft2_4FGL_J1314.7+2348_daily_bin852.fits sctable="SC_DATA" outfile=/scratch/kocevski/380032/ltcube_460166401_460425601_4FGL_J1314.7+2348_daily_bin852.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/380032/ft2_4FGL_J1314.7+2348_daily_bin852.fits
.....................!
real 17.15
user 16.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380032/ft1_filtered_4FGL_J1314.7+2348_daily_bin852.fits evtable="EVENTS" scfile=/scratch/kocevski/380032/ft2_4FGL_J1314.7+2348_daily_bin852.fits sctable="SC_DATA" expcube=/scratch/kocevski/380032/ltcube_460166401_460425601_4FGL_J1314.7+2348_daily_bin852.fits outfile=/scratch/kocevski/380032/expmap_460166401_460425601_4FGL_J1314.7+2348_daily_bin852.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/380032/ltcube_460166401_460425601_4FGL_J1314.7+2348_daily_bin852.fits
.....................!
real 196.69
user 190.35
sys 5.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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1314.7+2348 @ 198.688 23.8124

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/380032/ft1_filtered_4FGL_J1314.7+2348_daily_bin852.fits scfile=/scratch/kocevski/380032/ft2_4FGL_J1314.7+2348_daily_bin852.fits outfile=/scratch/kocevski/380032/cmap_460166401_460425601_4FGL_J1314.7+2348_daily_bin852.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=198.688 yref=23.8124 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.62
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380032/ft1_filtered_4FGL_J1314.7+2348_daily_bin852.fits scfile=/scratch/kocevski/380032/ft2_4FGL_J1314.7+2348_daily_bin852.fits outfile=/scratch/kocevski/380032/cmap_HighResolution_460166401_460425601_4FGL_J1314.7+2348_daily_bin852.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=198.688 yref=23.8124 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.64
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/380032/ft1_filtered_4FGL_J1314.7+2348_daily_bin852.fits evtable="EVENTS" scfile=/scratch/kocevski/380032/ft2_4FGL_J1314.7+2348_daily_bin852.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/380032/Model_4FGL_J1314.7+2348_daily_bin852.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/380032/ft1_filtered_4FGL_J1314.7+2348_daily_bin852.fits.....................!
real 51.15
user 49.58
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/380032/ft1_filtered_4FGL_J1314.7+2348_daily_bin852.fits', '/scratch/kocevski/380032/ft2_4FGL_J1314.7+2348_daily_bin852.fits', expMap='/scratch/kocevski/380032/expmap_460166401_460425601_4FGL_J1314.7+2348_daily_bin852.fits', expCube='/scratch/kocevski/380032/ltcube_460166401_460425601_4FGL_J1314.7+2348_daily_bin852.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/380032/Model_4FGL_J1314.7+2348_daily_bin852.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1314.7+2348'

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  9.277e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  1.896e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.683e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.210e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/380032/ft1_filtered_4FGL_J1314.7+2348_daily_bin852.fits
Spacecraft file(s): /scratch/kocevski/380032/ft2_4FGL_J1314.7+2348_daily_bin852.fits
Exposure map: /scratch/kocevski/380032/expmap_460166401_460425601_4FGL_J1314.7+2348_daily_bin852.fits
Exposure cube: /scratch/kocevski/380032/ltcube_460166401_460425601_4FGL_J1314.7+2348_daily_bin852.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/380032/Model_4FGL_J1314.7+2348_daily_bin852.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) = 5831.67706506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2524       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1751       1.0000         .10000E-03   10000.    
     3 'norm      '    23.671       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.233       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.656       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10644E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0276       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .33644       1.0000         .10000E-03   10000.    
    11 'norm      '    10.018       1.0000         .10000E-03   10000.    
    12 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    27.305       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.975       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .91637       1.0000         .10000E-03   10000.    
    16 'norm      '    16.228       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.052       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.9798       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5465       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0442       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75787       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5831.562     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2493 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2524        4.3828        .72658E-07    .14690E-04
   2  norm          1.1750        .34874       -.74083E-08   -.16203E-03
   3  norm          23.670        6.6549       -.12340E-07   -.22277E-04
   4  Prefactor     11.233        9.4599       -.20302E-08   -.18089E-05
   5  Prefactor     17.600        73.201       -.43839E-06   -.17663E-04
   6  Prefactor     .10000E-03    3.5265        .97020E-07** at limit **
   7  norm          .10000E-03    4.2262       -.25661E-05** at limit **
   8  Prefactor     8.0273        8.2325       -.38945E-08   -.47096E-05
   9  Prefactor     .10000E-03    21.503       -.12888E-05** at limit **
  10  norm          .33198        3.3788        .10900E-05   -.39773E-03
  11  norm          10.018        4.4425       -.70708E-07    .65156E-04
  12  norm          .10000E-03    3.1055       -.20997E-06** at limit **
  13  norm          27.304        22.758       -.32746E-06   -.83836E-04
  14  Prefactor     14.976        5.4715       -.23481E-06   -.85643E-04
  15  Prefactor     .91065        15.539       -.11901E-06    .64735E-04
  16  norm          16.225        10.942       -.20157E-06   -.10941E-03
  17  Prefactor     12.053        26.921        .44756E-06    .55533E-06
  18  Prefactor     .10000E-03    19.965        .82695E-07** at limit **
  19  norm          6.9809        11.814        .28774E-06   -.11344E-04
  20  Prefactor     1.5518        39.842        .23341E-05    .24898E-04
  21  Prefactor     .10000E-03    15.212        .26278E-06** at limit **
  22  Prefactor     .10000E-03    .95172        .61911E-07** at limit **
  23  Prefactor     .10000E-03    9.9959        .35504E-06** at limit **
  24  Normalizat    1.0443        .18462        .13610E-05   -.16302E-03
  25  Prefactor     .75776        .17779       -.22162E-05   -.55627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.25242
  norm       = 1.17504
  norm       = 23.6705
  Prefactor  = 11.2326
  Prefactor  = 17.6001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.02727
  Prefactor  = 0.0001
  norm       = 0.331977
  norm       = 10.0179
  norm       = 0.0001
  norm       = 27.3041
  Prefactor  = 14.9764
  Prefactor  = 0.910651
  norm       = 16.2255
  Prefactor  = 12.0529
  Prefactor  = 0.0001
  norm       = 6.98092
  Prefactor  = 1.55184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04434
  Prefactor  = 0.757757
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.562     FROM HESSE     STATUS=OK           435 CALLS     2928 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2524        4.3717        .17870E-03   -1.5347    
   2  norm          1.1750        .34936        .23778E-04   -1.5491    
   3  norm          23.670        6.6502        .82331E-04   -1.4735    
   4  Prefactor     11.233        9.4606        .11953E-03   -1.5038    
   5  Prefactor     17.600        73.745        .95319E-04   -1.4869    
   6  Prefactor     .10000E-03    3.5776        .14001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.3795        .30794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.0273        8.2359        .14151E-03   -1.5141    
   9  Prefactor     .10000E-03    21.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .33198        6.3785        .24612E-02   -1.5593    
  11  norm          10.018        4.4091        .98689E-04   -1.5075    
  12  norm          .10000E-03    3.1126        .13105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          27.304        22.683        .76666E-04   -1.4662    
  14  Prefactor     14.976        5.4329        .88099E-04   -1.4934    
  15  Prefactor     .91065        53.972        .47962E-02   -1.5517    
  16  norm          16.225        10.888        .99424E-04   -1.4902    
  17  Prefactor     12.053        26.959        .11539E-03   -1.5013    
  18  Prefactor     .10000E-03    19.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.9809        11.733        .15185E-03   -1.5179    
  20  Prefactor     1.5518        40.088        .34264E-03   -1.5459    
  21  Prefactor     .10000E-03    15.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .95412        .72739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.337        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0443        .20995        .23060E-03   -.91559    
  25  Prefactor     .75776        .20108        .27414E-03   -1.0130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99062e-10
Minuit parameter uncertainties:
  1  4.37211
  2  0.34936
  3  6.65037
  4  9.46185
  5  72.2057
  6  4.7562e-07
  7  5.45901e-05
  8  8.23703
  9  6.64069e-05
  10  2.91025
  11  4.40921
  12  4.37489e-07
  13  22.6899
  14  5.43303
  15  14.0339
  16  10.8894
  17  26.9863
  18  3.1966e-05
  19  11.7365
  20  15.786
  21  1.51226e-06
  22  3.29939e-07
  23  2.3065e-05
  24  0.210114
  25  0.201277
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  2.730e+01  2.269e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  1.896e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.683e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.210e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  7.578e-01  2.013e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.044e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.05
Ra Dec: 198.688 23.812
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 2.60e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.68e-05

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) = 5830.79261023
delta logL = 0.768960831527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5830.78701051
delta logL = 0.774560550391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.321       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8086       1.0000          .0000       5.0000    
     3 'Normalizat'    .98071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79259       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+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=   5830.787     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      267 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.323        21.032        .91118E-04    .15496E-03
   2  alpha         2.8086        .75136        .89942E-02    .32481E-04
   3  Normalizat    .98071        .20033        .23660E-03    .21309E-03
   4  Prefactor     .79259        .19996        .26806E-03    .26953E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.3231
  alpha      = 2.80864
  Normalizat = 0.980706
  Prefactor  = 0.792594
 **********
 **   18 **HESSE 
 **********

 FCN=   5830.787     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.323        18.550        .36447E-05   -1.4829    
   2  alpha         2.8086        .66383        .35977E-03    .12377    
   3  Normalizat    .98071        .19919        .47319E-04   -.93680    
   4  Prefactor     .79259        .19940        .53612E-04   -1.0000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11999e-10
Minuit parameter uncertainties:
  1  18.5558
  2  0.672023
  3  0.199341
  4  0.199577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380032': 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) = 5830.7870105
delta logL = 0.774560559594

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.932e+01  1.856e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  2.809e+00  6.720e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  9.683e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.210e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  7.926e-01  1.996e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  9.807e-01  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.65
Ra Dec: 198.688 23.812
Photon Index (Free Index): 2.81 +/- 0.67
Photon Flux (Free Index): 8.03e-08 +/- 5.85e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.12e-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/380032/cmap_HighResolution_460166401_460425601_4FGL_J1314.7+2348_daily_bin852.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.60e-08', energy_flux2='2.00e-05', photon_flux_error='2.16e-08', dlogl='7.75e-01', energy_flux='2.03e-05', photon_flux2='8.03e-08', job_status='DONE', time_completed='2021-09-07 06:39:16.765490', photon_index_error2='0.67', photon_index2='2.81', ts='6.05', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.12e-05', EG='1.04', time_epoch_completed='1631021956.77', return_code='0', job_id='380032', GAL2='0.79', EG2='0.98', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='5.85e-08', ts2='7.65', photon_index='1.90' WHERE bin_id='852' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:39:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 380032: <4FGL_J1314.7+2348_daily_bin852> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin852> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 06:25:48 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:29:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 06:29:00 2021
Terminated at Tue Sep  7 06:39:17 2021
Results reported at Tue Sep  7 06:39:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin852 198.688 23.8124 460166401 460425601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1314.7+2348 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   598.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             380.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            809 sec.

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

