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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1752
RA = 204.424, Dec = -12.9517
tmin = 693446401, tmax = 693705601
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='264926', job_status='RUN', time_executed='2022-12-26 01:00:56.376089', time_epoch_executed='1672045256.38' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264926

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264926/ft1_4FGL_J1337.6-1257_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264926/ft2_4FGL_J1337.6-1257_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264926/ft1_4FGL_J1337.6-1257_daily_bin1752.fits outfile=/scratch/kocevski/264926/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1752.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=693446401.0 tmax=693705601.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.47
user 3.22
sys 0.23

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

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

Number of photons that the gtmktime cut: 637

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264926/ft1_filtered_4FGL_J1337.6-1257_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/264926/ft2_4FGL_J1337.6-1257_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/264926/ltcube_693446401_693705601_4FGL_J1337.6-1257_daily_bin1752.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/264926/ft2_4FGL_J1337.6-1257_daily_bin1752.fits
.....................!
real 14.47
user 14.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264926/ft1_filtered_4FGL_J1337.6-1257_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/264926/ft2_4FGL_J1337.6-1257_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/264926/ltcube_693446401_693705601_4FGL_J1337.6-1257_daily_bin1752.fits outfile=/scratch/kocevski/264926/expmap_693446401_693705601_4FGL_J1337.6-1257_daily_bin1752.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/264926/ltcube_693446401_693705601_4FGL_J1337.6-1257_daily_bin1752.fits
.....................!
real 191.86
user 186.22
sys 5.20

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/264926/ft1_filtered_4FGL_J1337.6-1257_daily_bin1752.fits scfile=/scratch/kocevski/264926/ft2_4FGL_J1337.6-1257_daily_bin1752.fits outfile=/scratch/kocevski/264926/cmap_693446401_693705601_4FGL_J1337.6-1257_daily_bin1752.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264926/ft1_filtered_4FGL_J1337.6-1257_daily_bin1752.fits scfile=/scratch/kocevski/264926/ft2_4FGL_J1337.6-1257_daily_bin1752.fits outfile=/scratch/kocevski/264926/cmap_HighResolution_693446401_693705601_4FGL_J1337.6-1257_daily_bin1752.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 2.03
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264926/ft1_filtered_4FGL_J1337.6-1257_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/264926/ft2_4FGL_J1337.6-1257_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264926/Model_4FGL_J1337.6-1257_daily_bin1752.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/264926/ft1_filtered_4FGL_J1337.6-1257_daily_bin1752.fits.....................!
real 57.60
user 56.12
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.165       1.0000          .0000       .10000E+07
     2 'norm      '    .72164E-09   1.0000          .0000       .10000E+07
     3 'norm      '    3.7953       1.0000          .0000       .10000E+07
     4 'norm      '    .70147E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14488E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    4.1770       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.4031       1.0000          .0000       .10000E+07
     8 'norm      '    .87153E-08   1.0000          .0000       .10000E+07
     9 'norm      '    .64576E-04   1.0000          .0000       .10000E+07
    10 'norm      '    2.2768       1.0000          .0000       .10000E+07
    11 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    12 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    13 'norm      '    .22204E-09   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.8108       1.0000          .0000       .10000E+07
    15 'norm      '    1.8019       1.0000          .0000       .10000E+07
    16 'Prefactor '    .24588       1.0000          .0000       .10000E+07
    17 'norm      '    .55289       1.0000          .0000       .10000E+07
    18 'norm      '    26.802       1.0000          .0000       .10000E+07
    19 'norm      '    .44711       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.6305       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.5300       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84088       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=   6868.927     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1727 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.163        1.1480       -.86176E-08   -.58535E-02
   2  norm           .0000        1.1755       -.14601E-06** at limit **
   3  norm          3.7946        5.6447       -.12975E-06   -.91648E-02
   4  norm          .83833E-06    17.781       -.13240E-06** at limit **
   5  Prefactor     .14438E-06    2.7362        .28875E-06** at limit **
   6  Prefactor     4.1763        5.4283        .18451E-06    .19675E-01
   7  Prefactor     3.4383        18.238        .63760E-06   -.34391E-01
   8  norm           .0000        .71811        .37680E-07** at limit **
   9  norm          .94424E-07    3.4989        .37232E-06** at limit **
  10  norm          2.2795        6.4274        .29876E-06    .10795E-01
  11  Prefactor     .41633E-08    6.5686        .68129E-07** at limit **
  12  Prefactor     .31108E-06    7.5938       -.97280E-07** at limit **
  13  norm          .69256E-06    8.2028        .87787E-07** at limit **
  14  Prefactor     6.8125        7.8232        .22122E-07    .47497E-02
  15  norm          1.8022        5.6266        .11554E-06    .25909E-01
  16  Prefactor     .22798        6.5103        .64651E-07** at limit **
  17  norm          .55941        2.2891        .53178E-07   -.89211E-02
  18  norm          26.802        5.0860        .63051E-07    .28746E-01
  19  norm          .44523        .87618        .19905E-07   -.54615E-03
  20  Prefactor     2.6214        1.5346        .19520E-07   -.46099E-02
  21  Normalizat    1.5303        .28347       -.13605E-05    .10066E-03
  22  Prefactor     .84073        .14625        .23804E-05    .14632E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.1634
  norm       = 0
  norm       = 3.79461
  norm       = 8.38329e-07
  Prefactor  = 1.44385e-07
  Prefactor  = 4.17634
  Prefactor  = 3.43832
  norm       = 0
  norm       = 9.44245e-08
  norm       = 2.27954
  Prefactor  = 4.16334e-09
  Prefactor  = 3.11084e-07
  norm       = 6.92557e-07
  Prefactor  = 6.81252
  norm       = 1.80221
  Prefactor  = 0.22798
  norm       = 0.559408
  norm       = 26.8016
  norm       = 0.44523
  Prefactor  = 2.62142
  Normalizat = 1.53035
  Prefactor  = 0.840729
 **********
 **   18 **HESSE 
 **********

 FCN=   6868.927     FROM HESSE     STATUS=OK           396 CALLS     2123 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.163        12.298        .25693E-03   -1.5630    
   2  norm           .0000        1.1750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7946        5.6663        .51790E-03   -1.5669    
   4  norm          .83833E-06    19.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .14438E-06    5.1775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1763        5.4828        .49289E-03   -1.5667    
   7  Prefactor     3.4383        39.498        .54816E-03   -1.5671    
   8  norm           .0000        .71190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .94424E-07    5.3468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2795        7.2824        .68023E-03   -1.5678    
  11  Prefactor     .41633E-08    7.0353        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .31108E-06    9.2582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .69256E-06    10.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8125        10.247        .38422E-03   -1.5656    
  15  norm          1.8022        5.7879        .77840E-03   -1.5681    
  16  Prefactor     .22798        3.9774        .86461E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55941        25.865        .73558E-03   -1.5693    
  18  norm          26.802        5.2162        .19320E-03   -1.5604    
  19  norm          .44523        17.193        .84220E-03   -1.5695    
  20  Prefactor     2.6214        47.124        .62847E-03   -1.5676    
  21  Normalizat    1.5303        .24858        .71225E-01   -.76929    
  22  Prefactor     .84073        .12626        .44247E-01   -.98244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78082e-06
Minuit parameter uncertainties:
  1  12.298
  2  4.15237e-06
  3  5.66629
  4  0.00814427
  5  0.00172917
  6  5.48279
  7  23.3076
  8  2.92732e-06
  9  0.00142089
  10  7.28243
  11  0.000341523
  12  0.00339432
  13  0.00543717
  14  10.2466
  15  5.78791
  16  1.90448
  17  7.60768
  18  5.21619
  19  5.53356
  20  22.2292
  21  0.248775
  22  0.126299
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.280e+00  7.282e+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.407e-01  1.263e-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.530e+00  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264926/likelihoodResults_693446401_693705601_4FGL_J1337.6-1257_daily_bin1752.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) = 6866.36950182
delta logL = 2.55764519535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6866.32505608
delta logL = 2.60209093148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46598       1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3204       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90765       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=   6866.325     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      319 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46596        .30889        .27511E-05   -.55375E-02
   2  alpha         5.0000        .69129        .44928    ** at limit **
   3  Normalizat    1.3206        .29207        .33438E-03    .34340E-05
   4  Prefactor     .90750        .14880        .20739E-03   -.64138E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.465964
  alpha      = 5
  Normalizat = 1.32062
  Prefactor  = 0.907496
 **********
 **   18 **HESSE 
 **********

 FCN=   6866.325     FROM HESSE     STATUS=OK            29 CALLS      348 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46596        .30592        .11004E-06   -1.5694    
   2  alpha         5.0000        .66764        .45662        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3206        .29251        .13375E-04   -.82953    
   4  Prefactor     .90750        .14898        .82955E-05   -.95880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97179e-11
Minuit parameter uncertainties:
  1  0.305917
  2  1.07184e-05
  3  0.292877
  4  0.149044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264926': 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) = 6866.32505424
delta logL = 2.60209277681

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  4.660e-01  3.059e-01  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  5.000e+00  1.072e-05  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:  9.075e-01  1.490e-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.321e+00  2.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.14
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.84e-07 +/- 1.21e-07
Energy Flux (Free Index): 2.54e-05 +/- 1.67e-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/264926/cmap_HighResolution_693446401_693705601_4FGL_J1337.6-1257_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-05', comment='SUCCESS', energy_flux2='2.54e-05', dlogl='2.60e+00', photon_flux2='1.84e-07', job_status='DONE', time_completed='2022-12-26 01:10:49.250199', photon_index_error2='0.00', photon_index2='5.00', ts='0.16', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.67e-05', EG='1.53', time_epoch_completed='1672045849.25', return_code='0', job_id='264926', GAL2='0.91', EG2='1.32', return_code2='0', photon_flux_error2='1.21e-07', ts2='6.14', photon_index='2.30' WHERE bin_id='1752' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:10:49 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 264926: <4FGL_J1337.6-1257_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1752> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Dec 26 01:00:19 2022
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 01:00:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 01:00:36 2022
Terminated at Mon Dec 26 01:10:50 2022
Results reported at Mon Dec 26 01:10:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1752 204.424 -12.9517 693446401 693705601 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 :                                   593.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            631 sec.

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

