/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 218 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1314.7+2348_daily_bin54
RA = 198.688, Dec = 23.8124
tmin = 253324801, tmax = 253584001
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='375579', job_status='RUN', time_executed='2021-09-07 06:15:33.928443', time_epoch_executed='1631020533.93' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375579

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375579/ft1_4FGL_J1314.7+2348_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375579/ft2_4FGL_J1314.7+2348_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375579/ft1_4FGL_J1314.7+2348_daily_bin54.fits outfile=/scratch/kocevski/375579/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin54.fits ra=198.688 dec=23.8124 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.47
user 1.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375579/ft1_filtered_4FGL_J1314.7+2348_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/375579/ft2_4FGL_J1314.7+2348_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/375579/ltcube_253324801_253584001_4FGL_J1314.7+2348_daily_bin54.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/375579/ft2_4FGL_J1314.7+2348_daily_bin54.fits
.....................!
real 18.41
user 17.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375579/ft1_filtered_4FGL_J1314.7+2348_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/375579/ft2_4FGL_J1314.7+2348_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/375579/ltcube_253324801_253584001_4FGL_J1314.7+2348_daily_bin54.fits outfile=/scratch/kocevski/375579/expmap_253324801_253584001_4FGL_J1314.7+2348_daily_bin54.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/375579/ltcube_253324801_253584001_4FGL_J1314.7+2348_daily_bin54.fits
.....................!
real 192.78
user 187.28
sys 4.96

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/375579/ft1_filtered_4FGL_J1314.7+2348_daily_bin54.fits scfile=/scratch/kocevski/375579/ft2_4FGL_J1314.7+2348_daily_bin54.fits outfile=/scratch/kocevski/375579/cmap_253324801_253584001_4FGL_J1314.7+2348_daily_bin54.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=198.688 yref=23.8124 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375579/ft1_filtered_4FGL_J1314.7+2348_daily_bin54.fits scfile=/scratch/kocevski/375579/ft2_4FGL_J1314.7+2348_daily_bin54.fits outfile=/scratch/kocevski/375579/cmap_HighResolution_253324801_253584001_4FGL_J1314.7+2348_daily_bin54.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375579/ft1_filtered_4FGL_J1314.7+2348_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/375579/ft2_4FGL_J1314.7+2348_daily_bin54.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375579/Model_4FGL_J1314.7+2348_daily_bin54.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/375579/ft1_filtered_4FGL_J1314.7+2348_daily_bin54.fits.....................!
real 45.17
user 43.38
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .21665E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   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      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8480       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2241       1.0000         .10000E-03   10000.    
    11 'norm      '    9.2718       1.0000         .10000E-03   10000.    
    12 'norm      '    .10556E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .65687       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.421       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3629       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.645       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1075       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85025       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=   4826.393     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2485 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8187        .17072E-07** at limit **
   2  norm          .21646E-01    .80579E-01    .46773E-07   -.63898E-02
   3  norm          .10000E-03    1.4804        .80339E-08** at limit **
   4  Prefactor     .10000E-03    17.258       -.41467E-05** at limit **
   5  Prefactor     .10000E-03    27.131        .10018E-04** at limit **
   6  Prefactor     .10000E-03    2.3935        .25392E-08** at limit **
   7  norm          .10000E-03    1.2890        .28668E-07** at limit **
   8  Prefactor     9.8475        13.821        .18185E-06   -.63052E-06
   9  Prefactor     .10000E-03    14.893        .26704E-05** at limit **
  10  norm          3.2238        3.7106        .84715E-06    .77245E-04
  11  norm          9.2682        4.4722       -.13365E-05   -.28289E-03
  12  norm          .10000E-03    7.4224        .17304E-06** at limit **
  13  norm          .10000E-03    22.323       -.70191E-05** at limit **
  14  Prefactor     .65773        2.6013        .54768E-06   -.11353E-03
  15  Prefactor     .10000E-03    5.9758        .37355E-05** at limit **
  16  norm          .10000E-03    7.5470       -.16675E-05** at limit **
  17  Prefactor     .10000E-03    12.977        .16165E-05** at limit **
  18  Prefactor     .10000E-03    63.459       -.41622E-05** at limit **
  19  norm          14.415        9.6519        .65053E-07    .13328E-03
  20  Prefactor     2.3594        11.442        .48822E-06   -.45297E-03
  21  Prefactor     10.642        17.070        .38991E-07   -.44082E-04
  22  Prefactor     .10000E-03    5.1159       -.37909E-05** at limit **
  23  Prefactor     .10000E-03    4.6785        .15629E-05** at limit **
  24  Normalizat    1.1075        .17874        .59892E-06    .12446E-03
  25  Prefactor     .85023        .17942       -.44844E-06    .12115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0216457
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.8475
  Prefactor  = 0.0001
  norm       = 3.22377
  norm       = 9.26822
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.657731
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.4151
  Prefactor  = 2.35938
  Prefactor  = 10.6415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10755
  Prefactor  = 0.850235
 **********
 **   18 **HESSE 
 **********

 FCN=   4826.393     FROM HESSE     STATUS=OK           421 CALLS     2906 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8231        .91497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .21646E-01    .21437        .18262E-03   -1.5679    
   3  norm          .10000E-03    1.4903        .82541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3982        .10495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2913        .77023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.8475        13.835        .12769E-03   -1.5080    
   9  Prefactor     .10000E-03    14.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2238        3.7072        .13813E-03   -1.5349    
  11  norm          9.2682        4.4724        .96742E-04   -1.5099    
  12  norm          .10000E-03    7.5557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    22.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .65773        2.5838        .21264E-03   -1.5546    
  15  Prefactor     .10000E-03    5.9867        .16581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.6441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    63.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.415        9.6529        .10547E-03   -1.4948    
  20  Prefactor     2.3594        15.230        .13329E-02   -1.5401    
  21  Prefactor     10.642        17.052        .61401E-03   -1.5055    
  22  Prefactor     .10000E-03    5.2636        .30439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.7002        .14669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1075        .20515        .21513E-03   -.89510    
  25  Prefactor     .85023        .20491        .25104E-03   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97749e-09
Minuit parameter uncertainties:
  1  2.09184e-07
  2  0.135923
  3  2.48248e-07
  4  5.18172e-06
  5  7.55096e-05
  6  2.56481e-06
  7  2.5956e-06
  8  13.8397
  9  5.42676e-05
  10  3.70746
  11  4.47259
  12  0.000176065
  13  4.85417e-05
  14  2.58423
  15  1.89933e-05
  16  7.82606e-06
  17  6.42521e-06
  18  4.82045e-05
  19  9.65396
  20  11.993
  21  17.0601
  22  2.8426e-05
  23  1.72665e-06
  24  0.205298
  25  0.205094
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.000e-04  4.854e-05  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.502e-01  2.051e-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.108e+00  2.053e-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: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375579/likelihoodResults_253324801_253584001_4FGL_J1314.7+2348_daily_bin54.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) = 4826.39278591
delta logL = -0.000212449507671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4826.39257372
delta logL = -2.54063706961e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8446       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85024       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=   4826.393     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      229 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    49.531        .90712E-02** at limit **
   2  alpha         1.8926        3.4266        .43099       -.11593E-04
   3  Normalizat    1.1075        .17130        .37701E-01    .17240E-04
   4  Prefactor     .85023        .17840        .44368E-01    .20122E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.89255
  Normalizat = 1.10755
  Prefactor  = 0.850235
 **********
 **   18 **HESSE 
 **********

 FCN=   4826.393     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8926        3.3885        .50000       -.24544    
   3  Normalizat    1.1075        .19503        .21513E-03   -.89510    
   4  Prefactor     .85023        .20304        .25104E-03   -.97902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08531e-10
Minuit parameter uncertainties:
  1  0.000482888
  2  2.47406
  3  0.195157
  4  0.203216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375579': 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) = 4826.39257348
delta logL = -1.73768057721e-08

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.000e-04  4.829e-04  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  1.893e+00  2.474e+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:  8.502e-01  2.032e-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.108e+00  1.952e-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/375579/cmap_HighResolution_253324801_253584001_4FGL_J1314.7+2348_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-05', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-09-07 06:25:22.894193', job_id='375579', GAL2='0.85', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1631021122.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-1.74e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='54' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:25:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 375579: <4FGL_J1314.7+2348_daily_bin54> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin54> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 06:10:38 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:11:44 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:11:44 2021
Terminated at Tue Sep  7 06:25:23 2021
Results reported at Tue Sep  7 06:25:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin54 198.688 23.8124 253324801 253584001 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 :                                   586.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            885 sec.

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

