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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin1592
RA = 198.688, Dec = 23.8124
tmin = 651974401, tmax = 652233601
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='384872', job_status='RUN', time_executed='2021-09-07 06:41:25.024206', time_epoch_executed='1631022085.02' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384872

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384872/ft1_4FGL_J1314.7+2348_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384872/ft2_4FGL_J1314.7+2348_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384872/ft1_4FGL_J1314.7+2348_daily_bin1592.fits outfile=/scratch/kocevski/384872/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin1592.fits ra=198.688 dec=23.8124 rad=12.0 tmin=651974401.0 tmax=652233601.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.53
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384872/ft1_filtered_4FGL_J1314.7+2348_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/384872/ft2_4FGL_J1314.7+2348_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/384872/ltcube_651974401_652233601_4FGL_J1314.7+2348_daily_bin1592.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/384872/ft2_4FGL_J1314.7+2348_daily_bin1592.fits
.....................!
real 14.88
user 14.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384872/ft1_filtered_4FGL_J1314.7+2348_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/384872/ft2_4FGL_J1314.7+2348_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/384872/ltcube_651974401_652233601_4FGL_J1314.7+2348_daily_bin1592.fits outfile=/scratch/kocevski/384872/expmap_651974401_652233601_4FGL_J1314.7+2348_daily_bin1592.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/384872/ltcube_651974401_652233601_4FGL_J1314.7+2348_daily_bin1592.fits
.....................!
real 191.66
user 186.34
sys 4.87

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/384872/ft1_filtered_4FGL_J1314.7+2348_daily_bin1592.fits scfile=/scratch/kocevski/384872/ft2_4FGL_J1314.7+2348_daily_bin1592.fits outfile=/scratch/kocevski/384872/cmap_651974401_652233601_4FGL_J1314.7+2348_daily_bin1592.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384872/ft1_filtered_4FGL_J1314.7+2348_daily_bin1592.fits scfile=/scratch/kocevski/384872/ft2_4FGL_J1314.7+2348_daily_bin1592.fits outfile=/scratch/kocevski/384872/cmap_HighResolution_651974401_652233601_4FGL_J1314.7+2348_daily_bin1592.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.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384872/ft1_filtered_4FGL_J1314.7+2348_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/384872/ft2_4FGL_J1314.7+2348_daily_bin1592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384872/Model_4FGL_J1314.7+2348_daily_bin1592.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/384872/ft1_filtered_4FGL_J1314.7+2348_daily_bin1592.fits.....................!
real 48.25
user 46.76
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .36304       1.0000         .10000E-03   10000.    
     3 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.589       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8901       1.0000         .10000E-03   10000.    
     7 'norm      '    21.966       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8141       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .34971E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0011       1.0000         .10000E-03   10000.    
    12 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.269       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2447       1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.020       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .57909       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96509       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99900       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=   5542.374     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2890 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3765        .75961E-07** at limit **
   2  norm          .36302        .22655        .28292E-08   -.73612E-04
   3  norm          .10000E-03    2.8152        .19094E-06** at limit **
   4  Prefactor     .10000E-03    9.2321        .26847E-06** at limit **
   5  Prefactor     32.597        36.585        .61792E-07    .12513E-04
   6  Prefactor     3.8900        6.7094        .36582E-06   -.24099E-04
   7  norm          21.964        6.4974        .26462E-07    .57453E-04
   8  Prefactor     4.8115        11.880        .43494E-06   -.44911E-05
   9  Prefactor     .10000E-03    18.562       -.13630E-06** at limit **
  10  norm          .10000E-03    1.7272        .16674E-06** at limit **
  11  norm          4.0016        3.1660        .18088E-06    .17657E-03
  12  norm          .10000E-03    6.4155       -.44453E-06** at limit **
  13  norm          .10000E-03    7.2229        .36789E-07** at limit **
  14  Prefactor     .10000E-03    1.7622       -.12992E-05** at limit **
  15  Prefactor     .10000E-03    3.2781       -.39959E-06** at limit **
  16  norm          3.3378        4.6100        .10839E-06   -.14928E-04
  17  Prefactor     13.261        29.209        .14458E-06   -.10880E-04
  18  Prefactor     6.1892        85.256       -.27283E-06   -.95185E-05
  19  norm          .10000E-03    4.4249        .82407E-07** at limit **
  20  Prefactor     .10000E-03    10.757       -.65761E-06** at limit **
  21  Prefactor     18.009        25.065       -.17105E-06   -.26320E-04
  22  Prefactor     .57909        2.7837        .15369E-05    .10667E-04
  23  Prefactor     .10000E-03    5.2893        .21013E-06** at limit **
  24  Normalizat    .96525        .17242        .23411E-06   -.67938E-04
  25  Prefactor     .99883        .17999       -.10045E-05    .11070E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.363025
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.5968
  Prefactor  = 3.89005
  norm       = 21.9644
  Prefactor  = 4.81154
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 4.00156
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.33777
  Prefactor  = 13.2608
  Prefactor  = 6.18919
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.009
  Prefactor  = 0.579086
  Prefactor  = 0.0001
  Normalizat = 0.965255
  Prefactor  = 0.998833
 **********
 **   18 **HESSE 
 **********

 FCN=   5542.374     FROM HESSE     STATUS=OK           427 CALLS     3317 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3915        .11208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .36302        .22461        .27190E-04   -1.5587    
   3  norm          .10000E-03    2.9116        .24395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.4184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.597        36.586        .70191E-04   -1.4565    
   6  Prefactor     3.8900        6.6869        .20457E-03   -1.5313    
   7  norm          21.964        6.4957        .85463E-04   -1.4770    
   8  Prefactor     4.8115        11.870        .18335E-03   -1.5269    
   9  Prefactor     .10000E-03    18.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    15.878        .18724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0016        3.1593        .11223E-03   -1.5308    
  12  norm          .10000E-03    6.4871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.2276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.7591        .95244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2793        .13158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3378        4.5965        .18092E-03   -1.5343    
  17  Prefactor     13.261        29.217        .10996E-03   -1.4979    
  18  Prefactor     6.1892        85.695        .16064E-03   -1.5210    
  19  norm          .10000E-03    4.4738        .15283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.009        25.225        .94349E-04   -1.4859    
  22  Prefactor     .57909        2.7871        .24094E-03   -1.5556    
  23  Prefactor     .10000E-03    5.3443        .16724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96525        .20115        .23053E-03   -.94204    
  25  Prefactor     .99883        .20965        .24375E-03   -.92768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8849e-10
Minuit parameter uncertainties:
  1  7.09998e-07
  2  0.22461
  3  3.3646e-07
  4  1.18928e-06
  5  36.611
  6  6.68818
  7  6.49594
  8  11.8756
  9  6.82287e-06
  10  0.000513899
  11  3.15947
  12  5.13692e-06
  13  6.94131e-08
  14  6.30513e-06
  15  3.22109e-06
  16  4.59702
  17  29.2483
  18  46.1401
  19  3.46437e-07
  20  6.11117e-06
  21  25.2396
  22  2.54083
  23  4.08015e-06
  24  0.20131
  25  0.209817
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.000e-04  6.941e-08  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:  9.988e-01  2.098e-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.653e-01  2.013e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384872/likelihoodResults_651974401_652233601_4FGL_J1314.7+2348_daily_bin1592.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) = 5542.37437612
delta logL = -0.000657756286273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5542.37371836
delta logL = 4.2073224904e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9036       1.0000          .0000       5.0000    
     3 'Normalizat'    .96527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99882       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5542.368     FROM MIGRAD    STATUS=FAILED       160 CALLS      301 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28677E-01    4.6361        .12401E-01    .26233E-02
   2  alpha         4.5513        2.6341        .17096        .12353E-03
   3  Normalizat    .95928        .19786E-01    .23053E-03   -.49316E-06
   4  Prefactor     1.0027        .21307E-01    .24375E-03    .46641E-07
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5542.368     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      375 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28677E-01    4.6361        .15108E-03    .26233E-02
   2  alpha         4.5513        2.6341        .13893E-01    .12353E-03
   3  Normalizat    .95928        .19786E-01    .94671E-04   -.49316E-06
   4  Prefactor     1.0027        .21307E-01    .42058E-04    .46641E-07
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5542.368     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      447 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28677E-01    126.58        .13524E-03    .41497E-03
   2  alpha         4.5513        2.5883        .68382E-02   -.43226E-07
   3  Normalizat    .95928        .21387        .18442E-05   -.49316E-06
   4  Prefactor     1.0027        .20981        .19500E-05    .11660E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.028677
  alpha      = 4.55125
  Normalizat = 0.959284
  Prefactor  = 1.00267
 **********
 **   18 **HESSE 
 **********

 FCN=   5542.368     FROM HESSE     STATUS=OK            25 CALLS      472 TOTAL
                     EDM=   .53E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28677E-01    3.4160        .27048E-04   -1.5674    
   2  alpha         4.5513        2.5538        .27353E-03    7.2455    
   3  Normalizat    .95928        .20240        .18442E-05   -.94407    
   4  Prefactor     1.0027        .21390        .38999E-06   -.92641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30125e-14
Minuit parameter uncertainties:
  1  0.624918
  2  8.86523
  3  0.202562
  4  0.214083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384872': 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) = 5542.36803039
delta logL = 0.00568797487358

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  2.868e-02  6.249e-01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  4.551e+00  8.865e+00  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.003e+00  2.141e-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.593e-01  2.026e-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/384872/cmap_HighResolution_651974401_652233601_4FGL_J1314.7+2348_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.71e-05', job_status='DONE', photon_flux_upper_limit='3.48e-08', time_completed='2021-09-07 06:52:44.764472', job_id='384872', GAL2='1.00', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1631022764.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='5.69e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1592' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:52:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 384872: <4FGL_J1314.7+2348_daily_bin1592> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin1592> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 06:40:44 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:41: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:41:00 2021
Terminated at Tue Sep  7 06:52:45 2021
Results reported at Tue Sep  7 06:52:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin1592 198.688 23.8124 651974401 652233601 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 :                                   670.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            721 sec.

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

