/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 192 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1238
RA = 204.424, Dec = -12.9517
tmin = 560217601, tmax = 560476801
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='804991', job_status='RUN', time_executed='2021-09-08 05:00:14.566562', time_epoch_executed='1631102414.57' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804991

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804991/ft1_4FGL_J1337.6-1257_daily_bin1238.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804991/ft2_4FGL_J1337.6-1257_daily_bin1238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804991/ft1_4FGL_J1337.6-1257_daily_bin1238.fits outfile=/scratch/kocevski/804991/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1238.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=560217601.0 tmax=560476801.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.62
user 3.37
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804991/ft1_filtered_4FGL_J1337.6-1257_daily_bin1238.fits" evtable="EVENTS" scfile=/scratch/kocevski/804991/ft2_4FGL_J1337.6-1257_daily_bin1238.fits sctable="SC_DATA" outfile=/scratch/kocevski/804991/ltcube_560217601_560476801_4FGL_J1337.6-1257_daily_bin1238.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/804991/ft2_4FGL_J1337.6-1257_daily_bin1238.fits
.....................!
real 15.13
user 14.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804991/ft1_filtered_4FGL_J1337.6-1257_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/804991/ft2_4FGL_J1337.6-1257_daily_bin1238.fits sctable="SC_DATA" expcube=/scratch/kocevski/804991/ltcube_560217601_560476801_4FGL_J1337.6-1257_daily_bin1238.fits outfile=/scratch/kocevski/804991/expmap_560217601_560476801_4FGL_J1337.6-1257_daily_bin1238.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/804991/ltcube_560217601_560476801_4FGL_J1337.6-1257_daily_bin1238.fits
.....................!
real 193.40
user 187.89
sys 4.96

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/804991/ft1_filtered_4FGL_J1337.6-1257_daily_bin1238.fits scfile=/scratch/kocevski/804991/ft2_4FGL_J1337.6-1257_daily_bin1238.fits outfile=/scratch/kocevski/804991/cmap_560217601_560476801_4FGL_J1337.6-1257_daily_bin1238.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804991/ft1_filtered_4FGL_J1337.6-1257_daily_bin1238.fits scfile=/scratch/kocevski/804991/ft2_4FGL_J1337.6-1257_daily_bin1238.fits outfile=/scratch/kocevski/804991/cmap_HighResolution_560217601_560476801_4FGL_J1337.6-1257_daily_bin1238.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/804991/ft1_filtered_4FGL_J1337.6-1257_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/804991/ft2_4FGL_J1337.6-1257_daily_bin1238.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/804991/Model_4FGL_J1337.6-1257_daily_bin1238.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/804991/ft1_filtered_4FGL_J1337.6-1257_daily_bin1238.fits.....................!
real 44.03
user 42.69
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/804991/ft1_filtered_4FGL_J1337.6-1257_daily_bin1238.fits', '/scratch/kocevski/804991/ft2_4FGL_J1337.6-1257_daily_bin1238.fits', expMap='/scratch/kocevski/804991/expmap_560217601_560476801_4FGL_J1337.6-1257_daily_bin1238.fits', expCube='/scratch/kocevski/804991/ltcube_560217601_560476801_4FGL_J1337.6-1257_daily_bin1238.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/804991/Model_4FGL_J1337.6-1257_daily_bin1238.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  1.000e-04  1.000e+04 ( 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  0.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/804991/ft1_filtered_4FGL_J1337.6-1257_daily_bin1238.fits
Spacecraft file(s): /scratch/kocevski/804991/ft2_4FGL_J1337.6-1257_daily_bin1238.fits
Exposure map: /scratch/kocevski/804991/expmap_560217601_560476801_4FGL_J1337.6-1257_daily_bin1238.fits
Exposure cube: /scratch/kocevski/804991/ltcube_560217601_560476801_4FGL_J1337.6-1257_daily_bin1238.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/804991/Model_4FGL_J1337.6-1257_daily_bin1238.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) = 4821.61091874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.420       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.642       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .28196E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.1566       1.0000         .10000E-03   10000.    
    10 'norm      '    13.797       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    35.851       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.735       1.0000         .10000E-03   10000.    
    15 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6065       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3759       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.997       1.0000         .10000E-03   10000.    
    20 'norm      '    9.4790       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.753       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4245       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82752       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.

 FCN=   4821.536     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2921 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    56.545        .11218E-04** at limit **
   2  norm          .10000E-03    2.5153        .20887E-08** at limit **
   3  norm          .10000E-03    6.2096       -.35121E-07** at limit **
   4  norm          .10000E-03    3.9281       -.59320E-08** at limit **
   5  Prefactor     13.420        16.391       -.12174E-06   -.92013E-05
   6  Prefactor     25.643        16.708       -.97868E-08    .16038E-04
   7  Prefactor     .10000E-03    70.576       -.40783E-05** at limit **
   8  norm          .10000E-03    .74297       -.81667E-07** at limit **
   9  norm          7.1564        10.905       -.68389E-06   -.77694E-04
  10  norm          13.796        18.920        .62380E-06    .29729E-04
  11  Prefactor     .10000E-03    18.723        .48564E-07** at limit **
  12  Prefactor     .10000E-03    48.842       -.66087E-05** at limit **
  13  norm          35.863        30.110        .63138E-05    .24627E-05
  14  Prefactor     35.739        32.385        .37554E-05    .13634E-04
  15  norm          .10000E-03    15.867        .48291E-06** at limit **
  16  Prefactor     6.6068        6.7314        .13231E-05   -.60428E-04
  17  Prefactor     7.3584        249.69       -.55963E-04   -.19934E-05
  18  norm          .10000E-03    9.4548       -.14188E-06** at limit **
  19  norm          13.997        4.6126       -.62367E-07   -.58095E-04
  20  norm          9.4785        10.288       -.28613E-06   -.62775E-04
  21  Prefactor     20.757        24.886        .13293E-05   -.12768E-05
  22  Normalizat    1.4246        .31879       -.75775E-06    .51636E-04
  23  Prefactor     .82747        .16377        .11827E-05   -.40392E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.42
  Prefactor  = 25.6429
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.15636
  norm       = 13.7961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.8632
  Prefactor  = 35.7392
  norm       = 0.000100001
  Prefactor  = 6.60683
  Prefactor  = 7.35843
  norm       = 0.0001
  norm       = 13.9972
  norm       = 9.47854
  Prefactor  = 20.7574
  Normalizat = 1.42461
  Prefactor  = 0.827466
 **********
 **   18 **HESSE 
 **********

 FCN=   4821.536     FROM HESSE     STATUS=OK           372 CALLS     3293 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    57.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.5161        .10755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.2412        .16898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.9318        .13441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.420        16.366        .10934E-03   -1.4975    
   6  Prefactor     25.643        16.828        .79108E-04   -1.4695    
   7  Prefactor     .10000E-03    70.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.8819        .11350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.1564        10.791        .14994E-03   -1.5173    
  10  norm          13.796        18.777        .10783E-03   -1.4965    
  11  Prefactor     .10000E-03    18.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          35.863        30.102        .66932E-04   -1.4510    
  14  Prefactor     35.739        32.385        .67040E-04   -1.4512    
  15  norm          .10000E-03    16.317        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.6068        6.7010        .15613E-03   -1.5194    
  17  Prefactor     7.3584        251.63        .14768E-03   -1.5165    
  18  norm          .10000E-03    9.6820        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.997        4.6249        .77910E-04   -1.4960    
  20  norm          9.4785        10.277        .13016E-03   -1.5092    
  21  Prefactor     20.757        24.879        .87922E-04   -1.4796    
  22  Normalizat    1.4246        .36336        .34726E-03   -.79919    
  23  Prefactor     .82747        .18812        .23461E-03   -.98724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62286e-10
Minuit parameter uncertainties:
  1  0.000152872
  2  8.19713e-07
  3  1.38266e-06
  4  6.03857e-07
  5  16.3715
  6  16.8314
  7  0.000316264
  8  5.01182e-05
  9  10.794
  10  18.7849
  11  4.69464e-05
  12  4.58696e-05
  13  30.1146
  14  32.4005
  15  0.000212201
  16  6.70177
  17  86.4581
  18  5.64231e-05
  19  4.62506
  20  10.2787
  21  24.8912
  22  0.364022
  23  0.188271
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.380e+01  1.878e+01  1.000e-04  1.000e+04 ( 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  0.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.275e-01  1.883e-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.425e+00  3.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.47
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 8.40e-08 +/- 1.14e-07
Energy Flux (Fixed Index): 3.03e-05 +/- 4.12e-05

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

Saving results to:
/scratch/kocevski/804991/likelihoodResults_560217601_560476801_4FGL_J1337.6-1257_daily_bin1238.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) = 4821.29900402
delta logL = 0.236589640646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4821.28754793
delta logL = 0.248045728147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.975       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9274       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84403       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=   4821.288     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      285 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.979        13.937        .12093E-03   -.71633E-03
   2  alpha         2.9277        .98782        .13309E-01   -.90228E-04
   3  Normalizat    1.3672        .35249        .35293E-03    .77923E-03
   4  Prefactor     .84389        .18400        .23248E-03    .16220E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9792
  alpha      = 2.9277
  Normalizat = 1.36722
  Prefactor  = 0.843891
 **********
 **   18 **HESSE 
 **********

 FCN=   4821.288     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.979        12.747        .48374E-05   -1.5045    
   2  alpha         2.9277        .90594        .53237E-03    .17193    
   3  Normalizat    1.3672        .35158        .70587E-04   -.81581    
   4  Prefactor     .84389        .18348        .46497E-04   -.98130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55344e-09
Minuit parameter uncertainties:
  1  12.7503
  2  0.92772
  3  0.352198
  4  0.183618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804991': 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) = 4821.28754662
delta logL = 0.248047045135

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.098e+01  1.275e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.928e+00  9.277e-01  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.384e-01  0.000e+00  0.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.439e-01  1.836e-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.367e+00  3.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.93 +/- 0.93
Photon Flux (Free Index): 1.51e-07 +/- 1.43e-07
Energy Flux (Free Index): 3.40e-05 +/- 2.77e-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/804991/cmap_HighResolution_560217601_560476801_4FGL_J1337.6-1257_daily_bin1238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.09e-05', comment='SUCCESS', photon_flux='8.40e-08', energy_flux2='3.40e-05', photon_flux_error='1.14e-07', dlogl='2.48e-01', energy_flux='3.03e-05', photon_flux2='1.51e-07', job_status='DONE', time_completed='2021-09-08 05:11:17.499897', photon_index_error2='0.93', photon_index2='2.93', ts='1.47', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='2.52e-07', energy_flux_error2='2.77e-05', EG='1.42', time_epoch_completed='1631103077.5', return_code='0', job_id='804991', GAL2='0.84', EG2='1.37', return_code2='0', energy_flux_error='4.12e-05', photon_flux_error2='1.43e-07', ts2='1.98', photon_index='2.30' WHERE bin_id='1238' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:11:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 804991: <4FGL_J1337.6-1257_daily_bin1238> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1238> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:55:30 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:56:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 04:56:52 2021
Terminated at Wed Sep  8 05:11:17 2021
Results reported at Wed Sep  8 05:11:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1238 204.424 -12.9517 560217601 560476801 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 :                                   582.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            947 sec.

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

