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


Performing analysis on: 4FGL_J1314.7+2348_weekly_bin750
RA = 198.688, Dec = 23.8124
tmin = 692582401, tmax = 693187201
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='51587', job_status='RUN', time_executed='2022-12-20 03:15:36.992393', time_epoch_executed='1671534936.99' WHERE source_name='4FGL J1314.7+2348' and cadence='weekly' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/51587

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/51587/ft1_4FGL_J1314.7+2348_weekly_bin750.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/51587/ft2_4FGL_J1314.7+2348_weekly_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/51587/ft1_4FGL_J1314.7+2348_weekly_bin750.fits outfile=/scratch/kocevski/51587/ft1_filteredMKT_4FGL_J1314.7+2348_weekly_bin750.fits ra=198.688 dec=23.8124 rad=12.0 tmin=692582401.0 tmax=693187201.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.60
user 7.29
sys 0.29

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

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

Number of photons that the gtmktime cut: 1584

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/51587/ft1_filtered_4FGL_J1314.7+2348_weekly_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/51587/ft2_4FGL_J1314.7+2348_weekly_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/51587/ltcube_692582401_693187201_4FGL_J1314.7+2348_weekly_bin750.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/51587/ft2_4FGL_J1314.7+2348_weekly_bin750.fits
.....................!
real 25.77
user 25.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/51587/ft1_filtered_4FGL_J1314.7+2348_weekly_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/51587/ft2_4FGL_J1314.7+2348_weekly_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/51587/ltcube_692582401_693187201_4FGL_J1314.7+2348_weekly_bin750.fits outfile=/scratch/kocevski/51587/expmap_692582401_693187201_4FGL_J1314.7+2348_weekly_bin750.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/51587/ltcube_692582401_693187201_4FGL_J1314.7+2348_weekly_bin750.fits
.....................!
real 191.49
user 185.90
sys 5.27

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/51587/ft1_filtered_4FGL_J1314.7+2348_weekly_bin750.fits scfile=/scratch/kocevski/51587/ft2_4FGL_J1314.7+2348_weekly_bin750.fits outfile=/scratch/kocevski/51587/cmap_692582401_693187201_4FGL_J1314.7+2348_weekly_bin750.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/51587/ft1_filtered_4FGL_J1314.7+2348_weekly_bin750.fits scfile=/scratch/kocevski/51587/ft2_4FGL_J1314.7+2348_weekly_bin750.fits outfile=/scratch/kocevski/51587/cmap_HighResolution_692582401_693187201_4FGL_J1314.7+2348_weekly_bin750.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.59
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/51587/ft1_filtered_4FGL_J1314.7+2348_weekly_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/51587/ft2_4FGL_J1314.7+2348_weekly_bin750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/51587/Model_4FGL_J1314.7+2348_weekly_bin750.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/51587/ft1_filtered_4FGL_J1314.7+2348_weekly_bin750.fits.....................!
real 119.66
user 118.26
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68797E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .95436E-01   1.0000          .0000       .10000E+07
     3 'norm      '    13.318       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.1616       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11588E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .68750       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11629       1.0000          .0000       .10000E+07
     8 'Prefactor '    .52258E-02   1.0000          .0000       .10000E+07
     9 'norm      '    1.7459       1.0000          .0000       .10000E+07
    10 'norm      '    26.230       1.0000          .0000       .10000E+07
    11 'norm      '    12.699       1.0000          .0000       .10000E+07
    12 'norm      '    18.386       1.0000          .0000       .10000E+07
    13 'Prefactor '    .53471E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .98351E-03   1.0000          .0000       .10000E+07
    15 'norm      '    31.112       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.4399       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12890E-03   1.0000          .0000       .10000E+07
    18 'norm      '    2.7348       1.0000          .0000       .10000E+07
    19 'Prefactor '    .22694E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .21674E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .10037E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    3.3082       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.3296       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86409       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=   16916.88     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1582 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .99728        .70548E-07** at limit **
   2  norm          .95332E-01    .12212       -.28614E-07** at limit **
   3  norm          13.334        3.3329       -.44650E-09   -.97051E-03
   4  Prefactor     5.1277        1.9069       -.17874E-07    .62584E-02
   5  Prefactor      .0000        1.8563       -.31327E-06** at limit **
   6  norm          .67478        2.0686       -.14400E-06   -.20793E-02
   7  Prefactor     .13144        .80384       -.43279E-06** at limit **
   8  Prefactor     .55511E-10    26.709        .93616E-06** at limit **
   9  norm          1.7483        1.6994        .14549E-06    .17876E-03
  10  norm          26.226        3.4256        .15882E-06   -.13212E-01
  11  norm          12.709        3.1684       -.25491E-06    .12152E-01
  12  norm          18.429        1.5815       -.12063E-06   -.84838E-03
  13  Prefactor      .0000        1.1198        .47618E-06** at limit **
  14  Prefactor      .0000        3.9949        .24439E-06** at limit **
  15  norm          31.166        4.9431       -.31551E-06   -.47946E-03
  16  Prefactor     1.4799        1.4110       -.29565E-06    .47655E-02
  17  Prefactor     .55511E-10    10.756        .31952E-06** at limit **
  18  norm          2.7513        5.1855        .78005E-06    .34014E-03
  19  Prefactor     .24591E-07    .93111        .33808E-06** at limit **
  20  Prefactor     .55511E-10    5.5153        .21252E-06** at limit **
  21  Prefactor      .0000        3.4200        .77649E-07** at limit **
  22  Prefactor     3.3084        4.9516        .11429E-05    .71835E-02
  23  Normalizat    1.3296        .13330       -.17893E-05   -.40116E-05
  24  Prefactor     .86410        .13313        .45271E-05   -.19534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.0953317
  norm       = 13.3336
  Prefactor  = 5.12766
  Prefactor  = 0
  norm       = 0.674777
  Prefactor  = 0.131442
  Prefactor  = 5.55112e-11
  norm       = 1.74834
  norm       = 26.2263
  norm       = 12.7092
  norm       = 18.4285
  Prefactor  = 0
  Prefactor  = 0
  norm       = 31.1663
  Prefactor  = 1.47991
  Prefactor  = 5.55112e-11
  norm       = 2.75131
  Prefactor  = 2.45914e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 3.30836
  Normalizat = 1.32957
  Prefactor  = 0.8641
 **********
 **   18 **HESSE 
 **********

 FCN=   16916.88     FROM HESSE     STATUS=OK           465 CALLS     2047 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .99692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .95332E-01    .13753        .11337E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.334        3.3555        .27422E-03   -1.5635    
   4  Prefactor     5.1277        4.4478        .44226E-03   -1.5663    
   5  Prefactor      .0000        1.8499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .67478        2.2111        .61729E-03   -1.5692    
   7  Prefactor     .13144        3.9877        .81908E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    26.678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7483        1.7200        .79342E-03   -1.5682    
  10  norm          26.226        4.9471        .19529E-03   -1.5606    
  11  norm          12.709        7.4248        .28083E-03   -1.5637    
  12  norm          18.429        9.5644        .23330E-03   -1.5622    
  13  Prefactor      .0000        1.1146        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        4.0142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          31.166        7.0279        .17931E-03   -1.5596    
  16  Prefactor     1.4799        27.610        .89875E-03   -1.5684    
  17  Prefactor     .55511E-10    10.783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.7513        6.5562        .61545E-03   -1.5675    
  19  Prefactor     .24591E-07    2.7899        .11642E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    5.5203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        3.3318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.3084        7.7715        .55635E-03   -1.5672    
  23  Normalizat    1.3296        .11417        .53900E-01   -.82688    
  24  Prefactor     .86410        .11344        .66690E-01   -.97407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21276e-06
Minuit parameter uncertainties:
  1  2.4286e-07
  2  0.137534
  3  3.35546
  4  4.44783
  5  9.7466e-06
  6  2.21114
  7  1.44797
  8  5.54758e-05
  9  1.71997
  10  4.94712
  11  7.42481
  12  9.56436
  13  1.16619e-06
  14  2.11389e-06
  15  7.02792
  16  12.7846
  17  5.48495e-05
  18  6.55626
  19  0.000523879
  20  2.56068e-05
  21  3.36383e-06
  22  7.77148
  23  0.114188
  24  0.113468
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.843e+01  9.564e+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

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  8.641e-01  1.135e-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.330e+00  1.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.71
Ra Dec: 198.688 23.812
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.76e-08 +/- 9.11e-09
Energy Flux (Fixed Index): 1.37e-05 +/- 7.10e-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) = 16913.8509013
delta logL = 3.03206067674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16913.1932382
delta logL = 3.68972374074

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2036       1.0000          .0000       .10000E+07
     2 'alpha     '    .74223       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86365       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=   16913.19     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      234 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1985        4.3925        .37349E-03   -.59948E-01
   2  alpha         .74189        .27115        .39281       -.70354E-04
   3  Normalizat    1.3370        .10892        .53797E-01    .87636E-05
   4  Prefactor     .86377        .11201        .66743E-01    .43866E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.19848
  alpha      = 0.74189
  Normalizat = 1.33696
  Prefactor  = 0.863773
 **********
 **   18 **HESSE 
 **********

 FCN=   16913.19     FROM HESSE     STATUS=OK            31 CALLS      265 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1985        7.1646        .74698E-04   -1.5654    
   2  alpha         .74189        .42934        .17764E-02   -.77995    
   3  Normalizat    1.3370        .12933        .23787E-03   -.82470    
   4  Prefactor     .86377        .13288        .29525E-03   -.97419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82592e-11
Minuit parameter uncertainties:
  1  7.16456
  2  0.433634
  3  0.129361
  4  0.132925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/51587': 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) = 16913.1932375
delta logL = 3.68972447065

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  7.198e+00  7.165e+00  0.000e+00  1.000e+06 ( 1.000e-13)
309        alpha:  7.419e-01  4.336e-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.638e-01  1.329e-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.337e+00  1.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.09
Ra Dec: 198.688 23.812
Photon Index (Free Index): 0.74 +/- 0.43
Photon Flux (Free Index): 5.11e-09 +/- 3.28e-09
Energy Flux (Free Index): 6.43e-05 +/- 5.06e-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/51587/cmap_HighResolution_692582401_693187201_4FGL_J1314.7+2348_weekly_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.76e-08', energy_flux2='6.43e-05', photon_flux_error='9.11e-09', dlogl='3.69e+00', energy_flux='1.37e-05', photon_flux2='5.11e-09', job_status='DONE', time_completed='2022-12-20 03:31:22.961389', photon_index_error2='0.43', photon_index2='0.74', ts='19.71', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='5.06e-05', EG='1.33', time_epoch_completed='1671535882.96', return_code='0', job_id='51587', GAL2='0.86', EG2='1.34', return_code2='0', energy_flux_error='7.10e-06', photon_flux_error2='3.28e-09', ts2='27.09', photon_index='1.90' WHERE bin_id='750' AND source_name='4FGL J1314.7+2348' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 20 03:31:22 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 51587: <4FGL_J1314.7+2348_weekly_bin750> in cluster <slac> Done

Job <4FGL_J1314.7+2348_weekly_bin750> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec 20 03:15:26 2022
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 03:15:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 03:15:27 2022
Terminated at Tue Dec 20 03:31:23 2022
Results reported at Tue Dec 20 03:31:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_weekly_bin750 198.688 23.8124 692582401 693187201 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 :                                   947.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            957 sec.

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

