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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1780
RA = 204.424, Dec = -12.9517
tmin = 700704001, tmax = 700963201
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='65219', job_status='RUN', time_executed='2023-03-20 01:00:37.284753', time_epoch_executed='1679299237.28' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/65219

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/65219/ft1_4FGL_J1337.6-1257_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/65219/ft2_4FGL_J1337.6-1257_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/65219/ft1_4FGL_J1337.6-1257_daily_bin1780.fits outfile=/scratch/kocevski/65219/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1780.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=700704001.0 tmax=700963201.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.08
user 3.84
sys 0.22

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

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

Number of photons that the gtmktime cut: 466

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/65219/ft1_filtered_4FGL_J1337.6-1257_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/65219/ft2_4FGL_J1337.6-1257_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/65219/ltcube_700704001_700963201_4FGL_J1337.6-1257_daily_bin1780.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/65219/ft2_4FGL_J1337.6-1257_daily_bin1780.fits
.....................!
real 12.12
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/65219/ft1_filtered_4FGL_J1337.6-1257_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/65219/ft2_4FGL_J1337.6-1257_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/65219/ltcube_700704001_700963201_4FGL_J1337.6-1257_daily_bin1780.fits outfile=/scratch/kocevski/65219/expmap_700704001_700963201_4FGL_J1337.6-1257_daily_bin1780.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/65219/ltcube_700704001_700963201_4FGL_J1337.6-1257_daily_bin1780.fits
.....................!
real 192.11
user 187.16
sys 4.62

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/65219/ft1_filtered_4FGL_J1337.6-1257_daily_bin1780.fits scfile=/scratch/kocevski/65219/ft2_4FGL_J1337.6-1257_daily_bin1780.fits outfile=/scratch/kocevski/65219/cmap_700704001_700963201_4FGL_J1337.6-1257_daily_bin1780.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=204.424 yref=-12.9517 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/65219/ft1_filtered_4FGL_J1337.6-1257_daily_bin1780.fits scfile=/scratch/kocevski/65219/ft2_4FGL_J1337.6-1257_daily_bin1780.fits outfile=/scratch/kocevski/65219/cmap_HighResolution_700704001_700963201_4FGL_J1337.6-1257_daily_bin1780.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/65219/ft1_filtered_4FGL_J1337.6-1257_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/65219/ft2_4FGL_J1337.6-1257_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/65219/Model_4FGL_J1337.6-1257_daily_bin1780.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/65219/ft1_filtered_4FGL_J1337.6-1257_daily_bin1780.fits.....................!
real 44.68
user 43.33
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0303       1.0000          .0000       .10000E+07
     2 'norm      '    3.6078       1.0000          .0000       .10000E+07
     3 'norm      '    50.921       1.0000          .0000       .10000E+07
     4 'norm      '    24.224       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.574       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.7029       1.0000          .0000       .10000E+07
     7 'Prefactor '    8.9803       1.0000          .0000       .10000E+07
     8 'norm      '    7.2234       1.0000          .0000       .10000E+07
     9 'norm      '    3.6231       1.0000          .0000       .10000E+07
    10 'norm      '    12.571       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.0973       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11535E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .59460E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    14.998       1.0000          .0000       .10000E+07
    15 'norm      '    .32171E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.8046       1.0000          .0000       .10000E+07
    17 'norm      '    .35704       1.0000          .0000       .10000E+07
    18 'norm      '    26.893       1.0000          .0000       .10000E+07
    19 'norm      '    .32729E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    8.6515       1.0000          .0000       .10000E+07
    21 'Normalizat'    .86111       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90576       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=   4929.348     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     1326 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1071        2.2967       -.18824E-07   -.46350E-01
   2  norm          3.6089        3.0438        .37730E-06    .14165E-01
   3  norm          50.757        1.1908       -.53627E-07    .22292E-01
   4  norm          24.266        1.2037       -.56748E-07    .22658E-01
   5  Prefactor     10.565        3.7428        .54009E-06   -.63022E-01
   6  Prefactor     1.7549        8.9388        .78701E-05    .21340E-01
   7  Prefactor     8.9057        1.4438        .32391E-06   -.22887E-02
   8  norm          7.2260        2.5768       -.18031E-06   -.98120E-02
   9  norm          3.6364        3.6363       -.48037E-06   -.40494E-02
  10  norm          12.600        1.9101        .45804E-06   -.14191E-01
  11  Prefactor     7.2111        6.6663        .98010E-06    .12590E-02
  12  Prefactor     .31758E-05    12.713       -.36803E-05** at limit **
  13  norm          .41092E-05    12.005        .30676E-05** at limit **
  14  Prefactor     15.355        9.5260        .33775E-06    .55262E-02
  15  norm           .0000        1.5467        .21185E-06** at limit **
  16  Prefactor     5.6983        5.4480        .93046E-06    .36181E-02
  17  norm          .52908        45.829       -.14248E-04   -.18030E-01
  18  norm          26.897        5.6984        .27128E-06    .29396E-02
  19  norm          .99920E-09    3.6623       -.13764E-06** at limit **
  20  Prefactor     8.1048        4.6197       -.19764E-05    .50946E-01
  21  Normalizat    .86042        .33342       -.14309E-04    .15317E-03
  22  Prefactor     .90562        .16874        .46142E-05    .36242E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.10708
  norm       = 3.60894
  norm       = 50.7574
  norm       = 24.2664
  Prefactor  = 10.5653
  Prefactor  = 1.75493
  Prefactor  = 8.90572
  norm       = 7.22602
  norm       = 3.63638
  norm       = 12.5997
  Prefactor  = 7.21108
  Prefactor  = 3.17585e-06
  norm       = 4.10916e-06
  Prefactor  = 15.3548
  norm       = 0
  Prefactor  = 5.69827
  norm       = 0.529079
  norm       = 26.8965
  norm       = 9.99201e-10
  Prefactor  = 8.10481
  Normalizat = 0.860425
  Prefactor  = 0.905619
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.348     FROM HESSE     STATUS=OK           400 CALLS     1726 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1071        10.172        .37811E-03   -1.5655    
   2  norm          3.6089        3.0482        .53171E-03   -1.5670    
   3  norm          50.757        21.055        .14015E-03   -1.5565    
   4  norm          24.266        20.390        .20322E-03   -1.5609    
   5  Prefactor     10.565        10.383        .30788E-03   -1.5643    
   6  Prefactor     1.7549        11.288        .80567E-03   -1.5681    
   7  Prefactor     8.9057        19.320        .33422E-03   -1.5648    
   8  norm          7.2260        2.5806        .37297E-03   -1.5654    
   9  norm          3.6364        4.9290        .53054E-03   -1.5670    
  10  norm          12.600        8.5648        .28227E-03   -1.5637    
  11  Prefactor     7.2111        16.855        .37630E-03   -1.5654    
  12  Prefactor     .31758E-05    21.620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .41092E-05    20.812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.355        14.451        .25836E-03   -1.5630    
  15  norm           .0000        1.5479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6983        5.5634        .41663E-03   -1.5660    
  17  norm          .52908        8.0957        .94643E-02   -1.5693    
  18  norm          26.897        5.7249        .19287E-03   -1.5604    
  19  norm          .99920E-09    3.6415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.1048        22.306        .34055E-03   -1.5651    
  21  Normalizat    .86042        .29271        .85608E-01   -.97865    
  22  Prefactor     .90562        .14534        .45078E-01   -.95945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24271e-07
Minuit parameter uncertainties:
  1  10.1719
  2  3.04825
  3  21.0555
  4  20.3905
  5  10.3835
  6  8.90169
  7  19.3199
  8  2.58059
  9  4.92905
  10  8.56485
  11  16.8549
  12  0.0165726
  13  0.0184954
  14  14.4506
  15  8.353e-07
  16  5.5634
  17  4.13923
  18  5.72495
  19  0.000119138
  20  22.3064
  21  0.293253
  22  0.145404
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.260e+01  8.565e+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:  9.056e-01  1.454e-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.604e-01  2.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.57
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 7.67e-08 +/- 5.21e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.88e-05

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) = 4929.34599651
delta logL = 0.00218104454416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4929.34564828
delta logL = 0.00252928031659

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.792       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2600       1.0000          .0000       5.0000    
     3 'Normalizat'    .86339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90473       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=   4929.346     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.794        8.7327        .11192E-04    .46623E-03
   2  alpha         2.2599        .63145        .13440E-01    .91037E-04
   3  Normalizat    .86326        .31613        .37854E-03    .24387E-04
   4  Prefactor     .90482        .16670        .19529E-03   -.46397E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7941
  alpha      = 2.2599
  Normalizat = 0.86326
  Prefactor  = 0.904825
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.346     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.794        8.6496        .44770E-06   -1.5636    
   2  alpha         2.2599        .62540        .26880E-02   -.96187E-01
   3  Normalizat    .86326        .31629        .15142E-04   -.97763    
   4  Prefactor     .90482        .16680        .78116E-05   -.95973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05917e-11
Minuit parameter uncertainties:
  1  8.64963
  2  0.632177
  3  0.316967
  4  0.166891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/65219': 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) = 4929.34564808
delta logL = 0.0025294739844

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.279e+01  8.650e+00  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  2.260e+00  6.322e-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:  9.048e-01  1.669e-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.633e-01  3.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.57
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.26 +/- 0.63
Photon Flux (Free Index): 7.40e-08 +/- 6.14e-08
Energy Flux (Free Index): 2.80e-05 +/- 1.87e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/65219/cmap_HighResolution_700704001_700963201_4FGL_J1337.6-1257_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.67e-08', energy_flux2='2.80e-05', photon_flux_error='5.21e-08', dlogl='2.53e-03', energy_flux='2.76e-05', photon_flux2='7.40e-08', job_status='DONE', time_completed='2023-03-20 01:08:17.149660', photon_index_error2='0.63', photon_index2='2.26', ts='5.57', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.87e-05', EG='0.86', time_epoch_completed='1679299697.15', return_code='0', job_id='65219', GAL2='0.90', EG2='0.86', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='6.14e-08', ts2='5.57', photon_index='2.30' WHERE bin_id='1780' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:08:17 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 65219: <4FGL_J1337.6-1257_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1780> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Mar 20 01:00:24 2023
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:00:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:00:25 2023
Terminated at Mon Mar 20 01:08:17 2023
Results reported at Mon Mar 20 01:08:17 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1780 204.424 -12.9517 700704001 700963201 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 :                                   461.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   472 sec.
    Turnaround time :                            473 sec.

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

