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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin1065
RA = 198.688, Dec = 23.8124
tmin = 515376001, tmax = 515635201
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='381126', job_status='RUN', time_executed='2021-09-07 06:33:57.744608', time_epoch_executed='1631021637.74' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='1065'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381126

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381126/ft1_4FGL_J1314.7+2348_daily_bin1065.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381126/ft2_4FGL_J1314.7+2348_daily_bin1065.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381126/ft1_4FGL_J1314.7+2348_daily_bin1065.fits outfile=/scratch/kocevski/381126/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin1065.fits ra=198.688 dec=23.8124 rad=12.0 tmin=515376001.0 tmax=515635201.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.49
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381126/ft1_filtered_4FGL_J1314.7+2348_daily_bin1065.fits" evtable="EVENTS" scfile=/scratch/kocevski/381126/ft2_4FGL_J1314.7+2348_daily_bin1065.fits sctable="SC_DATA" outfile=/scratch/kocevski/381126/ltcube_515376001_515635201_4FGL_J1314.7+2348_daily_bin1065.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/381126/ft2_4FGL_J1314.7+2348_daily_bin1065.fits
.....................!
real 15.66
user 14.96
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381126/ft1_filtered_4FGL_J1314.7+2348_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/381126/ft2_4FGL_J1314.7+2348_daily_bin1065.fits sctable="SC_DATA" expcube=/scratch/kocevski/381126/ltcube_515376001_515635201_4FGL_J1314.7+2348_daily_bin1065.fits outfile=/scratch/kocevski/381126/expmap_515376001_515635201_4FGL_J1314.7+2348_daily_bin1065.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/381126/ltcube_515376001_515635201_4FGL_J1314.7+2348_daily_bin1065.fits
.....................!
real 192.43
user 186.69
sys 5.17

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/381126/ft1_filtered_4FGL_J1314.7+2348_daily_bin1065.fits scfile=/scratch/kocevski/381126/ft2_4FGL_J1314.7+2348_daily_bin1065.fits outfile=/scratch/kocevski/381126/cmap_515376001_515635201_4FGL_J1314.7+2348_daily_bin1065.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.55
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381126/ft1_filtered_4FGL_J1314.7+2348_daily_bin1065.fits scfile=/scratch/kocevski/381126/ft2_4FGL_J1314.7+2348_daily_bin1065.fits outfile=/scratch/kocevski/381126/cmap_HighResolution_515376001_515635201_4FGL_J1314.7+2348_daily_bin1065.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/381126/ft1_filtered_4FGL_J1314.7+2348_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/381126/ft2_4FGL_J1314.7+2348_daily_bin1065.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/381126/Model_4FGL_J1314.7+2348_daily_bin1065.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/381126/ft1_filtered_4FGL_J1314.7+2348_daily_bin1065.fits.....................!
real 50.01
user 48.06
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11928       1.0000         .10000E-03   10000.    
     3 'norm      '    7.9057       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5452       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.758       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2544       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.768       1.0000         .10000E-03   10000.    
    11 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2629       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.375       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8565       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.039       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.6526       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.293       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.164       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4296       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .55085       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=   5777.143     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2492 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8979        .94673E-07** at limit **
   2  norm          .11941        .26633       -.17467E-08   -.53770E-03
   3  norm          7.9047        4.5143        .36163E-07    .55176E-05
   4  Prefactor     8.5451        7.6634        .18652E-07   -.13465E-03
   5  Prefactor     .10000E-03    47.006       -.75277E-06** at limit **
   6  Prefactor     .10000E-03    6.7032       -.18662E-06** at limit **
   7  norm          10.757        5.6053       -.27474E-07    .11052E-03
   8  Prefactor     9.2523        13.318        .40827E-06    .29952E-05
   9  Prefactor     .10000E-03    15.321       -.57302E-05** at limit **
  10  norm          15.767        5.6224        .87915E-08    .12947E-04
  11  norm          .10000E-03    4.0626        .29575E-07** at limit **
  12  norm          .10000E-03    3.1135       -.11135E-06** at limit **
  13  norm          .10000E-03    8.4248        .36339E-06** at limit **
  14  Prefactor     3.2621        4.0328       -.94222E-06   -.12068E-03
  15  Prefactor     30.375        16.408        .94798E-07    .17577E-04
  16  norm          2.8560        2.2733        .28419E-06   -.17000E-02
  17  Prefactor     23.040        25.811        .68139E-06    .83016E-05
  18  Prefactor     .10000E-03    15.955        .59125E-05** at limit **
  19  norm          3.6524        4.7108        .47222E-07   -.48472E-03
  20  Prefactor     .10000E-03    3.8385        .10321E-06** at limit **
  21  Prefactor     24.291        17.094       -.37389E-06   -.65787E-05
  22  Prefactor     .10000E-03    2.4316        .85293E-07** at limit **
  23  Prefactor     10.164        9.4193        .95555E-07    .28724E-06
  24  Normalizat    1.4299        .18432        .37470E-06    .14807E-04
  25  Prefactor     .55058        .18117       -.47045E-06    .27200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.119406
  norm       = 7.90465
  Prefactor  = 8.5451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7568
  Prefactor  = 9.25233
  Prefactor  = 0.0001
  norm       = 15.7672
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.26214
  Prefactor  = 30.3752
  norm       = 2.85605
  Prefactor  = 23.0397
  Prefactor  = 0.0001
  norm       = 3.65241
  Prefactor  = 0.0001
  Prefactor  = 24.2906
  Prefactor  = 0.0001
  Prefactor  = 10.1635
  Normalizat = 1.42987
  Prefactor  = 0.550581
 **********
 **   18 **HESSE 
 **********

 FCN=   5777.143     FROM HESSE     STATUS=OK           431 CALLS     2923 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9171        .12630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .11941        .26082        .55716E-04   -1.5639    
   3  norm          7.9047        4.5092        .11766E-03   -1.5146    
   4  Prefactor     8.5451        7.6876        .68565E-03   -1.5123    
   5  Prefactor     .10000E-03    47.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.757        5.6139        .12215E-03   -1.5052    
   8  Prefactor     9.2523        13.353        .13174E-03   -1.5100    
   9  Prefactor     .10000E-03    15.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.767        5.6360        .10086E-03   -1.4914    
  11  norm          .10000E-03    4.1995        .29802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.1309        .13090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.4325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2621        4.0214        .14898E-03   -1.5347    
  15  Prefactor     30.375        16.352        .72698E-04   -1.4605    
  16  norm          2.8560        4.6529        .99085E-03   -1.5370    
  17  Prefactor     23.040        25.809        .83452E-04   -1.4748    
  18  Prefactor     .10000E-03    16.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6524        4.7013        .88865E-03   -1.5326    
  20  Prefactor     .10000E-03    3.8418        .14543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.291        17.121        .81272E-04   -1.4722    
  22  Prefactor     .10000E-03    2.4696        .11568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.164        9.4187        .12569E-03   -1.5070    
  24  Normalizat    1.4299        .21551        .21102E-03   -.79769    
  25  Prefactor     .55058        .20860        .32912E-03   -1.0971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14709e-09
Minuit parameter uncertainties:
  1  2.0832e-07
  2  0.260827
  3  4.50938
  4  7.68853
  5  1.02147e-05
  6  3.16283e-06
  7  5.61412
  8  13.3577
  9  4.6828e-05
  10  5.63623
  11  2.66408e-05
  12  5.43298e-06
  13  2.54588e-06
  14  4.0217
  15  16.3548
  16  4.65351
  17  25.8214
  18  8.47766e-05
  19  4.70173
  20  1.58466e-06
  21  17.1244
  22  1.00354e-08
  23  9.42003
  24  0.215651
  25  0.208889
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.000e-04  2.546e-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:  5.506e-01  2.089e-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.430e+00  2.157e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381126/likelihoodResults_515376001_515635201_4FGL_J1314.7+2348_daily_bin1065.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): 102
logL (Free Index) = 5777.14323072
delta logL = -0.00056083121126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5777.14267009
delta logL = -2.02876435651e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9089       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55050       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=   5777.039     FROM MIGRAD    STATUS=FAILED       140 CALLS      281 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11914        4.9903        .12756E-01    .25832E-02
   2  alpha         4.6334        2.6307        .50000        .51012E-04
   3  Normalizat    1.4027        .29977E-01    .21102E-03   -.28553E-05
   4  Prefactor     .56783        .30363E-01    .32912E-03   -.33852E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5777.039     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      356 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11914        4.9903        .17187E-03    .25832E-02
   2  alpha         4.6334        2.6307        .14751E-01    .51012E-04
   3  Normalizat    1.4027        .29977E-01    .93301E-04   -.28553E-05
   4  Prefactor     .56783        .30363E-01    .72406E-04   -.33852E-05
                               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=   5777.039     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      437 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11914        31.032        .20725E-04    .65825E-05
   2  alpha         4.6334        3.3143        .14984E-01    .37861E-06
   3  Normalizat    1.4027        .19820        .16882E-05    .67343E-05
   4  Prefactor     .56783        .19439        .26330E-05   -.34543E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.119144
  alpha      = 4.63344
  Normalizat = 1.40271
  Prefactor  = 0.567828
 **********
 **   18 **HESSE 
 **********

 FCN=   5777.039     FROM HESSE     STATUS=OK            25 CALLS      462 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11914        2.3188        .82901E-06   -1.5639    
   2  alpha         4.6334        4.7556        .59935E-03    38.722    
   3  Normalizat    1.4027        .20719        .33764E-06   -.80550    
   4  Prefactor     .56783        .20667        .26330E-05   -1.0896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95654e-13
Minuit parameter uncertainties:
  1  1.05084
  2  3.78889
  3  0.207318
  4  0.206943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381126': 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) = 5777.03886856
delta logL = 0.103801325346

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.191e-01  1.051e+00  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  4.633e+00  3.789e+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:  5.678e-01  2.069e-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.403e+00  2.073e-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/381126/cmap_HighResolution_515376001_515635201_4FGL_J1314.7+2348_daily_bin1065.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', job_status='DONE', photon_flux_upper_limit='3.84e-08', time_completed='2021-09-07 06:45:09.974381', job_id='381126', GAL2='0.57', fit_tolerance='1e-08', EG2='1.40', EG='1.43', time_epoch_completed='1631022309.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='1.04e-01', ts2='0.23', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1065' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:45:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 381126: <4FGL_J1314.7+2348_daily_bin1065> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin1065> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 06:30:32 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:33:41 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:33:41 2021
Terminated at Tue Sep  7 06:45:10 2021
Results reported at Tue Sep  7 06:45:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin1065 198.688 23.8124 515376001 515635201 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 :                                   667.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            878 sec.

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

