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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin1307
RA = 198.688, Dec = 23.8124
tmin = 578102401, tmax = 578361601
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='381470', job_status='RUN', time_executed='2021-09-07 06:38:02.735184', time_epoch_executed='1631021882.74' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='1307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381470/ft1_4FGL_J1314.7+2348_daily_bin1307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381470/ft2_4FGL_J1314.7+2348_daily_bin1307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381470/ft1_4FGL_J1314.7+2348_daily_bin1307.fits outfile=/scratch/kocevski/381470/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin1307.fits ra=198.688 dec=23.8124 rad=12.0 tmin=578102401.0 tmax=578361601.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 5.19
user 4.76
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381470/ft1_filtered_4FGL_J1314.7+2348_daily_bin1307.fits" evtable="EVENTS" scfile=/scratch/kocevski/381470/ft2_4FGL_J1314.7+2348_daily_bin1307.fits sctable="SC_DATA" outfile=/scratch/kocevski/381470/ltcube_578102401_578361601_4FGL_J1314.7+2348_daily_bin1307.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/381470/ft2_4FGL_J1314.7+2348_daily_bin1307.fits
.....................!
real 15.46
user 15.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381470/ft1_filtered_4FGL_J1314.7+2348_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/381470/ft2_4FGL_J1314.7+2348_daily_bin1307.fits sctable="SC_DATA" expcube=/scratch/kocevski/381470/ltcube_578102401_578361601_4FGL_J1314.7+2348_daily_bin1307.fits outfile=/scratch/kocevski/381470/expmap_578102401_578361601_4FGL_J1314.7+2348_daily_bin1307.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/381470/ltcube_578102401_578361601_4FGL_J1314.7+2348_daily_bin1307.fits
.....................!
real 192.94
user 187.53
sys 4.46

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/381470/ft1_filtered_4FGL_J1314.7+2348_daily_bin1307.fits scfile=/scratch/kocevski/381470/ft2_4FGL_J1314.7+2348_daily_bin1307.fits outfile=/scratch/kocevski/381470/cmap_578102401_578361601_4FGL_J1314.7+2348_daily_bin1307.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381470/ft1_filtered_4FGL_J1314.7+2348_daily_bin1307.fits scfile=/scratch/kocevski/381470/ft2_4FGL_J1314.7+2348_daily_bin1307.fits outfile=/scratch/kocevski/381470/cmap_HighResolution_578102401_578361601_4FGL_J1314.7+2348_daily_bin1307.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/381470/ft1_filtered_4FGL_J1314.7+2348_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/381470/ft2_4FGL_J1314.7+2348_daily_bin1307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/381470/Model_4FGL_J1314.7+2348_daily_bin1307.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/381470/ft1_filtered_4FGL_J1314.7+2348_daily_bin1307.fits.....................!
real 42.02
user 40.65
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.219       1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.2853       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.358       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13531E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.753       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.984       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3007       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1957       1.0000         .10000E-03   10000.    
    12 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.845       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .35628       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7065       1.0000         .10000E-03   10000.    
    16 'norm      '    15.605       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.9034       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10502E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.074       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95114       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78467       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=   4503.513     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2951 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.219        12.197        .27282E-06    .28713E-03
   2  norm          .10000E-03    .27864       -.21779E-08** at limit **
   3  norm          6.2866        7.3430        .55921E-06    .38152E-03
   4  Prefactor     27.367        15.790       -.17851E-06   -.48197E-04
   5  Prefactor     .10000E-03    97.672       -.10930E-05** at limit **
   6  Prefactor     .10000E-03    2.6455        .98277E-09** at limit **
   7  norm          .10000E-03    3.2078       -.14347E-06** at limit **
   8  Prefactor     21.754        17.624       -.37315E-06   -.12838E-03
   9  Prefactor     33.957        25.101       -.18338E-05   -.40454E-03
  10  norm          2.3009        3.9032        .13064E-06   -.10642E-03
  11  norm          3.1978        3.6574       -.15798E-07   -.12337E-03
  12  norm          .10000E-03    3.0878       -.43545E-07** at limit **
  13  norm          14.843        14.714       -.98096E-07   -.20567E-04
  14  Prefactor     .35892        3.5373       -.10261E-06   -.52887E-03
  15  Prefactor     7.6596        19.600        .40207E-05   -.26549E-03
  16  norm          15.606        10.316       -.98127E-07   -.43024E-04
  17  Prefactor     .10000E-03    94.767        .24009E-05** at limit **
  18  Prefactor     .10000E-03    47.325       -.14600E-06** at limit **
  19  norm          3.9056        13.859        .31829E-06   -.51574E-04
  20  Prefactor     .10000E-03    12.903       -.10262E-06** at limit **
  21  Prefactor     .10000E-03    7.9602        .27111E-07** at limit **
  22  Prefactor     .10000E-03    1.1043        .76563E-08** at limit **
  23  Prefactor     12.073        15.424       -.12010E-06   -.51064E-04
  24  Normalizat    .95099        .19658        .21736E-06   -.43413E-04
  25  Prefactor     .78483        .18054       -.49593E-06   -.38935E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2189
  norm       = 0.0001
  norm       = 6.28663
  Prefactor  = 27.3666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.754
  Prefactor  = 33.9568
  norm       = 2.30087
  norm       = 3.19782
  norm       = 0.0001
  norm       = 14.8425
  Prefactor  = 0.358923
  Prefactor  = 7.65955
  norm       = 15.6064
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.90555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0728
  Normalizat = 0.950986
  Prefactor  = 0.784829
 **********
 **   18 **HESSE 
 **********

 FCN=   4503.513     FROM HESSE     STATUS=OK           433 CALLS     3384 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.219        12.164        .11961E-03   -1.5038    
   2  norm          .10000E-03    1.2076        .67824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.2866        7.3603        .15918E-03   -1.5206    
   4  Prefactor     27.367        15.825        .76592E-04   -1.4661    
   5  Prefactor     .10000E-03    98.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6508        .10659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.2368        .11713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.754        17.779        .85878E-04   -1.4775    
   9  Prefactor     33.957        26.134        .68740E-04   -1.4542    
  10  norm          2.3009        3.8996        .16491E-03   -1.5405    
  11  norm          3.1978        3.6396        .12471E-03   -1.5350    
  12  norm          .10000E-03    3.0975        .11485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.843        14.714        .10395E-03   -1.4937    
  14  Prefactor     .35892        10.999        .19864E-02   -1.5588    
  15  Prefactor     7.6596        22.317        .72226E-03   -1.5154    
  16  norm          15.606        10.195        .10139E-03   -1.4918    
  17  Prefactor     .10000E-03    96.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    47.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.9056        13.704        .20421E-03   -1.5313    
  20  Prefactor     .10000E-03    12.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.9644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.1071        .68864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.073        15.473        .11528E-03   -1.5013    
  24  Normalizat    .95099        .22991        .23473E-03   -.94691    
  25  Prefactor     .78483        .20811        .25344E-03   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12525e-09
Minuit parameter uncertainties:
  1  12.1665
  2  1.33963e-05
  3  7.36136
  4  15.827
  5  0.000347175
  6  7.13387e-07
  7  2.04575e-05
  8  17.7834
  9  26.143
  10  3.90003
  11  3.63985
  12  5.62718e-06
  13  14.718
  14  3.97403
  15  22.3416
  16  10.1965
  17  0.000924218
  18  7.20035e-05
  19  13.7147
  20  2.55815e-05
  21  1.21472e-06
  22  3.21323e-07
  23  15.4778
  24  0.230145
  25  0.208313
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.484e+01  1.472e+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:  7.848e-01  2.083e-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.510e-01  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.47
Ra Dec: 198.688 23.812
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.41e-08 +/- 1.40e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.09e-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) = 4502.58639629
delta logL = 0.92684984712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4502.43740154
delta logL = 1.075844605

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0646       1.0000         .10000E-03   10000.    
     2 'alpha     '    .79418       1.0000          .0000       5.0000    
     3 'Normalizat'    .95790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78367       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=   4502.437     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      205 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0646        7.5792        .37732E-02    .27857E-03
   2  alpha         .79417        .48839        .37161        .32801E-04
   3  Normalizat    .95790        .17891        .45637E-01    .23659E-04
   4  Prefactor     .78365        .17803        .43504E-01   -.95701E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.06459
  alpha      = 0.794175
  Normalizat = 0.957898
  Prefactor  = 0.783655
 **********
 **   18 **HESSE 
 **********

 FCN=   4502.437     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0646        11.006        .15093E-03   -1.5176    
   2  alpha         .79417        .69494        .16535E-02   -.75095    
   3  Normalizat    .95790        .20429        .23398E-03   -.94455    
   4  Prefactor     .78365        .20329        .25365E-03   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15666e-09
Minuit parameter uncertainties:
  1  11.0088
  2  0.712878
  3  0.204461
  4  0.203488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381470': 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) = 4502.43740153
delta logL = 1.07584460973

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  7.065e+00  1.101e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  7.942e-01  7.129e-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:  7.837e-01  2.035e-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.579e-01  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.62
Ra Dec: 198.688 23.812
Photon Index (Free Index): 0.79 +/- 0.71
Photon Flux (Free Index): 4.73e-09 +/- 5.23e-09
Energy Flux (Free Index): 5.35e-05 +/- 7.70e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/381470/cmap_HighResolution_578102401_578361601_4FGL_J1314.7+2348_daily_bin1307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.41e-08', energy_flux2='5.35e-05', photon_flux_error='1.40e-08', dlogl='1.08e+00', energy_flux='1.10e-05', photon_flux2='4.73e-09', job_status='DONE', time_completed='2021-09-07 06:47:11.143342', photon_index_error2='0.71', photon_index2='0.79', ts='6.47', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='7.70e-05', EG='0.95', time_epoch_completed='1631022431.14', return_code='0', job_id='381470', GAL2='0.78', EG2='0.96', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='5.23e-09', ts2='8.62', photon_index='1.90' WHERE bin_id='1307' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:47:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 381470: <4FGL_J1314.7+2348_daily_bin1307> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin1307> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 06:30:55 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:37:46 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:37:46 2021
Terminated at Tue Sep  7 06:47:11 2021
Results reported at Tue Sep  7 06:47:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin1307 198.688 23.8124 578102401 578361601 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 :                                   539.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            976 sec.

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

