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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1765
RA = 204.424, Dec = -12.9517
tmin = 696816001, tmax = 697075201
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='635485', job_status='RUN', time_executed='2023-02-03 01:02:44.492276', time_epoch_executed='1675414964.49' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635485

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635485/ft1_4FGL_J1337.6-1257_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635485/ft2_4FGL_J1337.6-1257_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635485/ft1_4FGL_J1337.6-1257_daily_bin1765.fits outfile=/scratch/kocevski/635485/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1765.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=696816001.0 tmax=697075201.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.78
user 3.49
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/635485/ft2_4FGL_J1337.6-1257_daily_bin1765.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/635485/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/635485/ft1_filtered_4FGL_J1337.6-1257_daily_bin1765.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.53
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 852

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/635485/ft1_filtered_4FGL_J1337.6-1257_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/635485/ft2_4FGL_J1337.6-1257_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/635485/ltcube_696816001_697075201_4FGL_J1337.6-1257_daily_bin1765.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/635485/ft2_4FGL_J1337.6-1257_daily_bin1765.fits
.....................!
real 17.10
user 16.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635485/ft1_filtered_4FGL_J1337.6-1257_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/635485/ft2_4FGL_J1337.6-1257_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/635485/ltcube_696816001_697075201_4FGL_J1337.6-1257_daily_bin1765.fits outfile=/scratch/kocevski/635485/expmap_696816001_697075201_4FGL_J1337.6-1257_daily_bin1765.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/635485/ltcube_696816001_697075201_4FGL_J1337.6-1257_daily_bin1765.fits
.....................!
real 195.81
user 188.68
sys 5.51

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/635485/ft1_filtered_4FGL_J1337.6-1257_daily_bin1765.fits scfile=/scratch/kocevski/635485/ft2_4FGL_J1337.6-1257_daily_bin1765.fits outfile=/scratch/kocevski/635485/cmap_696816001_697075201_4FGL_J1337.6-1257_daily_bin1765.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635485/ft1_filtered_4FGL_J1337.6-1257_daily_bin1765.fits scfile=/scratch/kocevski/635485/ft2_4FGL_J1337.6-1257_daily_bin1765.fits outfile=/scratch/kocevski/635485/cmap_HighResolution_696816001_697075201_4FGL_J1337.6-1257_daily_bin1765.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/635485/ft1_filtered_4FGL_J1337.6-1257_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/635485/ft2_4FGL_J1337.6-1257_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/635485/Model_4FGL_J1337.6-1257_daily_bin1765.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/635485/ft1_filtered_4FGL_J1337.6-1257_daily_bin1765.fits.....................!
real 72.12
user 69.84
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17575E-06   1.0000          .0000       .10000E+07
     2 'norm      '    2.5115       1.0000          .0000       .10000E+07
     3 'norm      '    16.040       1.0000          .0000       .10000E+07
     4 'norm      '    .71575E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .34185E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20223E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    29.865       1.0000          .0000       .10000E+07
     8 'norm      '    1.2480       1.0000          .0000       .10000E+07
     9 'norm      '    6.5650       1.0000          .0000       .10000E+07
    10 'norm      '    .67419E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.5978       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.4007       1.0000          .0000       .10000E+07
    13 'norm      '    .84071E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .18660E-03   1.0000          .0000       .10000E+07
    15 'norm      '    2.0601       1.0000          .0000       .10000E+07
    16 'Prefactor '    .34574E-05   1.0000          .0000       .10000E+07
    17 'norm      '    .29884E-04   1.0000          .0000       .10000E+07
    18 'norm      '    33.906       1.0000          .0000       .10000E+07
    19 'norm      '    7.3781       1.0000          .0000       .10000E+07
    20 'Prefactor '    8.2155       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3161       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81774       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=   9100.573     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1396 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    2.3255        .42353E-07** at limit **
   2  norm          2.5116        1.6741       -.16508E-06   -.10670E-01
   3  norm          16.047        1.1636       -.11559E-07   -.16057E-02
   4  norm           .0000        4.4396       -.14007E-05** at limit **
   5  Prefactor     .27756E-09    2.3574       -.25199E-07** at limit **
   6  Prefactor     .10547E-08    3.5225       -.13859E-05** at limit **
   7  Prefactor     30.267        25.997        .40291E-05   -.91841E-02
   8  norm          1.2463        1.4213        .33904E-07    .48979E-02
   9  norm          6.4743        5.4658       -.13884E-05   -.22910E-01
  10  norm          .55511E-09    13.527        .50456E-05** at limit **
  11  Prefactor     2.5857        1.4940       -.32116E-08   -.71925E-02
  12  Prefactor     1.6053        1.4586        .47021E-06    .17442E-02
  13  norm           .0000        9.7711       -.24591E-05** at limit **
  14  Prefactor     .11657E-08    3.5961        .20469E-05** at limit **
  15  norm          2.0477        3.1149       -.10091E-06    .19507E-02
  16  Prefactor     .88818E-09    1.5209       -.14680E-06** at limit **
  17  norm           .0000        7.0010        .15566E-05** at limit **
  18  norm          33.811        4.8085       -.14963E-06   -.26693E-02
  19  norm          7.3622        2.5731        .83026E-06    .31766E-01
  20  Prefactor     8.2407        1.3513        .18139E-06   -.53026E-02
  21  Normalizat    1.3164        .24183       -.48798E-05    .11446E-03
  22  Prefactor     .81773        .12257       -.28745E-05    .62073E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  norm       = 2.51163
  norm       = 16.0472
  norm       = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 1.05471e-09
  Prefactor  = 30.2665
  norm       = 1.24626
  norm       = 6.47434
  norm       = 5.55112e-10
  Prefactor  = 2.58572
  Prefactor  = 1.60531
  norm       = 0
  Prefactor  = 1.16573e-09
  norm       = 2.04774
  Prefactor  = 8.88178e-10
  norm       = 0
  norm       = 33.8107
  norm       = 7.3622
  Prefactor  = 8.24068
  Normalizat = 1.31636
  Prefactor  = 0.817725
 **********
 **   18 **HESSE 
 **********

 FCN=   9100.573     FROM HESSE     STATUS=OK           388 CALLS     1784 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    2.3249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5116        1.6740        .64447E-03   -1.5676    
   3  norm          16.047        9.9294        .24981E-03   -1.5628    
   4  norm           .0000        4.4735        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .27756E-09    2.3562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10547E-08    3.5982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.267        25.622        .18302E-03   -1.5598    
   8  norm          1.2463        1.4455        .10014E-02   -1.5686    
   9  norm          6.4743        5.4280        .39143E-03   -1.5657    
  10  norm          .55511E-09    13.390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5857        10.790        .63274E-03   -1.5676    
  12  Prefactor     1.6053        39.383        .91643E-03   -1.5683    
  13  norm           .0000        9.7966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11657E-08    3.7598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0477        3.1405        .71970E-03   -1.5679    
  16  Prefactor     .88818E-09    1.5261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        6.9351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          33.811        4.9892        .17176E-03   -1.5592    
  19  norm          7.3622        8.5458        .36901E-03   -1.5654    
  20  Prefactor     8.2407        19.640        .34954E-03   -1.5651    
  21  Normalizat    1.3164        .20687        .72835E-01   -.83079    
  22  Prefactor     .81773        .10496        .43948E-01   -.99078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93331e-08
Minuit parameter uncertainties:
  1  2.19806e-05
  2  1.67397
  3  9.92939
  4  1.46077e-06
  5  5.02417e-05
  6  0.00012474
  7  25.6223
  8  1.44554
  9  5.42804
  10  0.000176442
  11  10.564
  12  15.9026
  13  2.39725e-05
  14  0.000132761
  15  3.14051
  16  7.26529e-05
  17  2.76745e-05
  18  4.98921
  19  8.5458
  20  19.64
  21  0.207
  22  0.104987
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.551e-10  1.764e-04  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.177e-01  1.050e-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.316e+00  2.070e-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: 8.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/635485/likelihoodResults_696816001_697075201_4FGL_J1337.6-1257_daily_bin1765.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) = 9100.61968407
delta logL = -0.0468272439211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9100.2772633
delta logL = 0.295593524919

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50932       1.0000          .0000       .10000E+07
     2 'alpha     '    .55385       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81642       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9100.277     FROM MIGRAD    STATUS=FAILED       101 CALLS      278 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51082        1.4804        .15302E-03    .49542E-01
   2  alpha         .55517        .97726        .43770E-01   -.34897E-03
   3  Normalizat    1.3158        .22828        .32226E-03    .15522E-05
   4  Prefactor     .81647        .12010        .20818E-03    .18567E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9100.277     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      354 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51082        1.4804        .98287E-05   -1.5694    
   2  alpha         .55517        .97726        .35552E-02   -.89137    
   3  Normalizat    1.3158        .22828        .35454E-03   -.83096    
   4  Prefactor     .81647        .12010        .20345E-03   -.99124    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9100.277     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      383 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51082        1.5087        .30605E-04   -.13819E-03
   2  alpha         .55517        .99323        .87540E-02   -.13337E-04
   3  Normalizat    1.3158        .22847        .12890E-04    .14111E-05
   4  Prefactor     .81647        .12019        .83273E-05    .16383E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.510824
  alpha      = 0.555174
  Normalizat = 1.31581
  Prefactor  = 0.816467
 **********
 **   18 **HESSE 
 **********

 FCN=   9100.277     FROM HESSE     STATUS=OK            27 CALLS      410 TOTAL
                     EDM=   .73E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51082        1.5002        .12242E-05   -1.5694    
   2  alpha         .55517        .98854        .17508E-02   -.89137    
   3  Normalizat    1.3158        .22813        .25781E-05   -.83096    
   4  Prefactor     .81647        .11999        .16655E-05   -.99124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29429e-14
Minuit parameter uncertainties:
  1  1.50019
  2  1.0692
  3  0.228303
  4  0.120024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635485': 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) = 9100.27726217
delta logL = 0.295594659256

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.108e-01  1.500e+00  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  5.552e-01  1.069e+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.165e-01  1.200e-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.316e+00  2.283e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/635485/cmap_HighResolution_696816001_697075201_4FGL_J1337.6-1257_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-05', job_status='DONE', photon_flux_upper_limit='8.47e-08', time_completed='2023-02-03 01:13:47.932006', job_id='635485', GAL2='0.82', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1675415627.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.96e-01', ts2='0.59', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1765' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:13:47 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 635485: <4FGL_J1337.6-1257_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1765> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Feb  3 01:00:28 2023
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:01:49 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:01:49 2023
Terminated at Fri Feb  3 01:13:48 2023
Results reported at Fri Feb  3 01:13:48 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1765 204.424 -12.9517 696816001 697075201 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 :                                   663.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            800 sec.

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

