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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin1755
RA = 198.688, Dec = 23.8124
tmin = 694224001, tmax = 694483201
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='823697', job_status='RUN', time_executed='2023-01-04 01:02:25.218708', time_epoch_executed='1672822945.22' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823697

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823697/ft1_4FGL_J1314.7+2348_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823697/ft2_4FGL_J1314.7+2348_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823697/ft1_4FGL_J1314.7+2348_daily_bin1755.fits outfile=/scratch/kocevski/823697/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin1755.fits ra=198.688 dec=23.8124 rad=12.0 tmin=694224001.0 tmax=694483201.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.07
user 2.83
sys 0.22

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

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

Number of photons that the gtmktime cut: 792

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823697/ft1_filtered_4FGL_J1314.7+2348_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/823697/ft2_4FGL_J1314.7+2348_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/823697/ltcube_694224001_694483201_4FGL_J1314.7+2348_daily_bin1755.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/823697/ft2_4FGL_J1314.7+2348_daily_bin1755.fits
.....................!
real 17.89
user 17.39
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823697/ft1_filtered_4FGL_J1314.7+2348_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/823697/ft2_4FGL_J1314.7+2348_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/823697/ltcube_694224001_694483201_4FGL_J1314.7+2348_daily_bin1755.fits outfile=/scratch/kocevski/823697/expmap_694224001_694483201_4FGL_J1314.7+2348_daily_bin1755.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/823697/ltcube_694224001_694483201_4FGL_J1314.7+2348_daily_bin1755.fits
.....................!
real 192.67
user 186.07
sys 5.89

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/823697/ft1_filtered_4FGL_J1314.7+2348_daily_bin1755.fits scfile=/scratch/kocevski/823697/ft2_4FGL_J1314.7+2348_daily_bin1755.fits outfile=/scratch/kocevski/823697/cmap_694224001_694483201_4FGL_J1314.7+2348_daily_bin1755.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823697/ft1_filtered_4FGL_J1314.7+2348_daily_bin1755.fits scfile=/scratch/kocevski/823697/ft2_4FGL_J1314.7+2348_daily_bin1755.fits outfile=/scratch/kocevski/823697/cmap_HighResolution_694224001_694483201_4FGL_J1314.7+2348_daily_bin1755.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=198.688 yref=23.8124 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/823697/ft1_filtered_4FGL_J1314.7+2348_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/823697/ft2_4FGL_J1314.7+2348_daily_bin1755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/823697/Model_4FGL_J1314.7+2348_daily_bin1755.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/823697/ft1_filtered_4FGL_J1314.7+2348_daily_bin1755.fits.....................!
real 65.91
user 63.69
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92898E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .39990E-06   1.0000          .0000       .10000E+07
     3 'norm      '    19.399       1.0000          .0000       .10000E+07
     4 'Prefactor '    .19203E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .56055E-06   1.0000          .0000       .10000E+07
     6 'norm      '    .75118E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.7157       1.0000          .0000       .10000E+07
     8 'Prefactor '    11.601       1.0000          .0000       .10000E+07
     9 'norm      '    .79487       1.0000          .0000       .10000E+07
    10 'norm      '    41.616       1.0000          .0000       .10000E+07
    11 'norm      '    2.3002       1.0000          .0000       .10000E+07
    12 'norm      '    14.207       1.0000          .0000       .10000E+07
    13 'Prefactor '    .19512E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .34336E-03   1.0000          .0000       .10000E+07
    15 'norm      '    29.706       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12507E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .25566E-01   1.0000          .0000       .10000E+07
    18 'norm      '    .34628E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .58090E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    24.781       1.0000          .0000       .10000E+07
    21 'Prefactor '    4.0581       1.0000          .0000       .10000E+07
    22 'Prefactor '    .22315E-07   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2556       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81342       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=   8419.350     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1551 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37748E-08    1.0185        .84641E-07** at limit **
   2  norm           .0000        .78066       -.35640E-07** at limit **
   3  norm          19.257        6.1005       -.42636E-07   -.18822E-02
   4  Prefactor     .28644E-07    4.5513        .12914E-05** at limit **
   5  Prefactor     .61451E-07    1.9483       -.96539E-06** at limit **
   6  norm          .69389E-08    1.5082       -.56973E-06** at limit **
   7  Prefactor     2.6939        1.5594        .44398E-06    .61033E-02
   8  Prefactor     11.325        2.4583       -.41062E-06    .44850E-02
   9  norm          .79298        1.7663        .18438E-06    .19484E-02
  10  norm          41.786        5.1945        .17086E-06   -.14633E-01
  11  norm          2.0008        4.2155       -.15552E-05    .62489E-02
  12  norm          14.212        1.0639       -.29344E-07    .20611E-02
  13  Prefactor     .16653E-09    2.1374        .62280E-07** at limit **
  14  Prefactor     .57121E-07    2.3716        .41048E-06** at limit **
  15  norm          29.739        1.4567       -.28256E-07    .24698E-03
  16  Prefactor     .60507E-08    11.012        .28836E-05** at limit **
  17  Prefactor     .11102E-09    21.492        .35947E-06** at limit **
  18  norm          .37192E-08    2.1911        .73582E-06** at limit **
  19  Prefactor     .77716E-09    11.999       -.25093E-05** at limit **
  20  Prefactor     24.703        4.2530        .53054E-06   -.15220E-01
  21  Prefactor     4.0572        2.9994        .15705E-07    .11852E-02
  22  Prefactor     .22149E-07    5.5586       -.15503E-05** at limit **
  23  Normalizat    1.2556        .17999       -.25506E-06    .13021E-03
  24  Prefactor     .81382        .17992        .90257E-06    .94873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.77476e-09
  norm       = 0
  norm       = 19.2575
  Prefactor  = 2.86438e-08
  Prefactor  = 6.14508e-08
  norm       = 6.93889e-09
  Prefactor  = 2.69394
  Prefactor  = 11.3247
  norm       = 0.792977
  norm       = 41.7864
  norm       = 2.00078
  norm       = 14.2123
  Prefactor  = 1.66533e-10
  Prefactor  = 5.7121e-08
  norm       = 29.7391
  Prefactor  = 6.05072e-09
  Prefactor  = 1.11022e-10
  norm       = 3.71925e-09
  Prefactor  = 7.77156e-10
  Prefactor  = 24.7031
  Prefactor  = 4.05718
  Prefactor  = 2.21489e-08
  Normalizat = 1.25557
  Prefactor  = 0.813825
 **********
 **   18 **HESSE 
 **********

 FCN=   8419.350     FROM HESSE     STATUS=OK           453 CALLS     2004 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37748E-08    2.3352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .13170        .19275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.257        6.1331        .22712E-03   -1.5620    
   4  Prefactor     .28644E-07    5.1071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .61451E-07    3.1826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .69389E-08    2.2887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6939        9.2812        .61777E-03   -1.5675    
   8  Prefactor     11.325        17.204        .29387E-03   -1.5641    
   9  norm          .79298        1.7848        .53318E-03   -1.5690    
  10  norm          41.786        11.778        .15503E-03   -1.5579    
  11  norm          2.0008        47.959        .67639E-03   -1.5680    
  12  norm          14.212        11.884        .26548E-03   -1.5633    
  13  Prefactor     .16653E-09    2.1206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .57121E-07    3.4582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          29.739        7.5742        .18351E-03   -1.5599    
  16  Prefactor     .60507E-08    11.951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11102E-09    21.427        .16695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .37192E-08    2.5577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .77716E-09    13.171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.703        18.112        .20092E-03   -1.5609    
  21  Prefactor     4.0572        2.9966        .50028E-03   -1.5668    
  22  Prefactor     .22149E-07    5.9603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2556        .15694        .54057E-01   -.84902    
  24  Prefactor     .81382        .15281        .66446E-01   -.99221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9023e-08
Minuit parameter uncertainties:
  1  0.000188401
  2  1.28892e-06
  3  6.13306
  4  0.000764889
  5  0.000884353
  6  0.000252131
  7  9.28128
  8  17.204
  9  1.78476
  10  11.7781
  11  19.5915
  12  11.8845
  13  3.88996e-05
  14  0.000888771
  15  7.57421
  16  0.000538747
  17  0.000100339
  18  0.000195215
  19  0.000205363
  20  18.1124
  21  2.99661
  22  0.000727052
  23  0.156998
  24  0.152889
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.421e+01  1.188e+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:  8.138e-01  1.529e-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.256e+00  1.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.93
Ra Dec: 198.688 23.812
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.35e-08 +/- 1.13e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 8.82e-06

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

Saving results to:
/scratch/kocevski/823697/likelihoodResults_694224001_694483201_4FGL_J1314.7+2348_daily_bin1755.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) = 8418.23653527
delta logL = 1.11304626814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8418.18044883
delta logL = 1.16913270712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.394       1.0000          .0000       .10000E+07
     2 'alpha     '    .98288       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81105       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=   8418.180     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      220 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.390        8.0937        .31054E-03    .24717E-02
   2  alpha         .98223        .40031        .42002       -.13179E-03
   3  Normalizat    1.2620        .14921        .53933E-01    .88534E-03
   4  Prefactor     .81108        .15199        .66539E-01    .73209E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3905
  alpha      = 0.982234
  Normalizat = 1.26204
  Prefactor  = 0.811081
 **********
 **   18 **HESSE 
 **********

 FCN=   8418.180     FROM HESSE     STATUS=OK            29 CALLS      249 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.390        10.206        .12422E-04   -1.5643    
   2  alpha         .98223        .51841        .18009E-01   -.65241    
   3  Normalizat    1.2620        .17584        .23847E-03   -.84707    
   4  Prefactor     .81108        .17893        .29436E-03   -.99321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.022e-09
Minuit parameter uncertainties:
  1  10.2056
  2  0.524477
  3  0.175923
  4  0.179062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823697': 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) = 8418.18044792
delta logL = 1.16913360841

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.039e+01  1.021e+01  0.000e+00  1.000e+06 ( 1.000e-13)
309        alpha:  9.822e-01  5.245e-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:  8.111e-01  1.791e-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.262e+00  1.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.27
Ra Dec: 198.688 23.812
Photon Index (Free Index): 0.98 +/- 0.52
Photon Flux (Free Index): 6.05e-09 +/- 5.14e-09
Energy Flux (Free Index): 4.47e-05 +/- 5.31e-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/823697/cmap_HighResolution_694224001_694483201_4FGL_J1314.7+2348_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-05', comment='SUCCESS', photon_flux='1.35e-08', energy_flux2='4.47e-05', photon_flux_error='1.13e-08', dlogl='1.17e+00', energy_flux='1.05e-05', photon_flux2='6.05e-09', job_status='DONE', time_completed='2023-01-04 01:13:40.460394', photon_index_error2='0.52', photon_index2='0.98', ts='3.93', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='4.59e-08', energy_flux_error2='5.31e-05', EG='1.26', time_epoch_completed='1672823620.46', return_code='0', job_id='823697', GAL2='0.81', EG2='1.26', return_code2='0', energy_flux_error='8.82e-06', photon_flux_error2='5.14e-09', ts2='6.27', photon_index='1.90' WHERE bin_id='1755' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:13:40 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 823697: <4FGL_J1314.7+2348_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin1755> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan  4 01:00:22 2023
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 01:00:54 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 01:00:54 2023
Terminated at Wed Jan  4 01:13:40 2023
Results reported at Wed Jan  4 01:13:40 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin1755 198.688 23.8124 694224001 694483201 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 :                                   675.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            798 sec.

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

