/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 12 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 = 7352
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1526
RA = 204.424, Dec = -12.9517
tmin = 634867201, tmax = 635126401
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='805395', job_status='RUN', time_executed='2021-09-08 04:58:02.082459', time_epoch_executed='1631102282.08' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805395

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805395/ft1_4FGL_J1337.6-1257_daily_bin1526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805395/ft2_4FGL_J1337.6-1257_daily_bin1526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805395/ft1_4FGL_J1337.6-1257_daily_bin1526.fits outfile=/scratch/kocevski/805395/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1526.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=634867201.0 tmax=635126401.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.06
user 2.82
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805395/ft1_filtered_4FGL_J1337.6-1257_daily_bin1526.fits" evtable="EVENTS" scfile=/scratch/kocevski/805395/ft2_4FGL_J1337.6-1257_daily_bin1526.fits sctable="SC_DATA" outfile=/scratch/kocevski/805395/ltcube_634867201_635126401_4FGL_J1337.6-1257_daily_bin1526.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/805395/ft2_4FGL_J1337.6-1257_daily_bin1526.fits
.....................!
real 14.43
user 14.04
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805395/ft1_filtered_4FGL_J1337.6-1257_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/805395/ft2_4FGL_J1337.6-1257_daily_bin1526.fits sctable="SC_DATA" expcube=/scratch/kocevski/805395/ltcube_634867201_635126401_4FGL_J1337.6-1257_daily_bin1526.fits outfile=/scratch/kocevski/805395/expmap_634867201_635126401_4FGL_J1337.6-1257_daily_bin1526.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/805395/ltcube_634867201_635126401_4FGL_J1337.6-1257_daily_bin1526.fits
.....................!
real 191.10
user 185.67
sys 4.97

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/805395/ft1_filtered_4FGL_J1337.6-1257_daily_bin1526.fits scfile=/scratch/kocevski/805395/ft2_4FGL_J1337.6-1257_daily_bin1526.fits outfile=/scratch/kocevski/805395/cmap_634867201_635126401_4FGL_J1337.6-1257_daily_bin1526.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=204.424 yref=-12.9517 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805395/ft1_filtered_4FGL_J1337.6-1257_daily_bin1526.fits scfile=/scratch/kocevski/805395/ft2_4FGL_J1337.6-1257_daily_bin1526.fits outfile=/scratch/kocevski/805395/cmap_HighResolution_634867201_635126401_4FGL_J1337.6-1257_daily_bin1526.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/805395/ft1_filtered_4FGL_J1337.6-1257_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/805395/ft2_4FGL_J1337.6-1257_daily_bin1526.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805395/Model_4FGL_J1337.6-1257_daily_bin1526.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/805395/ft1_filtered_4FGL_J1337.6-1257_daily_bin1526.fits.....................!
real 58.28
user 56.90
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10568E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.3879       1.0000         .10000E-03   10000.    
     3 'norm      '    6.6787       1.0000         .10000E-03   10000.    
     4 'norm      '    12.609       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1395       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0671       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8519       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.055       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6572       1.0000         .10000E-03   10000.    
    15 'norm      '    .10316E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .69243       1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.841       1.0000         .10000E-03   10000.    
    18 'norm      '    3.9182       1.0000         .10000E-03   10000.    
    19 'norm      '    11.657       1.0000         .10000E-03   10000.    
    20 'norm      '    4.4717       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2938       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81349       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=   7282.093     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2538 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    4.2001       -.56591E-06** at limit **
   2  norm          3.3880        2.4507       -.90912E-07   -.14242E-03
   3  norm          6.6793        10.066       -.23953E-06   -.55926E-04
   4  norm          12.609        11.098       -.90159E-07    .12929E-04
   5  Prefactor     .10000E-03    7.7469       -.44938E-05** at limit **
   6  Prefactor     .10000E-03    2.4379       -.21108E-07** at limit **
   7  Prefactor     .10000E-03    8.4048        .85876E-05** at limit **
   8  norm          2.1396        1.7486       -.18833E-06   -.67418E-03
   9  norm          .10000E-03    .98280        .36219E-07** at limit **
  10  norm          2.0629        7.9476       -.57049E-06   -.55003E-03
  11  Prefactor     9.8540        14.881        .73142E-06   -.45487E-04
  12  Prefactor     19.058        28.276        .41409E-05   -.16723E-05
  13  norm          .10000E-03    18.157        .27145E-05** at limit **
  14  Prefactor     6.6575        11.225       -.11056E-05   -.11870E-03
  15  norm          .10000E-03    3.2554        .22365E-06** at limit **
  16  Prefactor     .69160        3.0829        .70079E-07   -.20260E-03
  17  Prefactor     53.825        42.136       -.17487E-04   -.13021E-04
  18  norm          3.9168        3.9725        .14156E-05   -.27384E-05
  19  norm          11.657        3.3484       -.17531E-06   -.77709E-05
  20  norm          4.4716        5.0374       -.49287E-06   -.94271E-04
  21  Prefactor     .10000E-03    9.9604       -.53380E-05** at limit **
  22  Normalizat    1.2937        .23130        .13778E-05   -.13845E-05
  23  Prefactor     .81350        .11274        .47120E-06    .85085E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100008
  norm       = 3.38804
  norm       = 6.67934
  norm       = 12.6091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.13956
  norm       = 0.0001
  norm       = 2.06287
  Prefactor  = 9.85401
  Prefactor  = 19.0585
  norm       = 0.0001
  Prefactor  = 6.65748
  norm       = 0.0001
  Prefactor  = 0.691597
  Prefactor  = 53.8252
  norm       = 3.91676
  norm       = 11.6573
  norm       = 4.4716
  Prefactor  = 0.0001
  Normalizat = 1.29373
  Prefactor  = 0.813504
 **********
 **   18 **HESSE 
 **********

 FCN=   7282.093     FROM HESSE     STATUS=OK           378 CALLS     2916 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    30.258        .33793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3880        2.4513        .11010E-03   -1.5340    
   3  norm          6.6793        10.064        .15527E-03   -1.5191    
   4  norm          12.609        11.099        .11281E-03   -1.4998    
   5  Prefactor     .10000E-03    7.8537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4422        .13011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1396        1.7483        .96484E-04   -1.5415    
   9  norm          .10000E-03    .98490        .82505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0629        7.7280        .28736E-03   -1.5421    
  11  Prefactor     9.8540        14.761        .12767E-03   -1.5080    
  12  Prefactor     19.058        28.220        .91753E-04   -1.4835    
  13  norm          .10000E-03    18.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.6575        11.125        .15552E-03   -1.5192    
  15  norm          .10000E-03    3.3071        .15029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .69160        8.6399        .25722E-02   -1.5542    
  17  Prefactor     53.825        41.815        .54663E-04   -1.4239    
  18  norm          3.9168        3.9557        .16448E-03   -1.5312    
  19  norm          11.657        3.3531        .79781E-04   -1.5025    
  20  norm          4.4716        5.0343        .19041E-03   -1.5285    
  21  Prefactor     .10000E-03    9.9833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2937        .27179        .31854E-03   -.83754    
  23  Prefactor     .81350        .13296        .20019E-03   -.99232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29325e-09
Minuit parameter uncertainties:
  1  0.00101386
  2  2.45136
  3  10.0667
  4  11.1007
  5  3.90183e-06
  6  7.62218e-07
  7  1.15603e-05
  8  1.74838
  9  1.9196e-06
  10  7.73176
  11  14.7663
  12  28.2392
  13  5.28728e-06
  14  11.1283
  15  4.0023e-05
  16  4.88943
  17  41.8378
  18  3.95599
  19  3.35314
  20  5.03477
  21  1.21127e-06
  22  0.272092
  23  0.133009
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.063e+00  7.732e+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:  8.135e-01  1.330e-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.294e+00  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/805395/likelihoodResults_634867201_635126401_4FGL_J1337.6-1257_daily_bin1526.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) = 7279.5906832
delta logL = 2.5024531646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7279.52240281
delta logL = 2.57073355837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43433       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88384       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.

 FCN=   7279.522     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      297 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43412        5.2267        .59651E-02    .35820E-03
   2  alpha         5.0000        2.7314        .46376    ** at limit **
   3  Normalizat    1.0776        .17298        .77778E-01   -.98962E-05
   4  Prefactor     .88377        .81208E-01    .44799E-01   -.25939E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.434125
  alpha      = 5
  Normalizat = 1.07756
  Prefactor  = 0.883768
 **********
 **   18 **HESSE 
 **********

 FCN=   7279.522     FROM HESSE     STATUS=OK            31 CALLS      328 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43412        .22556        .26816E-04   -1.5576    
   2  alpha         5.0000        .80333        .40854E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0776        .27053        .34427E-03   -.90476    
   4  Prefactor     .88377        .13482        .19274E-03   -.96711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04756e-12
Minuit parameter uncertainties:
  1  0.225561
  2  5.80061e-07
  3  0.270875
  4  0.134867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805395': 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) = 7279.52240164
delta logL = 2.57073472219

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  4.341e-01  2.256e-01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  5.801e-07  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.838e-01  1.349e-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.078e+00  2.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.84
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.72e-07 +/- 8.89e-08
Energy Flux (Free Index): 2.37e-05 +/- 1.23e-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/805395/cmap_HighResolution_634867201_635126401_4FGL_J1337.6-1257_daily_bin1526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-05', comment='SUCCESS', energy_flux2='2.37e-05', dlogl='2.57e+00', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-09-08 05:10:20.656792', photon_index_error2='0.00', photon_index2='5.00', ts='0.09', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.23e-05', EG='1.29', time_epoch_completed='1631103020.66', return_code='0', job_id='805395', GAL2='0.88', EG2='1.08', return_code2='0', photon_flux_error2='8.89e-08', ts2='5.84', photon_index='2.30' WHERE bin_id='1526' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:10:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 805395: <4FGL_J1337.6-1257_daily_bin1526> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1526> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:55:54 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:57:37 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:57:37 2021
Terminated at Wed Sep  8 05:10:21 2021
Results reported at Wed Sep  8 05:10:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1526 204.424 -12.9517 634867201 635126401 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 :                                   695.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            867 sec.

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

