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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin500
RA = 204.424, Dec = -12.9517
tmin = 368928001, tmax = 369187201
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='799316', job_status='RUN', time_executed='2021-09-08 04:41:23.040870', time_epoch_executed='1631101283.04' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799316

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799316/ft1_4FGL_J1337.6-1257_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799316/ft2_4FGL_J1337.6-1257_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799316/ft1_4FGL_J1337.6-1257_daily_bin500.fits outfile=/scratch/kocevski/799316/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin500.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=368928001.0 tmax=369187201.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.38
user 3.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/799316/ft2_4FGL_J1337.6-1257_daily_bin500.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/799316/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin500.fits evtable="EVENTS" outfile="/scratch/kocevski/799316/ft1_filtered_4FGL_J1337.6-1257_daily_bin500.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.53
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799316/ft1_filtered_4FGL_J1337.6-1257_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/799316/ft2_4FGL_J1337.6-1257_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/799316/ltcube_368928001_369187201_4FGL_J1337.6-1257_daily_bin500.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/799316/ft2_4FGL_J1337.6-1257_daily_bin500.fits
.....................!
real 16.96
user 16.38
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799316/ft1_filtered_4FGL_J1337.6-1257_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/799316/ft2_4FGL_J1337.6-1257_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/799316/ltcube_368928001_369187201_4FGL_J1337.6-1257_daily_bin500.fits outfile=/scratch/kocevski/799316/expmap_368928001_369187201_4FGL_J1337.6-1257_daily_bin500.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/799316/ltcube_368928001_369187201_4FGL_J1337.6-1257_daily_bin500.fits
.....................!
real 192.47
user 187.36
sys 4.54

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/799316/ft1_filtered_4FGL_J1337.6-1257_daily_bin500.fits scfile=/scratch/kocevski/799316/ft2_4FGL_J1337.6-1257_daily_bin500.fits outfile=/scratch/kocevski/799316/cmap_368928001_369187201_4FGL_J1337.6-1257_daily_bin500.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799316/ft1_filtered_4FGL_J1337.6-1257_daily_bin500.fits scfile=/scratch/kocevski/799316/ft2_4FGL_J1337.6-1257_daily_bin500.fits outfile=/scratch/kocevski/799316/cmap_HighResolution_368928001_369187201_4FGL_J1337.6-1257_daily_bin500.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.58
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799316/ft1_filtered_4FGL_J1337.6-1257_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/799316/ft2_4FGL_J1337.6-1257_daily_bin500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799316/Model_4FGL_J1337.6-1257_daily_bin500.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/799316/ft1_filtered_4FGL_J1337.6-1257_daily_bin500.fits.....................!
real 51.59
user 50.11
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .80727       1.0000         .10000E-03   10000.    
     3 'norm      '    33.430       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.007       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.538       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0115       1.0000         .10000E-03   10000.    
     9 'norm      '    3.6273       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10779E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    45.874       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.756       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4525       1.0000         .10000E-03   10000.    
    17 'Prefactor '    77.729       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10645E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.6014       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.867       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3165       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85201       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=   6033.111     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2525 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4420       -.18847E-06** at limit **
   2  norm          .80695        2.3072       -.92925E-06   -.11349E-02
   3  norm          33.429        15.275       -.61720E-06    .37361E-04
   4  norm          .10000E-03    5.8495       -.79244E-06** at limit **
   5  Prefactor     17.007        13.789       -.88404E-06    .37170E-05
   6  Prefactor     .10000E-03    6.4380        .44502E-06** at limit **
   7  Prefactor     41.539        27.600        .11716E-05    .15292E-05
   8  norm          2.0115        1.8327       -.40969E-06   -.55086E-03
   9  norm          3.6263        5.0535       -.62273E-06   -.32513E-03
  10  norm          .10000E-03    2.0486       -.12281E-07** at limit **
  11  Prefactor     .10000E-03    17.848        .37358E-05** at limit **
  12  Prefactor     .10000E-03    13.487       -.14583E-05** at limit **
  13  norm          45.872        41.824       -.15585E-05    .19639E-04
  14  Prefactor     24.741        17.522       -.97879E-05    .38466E-03
  15  norm          .10000E-03    2.3571        .28238E-06** at limit **
  16  Prefactor     3.4524        5.6159       -.80412E-06   -.40066E-03
  17  Prefactor     77.723        59.139       -.62840E-05    .91032E-04
  18  norm          .10000E-03    6.0121        .43047E-06** at limit **
  19  norm          .10000E-03    1.6192       -.20057E-06** at limit **
  20  norm          7.6060        9.8748       -.97561E-06   -.28869E-04
  21  Prefactor     23.868        29.389        .55342E-06   -.40684E-05
  22  Normalizat    1.3165        .27229        .41427E-05   -.18007E-04
  23  Prefactor     .85204        .13275        .10676E-05    .10545E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.80695
  norm       = 33.4294
  norm       = 0.0001
  Prefactor  = 17.0072
  Prefactor  = 0.0001
  Prefactor  = 41.5391
  norm       = 2.01151
  norm       = 3.62633
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 45.8725
  Prefactor  = 24.7405
  norm       = 0.0001
  Prefactor  = 3.45237
  Prefactor  = 77.7227
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.60603
  Prefactor  = 23.8678
  Normalizat = 1.31653
  Prefactor  = 0.852038
 **********
 **   18 **HESSE 
 **********

 FCN=   6033.111     FROM HESSE     STATUS=OK           370 CALLS     2895 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4444        .11854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .80695        2.3009        .19535E-03   -1.5528    
   3  norm          33.429        15.287        .69306E-04   -1.4551    
   4  norm          .10000E-03    5.8965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.007        13.801        .97118E-04   -1.4883    
   6  Prefactor     .10000E-03    6.5142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.539        27.462        .62197E-04   -1.4418    
   8  norm          2.0115        1.8460        .93258E-04   -1.5424    
   9  norm          3.6263        5.0116        .16252E-03   -1.5327    
  10  norm          .10000E-03    2.0500        .10854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          45.872        41.825        .59197E-04   -1.4352    
  14  Prefactor     24.741        17.427        .80510E-04   -1.4713    
  15  norm          .10000E-03    2.3670        .11648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4524        5.6376        .21766E-03   -1.5336    
  17  Prefactor     77.723        59.024        .45548E-04   -1.3942    
  18  norm          .10000E-03    6.0627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.6626        .18906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.6060        9.7774        .14545E-03   -1.5156    
  21  Prefactor     23.868        29.386        .81994E-04   -1.4730    
  22  Normalizat    1.3165        .31873        .33534E-03   -.83074    
  23  Prefactor     .85204        .15581        .21071E-03   -.97838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72333e-09
Minuit parameter uncertainties:
  1  1.35274e-06
  2  2.30118
  3  15.2891
  4  3.58513e-06
  5  13.8037
  6  3.05693e-05
  7  27.4702
  8  1.84605
  9  5.01221
  10  2.43341e-07
  11  0.000540127
  12  0.000101248
  13  41.8518
  14  17.4303
  15  2.04455e-05
  16  5.63843
  17  59.069
  18  1.69679e-05
  19  4.95916e-05
  20  9.7795
  21  29.4041
  22  0.319209
  23  0.15589
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  2.433e-07  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.520e-01  1.559e-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.317e+00  3.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 6.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/799316/likelihoodResults_368928001_369187201_4FGL_J1337.6-1257_daily_bin500.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): 102
logL (Free Index) = 6033.11345105
delta logL = -0.00227401509255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6033.11117697
delta logL = 6.7806467996e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2945       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85206       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=   6033.111     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      234 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    123.28        .10901E-01** at limit **
   2  alpha         1.8793        2.8812        .16531        .15129E-07
   3  Normalizat    1.3165        .52512E-01    .33534E-03    .22341E-04
   4  Prefactor     .85204        .27378E-01    .21071E-03    .45052E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.87926
  Normalizat = 1.31653
  Prefactor  = 0.852037
 **********
 **   18 **HESSE 
 **********

 FCN=   6033.111     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2565        .11381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8793        2.9973        .66126E-02   -.25092    
   3  Normalizat    1.3165        .28857        .13414E-04   -.83074    
   4  Prefactor     .85204        .15055        .84283E-05   -.97838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54896e-12
Minuit parameter uncertainties:
  1  1.78997e-06
  2  198.902
  3  0.288925
  4  0.150627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799316': 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) = 6033.11117484
delta logL = 2.20331912715e-06

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  1.790e-06  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.879e+00  1.989e+02  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.520e-01  1.506e-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.317e+00  2.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/799316/cmap_HighResolution_368928001_369187201_4FGL_J1337.6-1257_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='6.77e-08', time_completed='2021-09-08 04:51:58.421941', job_id='799316', GAL2='0.85', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631101918.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='500' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:51:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 799316: <4FGL_J1337.6-1257_daily_bin500> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin500> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:40:39 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:40:48 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:48 2021
Terminated at Wed Sep  8 04:51:59 2021
Results reported at Wed Sep  8 04:51:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin500 204.424 -12.9517 368928001 369187201 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 :                                   630.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            680 sec.

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

