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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin1478
RA = 198.688, Dec = 23.8124
tmin = 622425601, tmax = 622684801
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='384706', job_status='RUN', time_executed='2021-09-07 06:43:31.371661', time_epoch_executed='1631022211.37' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='1478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384706

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384706/ft1_4FGL_J1314.7+2348_daily_bin1478.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384706/ft2_4FGL_J1314.7+2348_daily_bin1478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384706/ft1_4FGL_J1314.7+2348_daily_bin1478.fits outfile=/scratch/kocevski/384706/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin1478.fits ra=198.688 dec=23.8124 rad=12.0 tmin=622425601.0 tmax=622684801.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 4.38
user 4.11
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384706/ft2_4FGL_J1314.7+2348_daily_bin1478.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/384706/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin1478.fits evtable="EVENTS" outfile="/scratch/kocevski/384706/ft1_filtered_4FGL_J1314.7+2348_daily_bin1478.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384706/ft1_filtered_4FGL_J1314.7+2348_daily_bin1478.fits" evtable="EVENTS" scfile=/scratch/kocevski/384706/ft2_4FGL_J1314.7+2348_daily_bin1478.fits sctable="SC_DATA" outfile=/scratch/kocevski/384706/ltcube_622425601_622684801_4FGL_J1314.7+2348_daily_bin1478.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/384706/ft2_4FGL_J1314.7+2348_daily_bin1478.fits
.....................!
real 17.74
user 17.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384706/ft1_filtered_4FGL_J1314.7+2348_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/384706/ft2_4FGL_J1314.7+2348_daily_bin1478.fits sctable="SC_DATA" expcube=/scratch/kocevski/384706/ltcube_622425601_622684801_4FGL_J1314.7+2348_daily_bin1478.fits outfile=/scratch/kocevski/384706/expmap_622425601_622684801_4FGL_J1314.7+2348_daily_bin1478.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/384706/ltcube_622425601_622684801_4FGL_J1314.7+2348_daily_bin1478.fits
.....................!
real 193.72
user 187.49
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 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/384706/ft1_filtered_4FGL_J1314.7+2348_daily_bin1478.fits scfile=/scratch/kocevski/384706/ft2_4FGL_J1314.7+2348_daily_bin1478.fits outfile=/scratch/kocevski/384706/cmap_622425601_622684801_4FGL_J1314.7+2348_daily_bin1478.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384706/ft1_filtered_4FGL_J1314.7+2348_daily_bin1478.fits scfile=/scratch/kocevski/384706/ft2_4FGL_J1314.7+2348_daily_bin1478.fits outfile=/scratch/kocevski/384706/cmap_HighResolution_622425601_622684801_4FGL_J1314.7+2348_daily_bin1478.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384706/ft1_filtered_4FGL_J1314.7+2348_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/384706/ft2_4FGL_J1314.7+2348_daily_bin1478.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384706/Model_4FGL_J1314.7+2348_daily_bin1478.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/384706/ft1_filtered_4FGL_J1314.7+2348_daily_bin1478.fits.....................!
real 49.93
user 48.49
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/384706/ft1_filtered_4FGL_J1314.7+2348_daily_bin1478.fits', '/scratch/kocevski/384706/ft2_4FGL_J1314.7+2348_daily_bin1478.fits', expMap='/scratch/kocevski/384706/expmap_622425601_622684801_4FGL_J1314.7+2348_daily_bin1478.fits', expCube='/scratch/kocevski/384706/ltcube_622425601_622684801_4FGL_J1314.7+2348_daily_bin1478.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/384706/Model_4FGL_J1314.7+2348_daily_bin1478.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/384706/ft1_filtered_4FGL_J1314.7+2348_daily_bin1478.fits
Spacecraft file(s): /scratch/kocevski/384706/ft2_4FGL_J1314.7+2348_daily_bin1478.fits
Exposure map: /scratch/kocevski/384706/expmap_622425601_622684801_4FGL_J1314.7+2348_daily_bin1478.fits
Exposure cube: /scratch/kocevski/384706/ltcube_622425601_622684801_4FGL_J1314.7+2348_daily_bin1478.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/384706/Model_4FGL_J1314.7+2348_daily_bin1478.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) = 5596.67303371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7317       1.0000         .10000E-03   10000.    
     2 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.0262       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0823       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.7427       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.493       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9746       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .15560E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.421       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0940       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.218       1.0000         .10000E-03   10000.    
    19 'norm      '    .10258E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.611       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.485       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18805E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.280       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3061       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87573       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=   5596.658     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2923 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7306        7.3709        .42829E-06    .62642E-04
   2  norm          .10000E-03    .21111       -.30635E-07** at limit **
   3  norm          6.0254        5.7142        .61830E-06    .22219E-03
   4  Prefactor     2.0793        4.9683        .95693E-06   -.69172E-03
   5  Prefactor     .10000E-03    56.010       -.58555E-05** at limit **
   6  Prefactor     .10000E-03    3.2084        .16044E-07** at limit **
   7  norm          8.7418        5.3649        .68121E-06    .10719E-04
   8  Prefactor     24.486        20.389       -.20153E-05   -.16500E-03
   9  Prefactor     .10000E-03    15.690        .31482E-05** at limit **
  10  norm          2.9740        3.2484       -.10135E-07    .18294E-05
  11  norm          .10000E-03    2.3378       -.15127E-06** at limit **
  12  norm          .10044E-03    5.6483        .22417E-05** at limit **
  13  norm          15.423        15.494       -.71125E-07    .36397E-04
  14  Prefactor     .10000E-03    .92445       -.24213E-07** at limit **
  15  Prefactor     .10000E-03    4.4181       -.94591E-08** at limit **
  16  norm          4.0958        5.3025        .60753E-06    .37260E-03
  17  Prefactor     .10000E-03    9.6809        .17990E-06** at limit **
  18  Prefactor     31.218        36.726       -.56379E-06   -.24442E-04
  19  norm          .10000E-03    25.582       -.11588E-04** at limit **
  20  Prefactor     16.616        22.973        .20629E-05    .77485E-04
  21  Prefactor     14.483        29.530       -.41835E-05   -.54629E-04
  22  Prefactor     .10000E-03    4.3782       -.57622E-06** at limit **
  23  Prefactor     11.276        16.001       -.24433E-06    .85344E-05
  24  Normalizat    1.3062        .19897        .13861E-06    .14363E-03
  25  Prefactor     .87580        .19395        .21144E-07    .79654E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.73059
  norm       = 0.0001
  norm       = 6.02535
  Prefactor  = 2.07932
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 8.74175
  Prefactor  = 24.4856
  Prefactor  = 0.0001
  norm       = 2.97404
  norm       = 0.0001
  norm       = 0.000100442
  norm       = 15.4226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.09576
  Prefactor  = 0.0001
  Prefactor  = 31.2176
  norm       = 0.000100004
  Prefactor  = 16.6158
  Prefactor  = 14.4831
  Prefactor  = 0.000100002
  Prefactor  = 11.276
  Normalizat = 1.30617
  Prefactor  = 0.8758
 **********
 **   18 **HESSE 
 **********

 FCN=   5596.658     FROM HESSE     STATUS=OK           433 CALLS     3356 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7306        7.3137        .20903E-03   -1.5322    
   2  norm          .10000E-03    1.0381        .66174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0254        5.7142        .15629E-03   -1.5217    
   4  Prefactor     2.0793        17.527        .14308E-02   -1.5420    
   5  Prefactor     .10000E-03    56.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2181        .13085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.7418        5.3373        .13010E-03   -1.5117    
   8  Prefactor     24.486        20.507        .80941E-04   -1.4718    
   9  Prefactor     .10000E-03    15.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9740        3.2395        .13622E-03   -1.5363    
  11  norm          .10000E-03    2.3770        .22232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10044E-03    32.022        .31310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.423        15.490        .10199E-03   -1.4922    
  14  Prefactor     .10000E-03    .92741        .70235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4227        .15356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0958        5.3184        .18935E-03   -1.5303    
  17  Prefactor     .10000E-03    9.6833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.218        36.734        .71712E-04   -1.4590    
  19  norm          .10000E-03    26.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.616        22.938        .98271E-04   -1.4892    
  21  Prefactor     14.483        29.580        .10524E-03   -1.4947    
  22  Prefactor     .10000E-03    12.386        .29895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.276        16.011        .11928E-03   -1.5036    
  24  Normalizat    1.3062        .23413        .23738E-03   -.83382    
  25  Prefactor     .87580        .22684        .28166E-03   -.96992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.713e-08
Minuit parameter uncertainties:
  1  7.31547
  2  5.04205e-06
  3  5.71469
  4  12.0781
  5  0.000661914
  6  5.47368e-08
  7  5.33755
  8  20.513
  9  0.000124927
  10  3.23969
  11  3.19794e-05
  12  0.0075241
  13  15.4945
  14  1.93045e-06
  15  5.63634e-06
  16  5.31899
  17  9.09442e-06
  18  36.7605
  19  0.000667432
  20  22.9503
  21  29.6096
  22  0.000311972
  23  16.0176
  24  0.23432
  25  0.22708
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.542e+01  1.549e+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:  8.758e-01  2.271e-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.306e+00  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.33
Ra Dec: 198.688 23.812
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.47e-08 +/- 1.48e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 1.15e-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) = 5596.50496724
delta logL = 0.15276981344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5596.46953297
delta logL = 0.188204080824

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.047       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2870       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3140       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87375       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.

 FCN=   5596.470     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      207 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.047        11.453        .30134E-02   -.11065E-02
   2  alpha         1.2870        .62179        .50000       -.42765E-04
   3  Normalizat    1.3140        .19115        .53554E-01    .17879E-05
   4  Prefactor     .87376        .19076        .44670E-01    .14865E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0473
  alpha      = 1.28698
  Normalizat = 1.314
  Prefactor  = 0.873756
 **********
 **   18 **HESSE 
 **********

 FCN=   5596.470     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.047        14.338        .12054E-03   -1.5043    
   2  alpha         1.2870        .86583        .20900E-01   -.50660    
   3  Normalizat    1.3140        .22379        .23679E-03   -.83149    
   4  Prefactor     .87376        .22348        .28199E-03   -.97064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67593e-09
Minuit parameter uncertainties:
  1  14.3421
  2  0.890233
  3  0.223953
  4  0.223712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384706': 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) = 5596.46953297
delta logL = 0.188204083644

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.105e+01  1.434e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  1.287e+00  8.902e-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:  8.738e-01  2.237e-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.314e+00  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.71
Ra Dec: 198.688 23.812
Photon Index (Free Index): 1.29 +/- 0.89
Photon Flux (Free Index): 6.28e-09 +/- 9.27e-09
Energy Flux (Free Index): 2.13e-05 +/- 3.53e-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/384706/cmap_HighResolution_622425601_622684801_4FGL_J1314.7+2348_daily_bin1478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-08', energy_flux2='2.13e-05', photon_flux_error='1.48e-08', dlogl='1.88e-01', energy_flux='1.14e-05', photon_flux2='6.28e-09', job_status='DONE', time_completed='2021-09-07 06:55:15.926880', photon_index_error2='0.89', photon_index2='1.29', ts='4.33', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='3.53e-05', EG='1.31', time_epoch_completed='1631022915.93', return_code='0', job_id='384706', GAL2='0.87', EG2='1.31', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='9.27e-09', ts2='4.71', photon_index='1.90' WHERE bin_id='1478' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:55:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 384706: <4FGL_J1314.7+2348_daily_bin1478> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin1478> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 06:40:33 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:40:42 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:40:42 2021
Terminated at Tue Sep  7 06:55:16 2021
Results reported at Tue Sep  7 06:55:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin1478 198.688 23.8124 622425601 622684801 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 :                                   601.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             225.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            883 sec.

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

