/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 158 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 = 7379
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1314.7+2348_daily_bin87
RA = 198.688, Dec = 23.8124
tmin = 261878401, tmax = 262137601
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='375626', job_status='RUN', time_executed='2021-09-07 06:14:56.315091', time_epoch_executed='1631020496.32' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375626

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375626/ft1_4FGL_J1314.7+2348_daily_bin87.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375626/ft2_4FGL_J1314.7+2348_daily_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375626/ft1_4FGL_J1314.7+2348_daily_bin87.fits outfile=/scratch/kocevski/375626/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin87.fits ra=198.688 dec=23.8124 rad=12.0 tmin=261878401.0 tmax=262137601.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 1.44
user 1.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375626/ft2_4FGL_J1314.7+2348_daily_bin87.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/375626/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin87.fits evtable="EVENTS" outfile="/scratch/kocevski/375626/ft1_filtered_4FGL_J1314.7+2348_daily_bin87.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.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375626/ft1_filtered_4FGL_J1314.7+2348_daily_bin87.fits" evtable="EVENTS" scfile=/scratch/kocevski/375626/ft2_4FGL_J1314.7+2348_daily_bin87.fits sctable="SC_DATA" outfile=/scratch/kocevski/375626/ltcube_261878401_262137601_4FGL_J1314.7+2348_daily_bin87.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/375626/ft2_4FGL_J1314.7+2348_daily_bin87.fits
.....................!
real 17.38
user 16.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375626/ft1_filtered_4FGL_J1314.7+2348_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/375626/ft2_4FGL_J1314.7+2348_daily_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/375626/ltcube_261878401_262137601_4FGL_J1314.7+2348_daily_bin87.fits outfile=/scratch/kocevski/375626/expmap_261878401_262137601_4FGL_J1314.7+2348_daily_bin87.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/375626/ltcube_261878401_262137601_4FGL_J1314.7+2348_daily_bin87.fits
.....................!
real 193.03
user 186.93
sys 5.63

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/375626/ft1_filtered_4FGL_J1314.7+2348_daily_bin87.fits scfile=/scratch/kocevski/375626/ft2_4FGL_J1314.7+2348_daily_bin87.fits outfile=/scratch/kocevski/375626/cmap_261878401_262137601_4FGL_J1314.7+2348_daily_bin87.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.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375626/ft1_filtered_4FGL_J1314.7+2348_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/375626/ft2_4FGL_J1314.7+2348_daily_bin87.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375626/Model_4FGL_J1314.7+2348_daily_bin87.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/375626/ft1_filtered_4FGL_J1314.7+2348_daily_bin87.fits.....................!
real 58.56
user 57.14
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4204       1.0000         .10000E-03   10000.    
     2 'norm      '    .12997       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0305       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.363       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.347       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.490       1.0000         .10000E-03   10000.    
    10 'norm      '    5.2757       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    36.290       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.4337       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.338       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .37870E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.674       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4461       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .51926       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=   6817.215     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2894 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4208        3.6454       -.69670E-06   -.81339E-03
   2  norm          .13001        .18037       -.46054E-07   -.26106E-02
   3  norm          2.0307        2.6568        .16479E-07   -.20329E-03
   4  Prefactor     .10000E-03    4.5404       -.37499E-05** at limit **
   5  Prefactor     44.371        54.585        .88187E-05    .74527E-05
   6  Prefactor     .10000E-03    1.8131        .14772E-07** at limit **
   7  norm          .10000E-03    1.9217       -.18481E-06** at limit **
   8  Prefactor     30.351        14.322       -.17093E-05   -.20478E-04
   9  Prefactor     34.488        23.313       -.34159E-06    .43402E-04
  10  norm          5.2763        4.0591        .26491E-06   -.29703E-03
  11  norm          .10000E-03    1.2491       -.17818E-08** at limit **
  12  norm          .10000E-03    1.5297        .21847E-08** at limit **
  13  norm          36.291        19.266       -.44554E-07   -.29139E-04
  14  Prefactor     .10000E-03    1.9774        .12384E-06** at limit **
  15  Prefactor     .10000E-03    9.2675       -.57934E-05** at limit **
  16  norm          8.4359        6.1622       -.19833E-06   -.46004E-03
  17  Prefactor     16.342        28.270        .34192E-05   -.94964E-05
  18  Prefactor     .10000E-03    129.88       -.11109E-04** at limit **
  19  norm          .10000E-03    4.2891        .41842E-05** at limit **
  20  Prefactor     20.675        16.695       -.31091E-06    .49189E-05
  21  Prefactor     .10000E-03    7.5150        .31294E-05** at limit **
  22  Prefactor     .10000E-03    3.7307       -.89635E-06** at limit **
  23  Prefactor     .10000E-03    10.549        .34139E-05** at limit **
  24  Normalizat    1.4460        .16516        .40888E-07    .21961E-04
  25  Prefactor     .51920        .15929       -.16616E-06   -.39184E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.4208
  norm       = 0.130014
  norm       = 2.0307
  Prefactor  = 0.0001
  Prefactor  = 44.3706
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.3509
  Prefactor  = 34.4882
  norm       = 5.27628
  norm       = 0.0001
  norm       = 0.0001
  norm       = 36.2906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.43588
  Prefactor  = 16.3418
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.6745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.44602
  Prefactor  = 0.519203
 **********
 **   18 **HESSE 
 **********

 FCN=   6817.215     FROM HESSE     STATUS=OK           425 CALLS     3319 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4208        3.6353        .24406E-03   -1.5470    
   2  norm          .13001        .15960        .39961E-03   -1.5636    
   3  norm          2.0307        2.6300        .14664E-03   -1.5423    
   4  Prefactor     .10000E-03    4.5910        .17117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     44.371        54.486        .60192E-04   -1.4375    
   6  Prefactor     .10000E-03    1.8184        .10856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9368        .11156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.351        14.349        .72731E-04   -1.4606    
   9  Prefactor     34.488        23.317        .68235E-04   -1.4533    
  10  norm          5.2763        4.0577        .13881E-03   -1.5249    
  11  norm          .10000E-03    1.2586        .90026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5312        .99719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          36.291        19.261        .66527E-04   -1.4502    
  14  Prefactor     .10000E-03    2.0238        .22654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.2786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.4359        6.1718        .13804E-03   -1.5127    
  17  Prefactor     16.342        28.218        .99089E-04   -1.4899    
  18  Prefactor     .10000E-03    131.32        .21288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.2938        .16640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.675        16.789        .88090E-04   -1.4798    
  21  Prefactor     .10000E-03    7.5148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.8519        .31106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4460        .19146        .20657E-03   -.79307    
  25  Prefactor     .51920        .18197        .32417E-03   -1.1110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.48476e-10
Minuit parameter uncertainties:
  1  3.63588
  2  0.159596
  3  2.63018
  4  1.26799e-05
  5  54.5475
  6  3.7428e-07
  7  7.98593e-06
  8  14.3507
  9  23.323
  10  4.05793
  11  2.2316e-07
  12  3.54174e-07
  13  19.264
  14  4.19915e-06
  15  1.44206e-05
  16  6.17226
  17  28.2413
  18  0.000223189
  19  1.67967e-06
  20  16.7932
  21  8.48527e-07
  22  8.17103e-06
  23  2.2932e-05
  24  0.191559
  25  0.182177
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  3.629e+01  1.926e+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:  5.192e-01  1.822e-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.446e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.28
Ra Dec: 198.688 23.812
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 3.46e-08 +/- 1.84e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 1.43e-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) = 6817.19050759
delta logL = 0.0240629582422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6817.18941555
delta logL = 0.0251549971817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.072       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7997       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51785       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=   6817.189     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      228 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.072        65.092        .16456E-02   -.63276E-03
   2  alpha         1.7997        1.2118        .32106        .11899E-04
   3  Normalizat    1.4490        .16857        .46694E-01   -.27121E-05
   4  Prefactor     .51781        .16117        .73313E-01    .37626E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 37.0716
  alpha      = 1.79966
  Normalizat = 1.44904
  Prefactor  = 0.517808
 **********
 **   18 **HESSE 
 **********

 FCN=   6817.189     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.072        19.775        .65824E-04   -1.4489    
   2  alpha         1.7997        .42694        .12628E-01   -.28394    
   3  Normalizat    1.4490        .18155        .20641E-03   -.79221    
   4  Prefactor     .51781        .17943        .32460E-03   -1.1117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4195e-10
Minuit parameter uncertainties:
  1  19.7782
  2  0.429229
  3  0.181634
  4  0.179628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375626': 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) = 6817.18941551
delta logL = 0.0251550317262

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  3.707e+01  1.978e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  1.800e+00  4.292e-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:  5.178e-01  1.796e-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.449e+00  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.35
Ra Dec: 198.688 23.812
Photon Index (Free Index): 1.80 +/- 0.43
Photon Flux (Free Index): 3.14e-08 +/- 2.14e-08
Energy Flux (Free Index): 2.99e-05 +/- 2.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/375626/cmap_HighResolution_261878401_262137601_4FGL_J1314.7+2348_daily_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.46e-08', energy_flux2='2.99e-05', photon_flux_error='1.84e-08', dlogl='2.52e-02', energy_flux='2.69e-05', photon_flux2='3.14e-08', job_status='DONE', time_completed='2021-09-07 06:25:51.341725', photon_index_error2='0.43', photon_index2='1.80', ts='16.28', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', energy_flux_error2='2.18e-05', EG='1.45', time_epoch_completed='1631021151.34', return_code='0', job_id='375626', GAL2='0.52', EG2='1.45', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='2.14e-08', ts2='16.35', photon_index='1.90' WHERE bin_id='87' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:25:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 375626: <4FGL_J1314.7+2348_daily_bin87> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin87> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 06:10:43 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:12:08 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:12:08 2021
Terminated at Tue Sep  7 06:25:52 2021
Results reported at Tue Sep  7 06:25:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin87 198.688 23.8124 261878401 262137601 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 :                                   652.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            909 sec.

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

