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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin1438
RA = 198.688, Dec = 23.8124
tmin = 612057601, tmax = 612316801
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='384648', job_status='RUN', time_executed='2021-09-07 06:43:58.583030', time_epoch_executed='1631022238.58' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384648

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384648/ft1_4FGL_J1314.7+2348_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384648/ft2_4FGL_J1314.7+2348_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384648/ft1_4FGL_J1314.7+2348_daily_bin1438.fits outfile=/scratch/kocevski/384648/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin1438.fits ra=198.688 dec=23.8124 rad=12.0 tmin=612057601.0 tmax=612316801.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.76
user 3.52
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384648/ft1_filtered_4FGL_J1314.7+2348_daily_bin1438.fits" evtable="EVENTS" scfile=/scratch/kocevski/384648/ft2_4FGL_J1314.7+2348_daily_bin1438.fits sctable="SC_DATA" outfile=/scratch/kocevski/384648/ltcube_612057601_612316801_4FGL_J1314.7+2348_daily_bin1438.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/384648/ft2_4FGL_J1314.7+2348_daily_bin1438.fits
.....................!
real 13.94
user 13.61
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384648/ft1_filtered_4FGL_J1314.7+2348_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/384648/ft2_4FGL_J1314.7+2348_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/384648/ltcube_612057601_612316801_4FGL_J1314.7+2348_daily_bin1438.fits outfile=/scratch/kocevski/384648/expmap_612057601_612316801_4FGL_J1314.7+2348_daily_bin1438.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/384648/ltcube_612057601_612316801_4FGL_J1314.7+2348_daily_bin1438.fits
.....................!
real 157.74
user 152.80
sys 3.43

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/384648/ft1_filtered_4FGL_J1314.7+2348_daily_bin1438.fits scfile=/scratch/kocevski/384648/ft2_4FGL_J1314.7+2348_daily_bin1438.fits outfile=/scratch/kocevski/384648/cmap_612057601_612316801_4FGL_J1314.7+2348_daily_bin1438.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.35
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384648/ft1_filtered_4FGL_J1314.7+2348_daily_bin1438.fits scfile=/scratch/kocevski/384648/ft2_4FGL_J1314.7+2348_daily_bin1438.fits outfile=/scratch/kocevski/384648/cmap_HighResolution_612057601_612316801_4FGL_J1314.7+2348_daily_bin1438.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.52
user 0.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384648/ft1_filtered_4FGL_J1314.7+2348_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/384648/ft2_4FGL_J1314.7+2348_daily_bin1438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384648/Model_4FGL_J1314.7+2348_daily_bin1438.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/384648/ft1_filtered_4FGL_J1314.7+2348_daily_bin1438.fits.....................!
real 42.36
user 41.08
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .93567E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    5.0632       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.903       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6780       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .18619E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.0248       1.0000         .10000E-03   10000.    
    12 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.2319       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.156       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.035       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.6751       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96897       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1960       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=   5951.873     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2930 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7505       -.18156E-07** at limit **
   2  norm          .93584E-01    .18573       -.97212E-07   -.36469E-02
   3  norm          5.0636        3.5343        .32595E-06   -.10184E-04
   4  Prefactor     .10000E-03    2.5139       -.17315E-07** at limit **
   5  Prefactor     55.888        58.605       -.16803E-04   -.18281E-05
   6  Prefactor     .10000E-03    4.3604       -.16429E-06** at limit **
   7  norm          3.6720        4.6527        .11238E-05   -.35573E-03
   8  Prefactor     .10000E-03    4.0518       -.12872E-05** at limit **
   9  Prefactor     .10000E-03    45.203       -.28574E-05** at limit **
  10  norm          .10000E-03    1.9203        .48373E-06** at limit **
  11  norm          9.0280        3.8460        .77300E-06    .75736E-04
  12  norm          .10000E-03    7.0651       -.10767E-06** at limit **
  13  norm          7.2283        15.326       -.20113E-06   -.47447E-04
  14  Prefactor     .10000E-03    2.5822       -.12055E-06** at limit **
  15  Prefactor     .10000E-03    5.2297       -.46505E-06** at limit **
  16  norm          .10000E-03    6.9029       -.14158E-05** at limit **
  17  Prefactor     62.164        49.003        .76683E-05   -.63433E-06
  18  Prefactor     .10000E-03    36.242        .24588E-05** at limit **
  19  norm          13.037        8.4372        .10643E-05    .52572E-04
  20  Prefactor     .10000E-03    9.7316       -.43518E-05** at limit **
  21  Prefactor     .10000E-03    9.2119        .49636E-05** at limit **
  22  Prefactor     .10000E-03    4.5576        .13672E-05** at limit **
  23  Prefactor     4.6762        7.6356       -.20091E-06   -.14261E-03
  24  Normalizat    .96883        .17064       -.97324E-07   -.65831E-04
  25  Prefactor     1.1961        .18407       -.61523E-06   -.17585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.093584
  norm       = 5.06364
  Prefactor  = 0.0001
  Prefactor  = 55.8882
  Prefactor  = 0.0001
  norm       = 3.67201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.02803
  norm       = 0.0001
  norm       = 7.22832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 62.1638
  Prefactor  = 0.0001
  norm       = 13.0371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.6762
  Normalizat = 0.968829
  Prefactor  = 1.19605
 **********
 **   18 **HESSE 
 **********

 FCN=   5951.873     FROM HESSE     STATUS=OK           425 CALLS     3355 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7528        .99671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .93584E-01    .15942        .45561E-03   -1.5647    
   3  norm          5.0636        3.5317        .11758E-03   -1.5258    
   4  Prefactor     .10000E-03    2.5157        .11946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     55.888        58.243        .53651E-04   -1.4211    
   6  Prefactor     .10000E-03    4.4234        .15728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6720        4.6092        .17492E-03   -1.5325    
   8  Prefactor     .10000E-03    4.0624        .15166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    45.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.8172        .20695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.0280        3.8168        .93068E-04   -1.5107    
  12  norm          .10000E-03    7.1265        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.2283        15.300        .14916E-03   -1.5170    
  14  Prefactor     .10000E-03    2.6906        .24160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2435        .17228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.9922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     62.164        48.957        .50896E-04   -1.4129    
  18  Prefactor     .10000E-03    36.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.037        8.3977        .11095E-03   -1.4986    
  20  Prefactor     .10000E-03    9.7611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.2196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7364        .32114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.6762        7.6311        .18612E-03   -1.5275    
  24  Normalizat    .96883        .19991        .24653E-03   -.94082    
  25  Prefactor     1.1961        .21671        .24513E-03   -.86453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78916e-10
Minuit parameter uncertainties:
  1  9.49145e-08
  2  0.159419
  3  3.53181
  4  2.04001e-06
  5  58.3025
  6  3.34584e-06
  7  4.60966
  8  1.35243e-06
  9  0.000109431
  10  7.23767e-05
  11  3.81689
  12  0.000116625
  13  15.3081
  14  1.23527e-05
  15  7.11327e-06
  16  5.96228e-05
  17  48.9884
  18  5.82162e-06
  19  8.39845
  20  7.87571e-07
  21  1.35521e-06
  22  5.52975e-06
  23  7.63267
  24  0.200066
  25  0.216874
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  7.228e+00  1.531e+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:  1.196e+00  2.169e-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.688e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/384648/likelihoodResults_612057601_612316801_4FGL_J1314.7+2348_daily_bin1438.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) = 5951.65213247
delta logL = 0.22126190241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5951.64685629
delta logL = 0.226538076991

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0376       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6038       1.0000          .0000       5.0000    
     3 'Normalizat'    .95891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1996       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=   5951.647     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      246 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0348        12.862        .16341E-03    .30772E-03
   2  alpha         2.6039        1.1319        .17035E-01    .44717E-04
   3  Normalizat    .95893        .19678        .24761E-03   -.73783E-03
   4  Prefactor     1.1996        .21469        .24474E-03   -.76082E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.03483
  alpha      = 2.60393
  Normalizat = 0.958927
  Prefactor  = 1.19961
 **********
 **   18 **HESSE 
 **********

 FCN=   5951.647     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0348        11.617        .65362E-05   -1.5217    
   2  alpha         2.6039        1.0291        .68141E-03    .41584E-01
   3  Normalizat    .95893        .19687        .49522E-04   -.94419    
   4  Prefactor     1.1996        .21478        .48948E-04   -.86343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03681e-10
Minuit parameter uncertainties:
  1  11.6215
  2  1.06065
  3  0.197015
  4  0.214936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384648': 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) = 5951.64685626
delta logL = 0.226538115171

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  6.035e+00  1.162e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  2.604e+00  1.061e+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:  1.200e+00  2.149e-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.589e-01  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/384648/cmap_HighResolution_612057601_612316801_4FGL_J1314.7+2348_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', job_status='DONE', photon_flux_upper_limit='5.03e-08', time_completed='2021-09-07 06:56:32.625147', job_id='384648', GAL2='1.20', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1631022992.63', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='2.27e-01', ts2='0.75', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1438' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:56:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 384648: <4FGL_J1314.7+2348_daily_bin1438> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin1438> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 06:40:29 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:40: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:40:37 2021
Terminated at Tue Sep  7 06:56:32 2021
Results reported at Tue Sep  7 06:56:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin1438 198.688 23.8124 612057601 612316801 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 :                                   570.09 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             244.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            963 sec.

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

