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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin434
RA = 204.424, Dec = -12.9517
tmin = 351820801, tmax = 352080001
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='799207', job_status='RUN', time_executed='2021-09-08 04:43:22.454528', time_epoch_executed='1631101402.45' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799207

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799207/ft1_4FGL_J1337.6-1257_daily_bin434.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799207/ft2_4FGL_J1337.6-1257_daily_bin434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799207/ft1_4FGL_J1337.6-1257_daily_bin434.fits outfile=/scratch/kocevski/799207/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin434.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=351820801.0 tmax=352080001.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.67
user 3.45
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799207/ft1_filtered_4FGL_J1337.6-1257_daily_bin434.fits" evtable="EVENTS" scfile=/scratch/kocevski/799207/ft2_4FGL_J1337.6-1257_daily_bin434.fits sctable="SC_DATA" outfile=/scratch/kocevski/799207/ltcube_351820801_352080001_4FGL_J1337.6-1257_daily_bin434.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/799207/ft2_4FGL_J1337.6-1257_daily_bin434.fits
.....................!
real 15.42
user 15.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799207/ft1_filtered_4FGL_J1337.6-1257_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/799207/ft2_4FGL_J1337.6-1257_daily_bin434.fits sctable="SC_DATA" expcube=/scratch/kocevski/799207/ltcube_351820801_352080001_4FGL_J1337.6-1257_daily_bin434.fits outfile=/scratch/kocevski/799207/expmap_351820801_352080001_4FGL_J1337.6-1257_daily_bin434.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/799207/ltcube_351820801_352080001_4FGL_J1337.6-1257_daily_bin434.fits
.....................!
real 192.09
user 186.25
sys 4.60

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/799207/ft1_filtered_4FGL_J1337.6-1257_daily_bin434.fits scfile=/scratch/kocevski/799207/ft2_4FGL_J1337.6-1257_daily_bin434.fits outfile=/scratch/kocevski/799207/cmap_351820801_352080001_4FGL_J1337.6-1257_daily_bin434.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799207/ft1_filtered_4FGL_J1337.6-1257_daily_bin434.fits scfile=/scratch/kocevski/799207/ft2_4FGL_J1337.6-1257_daily_bin434.fits outfile=/scratch/kocevski/799207/cmap_HighResolution_351820801_352080001_4FGL_J1337.6-1257_daily_bin434.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799207/ft1_filtered_4FGL_J1337.6-1257_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/799207/ft2_4FGL_J1337.6-1257_daily_bin434.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799207/Model_4FGL_J1337.6-1257_daily_bin434.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/799207/ft1_filtered_4FGL_J1337.6-1257_daily_bin434.fits.....................!
real 61.26
user 59.82
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5797       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2857       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4695       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5120       1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.433       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2059       1.0000         .10000E-03   10000.    
     9 'norm      '    .37208E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .83068       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.642       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4087       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8387       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2346       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2526       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.981       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .55701       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1039       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=   7768.994     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2579 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5798        4.5236        .84617E-09   -.64257E-03
   2  norm          2.2858        2.2212        .12967E-07   -.27840E-04
   3  norm          .10000E-03    2.8494       -.77899E-08** at limit **
   4  norm          1.4699        4.8487       -.54590E-07   -.46569E-03
   5  Prefactor     .10000E-03    5.9253        .30701E-07** at limit **
   6  Prefactor     6.5120        8.8538       -.14067E-06   -.14105E-03
   7  Prefactor     48.445        26.319       -.16196E-05   -.67960E-03
   8  norm          2.2060        1.5810        .15859E-07   -.14215E-03
   9  norm          .10001E-03    2.5221        .50397E-06** at limit **
  10  norm          .83031        5.0790        .69103E-06   -.20356E-03
  11  Prefactor     18.640        13.265        .26236E-05   -.61445E-04
  12  Prefactor     2.4056        20.404        .13904E-04    .54643E-08
  13  norm          .10000E-03    9.8783        .12189E-06** at limit **
  14  Prefactor     7.8404        10.012       -.28788E-05   -.11507E-03
  15  norm          3.2343        3.9830        .49249E-06   -.89098E-04
  16  Prefactor     8.2521        4.3305       -.25679E-08   -.30057E-03
  17  Prefactor     .10000E-03    128.32       -.25802E-05** at limit **
  18  norm          .10000E-03    2.3289       -.65135E-08** at limit **
  19  norm          .10000E-03    .58309        .10477E-07** at limit **
  20  norm          .10000E-03    2.3676        .22501E-07** at limit **
  21  Prefactor     23.983        22.486       -.20948E-06   -.13622E-04
  22  Normalizat    .55700        .22707        .76711E-06   -.19074E-03
  23  Prefactor     1.1039        .11685       -.53545E-06   -.29928E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.57978
  norm       = 2.28584
  norm       = 0.0001
  norm       = 1.46987
  Prefactor  = 0.0001
  Prefactor  = 6.51196
  Prefactor  = 48.4447
  norm       = 2.20604
  norm       = 0.000100011
  norm       = 0.830312
  Prefactor  = 18.6401
  Prefactor  = 2.4056
  norm       = 0.0001
  Prefactor  = 7.84036
  norm       = 3.23427
  Prefactor  = 8.25215
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 23.9831
  Normalizat = 0.556996
  Prefactor  = 1.10391
 **********
 **   18 **HESSE 
 **********

 FCN=   7768.994     FROM HESSE     STATUS=OK           376 CALLS     2955 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5798        5.3142        .12705E-02   -1.5387    
   2  norm          2.2858        2.2258        .12551E-03   -1.5406    
   3  norm          .10000E-03    2.8527        .14530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4699        13.099        .17727E-02   -1.5465    
   5  Prefactor     .10000E-03    6.0078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.5120        8.8388        .15727E-03   -1.5198    
   7  Prefactor     48.445        24.248        .57619E-04   -1.4315    
   8  norm          2.2060        1.5689        .86884E-04   -1.5411    
   9  norm          .10001E-03    16.020        .21498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .83031        20.126        .30735E-02   -1.5526    
  11  Prefactor     18.640        13.176        .92764E-04   -1.4844    
  12  Prefactor     2.4056        19.732        .26379E-03   -1.5398    
  13  norm          .10000E-03    9.8802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8404        9.9573        .14322E-03   -1.5148    
  15  norm          3.2343        3.9767        .18725E-03   -1.5348    
  16  Prefactor     8.2521        4.3087        .12549E-03   -1.5133    
  17  Prefactor     .10000E-03    129.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3544        .13131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .58968        .65694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3852        .13242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.983        22.474        .81797E-04   -1.4728    
  22  Normalizat    .55700        .24277        .42648E-03   -1.0984    
  23  Prefactor     1.1039        .12841        .17199E-03   -.89342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61633e-09
Minuit parameter uncertainties:
  1  5.31518
  2  2.22592
  3  2.88624e-07
  4  8.77803
  5  1.2434e-05
  6  8.84059
  7  24.2531
  8  1.56892
  9  0.00083935
  10  8.17832
  11  13.1778
  12  13.7851
  13  3.7377e-07
  14  9.9594
  15  3.97704
  16  4.30888
  17  6.99871e-06
  18  8.46089e-07
  19  1.99847e-07
  20  9.48066e-07
  21  22.4822
  22  0.243233
  23  0.128447
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  8.303e-01  8.178e+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.104e+00  1.284e-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:  5.570e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
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/799207/likelihoodResults_351820801_352080001_4FGL_J1337.6-1257_daily_bin434.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) = 7768.86873669
delta logL = 0.125275806448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7768.85182241
delta logL = 0.142190086253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3893       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3574       1.0000          .0000       5.0000    
     3 'Normalizat'    .53075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1098       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=   7768.852     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3941        72.897        .92190E-02    .47968E-03
   2  alpha         3.3569        3.5977        .44728        .20590E-04
   3  Normalizat    .53079        .44104E-01    .98367E-01   -.67691E-04
   4  Prefactor     1.1098        .24300E-01    .37225E-01   -.10777E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.39411
  alpha      = 3.35692
  Normalizat = 0.530789
  Prefactor  = 1.10976
 **********
 **   18 **HESSE 
 **********

 FCN=   7768.852     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3941        9.2996        .18407E-03   -1.5472    
   2  alpha         3.3569        3.9799        .31494E-01    .34986    
   3  Normalizat    .53079        .23019        .43594E-03   -1.1101    
   4  Prefactor     1.1098        .12596        .17148E-03   -.89155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55493e-10
Minuit parameter uncertainties:
  1  7.20268
  2  3.16891
  3  0.2306
  4  0.125998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799207': 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) = 7768.85182098
delta logL = 0.142191517883

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.394e+00  7.203e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  3.357e+00  3.169e+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.110e+00  1.260e-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:  5.308e-01  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/799207/cmap_HighResolution_351820801_352080001_4FGL_J1337.6-1257_daily_bin434.png

Cleaning up...

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

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:55:10.852803', job_id='799207', GAL2='1.11', fit_tolerance='1e-08', EG2='0.53', EG='0.56', time_epoch_completed='1631102110.85', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.42e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='434' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:55:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 799207: <4FGL_J1337.6-1257_daily_bin434> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin434 204.424 -12.9517 351820801 352080001 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 :                                   705.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            880 sec.

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

