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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin1064
RA = 198.688, Dec = 23.8124
tmin = 515116801, tmax = 515376001
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='381125', job_status='RUN', time_executed='2021-09-07 06:36:00.428881', time_epoch_executed='1631021760.43' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381125/ft1_4FGL_J1314.7+2348_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381125/ft2_4FGL_J1314.7+2348_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381125/ft1_4FGL_J1314.7+2348_daily_bin1064.fits outfile=/scratch/kocevski/381125/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin1064.fits ra=198.688 dec=23.8124 rad=12.0 tmin=515116801.0 tmax=515376001.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.67
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381125/ft1_filtered_4FGL_J1314.7+2348_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/381125/ft2_4FGL_J1314.7+2348_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/381125/ltcube_515116801_515376001_4FGL_J1314.7+2348_daily_bin1064.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/381125/ft2_4FGL_J1314.7+2348_daily_bin1064.fits
.....................!
real 15.07
user 13.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381125/ft1_filtered_4FGL_J1314.7+2348_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/381125/ft2_4FGL_J1314.7+2348_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/381125/ltcube_515116801_515376001_4FGL_J1314.7+2348_daily_bin1064.fits outfile=/scratch/kocevski/381125/expmap_515116801_515376001_4FGL_J1314.7+2348_daily_bin1064.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/381125/ltcube_515116801_515376001_4FGL_J1314.7+2348_daily_bin1064.fits
.....................!
real 194.50
user 186.27
sys 5.07

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/381125/ft1_filtered_4FGL_J1314.7+2348_daily_bin1064.fits scfile=/scratch/kocevski/381125/ft2_4FGL_J1314.7+2348_daily_bin1064.fits outfile=/scratch/kocevski/381125/cmap_515116801_515376001_4FGL_J1314.7+2348_daily_bin1064.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/381125/ft1_filtered_4FGL_J1314.7+2348_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/381125/ft2_4FGL_J1314.7+2348_daily_bin1064.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/381125/Model_4FGL_J1314.7+2348_daily_bin1064.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/381125/ft1_filtered_4FGL_J1314.7+2348_daily_bin1064.fits.....................!
real 50.61
user 49.08
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .24402       1.0000         .10000E-03   10000.    
     3 'norm      '    7.7342       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1709       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.895       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5951       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.747       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.286       1.0000         .10000E-03   10000.    
    10 'norm      '    11.513       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3928       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.7578       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7339       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.441       1.0000         .10000E-03   10000.    
    16 'norm      '    5.7863       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.777       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .58488E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .16107E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11134E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7555       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11926E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2429       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78134       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5890.692     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     2449 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7090        .19242E-06** at limit **
   2  norm          .24396        .21502       -.70516E-07   -.26693E-03
   3  norm          7.7325        4.0923       -.68407E-06   -.12940E-03
   4  Prefactor     7.1711        1.3522        .14441E-05   -.29342E-03
   5  Prefactor     10.929        5.7877        .11812E-05    .25911E-02
   6  Prefactor     .10000E-03    2.5276        .54437E-06** at limit **
   7  norm          2.5856        3.9150       -.87538E-06   -.88585E-04
   8  Prefactor     34.760        13.100        .58546E-05   -.32936E-02
   9  Prefactor     23.385        25.558        .25709E-05    .12835E-03
  10  norm          11.514        4.8008        .32886E-05   -.23659E-03
  11  norm          3.3905        2.9705        .14499E-06    .70121E-04
  12  norm          .10000E-03    3.3430       -.51874E-07** at limit **
  13  norm          3.7586        10.058       -.23576E-04   -.36742E-03
  14  Prefactor     3.7355        3.4552       -.20037E-05    .13939E-03
  15  Prefactor     24.433        9.9011       -.31892E-05   -.38154E-02
  16  norm          5.7841        6.2734       -.11048E-04   -.42697E-03
  17  Prefactor     28.777        1.0929       -.47663E-09    .54420E-03
  18  Prefactor     .10534E-03    1754.7       -.13987E-03** at limit **
  19  norm          .10000E-03    6.8280        .43725E-06** at limit **
  20  Prefactor     .10000E-03    11.119       -.72125E-06** at limit **
  21  Prefactor     7.7615        2.5029        .37020E-08   -.54270E-03
  22  Prefactor     .10000E-03    3.9151        .13166E-05** at limit **
  23  Prefactor     .10000E-03    8.0538        .35886E-06** at limit **
  24  Normalizat    1.2429        .20803       -.11995E-05    .73293E-04
  25  Prefactor     .78132        .21005        .87018E-06    .11252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.243962
  norm       = 7.73246
  Prefactor  = 7.17112
  Prefactor  = 10.9291
  Prefactor  = 0.0001
  norm       = 2.58562
  Prefactor  = 34.7595
  Prefactor  = 23.3851
  norm       = 11.5138
  norm       = 3.39055
  norm       = 0.0001
  norm       = 3.75865
  Prefactor  = 3.73547
  Prefactor  = 24.4334
  norm       = 5.78412
  Prefactor  = 28.7771
  Prefactor  = 0.00010534
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.76152
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24291
  Prefactor  = 0.781319
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.692     FROM HESSE     STATUS=OK           499 CALLS     2948 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6909        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .24396        .22785        .73400E-02   -1.5609    
   3  norm          7.7325        4.1025        .36048E-02   -1.5152    
   4  Prefactor     7.1711        6.8145        .37449E-02   -1.5172    
   5  Prefactor     10.929        55.372        .30345E-02   -1.5047    
   6  Prefactor     .10000E-03    2.5188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5856        3.9801        .63319E-02   -1.5386    
   8  Prefactor     34.760        16.762        .16996E-02   -1.4528    
   9  Prefactor     23.385        25.834        .20752E-02   -1.4740    
  10  norm          11.514        4.7997        .29517E-02   -1.5029    
  11  norm          3.3905        2.9936        .54913E-02   -1.5340    
  12  norm          .10000E-03    3.3249        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.7586        10.137        .52068E-02   -1.5320    
  14  Prefactor     3.7355        3.6384        .52240E-02   -1.5321    
  15  Prefactor     24.433        16.313        .20256E-02   -1.4719    
  16  norm          5.7841        6.3728        .41741E-02   -1.5227    
  17  Prefactor     28.777        33.524        .18671E-02   -1.4635    
  18  Prefactor     .10534E-03    67.394        .16650       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.7650        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.7615        20.478        .35998E-02   -1.5151    
  22  Prefactor     .10000E-03    2.1195        .41203E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.9348        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2429        .18078        .50999E-01   -.85287    
  25  Prefactor     .78132        .17924        .65098E-01   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00443e-07
Minuit parameter uncertainties:
  1  4.70941e-06
  2  0.22785
  3  4.10263
  4  6.81528
  5  49.2728
  6  1.2455e-05
  7  3.9805
  8  16.7644
  9  25.846
  10  4.79984
  11  2.99375
  12  4.4469e-06
  13  10.1412
  14  3.63866
  15  16.3161
  16  6.37356
  17  33.5463
  18  0.0379834
  19  3.24712e-06
  20  3.70936e-05
  21  20.4963
  22  2.5938e-06
  23  3.1903e-06
  24  0.180872
  25  0.179377
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  3.759e+00  1.014e+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.813e-01  1.794e-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.243e+00  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/381125/likelihoodResults_515116801_515376001_4FGL_J1314.7+2348_daily_bin1064.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) = 5890.09389365
delta logL = 0.5976520353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5890.08811604
delta logL = 0.603429643455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5517       1.0000         .10000E-03   10000.    
     2 'alpha     '    .82895       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77834       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=   5890.088     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5550        5.9242        .47172E-02    .11980E-03
   2  alpha         .82941        .60040        .50000       -.53411E-04
   3  Normalizat    1.2447        .17010        .50943E-01    .13655E-03
   4  Prefactor     .77835        .17736        .65168E-01    .11174E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.55496
  alpha      = 0.829406
  Normalizat = 1.24473
  Prefactor  = 0.778348
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.088     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5550        7.8933        .18869E-03   -1.5281    
   2  alpha         .82941        .77273        .24636E-02   -.73184    
   3  Normalizat    1.2447        .20016        .22523E-03   -.85231    
   4  Prefactor     .77835        .20846        .28829E-03   -1.0053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84897e-11
Minuit parameter uncertainties:
  1  7.89513
  2  0.796886
  3  0.200279
  4  0.208669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381125': 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) = 5890.08811588
delta logL = 0.603429808493

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  4.555e+00  7.895e+00  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  8.294e-01  7.969e-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.783e-01  2.087e-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.245e+00  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 198.688 23.812
Photon Index (Free Index): 0.83 +/- 0.80
Photon Flux (Free Index): 2.95e-09 +/- 4.03e-09
Energy Flux (Free Index): 3.09e-05 +/- 5.71e-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/381125/cmap_HighResolution_515116801_515376001_4FGL_J1314.7+2348_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-05', comment='SUCCESS', energy_flux2='3.09e-05', dlogl='6.03e-01', photon_flux2='2.95e-09', job_status='DONE', time_completed='2021-09-07 06:47:06.625028', photon_index_error2='0.80', photon_index2='0.83', ts='0.19', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='3.97e-08', energy_flux_error2='5.71e-05', EG='1.24', time_epoch_completed='1631022426.63', return_code='0', job_id='381125', GAL2='0.78', EG2='1.24', return_code2='0', photon_flux_error2='4.03e-09', ts2='1.39', photon_index='1.90' WHERE bin_id='1064' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:47:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 381125: <4FGL_J1314.7+2348_daily_bin1064> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin1064> 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) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:33:37 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:37 2021
Terminated at Tue Sep  7 06:47:07 2021
Results reported at Tue Sep  7 06:47:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin1064 198.688 23.8124 515116801 515376001 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 :                                   658.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            995 sec.

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

