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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1753
RA = 204.424, Dec = -12.9517
tmin = 693705601, tmax = 693964801
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='455186', job_status='RUN', time_executed='2022-12-29 01:01:23.074709', time_epoch_executed='1672304483.07' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455186

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455186/ft1_4FGL_J1337.6-1257_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455186/ft2_4FGL_J1337.6-1257_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455186/ft1_4FGL_J1337.6-1257_daily_bin1753.fits outfile=/scratch/kocevski/455186/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1753.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=693705601.0 tmax=693964801.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.68
user 4.36
sys 0.24

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

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

Number of photons that the gtmktime cut: 608

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455186/ft1_filtered_4FGL_J1337.6-1257_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/455186/ft2_4FGL_J1337.6-1257_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/455186/ltcube_693705601_693964801_4FGL_J1337.6-1257_daily_bin1753.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/455186/ft2_4FGL_J1337.6-1257_daily_bin1753.fits
.....................!
real 15.37
user 14.81
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455186/ft1_filtered_4FGL_J1337.6-1257_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/455186/ft2_4FGL_J1337.6-1257_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/455186/ltcube_693705601_693964801_4FGL_J1337.6-1257_daily_bin1753.fits outfile=/scratch/kocevski/455186/expmap_693705601_693964801_4FGL_J1337.6-1257_daily_bin1753.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/455186/ltcube_693705601_693964801_4FGL_J1337.6-1257_daily_bin1753.fits
.....................!
real 194.22
user 186.76
sys 5.03

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/455186/ft1_filtered_4FGL_J1337.6-1257_daily_bin1753.fits scfile=/scratch/kocevski/455186/ft2_4FGL_J1337.6-1257_daily_bin1753.fits outfile=/scratch/kocevski/455186/cmap_693705601_693964801_4FGL_J1337.6-1257_daily_bin1753.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455186/ft1_filtered_4FGL_J1337.6-1257_daily_bin1753.fits scfile=/scratch/kocevski/455186/ft2_4FGL_J1337.6-1257_daily_bin1753.fits outfile=/scratch/kocevski/455186/cmap_HighResolution_693705601_693964801_4FGL_J1337.6-1257_daily_bin1753.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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/455186/ft1_filtered_4FGL_J1337.6-1257_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/455186/ft2_4FGL_J1337.6-1257_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/455186/Model_4FGL_J1337.6-1257_daily_bin1753.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/455186/ft1_filtered_4FGL_J1337.6-1257_daily_bin1753.fits.....................!
real 54.21
user 52.42
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455186/ft1_filtered_4FGL_J1337.6-1257_daily_bin1753.fits', '/scratch/kocevski/455186/ft2_4FGL_J1337.6-1257_daily_bin1753.fits', expMap='/scratch/kocevski/455186/expmap_693705601_693964801_4FGL_J1337.6-1257_daily_bin1753.fits', expCube='/scratch/kocevski/455186/ltcube_693705601_693964801_4FGL_J1337.6-1257_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455186/Model_4FGL_J1337.6-1257_daily_bin1753.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/455186/ft1_filtered_4FGL_J1337.6-1257_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/455186/ft2_4FGL_J1337.6-1257_daily_bin1753.fits
Exposure map: /scratch/kocevski/455186/expmap_693705601_693964801_4FGL_J1337.6-1257_daily_bin1753.fits
Exposure cube: /scratch/kocevski/455186/ltcube_693705601_693964801_4FGL_J1337.6-1257_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455186/Model_4FGL_J1337.6-1257_daily_bin1753.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) = 6635.9998359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45947E-02   1.0000          .0000       .10000E+07
     2 'norm      '    3.6525       1.0000          .0000       .10000E+07
     3 'norm      '    .18115E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .26071E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .76610E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.9561       1.0000          .0000       .10000E+07
     7 'Prefactor '    26.999       1.0000          .0000       .10000E+07
     8 'norm      '    .37986E-06   1.0000          .0000       .10000E+07
     9 'norm      '    .15339E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .45206E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.685       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13328E-02   1.0000          .0000       .10000E+07
    13 'norm      '    42.922       1.0000          .0000       .10000E+07
    14 'Prefactor '    .23100E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .21041E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11818E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .11155E-02   1.0000          .0000       .10000E+07
    18 'norm      '    22.009       1.0000          .0000       .10000E+07
    19 'norm      '    .94594E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    7.7094       1.0000          .0000       .10000E+07
    21 'Normalizat'    .82912       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0928       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=   6635.991     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     1680 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14297E-05    3.9614        .22019E-06** at limit **
   2  norm          3.6509        3.3525       -.13515E-06    .13986E-02
   3  norm          .22204E-09    2.4068       -.27266E-06** at limit **
   4  norm          .15105E-06    4.2219        .25361E-06** at limit **
   5  Prefactor     .64393E-08    3.4625        .22421E-06** at limit **
   6  Prefactor     5.9567        1.0888       -.25666E-07   -.40716E-02
   7  Prefactor     27.042        2.6298       -.35813E-07    .11869E-02
   8  norm           .0000        .44172        .24783E-06** at limit **
   9  norm           .0000        1.2446        .29284E-06** at limit **
  10  norm          .64615E-07    1.8783        .15586E-06** at limit **
  11  Prefactor     25.719        1.3484       -.28421E-08    .10350E-01
  12  Prefactor     .43404E-06    5.4063        .45046E-06** at limit **
  13  norm          42.977        1.1630        .62407E-08   -.55389E-01
  14  Prefactor     .26068E-06    1.7959        .23324E-06** at limit **
  15  norm          .17838E-05    4.3683        .42858E-06** at limit **
  16  Prefactor     .66613E-09    2.6740       -.40514E-06** at limit **
  17  norm           .0000        2.2308       -.28064E-06** at limit **
  18  norm          21.976        4.6041        .16158E-06   -.57713E-02
  19  norm          .16835E-05    10.291       -.10785E-06** at limit **
  20  Prefactor     7.7021        1.4422        .34003E-07   -.27358E-02
  21  Normalizat    .82933        .25772        .12373E-04   -.10536E-03
  22  Prefactor     1.0927        .14357       -.19863E-05   -.11801E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.42975e-06
  norm       = 3.65093
  norm       = 2.22045e-10
  norm       = 1.51046e-07
  Prefactor  = 6.43929e-09
  Prefactor  = 5.95674
  Prefactor  = 27.0423
  norm       = 0
  norm       = 0
  norm       = 6.4615e-08
  Prefactor  = 25.7189
  Prefactor  = 4.34042e-07
  norm       = 42.9768
  Prefactor  = 2.6068e-07
  norm       = 1.7838e-06
  Prefactor  = 6.66134e-10
  norm       = 0
  norm       = 21.9762
  norm       = 1.68349e-06
  Prefactor  = 7.7021
  Normalizat = 0.829328
  Prefactor  = 1.09267
 **********
 **   18 **HESSE 
 **********

 FCN=   6635.991     FROM HESSE     STATUS=OK           380 CALLS     2060 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14297E-05    12.233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.6509        3.3513        .52832E-03   -1.5670    
   3  norm          .22204E-09    2.4154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .15105E-06    5.2765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .64393E-08    6.3950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9567        9.9103        .41121E-03   -1.5659    
   7  Prefactor     27.042        14.575        .19249E-03   -1.5604    
   8  norm           .0000        .43979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        1.2480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .64615E-07    6.4406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.719        15.465        .19736E-03   -1.5607    
  12  Prefactor     .43404E-06    10.614        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          42.977        40.965        .15265E-03   -1.5577    
  14  Prefactor     .26068E-06    5.5634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .17838E-05    9.1189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .66613E-09    2.6787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        2.2333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          21.976        4.6303        .21321E-03   -1.5614    
  19  norm          .16835E-05    13.898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.7021        16.419        .36092E-03   -1.5652    
  21  Normalizat    .82933        .23860        .85611E-01   -.98990    
  22  Prefactor     1.0927        .12736        .37866E-01   -.89701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74121e-07
Minuit parameter uncertainties:
  1  0.00836418
  2  3.35126
  3  4.40848e-05
  4  0.00178538
  5  0.000405451
  6  9.91037
  7  14.5748
  8  3.3536e-06
  9  2.69706e-06
  10  0.00129029
  11  15.4653
  12  0.00429267
  13  40.9649
  14  0.00240845
  15  0.00806627
  16  8.40572e-05
  17  1.02961e-05
  18  4.63026
  19  0.00967403
  20  16.4193
  21  0.238898
  22  0.127397
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  6.461e-08  1.290e-03  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:  1.093e+00  1.274e-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:  8.293e-01  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455186/likelihoodResults_693705601_693964801_4FGL_J1337.6-1257_daily_bin1753.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) = 6635.99167792
delta logL = -0.000829100238661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6635.99085692
delta logL = -8.09810080682e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59100E-02   1.0000          .0000       .10000E+07
     2 'alpha     '    3.2024       1.0000          .0000       5.0000    
     3 'Normalizat'    .83002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0922       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=   6635.991     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      248 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11102E-09    8.3672       -.51546E-06** at limit **
   2  alpha         2.4417        1.6774       -.43308E-04   -.32934E-10
   3  Normalizat    .82933        .25505        .70611E-05   -.59687E-04
   4  Prefactor     1.0927        .14272       -.30415E-05   -.19571E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11022e-10
  alpha      = 2.44171
  Normalizat = 0.829328
  Prefactor  = 1.09267
 **********
 **   18 **HESSE 
 **********

 FCN=   6635.991     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11102E-09    .62422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4417        3.7191        .43420       -.23319E-01
   3  Normalizat    .82933        .16107E-02    .85611E-01   -.98990    
   4  Prefactor     1.0927        .89563E-03    .37890E-01   -.89701    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.35716e-12
Minuit parameter uncertainties:
  1  1.83419e-05
  2  78490.8
  3  0.00161073
  4  0.000895632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455186': 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): 102
logL (Free Index) = 6635.99084881
delta logL = 4.96947905049e-09

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.110e-10  1.834e-05  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  2.442e+00  7.849e+04  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:  1.093e+00  8.956e-04  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:  8.293e-01  1.611e-03  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/455186/cmap_HighResolution_693705601_693964801_4FGL_J1337.6-1257_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2022-12-29 01:11:25.374890', job_id='455186', GAL2='1.09', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1672305085.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='4.97e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1753' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:11:25 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 455186: <4FGL_J1337.6-1257_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1753> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Dec 29 00:55:20 2022
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 01:01:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 01:01:00 2022
Terminated at Thu Dec 29 01:11:26 2022
Results reported at Thu Dec 29 01:11:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1753 204.424 -12.9517 693705601 693964801 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 :                                   598.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            966 sec.

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

