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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1749
RA = 204.424, Dec = -12.9517
tmin = 692668801, tmax = 692928001
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='954222', job_status='RUN', time_executed='2022-12-17 00:53:08.520853', time_epoch_executed='1671267188.52' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954222

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954222/ft1_4FGL_J1337.6-1257_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954222/ft2_4FGL_J1337.6-1257_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954222/ft1_4FGL_J1337.6-1257_daily_bin1749.fits outfile=/scratch/kocevski/954222/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1749.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=692668801.0 tmax=692928001.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.43
sys 0.21

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

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

Number of photons that the gtmktime cut: 847

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954222/ft1_filtered_4FGL_J1337.6-1257_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/954222/ft2_4FGL_J1337.6-1257_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/954222/ltcube_692668801_692928001_4FGL_J1337.6-1257_daily_bin1749.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/954222/ft2_4FGL_J1337.6-1257_daily_bin1749.fits
.....................!
real 13.03
user 12.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954222/ft1_filtered_4FGL_J1337.6-1257_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/954222/ft2_4FGL_J1337.6-1257_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/954222/ltcube_692668801_692928001_4FGL_J1337.6-1257_daily_bin1749.fits outfile=/scratch/kocevski/954222/expmap_692668801_692928001_4FGL_J1337.6-1257_daily_bin1749.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/954222/ltcube_692668801_692928001_4FGL_J1337.6-1257_daily_bin1749.fits
.....................!
real 191.97
user 185.43
sys 5.05

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/954222/ft1_filtered_4FGL_J1337.6-1257_daily_bin1749.fits scfile=/scratch/kocevski/954222/ft2_4FGL_J1337.6-1257_daily_bin1749.fits outfile=/scratch/kocevski/954222/cmap_692668801_692928001_4FGL_J1337.6-1257_daily_bin1749.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954222/ft1_filtered_4FGL_J1337.6-1257_daily_bin1749.fits scfile=/scratch/kocevski/954222/ft2_4FGL_J1337.6-1257_daily_bin1749.fits outfile=/scratch/kocevski/954222/cmap_HighResolution_692668801_692928001_4FGL_J1337.6-1257_daily_bin1749.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53161E-03   1.0000          .0000       .10000E+07
     2 'norm      '    3.0430       1.0000          .0000       .10000E+07
     3 'norm      '    1.4714       1.0000          .0000       .10000E+07
     4 'norm      '    10.017       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.2076       1.0000          .0000       .10000E+07
     6 'Prefactor '    .22789E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.1216       1.0000          .0000       .10000E+07
     8 'norm      '    2.1603       1.0000          .0000       .10000E+07
     9 'norm      '    2.7924       1.0000          .0000       .10000E+07
    10 'norm      '    10.369       1.0000          .0000       .10000E+07
    11 'Prefactor '    .52037E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    23.027       1.0000          .0000       .10000E+07
    13 'norm      '    44.041       1.0000          .0000       .10000E+07
    14 'Prefactor '    .37942       1.0000          .0000       .10000E+07
    15 'norm      '    .63426E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .95842E-05   1.0000          .0000       .10000E+07
    17 'norm      '    7.5368       1.0000          .0000       .10000E+07
    18 'norm      '    52.539       1.0000          .0000       .10000E+07
    19 'norm      '    .16535E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    5.2120       1.0000          .0000       .10000E+07
    21 'Normalizat'    .96981       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0102       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=   9127.463     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1746 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        9.6187        .16710E-06** at limit **
   2  norm          3.0433        2.0250        .92172E-08    .51276E-04
   3  norm          1.4734        1.2520       -.10977E-07    .18640E-01
   4  norm          10.021        2.3548        .30713E-08   -.69325E-02
   5  Prefactor     3.2010        5.9093       -.88728E-08    .45417E-03
   6  Prefactor      .0000        1.8118        .75583E-07** at limit **
   7  Prefactor     4.0826        2.3720        .83529E-07   -.87133E-02
   8  norm          2.1610        1.5016       -.13610E-08   -.18363E-03
   9  norm          2.7957        3.7201        .44739E-07    .13866E-02
  10  norm          10.387        7.9308        .25554E-07    .27947E-02
  11  Prefactor     .55511E-10    10.904        .17979E-06** at limit **
  12  Prefactor     22.778        31.024        .32264E-06   -.75131E-04
  13  norm          44.134        7.5988       -.58553E-07   -.56089E-02
  14  Prefactor     .49234        56.171       -.95805E-06   -.64726E-03
  15  norm           .0000        1.7104       -.70562E-07** at limit **
  16  Prefactor     .55511E-10    2.2125        .35930E-07** at limit **
  17  norm          7.5422        6.7695        .10440E-08   -.73763E-03
  18  norm          52.569        5.7411       -.20635E-07    .57398E-02
  19  norm           .0000        4.3706        .38519E-07** at limit **
  20  Prefactor     5.2150        2.2958       -.38064E-07    .78688E-02
  21  Normalizat    .96943        .24944        .74579E-06    .42079E-05
  22  Prefactor     1.0103        .13020       -.11855E-06    .56711E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 3.0433
  norm       = 1.47342
  norm       = 10.0211
  Prefactor  = 3.20104
  Prefactor  = 0
  Prefactor  = 4.08263
  norm       = 2.16104
  norm       = 2.79573
  norm       = 10.3872
  Prefactor  = 5.55112e-11
  Prefactor  = 22.7781
  norm       = 44.1343
  Prefactor  = 0.49234
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 7.54224
  norm       = 52.5688
  norm       = 0
  Prefactor  = 5.21504
  Normalizat = 0.969433
  Prefactor  = 1.01025
 **********
 **   18 **HESSE 
 **********

 FCN=   9127.463     FROM HESSE     STATUS=OK           396 CALLS     2142 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        9.5910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0433        2.0264        .58139E-03   -1.5673    
   3  norm          1.4734        10.014        .88550E-03   -1.5684    
   4  norm          10.021        8.3381        .31635E-03   -1.5645    
   5  Prefactor     3.2010        5.9413        .56544E-03   -1.5672    
   6  Prefactor      .0000        1.8115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0826        32.385        .49629E-03   -1.5668    
   8  norm          2.1610        1.5096        .70054E-03   -1.5679    
   9  norm          2.7957        5.8634        .60860E-03   -1.5675    
  10  norm          10.387        8.2548        .31092E-03   -1.5644    
  11  Prefactor     .55511E-10    10.937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.778        32.306        .20844E-03   -1.5613    
  13  norm          44.134        33.788        .15070E-03   -1.5575    
  14  Prefactor     .49234        7.3585        .91911E-02   -1.5694    
  15  norm           .0000        1.7037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    2.2084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.5422        6.7857        .36506E-03   -1.5653    
  18  norm          52.569        5.7662        .13797E-03   -1.5563    
  19  norm           .0000        4.3599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.2150        15.760        .44007E-03   -1.5662    
  21  Normalizat    .96943        .22038        .86231E-01   -.94062    
  22  Prefactor     1.0103        .11253        .43296E-01   -.92388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16807e-08
Minuit parameter uncertainties:
  1  4.26678e-06
  2  2.02644
  3  7.68231
  4  8.33809
  5  5.94129
  6  8.2045e-06
  7  22.9972
  8  1.50958
  9  5.86344
  10  8.25482
  11  4.14479e-05
  12  32.306
  13  33.7877
  14  3.80678
  15  8.48864e-06
  16  1.61705e-05
  17  6.78571
  18  5.76625
  19  9.67406e-06
  20  15.76
  21  0.220583
  22  0.112554
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.039e+01  8.255e+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:  1.010e+00  1.126e-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:  9.694e-01  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.89
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 6.32e-08 +/- 5.02e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.81e-05

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

Saving results to:
/scratch/kocevski/954222/likelihoodResults_692668801_692928001_4FGL_J1337.6-1257_daily_bin1749.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) = 9126.94060213
delta logL = 0.522327935147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9126.9290249
delta logL = 0.533905171505

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2841       1.0000          .0000       .10000E+07
     2 'alpha     '    2.8497       1.0000          .0000       5.0000    
     3 'Normalizat'    .93170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0200       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=   9126.929     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      276 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2839        6.4094        .13923E-04    .76885E-02
   2  alpha         2.8498        .54972        .12645E-01    .81827E-04
   3  Normalizat    .93172        .24200        .38839E-03   -.50347E-04
   4  Prefactor     1.0199        .12865        .19974E-03   -.11413E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.28387
  alpha      = 2.84976
  Normalizat = 0.93172
  Prefactor  = 1.01991
 **********
 **   18 **HESSE 
 **********

 FCN=   9126.929     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2839        6.0663        .55692E-06   -1.5650    
   2  alpha         2.8498        .52031        .50582E-03    .14036    
   3  Normalizat    .93172        .24211        .15535E-04   -.95354    
   4  Prefactor     1.0199        .12869        .39947E-04   -.92069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91756e-10
Minuit parameter uncertainties:
  1  6.06634
  2  0.524222
  3  0.242392
  4  0.128728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954222': 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) = 9126.92902472
delta logL = 0.533905352198

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  8.284e+00  6.066e+00  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  2.850e+00  5.242e-01  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.020e+00  1.287e-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:  9.317e-01  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.85 +/- 0.52
Photon Flux (Free Index): 1.02e-07 +/- 6.29e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.35e-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/954222/cmap_HighResolution_692668801_692928001_4FGL_J1337.6-1257_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-05', comment='SUCCESS', photon_flux='6.32e-08', energy_flux2='2.40e-05', photon_flux_error='5.02e-08', dlogl='5.34e-01', energy_flux='2.28e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2022-12-17 01:04:20.681974', photon_index_error2='0.52', photon_index2='2.85', ts='3.89', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.35e-05', EG='0.97', time_epoch_completed='1671267860.68', return_code='0', job_id='954222', GAL2='1.02', EG2='0.93', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='6.29e-08', ts2='5.14', photon_index='2.30' WHERE bin_id='1749' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:04:20 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 954222: <4FGL_J1337.6-1257_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1749> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Dec 17 00:50:12 2022
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:50:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:50:13 2022
Terminated at Sat Dec 17 01:04:21 2022
Results reported at Sat Dec 17 01:04:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1749 204.424 -12.9517 692668801 692928001 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 :                                   671.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            849 sec.

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

