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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1746
RA = 204.424, Dec = -12.9517
tmin = 691891201, tmax = 692150401
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='728535', job_status='RUN', time_executed='2022-12-08 01:03:57.183163', time_epoch_executed='1670490237.18' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/728535

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/728535/ft1_4FGL_J1337.6-1257_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/728535/ft2_4FGL_J1337.6-1257_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/728535/ft1_4FGL_J1337.6-1257_daily_bin1746.fits outfile=/scratch/kocevski/728535/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1746.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.73
user 4.48
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/728535/ft2_4FGL_J1337.6-1257_daily_bin1746.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/728535/ft2_4FGL_J1337.6-1257_daily_bin1746.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/728535/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/728535/ft1_filtered_4FGL_J1337.6-1257_daily_bin1746.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.33
sys 0.15

Number of photons that the gtmktime cut: 943

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/728535/ft1_filtered_4FGL_J1337.6-1257_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/728535/ft2_4FGL_J1337.6-1257_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/728535/ltcube_691891201_692150401_4FGL_J1337.6-1257_daily_bin1746.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/728535/ft2_4FGL_J1337.6-1257_daily_bin1746.fits
.....................!
real 11.76
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/728535/ft1_filtered_4FGL_J1337.6-1257_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/728535/ft2_4FGL_J1337.6-1257_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/728535/ltcube_691891201_692150401_4FGL_J1337.6-1257_daily_bin1746.fits outfile=/scratch/kocevski/728535/expmap_691891201_692150401_4FGL_J1337.6-1257_daily_bin1746.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/728535/ltcube_691891201_692150401_4FGL_J1337.6-1257_daily_bin1746.fits
.....................!
real 191.73
user 186.40
sys 4.98

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J1337.6-1257 @ 204.424 -12.9517

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/728535/ft1_filtered_4FGL_J1337.6-1257_daily_bin1746.fits scfile=/scratch/kocevski/728535/ft2_4FGL_J1337.6-1257_daily_bin1746.fits outfile=/scratch/kocevski/728535/cmap_691891201_692150401_4FGL_J1337.6-1257_daily_bin1746.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=204.424 yref=-12.9517 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/728535/ft1_filtered_4FGL_J1337.6-1257_daily_bin1746.fits scfile=/scratch/kocevski/728535/ft2_4FGL_J1337.6-1257_daily_bin1746.fits outfile=/scratch/kocevski/728535/cmap_HighResolution_691891201_692150401_4FGL_J1337.6-1257_daily_bin1746.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=204.424 yref=-12.9517 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/728535/ft1_filtered_4FGL_J1337.6-1257_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/728535/ft2_4FGL_J1337.6-1257_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/728535/Model_4FGL_J1337.6-1257_daily_bin1746.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/728535/ft1_filtered_4FGL_J1337.6-1257_daily_bin1746.fits.....................!
real 77.15
user 75.72
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/728535/ft1_filtered_4FGL_J1337.6-1257_daily_bin1746.fits', '/scratch/kocevski/728535/ft2_4FGL_J1337.6-1257_daily_bin1746.fits', expMap='/scratch/kocevski/728535/expmap_691891201_692150401_4FGL_J1337.6-1257_daily_bin1746.fits', expCube='/scratch/kocevski/728535/ltcube_691891201_692150401_4FGL_J1337.6-1257_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/728535/Model_4FGL_J1337.6-1257_daily_bin1746.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1337.6-1257'

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.146e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  2.305e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.384e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/728535/ft1_filtered_4FGL_J1337.6-1257_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/728535/ft2_4FGL_J1337.6-1257_daily_bin1746.fits
Exposure map: /scratch/kocevski/728535/expmap_691891201_692150401_4FGL_J1337.6-1257_daily_bin1746.fits
Exposure cube: /scratch/kocevski/728535/ltcube_691891201_692150401_4FGL_J1337.6-1257_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/728535/Model_4FGL_J1337.6-1257_daily_bin1746.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) = 10088.9888428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10574E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .38932E-05   1.0000          .0000       .10000E+07
     3 'norm      '    3.5994       1.0000          .0000       .10000E+07
     4 'norm      '    .93521E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.5916       1.0000          .0000       .10000E+07
     6 'Prefactor '    .93385       1.0000          .0000       .10000E+07
     7 'Prefactor '    16.690       1.0000          .0000       .10000E+07
     8 'norm      '    .56601       1.0000          .0000       .10000E+07
     9 'norm      '    .42855E-07   1.0000          .0000       .10000E+07
    10 'norm      '    1.7265       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.9564       1.0000          .0000       .10000E+07
    12 'Prefactor '    .74864E-03   1.0000          .0000       .10000E+07
    13 'norm      '    53.493       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.7002       1.0000          .0000       .10000E+07
    15 'norm      '    .45954E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    1.4764       1.0000          .0000       .10000E+07
    17 'norm      '    .32414E-04   1.0000          .0000       .10000E+07
    18 'norm      '    15.667       1.0000          .0000       .10000E+07
    19 'norm      '    .33773       1.0000          .0000       .10000E+07
    20 'Prefactor '    .21030E-04   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2566       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89291       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10088.96     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1719 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33307E-08    7.7185       -.88231E-07** at limit **
   2  norm           .0000        .71669        .29843E-07** at limit **
   3  norm          3.6059        1.4582        .29951E-07    .18091E-03
   4  norm           .0000        2.9043       -.33790E-08** at limit **
   5  Prefactor     1.5653        5.0609        .48953E-07   -.36542E-03
   6  Prefactor     .92715        1.0894       -.23806E-07    .24376E-01
   7  Prefactor     16.794        5.2979        .32275E-07   -.73174E-01
   8  norm          .56632        .64981       -.12873E-07   -.12209E-02
   9  norm           .0000        1.9303       -.81234E-07** at limit **
  10  norm          1.7166        4.0135       -.48966E-08    .14377E-02
  11  Prefactor     1.9214        4.9747       -.42745E-07   -.12445E-01
  12  Prefactor     .16542E-07    8.4221       -.61151E-07** at limit **
  13  norm          51.994        30.573       -.12646E-07    .31263E-02
  14  Prefactor     3.7283        5.1405       -.27790E-07   -.24562E-01
  15  norm           .0000        1.5335       -.20099E-07** at limit **
  16  Prefactor     1.4752        3.3383       -.12122E-06   -.14749E-02
  17  norm           .0000        1.4675        .37731E-08** at limit **
  18  norm          15.647        3.3087       -.19961E-07   -.36224E-02
  19  norm          .49992        8.3096       -.37670E-06   -.31141E-02
  20  Prefactor     .13878E-08    16.527       -.52764E-07** at limit **
  21  Normalizat    1.2566        .21150        .27529E-06   -.93675E-04
  22  Prefactor     .89288        .11214       -.63654E-06   -.16105E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.33067e-09
  norm       = 0
  norm       = 3.60586
  norm       = 0
  Prefactor  = 1.56534
  Prefactor  = 0.927148
  Prefactor  = 16.7938
  norm       = 0.566325
  norm       = 0
  norm       = 1.71664
  Prefactor  = 1.92143
  Prefactor  = 1.65423e-08
  norm       = 51.9938
  Prefactor  = 3.72834
  norm       = 0
  Prefactor  = 1.47518
  norm       = 0
  norm       = 15.6474
  norm       = 0.499925
  Prefactor  = 1.38778e-09
  Normalizat = 1.25664
  Prefactor  = 0.892881
 **********
 **   18 **HESSE 
 **********

 FCN=   10088.96     FROM HESSE     STATUS=OK           390 CALLS     2109 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33307E-08    7.7005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .71453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.6059        6.2544        .53236E-03   -1.5670    
   4  norm           .0000        2.9040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5653        5.1210        .84069E-03   -1.5683    
   6  Prefactor     .92715        9.3811        .43447E-03   -1.5689    
   7  Prefactor     16.794        14.662        .24489E-03   -1.5626    
   8  norm          .56632        .65622        .72329E-03   -1.5693    
   9  norm           .0000        1.9298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7166        4.2663        .79887E-03   -1.5682    
  11  Prefactor     1.9214        20.869        .74147E-03   -1.5680    
  12  Prefactor     .16542E-07    8.5970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          51.994        30.601        .13674E-03   -1.5564    
  14  Prefactor     3.7283        11.497        .52477E-03   -1.5669    
  15  norm           .0000        1.5312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4752        3.3817        .88346E-03   -1.5684    
  17  norm           .0000        1.4657        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.647        3.3165        .25277E-03   -1.5629    
  19  norm          .49992        8.3219        .97087E-03   -1.5694    
  20  Prefactor     .13878E-08    16.495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2566        .18836        .70525E-01   -.84870    
  22  Prefactor     .89288        .95890E-01    .44915E-01   -.96390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10277e-06
Minuit parameter uncertainties:
  1  0.000320483
  2  3.34007e-06
  3  6.25441
  4  6.40572e-06
  5  5.12099
  6  5.89837
  7  14.662
  8  0.656224
  9  5.08838e-06
  10  4.26635
  11  12.6647
  12  0.00075442
  13  30.6012
  14  11.497
  15  2.30675e-06
  16  3.3817
  17  7.42665e-06
  18  3.31645
  19  4.07939
  20  0.000302778
  21  0.18846
  22  0.095908
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.717e+00  4.266e+00  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  2.305e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.384e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.929e-01  9.591e-02  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.257e+00  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 7.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/728535/likelihoodResults_691891201_692150401_4FGL_J1337.6-1257_daily_bin1746.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) = 10088.9378596
delta logL = 0.017378004206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10088.9372059
delta logL = 0.0180316606475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6115       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6430       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89432       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10088.94     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      255 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6139        4.2402        .26296E-04   -.21877E-03
   2  alpha         2.6437        1.8299        .50699E-01    .14444E-03
   3  Normalizat    1.2513        .20976        .31262E-03   -.50185E-05
   4  Prefactor     .89435        .11192        .19468E-03    .35039E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.61388
  alpha      = 2.64371
  Normalizat = 1.25132
  Prefactor  = 0.894347
 **********
 **   18 **HESSE 
 **********

 FCN=   10088.94     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6139        3.8580        .10518E-05   -1.5683    
   2  alpha         2.6437        1.6990        .10140E-01    .57515E-01
   3  Normalizat    1.2513        .20942        .12505E-04   -.85031    
   4  Prefactor     .89435        .11180        .77871E-05   -.96339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01032e-11
Minuit parameter uncertainties:
  1  3.858
  2  1.86879
  3  0.209562
  4  0.111829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/728535': 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) = 10088.9372055
delta logL = 0.0180321211083

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.614e+00  3.858e+00  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  2.644e+00  1.869e+00  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.384e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.943e-01  1.118e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.251e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
Ra Dec: 204.424 -12.952

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/728535/cmap_HighResolution_691891201_692150401_4FGL_J1337.6-1257_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2022-12-08 01:15:46.730033', job_id='728535', GAL2='0.89', fit_tolerance='1e-08', EG2='1.25', EG='1.26', time_epoch_completed='1670490946.73', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.80e-02', ts2='0.28', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1746' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:15:46 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 728535: <4FGL_J1337.6-1257_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1746> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec  8 01:00:15 2022
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:00:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:00:16 2022
Terminated at Thu Dec  8 01:15:47 2022
Results reported at Thu Dec  8 01:15:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1746 204.424 -12.9517 691891201 692150401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1337.6-1257 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   711.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

