/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 153 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 = 7483
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin550
RA = 204.424, Dec = -12.9517
tmin = 381888001, tmax = 382147201
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='799406', job_status='RUN', time_executed='2021-09-08 04:43:36.323563', time_epoch_executed='1631101416.32' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799406

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799406/ft1_4FGL_J1337.6-1257_daily_bin550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799406/ft2_4FGL_J1337.6-1257_daily_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799406/ft1_4FGL_J1337.6-1257_daily_bin550.fits outfile=/scratch/kocevski/799406/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin550.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=381888001.0 tmax=382147201.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.92
user 4.59
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799406/ft1_filtered_4FGL_J1337.6-1257_daily_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/799406/ft2_4FGL_J1337.6-1257_daily_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/799406/ltcube_381888001_382147201_4FGL_J1337.6-1257_daily_bin550.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/799406/ft2_4FGL_J1337.6-1257_daily_bin550.fits
.....................!
real 14.11
user 13.68
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799406/ft1_filtered_4FGL_J1337.6-1257_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/799406/ft2_4FGL_J1337.6-1257_daily_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/799406/ltcube_381888001_382147201_4FGL_J1337.6-1257_daily_bin550.fits outfile=/scratch/kocevski/799406/expmap_381888001_382147201_4FGL_J1337.6-1257_daily_bin550.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/799406/ltcube_381888001_382147201_4FGL_J1337.6-1257_daily_bin550.fits
.....................!
real 192.69
user 185.91
sys 5.91

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/799406/ft1_filtered_4FGL_J1337.6-1257_daily_bin550.fits scfile=/scratch/kocevski/799406/ft2_4FGL_J1337.6-1257_daily_bin550.fits outfile=/scratch/kocevski/799406/cmap_381888001_382147201_4FGL_J1337.6-1257_daily_bin550.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799406/ft1_filtered_4FGL_J1337.6-1257_daily_bin550.fits scfile=/scratch/kocevski/799406/ft2_4FGL_J1337.6-1257_daily_bin550.fits outfile=/scratch/kocevski/799406/cmap_HighResolution_381888001_382147201_4FGL_J1337.6-1257_daily_bin550.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/799406/ft1_filtered_4FGL_J1337.6-1257_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/799406/ft2_4FGL_J1337.6-1257_daily_bin550.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799406/Model_4FGL_J1337.6-1257_daily_bin550.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/799406/ft1_filtered_4FGL_J1337.6-1257_daily_bin550.fits.....................!
real 58.25
user 56.74
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5531       1.0000         .10000E-03   10000.    
     3 'norm      '    16.924       1.0000         .10000E-03   10000.    
     4 'norm      '    11.290       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .81685       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.656       1.0000         .10000E-03   10000.    
     8 'norm      '    4.1259       1.0000         .10000E-03   10000.    
     9 'norm      '    4.9583       1.0000         .10000E-03   10000.    
    10 'norm      '    7.7954       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.227       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.476       1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10285E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39382E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.837       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0560       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0578       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=   7245.138     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2553 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.889        .49195E-05** at limit **
   2  norm          2.5536        2.3652       -.12864E-07   -.13759E-03
   3  norm          16.919        11.263        .17224E-05    .62013E-05
   4  norm          11.287        10.797        .46075E-05    .50904E-06
   5  Prefactor     .10000E-03    4.4003        .43220E-06** at limit **
   6  Prefactor     .89705        8.8522       -.88046E-06   -.60112E-03
   7  Prefactor     24.654        18.414        .54943E-05    .93800E-04
   8  norm          4.1253        1.8928       -.77688E-07   -.60435E-04
   9  norm          4.9561        4.5538       -.98340E-06   -.54489E-04
  10  norm          7.7993        8.1529       -.38250E-06   -.21396E-04
  11  Prefactor     15.228        13.250       -.34741E-05    .23920E-04
  12  Prefactor     18.481        19.802       -.52566E-05    .38880E-05
  13  norm          .10000E-03    10.805       -.34605E-05** at limit **
  14  Prefactor     .10000E-03    4.4689       -.36199E-06** at limit **
  15  norm          .10000E-03    6.6172        .41611E-06** at limit **
  16  Prefactor     .10000E-03    1.4041        .25531E-07** at limit **
  17  Prefactor     .10001E-03    310.15       -.55761E-04** at limit **
  18  norm          .10000E-03    2.1148        .23868E-07** at limit **
  19  norm          .10000E-03    1.5463        .82128E-08** at limit **
  20  norm          .10000E-03    2.6083       -.47465E-08** at limit **
  21  Prefactor     37.877        29.924        .12669E-05    .12166E-04
  22  Normalizat    1.0559        .24801       -.11341E-05    .18070E-03
  23  Prefactor     1.0579        .12567        .61514E-06    .22917E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.55356
  norm       = 16.9187
  norm       = 11.2871
  Prefactor  = 0.0001
  Prefactor  = 0.897045
  Prefactor  = 24.654
  norm       = 4.12533
  norm       = 4.95606
  norm       = 7.79926
  Prefactor  = 15.2279
  Prefactor  = 18.4811
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 37.8769
  Normalizat = 1.05585
  Prefactor  = 1.05787
 **********
 **   18 **HESSE 
 **********

 FCN=   7245.138     FROM HESSE     STATUS=OK           372 CALLS     2925 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5536        2.3630        .12226E-03   -1.5388    
   3  norm          16.919        11.260        .97358E-04   -1.4885    
   4  norm          11.287        10.810        .11923E-03   -1.5036    
   5  Prefactor     .10000E-03    4.4222        .17432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .89705        32.144        .45676E-02   -1.5519    
   7  Prefactor     24.654        18.493        .80672E-04   -1.4714    
   8  norm          4.1253        1.8947        .74790E-04   -1.5302    
   9  norm          4.9561        4.5264        .14137E-03   -1.5263    
  10  norm          7.7993        8.1198        .14362E-03   -1.5149    
  11  Prefactor     15.228        13.271        .10264E-03   -1.4927    
  12  Prefactor     18.481        19.814        .93179E-04   -1.4848    
  13  norm          .10000E-03    10.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4773        .17563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.8641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4095        .98478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    315.76        .42541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1231        .12087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6162        .20650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.6131        .13424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     37.877        29.910        .65157E-04   -1.4476    
  22  Normalizat    1.0559        .28396        .36586E-03   -.91182    
  23  Prefactor     1.0579        .14529        .19571E-03   -.90825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08374e-09
Minuit parameter uncertainties:
  1  2.1951e-05
  2  2.36309
  3  11.2616
  4  10.8121
  5  9.9013e-06
  6  10.7453
  7  18.4972
  8  1.89475
  9  4.5267
  10  8.12098
  11  13.274
  12  19.8212
  13  3.42925e-08
  14  2.9432e-05
  15  4.29122e-05
  16  4.19275e-07
  17  0.00389231
  18  1.19905e-07
  19  8.62259e-07
  20  1.72198e-06
  21  29.9221
  22  0.284373
  23  0.145341
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  7.799e+00  8.121e+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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.058e+00  1.453e-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.056e+00  2.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.75e-08 +/- 4.94e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.78e-05

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

Saving results to:
/scratch/kocevski/799406/likelihoodResults_381888001_382147201_4FGL_J1337.6-1257_daily_bin550.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) = 7244.75731481
delta logL = 0.380273458664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7244.75477662
delta logL = 0.382811652368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0274       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1183       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0736       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=   7244.755     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      280 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0277        7.8178        .13667E-03    .34356E-04
   2  alpha         3.1183        1.1064        .14634E-01    .13368E-04
   3  Normalizat    1.0075        .27336        .37324E-03    .51507E-04
   4  Prefactor     1.0736        .14462        .19438E-03    .13603E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.02769
  alpha      = 3.1183
  Normalizat = 1.00746
  Prefactor  = 1.07357
 **********
 **   18 **HESSE 
 **********

 FCN=   7244.755     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0277        6.5300        .54666E-05   -1.5259    
   2  alpha         3.1183        .93355        .58536E-03    .24991    
   3  Normalizat    1.0075        .27263        .14930E-04   -.92781    
   4  Prefactor     1.0736        .14426        .38876E-04   -.90316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16997e-11
Minuit parameter uncertainties:
  1  6.53097
  2  0.958358
  3  0.273009
  4  0.144316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799406': 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) = 7244.75477642
delta logL = 0.382811847417

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  5.028e+00  6.531e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  3.118e+00  9.584e-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:  1.074e+00  1.443e-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.007e+00  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 3.12 +/- 0.96
Photon Flux (Free Index): 9.11e-08 +/- 7.65e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.43e-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/799406/cmap_HighResolution_381888001_382147201_4FGL_J1337.6-1257_daily_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-05', comment='SUCCESS', photon_flux='4.75e-08', energy_flux2='1.88e-05', photon_flux_error='4.94e-08', dlogl='3.83e-01', energy_flux='1.71e-05', photon_flux2='9.11e-08', job_status='DONE', time_completed='2021-09-08 04:55:06.195273', photon_index_error2='0.96', photon_index2='3.12', ts='1.61', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.43e-05', EG='1.06', time_epoch_completed='1631102106.2', return_code='0', job_id='799406', GAL2='1.07', EG2='1.01', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='7.65e-08', ts2='2.49', photon_index='2.30' WHERE bin_id='550' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:55:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 799406: <4FGL_J1337.6-1257_daily_bin550> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin550> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:40:47 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:40:54 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:40:54 2021
Terminated at Wed Sep  8 04:55:06 2021
Results reported at Wed Sep  8 04:55:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin550 204.424 -12.9517 381888001 382147201 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 :                                   687.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            859 sec.

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

