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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin1402
RA = 198.688, Dec = 23.8124
tmin = 602726401, tmax = 602985601
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='384597', job_status='RUN', time_executed='2021-09-07 06:43:03.968473', time_epoch_executed='1631022183.97' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384597/ft1_4FGL_J1314.7+2348_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384597/ft2_4FGL_J1314.7+2348_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384597/ft1_4FGL_J1314.7+2348_daily_bin1402.fits outfile=/scratch/kocevski/384597/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin1402.fits ra=198.688 dec=23.8124 rad=12.0 tmin=602726401.0 tmax=602985601.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.11
user 2.86
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384597/ft1_filtered_4FGL_J1314.7+2348_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/384597/ft2_4FGL_J1314.7+2348_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/384597/ltcube_602726401_602985601_4FGL_J1314.7+2348_daily_bin1402.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/384597/ft2_4FGL_J1314.7+2348_daily_bin1402.fits
.....................!
real 16.48
user 16.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384597/ft1_filtered_4FGL_J1314.7+2348_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/384597/ft2_4FGL_J1314.7+2348_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/384597/ltcube_602726401_602985601_4FGL_J1314.7+2348_daily_bin1402.fits outfile=/scratch/kocevski/384597/expmap_602726401_602985601_4FGL_J1314.7+2348_daily_bin1402.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/384597/ltcube_602726401_602985601_4FGL_J1314.7+2348_daily_bin1402.fits
.....................!
real 191.27
user 186.62
sys 4.21

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/384597/ft1_filtered_4FGL_J1314.7+2348_daily_bin1402.fits scfile=/scratch/kocevski/384597/ft2_4FGL_J1314.7+2348_daily_bin1402.fits outfile=/scratch/kocevski/384597/cmap_602726401_602985601_4FGL_J1314.7+2348_daily_bin1402.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.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384597/ft1_filtered_4FGL_J1314.7+2348_daily_bin1402.fits scfile=/scratch/kocevski/384597/ft2_4FGL_J1314.7+2348_daily_bin1402.fits outfile=/scratch/kocevski/384597/cmap_HighResolution_602726401_602985601_4FGL_J1314.7+2348_daily_bin1402.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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384597/ft1_filtered_4FGL_J1314.7+2348_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/384597/ft2_4FGL_J1314.7+2348_daily_bin1402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384597/Model_4FGL_J1314.7+2348_daily_bin1402.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/384597/ft1_filtered_4FGL_J1314.7+2348_daily_bin1402.fits....................!
real 42.52
user 41.20
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.2947       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21487E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .59125E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    6.2599       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3072       1.0000         .10000E-03   10000.    
    11 'norm      '    17.418       1.0000         .10000E-03   10000.    
    12 'norm      '    .22699E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6547       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.436       1.0000         .10000E-03   10000.    
    16 'norm      '    .88457       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.953       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3380       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.1358       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0212       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0060       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=   4640.514     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2935 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8299       -.21828E-07** at limit **
   2  norm          .10000E-03    .16901        .56823E-07** at limit **
   3  norm          2.2942        6.6445       -.21824E-06    .33638E-05
   4  Prefactor     .10000E-03    25.962       -.19718E-05** at limit **
   5  Prefactor     .10001E-03    1038.7       -.55233E-04** at limit **
   6  Prefactor     .10177E-03    120.53       -.16091E-04** at limit **
   7  norm          6.2635        6.5942        .27744E-07    .40540E-03
   8  Prefactor     .10000E-03    22.312        .28498E-05** at limit **
   9  Prefactor     .10000E-03    115.45        .10779E-04** at limit **
  10  norm          2.3071        2.8434       -.12822E-06    .66625E-04
  11  norm          17.405        6.1481        .10820E-05    .24849E-02
  12  norm          .10096E-03    29.505        .17068E-05** at limit **
  13  norm          .10000E-03    7.0096       -.12255E-06** at limit **
  14  Prefactor     5.6548        4.8370       -.13082E-06    .17094E-03
  15  Prefactor     27.442        22.643       -.10234E-06    .14652E-03
  16  norm          .88985        11.962        .17002E-05    .11777E-03
  17  Prefactor     .10000E-03    14.227       -.16750E-06** at limit **
  18  Prefactor     .10000E-03    44.094       -.45915E-06** at limit **
  19  norm          16.944        12.548       -.16504E-05   -.38288E-03
  20  Prefactor     8.3422        15.218        .32762E-07    .21608E-04
  21  Prefactor     .10000E-03    5.8789        .87442E-07** at limit **
  22  Prefactor     .10000E-03    1.1869        .10931E-06** at limit **
  23  Prefactor     5.1353        10.527       -.21535E-05   -.24865E-03
  24  Normalizat    1.0212        .20716       -.85451E-06    .16093E-03
  25  Prefactor     1.0060        .20417        .57456E-06    .92827E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.2942
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000101773
  norm       = 6.26352
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 2.30705
  norm       = 17.4051
  norm       = 0.000100956
  norm       = 0.0001
  Prefactor  = 5.65478
  Prefactor  = 27.4416
  norm       = 0.889851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.9443
  Prefactor  = 8.34219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.13529
  Normalizat = 1.02118
  Prefactor  = 1.00603
 **********
 **   18 **HESSE 
 **********

 FCN=   4640.514     FROM HESSE     STATUS=OK           435 CALLS     3370 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8316        .14616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .17252        .27317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.2942        6.6231        .27095E-03   -1.5405    
   4  Prefactor     .10000E-03    26.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    1018.7        .40327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10177E-03    14.994        .60007E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.2635        6.5491        .16044E-03   -1.5207    
   8  Prefactor     .10000E-03    22.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    116.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3071        2.8359        .12353E-03   -1.5404    
  11  norm          17.405        6.3151        .94316E-04   -1.4873    
  12  norm          .10096E-03    60.756        .37827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.0113        .17615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6548        4.8294        .12244E-03   -1.5232    
  15  Prefactor     27.442        22.612        .76484E-04   -1.4660    
  16  norm          .88985        11.547        .38573E-03   -1.5519    
  17  Prefactor     .10000E-03    14.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    44.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.944        12.246        .97275E-04   -1.4884    
  20  Prefactor     8.3422        15.237        .13883E-03   -1.5130    
  21  Prefactor     .10000E-03    5.8871        .16131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.1953        .72473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.1353        10.560        .88701E-03   -1.5255    
  24  Normalizat    1.0212        .24099        .24529E-03   -.92324    
  25  Prefactor     1.0060        .23728        .25226E-03   -.92529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67068e-08
Minuit parameter uncertainties:
  1  2.55883e-06
  2  5.76246e-07
  3  6.62521
  4  5.54941e-05
  5  0.00616686
  6  0.0103144
  7  6.54982
  8  0.000111534
  9  0.00151703
  10  2.83602
  11  6.31532
  12  0.0152541
  13  1.76998e-06
  14  4.82973
  15  22.6191
  16  6.4121
  17  5.16489e-06
  18  1.50643e-05
  19  12.2477
  20  15.2444
  21  5.26931e-06
  22  1.89355e-06
  23  10.564
  24  0.241252
  25  0.237532
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.000e-04  1.770e-06  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:  1.006e+00  2.375e-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.021e+00  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 198.688 23.812
Photon Flux Upper Limit: 3.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384597/likelihoodResults_602726401_602985601_4FGL_J1314.7+2348_daily_bin1402.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) = 4640.51464217
delta logL = -0.00067239985674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4640.51396977
delta logL = -1.05319486465e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8954       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0060       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=   4640.514     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      222 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    25.024        .17615E-02** at limit **
   2  alpha         1.8531        3.5708        .17114       -.21536E-07
   3  Normalizat    1.0212        .22685        .24529E-03    .30126E-05
   4  Prefactor     1.0060        .23289        .25226E-03    .27491E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.85309
  Normalizat = 1.02118
  Prefactor  = 1.00603
 **********
 **   18 **HESSE 
 **********

 FCN=   4640.514     FROM HESSE     STATUS=OK            25 CALLS      247 TOTAL
                     EDM=   .66E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0284        .35231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8531        2.5164        .34229E-01   -.26174    
   3  Normalizat    1.0212        .22708        .98117E-05   -.92324    
   4  Prefactor     1.0060        .23313        .10090E-04   -.92529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61638e-14
Minuit parameter uncertainties:
  1  2.13254e-06
  2  439.983
  3  0.2273
  4  0.233361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384597': 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) = 4640.51396977
delta logL = 4.71391103929e-09

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.000e-04  2.133e-06  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  1.853e+00  4.400e+02  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:  1.006e+00  2.334e-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.021e+00  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 198.688 23.812

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/384597/cmap_HighResolution_602726401_602985601_4FGL_J1314.7+2348_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-05', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2021-09-07 06:54:35.255526', job_id='384597', GAL2='1.01', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631022875.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.71e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1402' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:54:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 384597: <4FGL_J1314.7+2348_daily_bin1402> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin1402> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 06:40:26 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:40:29 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:29 2021
Terminated at Tue Sep  7 06:54:36 2021
Results reported at Tue Sep  7 06:54:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin1402 198.688 23.8124 602726401 602985601 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 :                                   599.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            850 sec.

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

