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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin300
RA = 204.424, Dec = -12.9517
tmin = 317088001, tmax = 317347201
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='797718', job_status='RUN', time_executed='2021-09-08 04:39:00.355950', time_epoch_executed='1631101140.36' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797718

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797718/ft1_4FGL_J1337.6-1257_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797718/ft2_4FGL_J1337.6-1257_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797718/ft1_4FGL_J1337.6-1257_daily_bin300.fits outfile=/scratch/kocevski/797718/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin300.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=317088001.0 tmax=317347201.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.99
user 3.70
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/797718/ft2_4FGL_J1337.6-1257_daily_bin300.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/797718/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin300.fits evtable="EVENTS" outfile="/scratch/kocevski/797718/ft1_filtered_4FGL_J1337.6-1257_daily_bin300.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/797718/ft1_filtered_4FGL_J1337.6-1257_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/797718/ft2_4FGL_J1337.6-1257_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/797718/ltcube_317088001_317347201_4FGL_J1337.6-1257_daily_bin300.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/797718/ft2_4FGL_J1337.6-1257_daily_bin300.fits
.....................!
real 18.94
user 18.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797718/ft1_filtered_4FGL_J1337.6-1257_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/797718/ft2_4FGL_J1337.6-1257_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/797718/ltcube_317088001_317347201_4FGL_J1337.6-1257_daily_bin300.fits outfile=/scratch/kocevski/797718/expmap_317088001_317347201_4FGL_J1337.6-1257_daily_bin300.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/797718/ltcube_317088001_317347201_4FGL_J1337.6-1257_daily_bin300.fits
.....................!
real 196.06
user 190.01
sys 5.53

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/797718/ft1_filtered_4FGL_J1337.6-1257_daily_bin300.fits scfile=/scratch/kocevski/797718/ft2_4FGL_J1337.6-1257_daily_bin300.fits outfile=/scratch/kocevski/797718/cmap_317088001_317347201_4FGL_J1337.6-1257_daily_bin300.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.59
user 0.40
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797718/ft1_filtered_4FGL_J1337.6-1257_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/797718/ft2_4FGL_J1337.6-1257_daily_bin300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797718/Model_4FGL_J1337.6-1257_daily_bin300.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/797718/ft1_filtered_4FGL_J1337.6-1257_daily_bin300.fits.....................!
real 60.49
user 58.98
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5029       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 '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.035       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.5705       1.0000         .10000E-03   10000.    
    10 'norm      '    .36217E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.726       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.598       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.7464       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4649       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.4135       1.0000         .10000E-03   10000.    
    20 'norm      '    7.0705       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2645       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95657       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=   7039.790     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2529 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.3040        .66498E-06** at limit **
   2  norm          1.5028        1.7588       -.86671E-07   -.11420E-03
   3  norm          .10000E-03    3.9814       -.19648E-06** at limit **
   4  norm          .10000E-03    4.5841        .20937E-06** at limit **
   5  Prefactor     .10000E-03    10.490       -.35933E-05** at limit **
   6  Prefactor     17.034        11.797       -.90998E-07   -.30187E-04
   7  Prefactor     .10000E-03    21.806        .17668E-05** at limit **
   8  norm          .10000E-03    .90187       -.58473E-07** at limit **
   9  norm          5.5752        4.0739       -.20360E-05   -.73381E-03
  10  norm          .10001E-03    5.3975        .19723E-05** at limit **
  11  Prefactor     10.724        14.104       -.33593E-06   -.50554E-04
  12  Prefactor     .10000E-03    9.8054        .16673E-05** at limit **
  13  norm          16.587        33.005       -.14742E-04    .26569E-03
  14  Prefactor     .10000E-03    2.8257        .47367E-07** at limit **
  15  norm          6.7461        5.4096       -.16125E-06   -.19758E-03
  16  Prefactor     3.4671        5.4131       -.60671E-06   -.51347E-03
  17  Prefactor     .10000E-03    38.062       -.14068E-05** at limit **
  18  norm          .10000E-03    7.1232       -.22363E-05** at limit **
  19  norm          4.4136        3.0685       -.11568E-06   -.10198E-03
  20  norm          7.0701        6.9722       -.82252E-06   -.11039E-02
  21  Prefactor     .10000E-03    8.5289        .30055E-05** at limit **
  22  Normalizat    1.2644        .24118        .12085E-05   -.10861E-03
  23  Prefactor     .95662        .12315        .40244E-06   -.15675E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.50285
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 17.0337
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 5.57515
  norm       = 0.000100014
  Prefactor  = 10.7245
  Prefactor  = 0.0001
  norm       = 16.5874
  Prefactor  = 0.0001
  norm       = 6.74614
  Prefactor  = 3.46712
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.41355
  norm       = 7.07005
  Prefactor  = 0.0001
  Normalizat = 1.26444
  Prefactor  = 0.956622
 **********
 **   18 **HESSE 
 **********

 FCN=   7039.790     FROM HESSE     STATUS=OK           368 CALLS     2897 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5028        1.7486        .11708E-03   -1.5463    
   3  norm          .10000E-03    3.9936        .16350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.5913        .17544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.034        11.877        .97039E-04   -1.4882    
   7  Prefactor     .10000E-03    22.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7671        .15308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.5752        3.9481        .13355E-03   -1.5236    
  10  norm          .10001E-03    14.262        .35348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.724        14.107        .12233E-03   -1.5053    
  12  Prefactor     .10000E-03    9.8140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.587        32.063        .98309E-04   -1.4893    
  14  Prefactor     .10000E-03    2.8290        .13770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.7461        5.4138        .15448E-03   -1.5188    
  16  Prefactor     3.4671        5.4158        .21725E-03   -1.5336    
  17  Prefactor     .10000E-03    38.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.1390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.4136        3.0666        .11652E-03   -1.5288    
  20  norm          7.0701        7.1173        .75432E-03   -1.5176    
  21  Prefactor     .10000E-03    8.4961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2644        .28193        .33820E-03   -.84634    
  23  Prefactor     .95662        .14507        .20099E-03   -.94190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86953e-09
Minuit parameter uncertainties:
  1  3.18779e-05
  2  1.74865
  3  2.42181e-06
  4  6.6953e-06
  5  0.000190373
  6  11.8789
  7  0.000300396
  8  1.51825e-05
  9  3.94825
  10  0.000879601
  11  14.1113
  12  6.56091e-05
  13  32.0959
  14  1.63656e-06
  15  5.41417
  16  5.41653
  17  9.8495e-05
  18  9.40475e-05
  19  3.06671
  20  7.11818
  21  0.000101898
  22  0.282269
  23  0.145133
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  8.796e-04  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:  9.566e-01  1.451e-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.264e+00  2.823e-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: 9.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/797718/likelihoodResults_317088001_317347201_4FGL_J1337.6-1257_daily_bin300.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) = 7039.79025778
delta logL = -0.000332986174726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7039.78992548
delta logL = -6.8599365477e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2980       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95678       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7039.790     FROM MIGRAD    STATUS=FAILED        93 CALLS      256 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    1072.8        .34027E-02** at limit **
   2  alpha         2.2577        3.7999        .16529        .49480E-06
   3  Normalizat    1.2644        .59227E-01    .33820E-03    .22119E-04
   4  Prefactor     .95662        .31318E-01    .20099E-03    .41462E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7039.790     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      417 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    1072.8        .58580E-03** at limit **
   2  alpha         2.2577        3.7999        .28146E-05    .49480E-06
   3  Normalizat    1.2644        .59227E-01    .64978E-07    .22119E-04
   4  Prefactor     .95662        .31318E-01    .36111E-07    .41462E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7039.790     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      445 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    14.715        .68055E-03** at limit **
   2  alpha         2.2622        2.6336        .66116E-02    .67714E-06
   3  Normalizat    1.2644        .26746        .13528E-04    .24371E-04
   4  Prefactor     .95662        .14149        .80394E-05    .45252E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100064
  alpha      = 2.26219
  Normalizat = 1.26444
  Prefactor  = 0.956622
 **********
 **   18 **HESSE 
 **********

 FCN=   7039.790     FROM HESSE     STATUS=OK            23 CALLS      468 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    14.468        .13611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2622        3.5701        .13223E-02   -.95266E-01
   3  Normalizat    1.2644        .26791        .27056E-05   -.84634    
   4  Prefactor     .95662        .14174        .16079E-05   -.94190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78945e-09
Minuit parameter uncertainties:
  1  0.00192442
  2  247.799
  3  0.268208
  4  0.1418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797718': 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) = 7039.78992477
delta logL = 2.43753675022e-08

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.001e-04  1.924e-03  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.262e+00  2.478e+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:  9.566e-01  1.418e-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.264e+00  2.682e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/797718/cmap_HighResolution_317088001_317347201_4FGL_J1337.6-1257_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-05', job_status='DONE', photon_flux_upper_limit='9.79e-08', time_completed='2021-09-08 04:50:45.220909', job_id='797718', GAL2='0.96', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631101845.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='300' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:50:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 797718: <4FGL_J1337.6-1257_daily_bin300> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin300> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 04:35:25 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:36:47 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:36:47 2021
Terminated at Wed Sep  8 04:50:46 2021
Results reported at Wed Sep  8 04:50:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin300 204.424 -12.9517 317088001 317347201 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 :                                   703.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            921 sec.

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

