/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 4 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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1314.7+2348_daily_bin132
RA = 198.688, Dec = 23.8124
tmin = 273542401, tmax = 273801601
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='375690', job_status='RUN', time_executed='2021-09-07 06:12:57.665757', time_epoch_executed='1631020377.67' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375690

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375690/ft1_4FGL_J1314.7+2348_daily_bin132.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375690/ft2_4FGL_J1314.7+2348_daily_bin132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375690/ft1_4FGL_J1314.7+2348_daily_bin132.fits outfile=/scratch/kocevski/375690/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin132.fits ra=198.688 dec=23.8124 rad=12.0 tmin=273542401.0 tmax=273801601.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.60
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375690/ft1_filtered_4FGL_J1314.7+2348_daily_bin132.fits" evtable="EVENTS" scfile=/scratch/kocevski/375690/ft2_4FGL_J1314.7+2348_daily_bin132.fits sctable="SC_DATA" outfile=/scratch/kocevski/375690/ltcube_273542401_273801601_4FGL_J1314.7+2348_daily_bin132.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/375690/ft2_4FGL_J1314.7+2348_daily_bin132.fits
.....................!
real 17.14
user 16.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375690/ft1_filtered_4FGL_J1314.7+2348_daily_bin132.fits evtable="EVENTS" scfile=/scratch/kocevski/375690/ft2_4FGL_J1314.7+2348_daily_bin132.fits sctable="SC_DATA" expcube=/scratch/kocevski/375690/ltcube_273542401_273801601_4FGL_J1314.7+2348_daily_bin132.fits outfile=/scratch/kocevski/375690/expmap_273542401_273801601_4FGL_J1314.7+2348_daily_bin132.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/375690/ltcube_273542401_273801601_4FGL_J1314.7+2348_daily_bin132.fits
.....................!
real 192.60
user 186.93
sys 4.95

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/375690/ft1_filtered_4FGL_J1314.7+2348_daily_bin132.fits scfile=/scratch/kocevski/375690/ft2_4FGL_J1314.7+2348_daily_bin132.fits outfile=/scratch/kocevski/375690/cmap_273542401_273801601_4FGL_J1314.7+2348_daily_bin132.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/375690/ft1_filtered_4FGL_J1314.7+2348_daily_bin132.fits scfile=/scratch/kocevski/375690/ft2_4FGL_J1314.7+2348_daily_bin132.fits outfile=/scratch/kocevski/375690/cmap_HighResolution_273542401_273801601_4FGL_J1314.7+2348_daily_bin132.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8752       1.0000         .10000E-03   10000.    
     2 'norm      '    .41668       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2015       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.543       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.436       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.318       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.3856       1.0000         .10000E-03   10000.    
    13 'norm      '    10.248       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8749       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.0828       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.9365       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7812       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.685       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16962E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4124       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80599       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=   6617.611     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2934 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8751        3.7262       -.14424E-05   -.81472E-03
   2  norm          .41664        .31601        .10592E-07   -.26238E-03
   3  norm          3.2016        2.9017        .16671E-06    .10281E-03
   4  Prefactor     19.543        14.252        .35623E-07    .39167E-05
   5  Prefactor     .10000E-03    27.415       -.51033E-05** at limit **
   6  Prefactor     .10000E-03    2.1008        .11893E-07** at limit **
   7  norm          .10000E-03    1.7151       -.21224E-07** at limit **
   8  Prefactor     16.437        16.109       -.46391E-07   -.22361E-04
   9  Prefactor     20.311        18.153        .16782E-05    .27527E-03
  10  norm          .10000E-03    1.4334        .26707E-08** at limit **
  11  norm          .10000E-03    2.1302       -.48092E-06** at limit **
  12  norm          3.3791        2.6400        .30270E-06   -.13391E-02
  13  norm          10.246        22.127        .61517E-07   -.11992E-03
  14  Prefactor     1.8714        3.5606        .88829E-07   -.51968E-04
  15  Prefactor     .10000E-03    22.342        .11460E-05** at limit **
  16  norm          7.0827        6.1903        .15027E-06    .10081E-04
  17  Prefactor     .10000E-03    11.865        .30093E-07** at limit **
  18  Prefactor     .10000E-03    107.39       -.14951E-05** at limit **
  19  norm          1.9379        8.6574       -.49647E-06   -.18421E-03
  20  Prefactor     3.7845        18.432       -.37541E-06   -.34844E-04
  21  Prefactor     19.680        22.906       -.46405E-06   -.57746E-04
  22  Prefactor     .10000E-03    2.6688        .10108E-07** at limit **
  23  Prefactor     .10032E-03    8.3040        .27548E-05** at limit **
  24  Normalizat    1.4122        .18276        .38926E-07   -.23398E-03
  25  Prefactor     .80616        .17347       -.18556E-06   -.23204E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.87514
  norm       = 0.416645
  norm       = 3.20157
  Prefactor  = 19.5435
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.4366
  Prefactor  = 20.3113
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.37908
  norm       = 10.2464
  Prefactor  = 1.87139
  Prefactor  = 0.0001
  norm       = 7.08267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.93793
  Prefactor  = 3.78451
  Prefactor  = 19.6797
  Prefactor  = 0.0001
  Prefactor  = 0.000100319
  Normalizat = 1.41223
  Prefactor  = 0.806156
 **********
 **   18 **HESSE 
 **********

 FCN=   6617.611     FROM HESSE     STATUS=OK           433 CALLS     3367 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8751        3.7588        .15103E-03   -1.5314    
   2  norm          .41664        .30213        .38410E-03   -1.5579    
   3  norm          3.2016        2.9030        .12822E-03   -1.5350    
   4  Prefactor     19.543        14.267        .90600E-04   -1.4824    
   5  Prefactor     .10000E-03    27.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1058        .11514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7279        .10401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.437        16.135        .98792E-04   -1.4897    
   9  Prefactor     20.311        18.274        .88858E-04   -1.4806    
  10  norm          .10000E-03    1.4739        .19015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.7777        .21731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.3791        4.7732        .10174E-02   -1.5340    
  13  norm          10.246        22.384        .62583E-03   -1.5068    
  14  Prefactor     1.8714        3.4675        .19469E-03   -1.5434    
  15  Prefactor     .10000E-03    22.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.0827        6.1175        .15073E-03   -1.5176    
  17  Prefactor     .10000E-03    11.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    107.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.9379        8.5707        .29839E-03   -1.5430    
  20  Prefactor     3.7845        18.305        .20760E-03   -1.5319    
  21  Prefactor     19.680        22.827        .90273E-04   -1.4820    
  22  Prefactor     .10000E-03    2.7043        .12969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10032E-03    39.229        .39901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4122        .21759        .22972E-03   -.80276    
  25  Prefactor     .80616        .20525        .29234E-03   -.99502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02566e-08
Minuit parameter uncertainties:
  1  3.75903
  2  0.302127
  3  2.9031
  4  14.2696
  5  0.000597588
  6  5.24192e-07
  7  2.57372e-06
  8  16.139
  9  18.2791
  10  2.90013e-07
  11  9.75191e-06
  12  4.77376
  13  22.4023
  14  3.4679
  15  0.000110434
  16  6.11809
  17  2.36661e-06
  18  0.000354816
  19  8.15267
  20  16.6545
  21  22.8376
  22  1.00969e-06
  23  0.00707978
  24  0.217735
  25  0.20545
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.025e+01  2.240e+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:  8.062e-01  2.054e-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.412e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/375690/likelihoodResults_273542401_273801601_4FGL_J1314.7+2348_daily_bin132.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) = 6616.84494714
delta logL = 0.76640307973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6616.83223193
delta logL = 0.779118285116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9903       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9053       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82483       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6616.832     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      268 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9873        16.402        .12678E-03   -.16662E-03
   2  alpha         2.9056        .90125        .11645E-01   -.41209E-04
   3  Normalizat    1.3703        .20895        .23239E-03   -.54852E-03
   4  Prefactor     .82488        .20513        .28902E-03   -.43393E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.98731
  alpha      = 2.90563
  Normalizat = 1.37034
  Prefactor  = 0.824884
 **********
 **   18 **HESSE 
 **********

 FCN=   6616.832     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9873        14.154        .50710E-05   -1.5076    
   2  alpha         2.9056        .78153        .46580E-03    .16297    
   3  Normalizat    1.3703        .20888        .46479E-04   -.81490    
   4  Prefactor     .82488        .20502        .57803E-04   -.98818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59912e-10
Minuit parameter uncertainties:
  1  14.1588
  2  0.795228
  3  0.209008
  4  0.205208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375690': 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) = 6616.83223107
delta logL = 0.779119144272

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  9.987e+00  1.416e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  2.906e+00  7.952e-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:  8.249e-01  2.052e-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.370e+00  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 198.688 23.812
Photon Index (Free Index): 2.91 +/- 0.80
Photon Flux (Free Index): 4.98e-08 +/- 4.65e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.01e-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/375690/cmap_HighResolution_273542401_273801601_4FGL_J1314.7+2348_daily_bin132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-05', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='7.79e-01', photon_flux2='4.98e-08', job_status='DONE', time_completed='2021-09-07 06:24:55.839008', photon_index_error2='0.80', photon_index2='2.91', ts='0.26', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='6.18e-08', energy_flux_error2='1.01e-05', EG='1.41', time_epoch_completed='1631021095.84', return_code='0', job_id='375690', GAL2='0.82', EG2='1.37', return_code2='0', photon_flux_error2='4.65e-08', ts2='1.83', photon_index='1.90' WHERE bin_id='132' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:24:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 375690: <4FGL_J1314.7+2348_daily_bin132> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin132> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 06:10:47 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:12:42 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:42 2021
Terminated at Tue Sep  7 06:24:56 2021
Results reported at Tue Sep  7 06:24:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin132 198.688 23.8124 273542401 273801601 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 :                                   715.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            849 sec.

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

