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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin334
RA = 198.688, Dec = 23.8124
tmin = 325900801, tmax = 326160001
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='378249', job_status='RUN', time_executed='2021-09-07 06:23:34.264096', time_epoch_executed='1631021014.26' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378249

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378249/ft1_4FGL_J1314.7+2348_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378249/ft2_4FGL_J1314.7+2348_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378249/ft1_4FGL_J1314.7+2348_daily_bin334.fits outfile=/scratch/kocevski/378249/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin334.fits ra=198.688 dec=23.8124 rad=12.0 tmin=325900801.0 tmax=326160001.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.61
user 3.25
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378249/ft1_filtered_4FGL_J1314.7+2348_daily_bin334.fits" evtable="EVENTS" scfile=/scratch/kocevski/378249/ft2_4FGL_J1314.7+2348_daily_bin334.fits sctable="SC_DATA" outfile=/scratch/kocevski/378249/ltcube_325900801_326160001_4FGL_J1314.7+2348_daily_bin334.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/378249/ft2_4FGL_J1314.7+2348_daily_bin334.fits
.....................!
real 17.19
user 16.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378249/ft1_filtered_4FGL_J1314.7+2348_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/378249/ft2_4FGL_J1314.7+2348_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/378249/ltcube_325900801_326160001_4FGL_J1314.7+2348_daily_bin334.fits outfile=/scratch/kocevski/378249/expmap_325900801_326160001_4FGL_J1314.7+2348_daily_bin334.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/378249/ltcube_325900801_326160001_4FGL_J1314.7+2348_daily_bin334.fits
.....................!
real 192.91
user 187.35
sys 5.05

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/378249/ft1_filtered_4FGL_J1314.7+2348_daily_bin334.fits scfile=/scratch/kocevski/378249/ft2_4FGL_J1314.7+2348_daily_bin334.fits outfile=/scratch/kocevski/378249/cmap_325900801_326160001_4FGL_J1314.7+2348_daily_bin334.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378249/ft1_filtered_4FGL_J1314.7+2348_daily_bin334.fits scfile=/scratch/kocevski/378249/ft2_4FGL_J1314.7+2348_daily_bin334.fits outfile=/scratch/kocevski/378249/cmap_HighResolution_325900801_326160001_4FGL_J1314.7+2348_daily_bin334.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/378249/ft1_filtered_4FGL_J1314.7+2348_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/378249/ft2_4FGL_J1314.7+2348_daily_bin334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/378249/Model_4FGL_J1314.7+2348_daily_bin334.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/378249/ft1_filtered_4FGL_J1314.7+2348_daily_bin334.fits.....................!
real 48.21
user 46.78
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3431       1.0000         .10000E-03   10000.    
     2 'norm      '    .66131       1.0000         .10000E-03   10000.    
     3 'norm      '    7.3622       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5826       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7403       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0689       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10712E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8730       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.931       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13573       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.0037       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2203       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1172       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92886       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=   5615.546     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2489 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3428        5.7451        .34698E-02    .13673E-03
   2  norm          .66124        .35994        .70728E-02    .28255E-03
   3  norm          7.3617        4.6247        .36954E-02    .41752E-03
   4  Prefactor     .10001E-03    15.863        .90712E-02** at limit **
   5  Prefactor     .10000E-03    86.438        .90712E-02** at limit **
   6  Prefactor     4.5805        7.7825        .47009E-02   -.20361E-02
   7  norm          3.7382        4.3367        .52194E-02    .54973E-03
   8  Prefactor     1.0675        15.888        .11760E-01    .13265E-02
   9  Prefactor     .10000E-03    40.687        .90712E-02** at limit **
  10  norm          1.8724        2.9821        .76073E-02    .39402E-03
  11  norm          .10000E-03    .88735        .90712E-02** at limit **
  12  norm          .10000E-03    1.4646        .90712E-02** at limit **
  13  norm          13.930        13.643        .26829E-02    .73928E-04
  14  Prefactor     .10000E-03    2.3830        .90712E-02** at limit **
  15  Prefactor     .36440E-01    6.2545        .96802E-01    .87675E-04
  16  norm          .10000E-03    2.8394        .90712E-02** at limit **
  17  Prefactor     .10000E-03    23.305        .90712E-02** at limit **
  18  Prefactor     .10002E-03    16.662        .90712E-02** at limit **
  19  norm          5.0032        5.3925        .44944E-02   -.26302E-03
  20  Prefactor     .10000E-03    8.4397        .90712E-02** at limit **
  21  Prefactor     .10000E-03    4.9717        .90712E-02** at limit **
  22  Prefactor     2.2199        3.0999        .68993E-02    .41437E-03
  23  Prefactor     .10000E-03    16.085        .90712E-02** at limit **
  24  Normalizat    1.1174        .18224        .37342E-01    .14514E-03
  25  Prefactor     .92874        .18257        .45372E-01    .10631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.34285
  norm       = 0.661235
  norm       = 7.36172
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 4.5805
  norm       = 3.73822
  Prefactor  = 1.06754
  Prefactor  = 0.000100001
  norm       = 1.87238
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.9305
  Prefactor  = 0.0001
  Prefactor  = 0.03644
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 5.00316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.21995
  Prefactor  = 0.000100003
  Normalizat = 1.11741
  Prefactor  = 0.928745
 **********
 **   18 **HESSE 
 **********

 FCN=   5615.546     FROM HESSE     STATUS=OK           429 CALLS     2918 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3428        5.7465        .13879E-03   -1.5130    
   2  norm          .66124        .35277        .31867E-04   -1.5545    
   3  norm          7.3617        4.6234        .12261E-03   -1.5165    
   4  Prefactor     .10001E-03    16.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    86.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5805        7.7688        .18803E-03   -1.5280    
   7  norm          3.7382        4.3263        .16183E-03   -1.5321    
   8  Prefactor     1.0675        16.106        .47041E-03   -1.5501    
   9  Prefactor     .10000E-03    41.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8724        2.9562        .15737E-03   -1.5434    
  11  norm          .10000E-03    .88919        .68917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4653        .88566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.930        13.640        .10731E-03   -1.4961    
  14  Prefactor     .10000E-03    2.4459        .22539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .36440E-01    9.6462        .66088E-01   -1.5670    
  16  norm          .10000E-03    2.8552        .12326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    16.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.0032        5.3926        .17487E-03   -1.5261    
  20  Prefactor     .10000E-03    8.5314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.9739        .16319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.2199        3.0841        .15087E-03   -1.5410    
  23  Prefactor     .10000E-03    16.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1174        .21066        .23222E-03   -.89195    
  25  Prefactor     .92874        .21095        .25641E-03   -.95144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10989e-08
Minuit parameter uncertainties:
  1  5.74684
  2  0.352771
  3  4.6236
  4  0.000763379
  5  0.000598735
  6  7.77047
  7  4.32664
  8  8.29547
  9  0.000345837
  10  2.95647
  11  8.34975e-06
  12  4.77571e-06
  13  13.6433
  14  4.2152e-06
  15  1.18433
  16  2.73395e-05
  17  0.000198073
  18  0.00113506
  19  5.39317
  20  3.09705e-06
  21  3.40273e-05
  22  3.08428
  23  0.000412435
  24  0.210817
  25  0.211138
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.393e+01  1.364e+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:  9.287e-01  2.111e-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.117e+00  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.16
Ra Dec: 198.688 23.812
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.33e-08 +/- 1.30e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.01e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5615.46345064
delta logL = 0.0825197527502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5615.46309245
delta logL = 0.0828779449894

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.931       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5772       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92704       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=   5615.463     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      196 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.037        18.245        .26829E-02   -.21093E-03
   2  alpha         1.5782        .82157        .45418        .92583E-05
   3  Normalizat    1.1213        .17858        .37194E-01    .63014E-05
   4  Prefactor     .92701        .18169        .45349E-01   -.21973E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 14.037
  alpha      = 1.57822
  Normalizat = 1.12126
  Prefactor  = 0.927007
 **********
 **   18 **HESSE 
 **********

 FCN=   5615.463     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.037        13.965        .10731E-03   -1.4958    
   2  alpha         1.5782        .73814        .19862E-01   -.37762    
   3  Normalizat    1.1213        .20520        .23187E-03   -.89072    
   4  Prefactor     .92701        .20952        .25662E-03   -.95204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9098e-11
Minuit parameter uncertainties:
  1  13.9678
  2  0.751152
  3  0.20535
  4  0.209702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378249': 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) = 5615.46306363
delta logL = 0.0829067607001

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.404e+01  1.397e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  1.578e+00  7.512e-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:  9.270e-01  2.097e-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.121e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.33
Ra Dec: 198.688 23.812
Photon Index (Free Index): 1.58 +/- 0.75
Photon Flux (Free Index): 9.49e-09 +/- 1.20e-08
Energy Flux (Free Index): 1.52e-05 +/- 2.20e-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/378249/cmap_HighResolution_325900801_326160001_4FGL_J1314.7+2348_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.33e-08', energy_flux2='1.52e-05', photon_flux_error='1.30e-08', dlogl='8.29e-02', energy_flux='1.03e-05', photon_flux2='9.49e-09', job_status='DONE', time_completed='2021-09-07 06:33:03.350831', photon_index_error2='0.75', photon_index2='1.58', ts='5.16', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.20e-05', EG='1.12', time_epoch_completed='1631021583.35', return_code='0', job_id='378249', GAL2='0.93', EG2='1.12', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='1.20e-08', ts2='5.33', photon_index='1.90' WHERE bin_id='334' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:33:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 378249: <4FGL_J1314.7+2348_daily_bin334> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin334> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 06:20:31 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:20:47 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:20:47 2021
Terminated at Tue Sep  7 06:33:04 2021
Results reported at Tue Sep  7 06:33:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin334 198.688 23.8124 325900801 326160001 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 :                                   567.64 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            753 sec.

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

