aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 139 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 17505
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1314.7+2348_weekly_bin758
RA = 198.688, Dec = 23.8124
tmin = 697420801, tmax = 698025601
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='92420', job_status='RUN', time_executed='2023-02-14 01:33:04.514429', time_epoch_executed='1676367184.51' WHERE source_name='4FGL J1314.7+2348' and cadence='weekly' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92420

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92420/ft1_4FGL_J1314.7+2348_weekly_bin758.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92420/ft2_4FGL_J1314.7+2348_weekly_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92420/ft1_4FGL_J1314.7+2348_weekly_bin758.fits outfile=/scratch/kocevski/92420/ft1_filteredMKT_4FGL_J1314.7+2348_weekly_bin758.fits ra=198.688 dec=23.8124 rad=12.0 tmin=697420801.0 tmax=698025601.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 7.91
user 7.60
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92420/ft2_4FGL_J1314.7+2348_weekly_bin758.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/92420/ft1_filteredMKT_4FGL_J1314.7+2348_weekly_bin758.fits evtable="EVENTS" outfile="/scratch/kocevski/92420/ft1_filtered_4FGL_J1314.7+2348_weekly_bin758.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.55
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 1363

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92420/ft1_filtered_4FGL_J1314.7+2348_weekly_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/92420/ft2_4FGL_J1314.7+2348_weekly_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/92420/ltcube_697420801_698025601_4FGL_J1314.7+2348_weekly_bin758.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/92420/ft2_4FGL_J1314.7+2348_weekly_bin758.fits
.....................!
real 26.95
user 26.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92420/ft1_filtered_4FGL_J1314.7+2348_weekly_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/92420/ft2_4FGL_J1314.7+2348_weekly_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/92420/ltcube_697420801_698025601_4FGL_J1314.7+2348_weekly_bin758.fits outfile=/scratch/kocevski/92420/expmap_697420801_698025601_4FGL_J1314.7+2348_weekly_bin758.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/92420/ltcube_697420801_698025601_4FGL_J1314.7+2348_weekly_bin758.fits
.....................!
real 192.90
user 187.52
sys 4.82

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/92420/ft1_filtered_4FGL_J1314.7+2348_weekly_bin758.fits scfile=/scratch/kocevski/92420/ft2_4FGL_J1314.7+2348_weekly_bin758.fits outfile=/scratch/kocevski/92420/cmap_697420801_698025601_4FGL_J1314.7+2348_weekly_bin758.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.59
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92420/ft1_filtered_4FGL_J1314.7+2348_weekly_bin758.fits scfile=/scratch/kocevski/92420/ft2_4FGL_J1314.7+2348_weekly_bin758.fits outfile=/scratch/kocevski/92420/cmap_HighResolution_697420801_698025601_4FGL_J1314.7+2348_weekly_bin758.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/92420/ft1_filtered_4FGL_J1314.7+2348_weekly_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/92420/ft2_4FGL_J1314.7+2348_weekly_bin758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92420/Model_4FGL_J1314.7+2348_weekly_bin758.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/92420/ft1_filtered_4FGL_J1314.7+2348_weekly_bin758.fits.....................!
real 104.21
user 102.76
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/92420/ft1_filtered_4FGL_J1314.7+2348_weekly_bin758.fits', '/scratch/kocevski/92420/ft2_4FGL_J1314.7+2348_weekly_bin758.fits', expMap='/scratch/kocevski/92420/expmap_697420801_698025601_4FGL_J1314.7+2348_weekly_bin758.fits', expCube='/scratch/kocevski/92420/ltcube_697420801_698025601_4FGL_J1314.7+2348_weekly_bin758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/92420/Model_4FGL_J1314.7+2348_weekly_bin758.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  0.000e+00  1.000e+06 ( 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 -5.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/92420/ft1_filtered_4FGL_J1314.7+2348_weekly_bin758.fits
Spacecraft file(s): /scratch/kocevski/92420/ft2_4FGL_J1314.7+2348_weekly_bin758.fits
Exposure map: /scratch/kocevski/92420/expmap_697420801_698025601_4FGL_J1314.7+2348_weekly_bin758.fits
Exposure cube: /scratch/kocevski/92420/ltcube_697420801_698025601_4FGL_J1314.7+2348_weekly_bin758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/92420/Model_4FGL_J1314.7+2348_weekly_bin758.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) = 14724.4959181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49366       1.0000          .0000       .10000E+07
     2 'norm      '    .96150E-01   1.0000          .0000       .10000E+07
     3 'norm      '    2.4625       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.4335       1.0000          .0000       .10000E+07
     5 'Prefactor '    .23241E-04   1.0000          .0000       .10000E+07
     6 'norm      '    3.0034       1.0000          .0000       .10000E+07
     7 'Prefactor '    .77501E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .65764E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .21953E-04   1.0000          .0000       .10000E+07
    10 'norm      '    25.721       1.0000          .0000       .10000E+07
    11 'norm      '    12.146       1.0000          .0000       .10000E+07
    12 'norm      '    16.429       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6992       1.0000          .0000       .10000E+07
    14 'Prefactor '    .75945E-03   1.0000          .0000       .10000E+07
    15 'norm      '    45.183       1.0000          .0000       .10000E+07
    16 'Prefactor '    .18480E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    20.602       1.0000          .0000       .10000E+07
    18 'norm      '    .68334E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .39108E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    10.869       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.4704       1.0000          .0000       .10000E+07
    22 'Prefactor '    5.1923       1.0000          .0000       .10000E+07
    23 'Normalizat'    .80366       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1462       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=   14721.05     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     1169 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49538        4.2710       -.15651E-06    .25424E-03
   2  norm          .96182E-01    .10648       -.17035E-07** at limit **
   3  norm          2.4629        2.2820        .24034E-06   -.91912E-04
   4  Prefactor     7.3861        4.9689       -.26934E-07    .56118E-03
   5  Prefactor      .0000        1.2041       -.13457E-06** at limit **
   6  norm          3.0027        2.0643       -.67439E-07    .20244E-03
   7  Prefactor      .0000        2.6464        .41562E-06** at limit **
   8  Prefactor      .0000        3.5213       -.58653E-07** at limit **
   9  norm           .0000        2.6475       -.43608E-06** at limit **
  10  norm          25.708        3.1684       -.32366E-07    .16745E-03
  11  norm          12.184        1.9036       -.64221E-07    .59802E-03
  12  norm          16.565        1.1682       -.17795E-07    .21524E-02
  13  Prefactor     1.6974        1.6553       -.23680E-07   -.29355E-03
  14  Prefactor      .0000        5.7208       -.84571E-06** at limit **
  15  norm          45.125        3.1119       -.52778E-07    .28968E-01
  16  Prefactor      .0000        8.0016       -.41007E-06** at limit **
  17  Prefactor     20.745        24.673        .35381E-06   -.27116E-03
  18  norm           .0000        1.6795       -.23508E-06** at limit **
  19  Prefactor      .0000        4.7664        .44787E-06** at limit **
  20  Prefactor     10.780        1.0922       -.48224E-08    .46147E-03
  21  Prefactor     3.4744        2.4188        .18641E-07   -.45412E-04
  22  Prefactor     5.1969        5.7029        .37864E-06    .51250E-02
  23  Normalizat    .80389        .12998       -.16613E-06   -.11296E-04
  24  Prefactor     1.1461        .13646       -.67467E-06   -.41699E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.495378
  norm       = 0.0961818
  norm       = 2.46287
  Prefactor  = 7.38611
  Prefactor  = 0
  norm       = 3.00268
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 25.7083
  norm       = 12.1844
  norm       = 16.5648
  Prefactor  = 1.69741
  Prefactor  = 0
  norm       = 45.125
  Prefactor  = 0
  Prefactor  = 20.7452
  norm       = 0
  Prefactor  = 0
  Prefactor  = 10.7803
  Prefactor  = 3.47436
  Prefactor  = 5.19688
  Normalizat = 0.803894
  Prefactor  = 1.14607
 **********
 **   18 **HESSE 
 **********

 FCN=   14721.05     FROM HESSE     STATUS=OK           455 CALLS     1624 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49538        4.3481        .79350E-03   -1.5694    
   2  norm          .96182E-01    .13138        .91714E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4629        2.3293        .65144E-03   -1.5677    
   4  Prefactor     7.3861        4.9787        .36761E-03   -1.5654    
   5  Prefactor      .0000        1.2033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.0027        2.0699        .58543E-03   -1.5673    
   7  Prefactor      .0000        2.6443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.5220        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .63329        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          25.708        5.7436        .19722E-03   -1.5607    
  11  norm          12.184        9.7570        .28718E-03   -1.5638    
  12  norm          16.565        10.298        .24683E-03   -1.5627    
  13  Prefactor     1.6974        1.6808        .80673E-03   -1.5682    
  14  Prefactor      .0000        5.7239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          45.125        6.7377        .14878E-03   -1.5574    
  16  Prefactor      .0000        8.0019        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.745        24.715        .22038E-03   -1.5617    
  18  norm           .0000        1.6822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        4.7794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.780        12.625        .30365E-03   -1.5642    
  21  Prefactor     3.4744        2.4283        .54258E-03   -1.5671    
  22  Prefactor     5.1969        6.3773        .44093E-03   -1.5662    
  23  Normalizat    .80389        .11466        .43658E-01   -.99924    
  24  Prefactor     1.1461        .11623        .55152E-01   -.88007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12614e-06
Minuit parameter uncertainties:
  1  2.93528
  2  0.131383
  3  2.32934
  4  4.97872
  5  2.2259e-06
  6  2.06988
  7  5.71888e-06
  8  1.90442e-06
  9  6.15535e-06
  10  5.74365
  11  9.75698
  12  10.2983
  13  1.68085
  14  5.79623e-06
  15  6.73769
  16  5.82075e-07
  17  24.7146
  18  4.12913e-06
  19  7.84488e-06
  20  12.6246
  21  2.42827
  22  6.37727
  23  0.114694
  24  0.116258
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.656e+01  1.030e+01  0.000e+00  1.000e+06 ( 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 -5.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.146e+00  1.163e-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:  8.039e-01  1.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.12
Ra Dec: 198.688 23.812
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.58e-08 +/- 9.81e-09
Energy Flux (Fixed Index): 1.23e-05 +/- 7.64e-06

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) = 14721.0181039
delta logL = 0.0321619717288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14721.0180378
delta logL = 0.0322280918608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.551       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7599       1.0000          .0000       5.0000    
     3 'Normalizat'    .80608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1451       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=   14721.02     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      227 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.526        352.43        .24592E-03    .33809E-03
   2  alpha         1.7583        2.6359        .43701       -.88420E-05
   3  Normalizat    .80612        .14710        .43690E-01    .32755E-04
   4  Prefactor     1.1451        .96222E-01    .55177E-01   -.46041E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 16.5255
  alpha      = 1.75833
  Normalizat = 0.806116
  Prefactor  = 1.1451
 **********
 **   18 **HESSE 
 **********

 FCN=   14721.02     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.526        10.444        .49184E-04   -1.5627    
   2  alpha         1.7583        .53277        .21139E-01   -.30120    
   3  Normalizat    .80612        .12689        .26850E-03   -.99842    
   4  Prefactor     1.1451        .13547        .24396E-03   -.88038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06481e-10
Minuit parameter uncertainties:
  1  10.4437
  2  0.537298
  3  0.126933
  4  0.135513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92420': 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) = 14721.0180314
delta logL = 0.0322345021341

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.653e+01  1.044e+01  0.000e+00  1.000e+06 ( 1.000e-13)
309        alpha:  1.758e+00  5.373e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  9.683e-02  0.000e+00 -5.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.145e+00  1.355e-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:  8.061e-01  1.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.19
Ra Dec: 198.688 23.812
Photon Index (Free Index): 1.76 +/- 0.54
Photon Flux (Free Index): 1.34e-08 +/- 1.21e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/92420/cmap_HighResolution_697420801_698025601_4FGL_J1314.7+2348_weekly_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-08', energy_flux2='1.39e-05', photon_flux_error='9.81e-09', dlogl='3.22e-02', energy_flux='1.23e-05', photon_flux2='1.34e-08', job_status='DONE', time_completed='2023-02-14 01:46:21.473342', photon_index_error2='0.54', photon_index2='1.76', ts='7.12', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='0.80', time_epoch_completed='1676367981.47', return_code='0', job_id='92420', GAL2='1.15', EG2='0.81', return_code2='0', energy_flux_error='7.64e-06', photon_flux_error2='1.21e-08', ts2='7.19', photon_index='1.90' WHERE bin_id='758' AND source_name='4FGL J1314.7+2348' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 14 01:46:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 92420: <4FGL_J1314.7+2348_weekly_bin758> in cluster <slac> Done

Job <4FGL_J1314.7+2348_weekly_bin758> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Feb 14 01:30:22 2023
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 14 01:30:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 14 01:30:23 2023
Terminated at Tue Feb 14 01:46:21 2023
Results reported at Tue Feb 14 01:46:21 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_weekly_bin758 198.688 23.8124 697420801 698025601 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 :                                   795.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            959 sec.

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

