/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 103 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 = 7670
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin175
RA = 204.424, Dec = -12.9517
tmin = 284688001, tmax = 284947201
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='796280', job_status='RUN', time_executed='2021-09-08 04:33:45.357716', time_epoch_executed='1631100825.36' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='175'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796280

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796280/ft1_4FGL_J1337.6-1257_daily_bin175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796280/ft2_4FGL_J1337.6-1257_daily_bin175.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796280/ft1_4FGL_J1337.6-1257_daily_bin175.fits outfile=/scratch/kocevski/796280/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin175.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=284688001.0 tmax=284947201.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.66
user 3.40
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796280/ft1_filtered_4FGL_J1337.6-1257_daily_bin175.fits" evtable="EVENTS" scfile=/scratch/kocevski/796280/ft2_4FGL_J1337.6-1257_daily_bin175.fits sctable="SC_DATA" outfile=/scratch/kocevski/796280/ltcube_284688001_284947201_4FGL_J1337.6-1257_daily_bin175.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/796280/ft2_4FGL_J1337.6-1257_daily_bin175.fits
.....................!
real 14.29
user 13.91
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796280/ft1_filtered_4FGL_J1337.6-1257_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/796280/ft2_4FGL_J1337.6-1257_daily_bin175.fits sctable="SC_DATA" expcube=/scratch/kocevski/796280/ltcube_284688001_284947201_4FGL_J1337.6-1257_daily_bin175.fits outfile=/scratch/kocevski/796280/expmap_284688001_284947201_4FGL_J1337.6-1257_daily_bin175.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/796280/ltcube_284688001_284947201_4FGL_J1337.6-1257_daily_bin175.fits
.....................!
real 192.13
user 186.19
sys 5.40

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/796280/ft1_filtered_4FGL_J1337.6-1257_daily_bin175.fits scfile=/scratch/kocevski/796280/ft2_4FGL_J1337.6-1257_daily_bin175.fits outfile=/scratch/kocevski/796280/cmap_284688001_284947201_4FGL_J1337.6-1257_daily_bin175.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.57
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/796280/ft1_filtered_4FGL_J1337.6-1257_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/796280/ft2_4FGL_J1337.6-1257_daily_bin175.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/796280/Model_4FGL_J1337.6-1257_daily_bin175.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/796280/ft1_filtered_4FGL_J1337.6-1257_daily_bin175.fits.....................!
real 67.49
user 66.04
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3004       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2120       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3661       1.0000         .10000E-03   10000.    
     8 'norm      '    11.877       1.0000         .10000E-03   10000.    
     9 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6953       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9261       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4275       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9039       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.134       1.0000         .10000E-03   10000.    
    18 'norm      '    5.5753       1.0000         .10000E-03   10000.    
    19 'norm      '    .13627E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.726       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3757       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1174       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=   8417.021     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2539 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3005        7.0316        .13326E-05   -.31733E-03
   2  norm          .10000E-03    1.6099        .10610E-08** at limit **
   3  norm          .10000E-03    3.7204        .39099E-06** at limit **
   4  norm          .10000E-03    5.2440       -.12727E-06** at limit **
   5  Prefactor     6.2116        7.1064       -.78526E-08   -.37785E-04
   6  Prefactor     .10000E-03    5.1925       -.76496E-07** at limit **
   7  Prefactor     9.3732        12.265        .12951E-05    .21890E-03
   8  norm          11.877        2.6036        .51485E-07   -.26580E-04
   9  norm          .10000E-03    2.7965        .46771E-06** at limit **
  10  norm          3.6975        5.5683        .31718E-07   -.14861E-03
  11  Prefactor     9.9274        16.219        .33858E-06    .18598E-04
  12  Prefactor     4.4338        62.479        .49705E-05    .49747E-04
  13  norm          .10000E-03    11.984        .67882E-07** at limit **
  14  Prefactor     .10000E-03    6.4074        .30495E-06** at limit **
  15  norm          1.9052        4.4452        .84101E-06   -.14763E-03
  16  Prefactor     .10000E-03    1.8161       -.21994E-07** at limit **
  17  Prefactor     14.133        26.390       -.35676E-06   -.29247E-04
  18  norm          5.5766        6.5498        .21248E-06   -.42781E-04
  19  norm          .10000E-03    1.1625       -.23796E-07** at limit **
  20  norm          .10000E-03    3.3187       -.34494E-06** at limit **
  21  Prefactor     10.725        19.522       -.72197E-07   -.31514E-04
  22  Normalizat    1.3757        .25292       -.10142E-05   -.19767E-04
  23  Prefactor     1.1174        .12854       -.79820E-07   -.91198E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.30053
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.21159
  Prefactor  = 0.0001
  Prefactor  = 9.37316
  norm       = 11.8769
  norm       = 0.0001
  norm       = 3.69748
  Prefactor  = 9.92743
  Prefactor  = 4.43381
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90521
  Prefactor  = 0.0001
  Prefactor  = 14.1334
  norm       = 5.57657
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 10.7254
  Normalizat = 1.3757
  Prefactor  = 1.11744
 **********
 **   18 **HESSE 
 **********

 FCN=   8417.021     FROM HESSE     STATUS=OK           372 CALLS     2911 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3005        7.3001        .74224E-03   -1.5168    
   2  norm          .10000E-03    1.6719        .22723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.7637        .17352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.2751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2116        7.1076        .16107E-03   -1.5209    
   6  Prefactor     .10000E-03    5.2251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.3732        12.687        .13095E-03   -1.5096    
   8  norm          11.877        2.6205        .65177E-04   -1.5019    
   9  norm          .10000E-03    2.7787        .29439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6975        5.5760        .21009E-03   -1.5323    
  11  Prefactor     9.9274        16.146        .12719E-03   -1.5078    
  12  Prefactor     4.4338        64.770        .19138E-03   -1.5287    
  13  norm          .10000E-03    11.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9052        4.4795        .28486E-03   -1.5432    
  16  Prefactor     .10000E-03    1.8245        .12063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.133        26.404        .10654E-03   -1.4956    
  18  norm          5.5766        6.5411        .17014E-03   -1.5236    
  19  norm          .10000E-03    6.0661        .19027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.3440        .16356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.725        19.529        .12233E-03   -1.5053    
  22  Normalizat    1.3757        .29122        .36465E-03   -.81334    
  23  Prefactor     1.1174        .14934        .20942E-03   -.88911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53991e-10
Minuit parameter uncertainties:
  1  7.30096
  2  1.13386e-06
  3  2.64094e-05
  4  6.94799e-06
  5  7.10859
  6  5.86691e-06
  7  12.6911
  8  2.62055
  9  2.84439e-05
  10  5.5768
  11  16.1531
  12  33.9366
  13  8.98896e-06
  14  3.4516e-06
  15  4.48031
  16  4.03488e-07
  17  26.426
  18  6.54195
  19  0.000134575
  20  1.75509e-05
  21  19.5403
  22  0.291568
  23  0.149398
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.697e+00  5.577e+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.117e+00  1.494e-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.376e+00  2.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/796280/likelihoodResults_284688001_284947201_4FGL_J1337.6-1257_daily_bin175.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) = 8416.87970501
delta logL = 0.141602177222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8416.87667498
delta logL = 0.144632209318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0340       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6466       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1119       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=   8416.877     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      244 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0328        5.6857        .20077E-03   -.37577E-03
   2  alpha         1.6458        1.0040        .30449E-01    .19736E-04
   3  Normalizat    1.3907        .27689        .36298E-03    .33692E-03
   4  Prefactor     1.1118        .14636        .20984E-03    .51298E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.0328
  alpha      = 1.64583
  Normalizat = 1.39074
  Prefactor  = 1.11183
 **********
 **   18 **HESSE 
 **********

 FCN=   8416.877     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0328        5.8474        .80308E-05   -1.5306    
   2  alpha         1.6458        1.0314        .12179E-02   -.34869    
   3  Normalizat    1.3907        .27707        .72595E-04   -.80897    
   4  Prefactor     1.1118        .14646        .41968E-04   -.89089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51698e-10
Minuit parameter uncertainties:
  1  5.84827
  2  1.06779
  3  0.277374
  4  0.14651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796280': 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) = 8416.87667417
delta logL = 0.144633021926

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  4.033e+00  5.848e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.646e+00  1.068e+00  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.112e+00  1.465e-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.391e+00  2.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.61
Ra Dec: 204.424 -12.952

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/796280/cmap_HighResolution_284688001_284947201_4FGL_J1337.6-1257_daily_bin175.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-05', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-08 04:46:23.571205', job_id='796280', GAL2='1.11', fit_tolerance='1e-08', EG2='1.39', EG='1.38', time_epoch_completed='1631101583.57', return_code2='0', ts='0.61', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.45e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='175' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:46:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 796280: <4FGL_J1337.6-1257_daily_bin175> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin175> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 04:30:41 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:31:51 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:31:51 2021
Terminated at Wed Sep  8 04:46:24 2021
Results reported at Wed Sep  8 04:46:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin175 204.424 -12.9517 284688001 284947201 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 :                                   755.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            943 sec.

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

