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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin428
RA = 204.424, Dec = -12.9517
tmin = 350265601, tmax = 350524801
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='799198', job_status='RUN', time_executed='2021-09-08 04:44:22.553421', time_epoch_executed='1631101462.55' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799198/ft1_4FGL_J1337.6-1257_daily_bin428.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799198/ft2_4FGL_J1337.6-1257_daily_bin428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799198/ft1_4FGL_J1337.6-1257_daily_bin428.fits outfile=/scratch/kocevski/799198/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin428.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=350265601.0 tmax=350524801.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.37
user 3.11
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799198/ft1_filtered_4FGL_J1337.6-1257_daily_bin428.fits" evtable="EVENTS" scfile=/scratch/kocevski/799198/ft2_4FGL_J1337.6-1257_daily_bin428.fits sctable="SC_DATA" outfile=/scratch/kocevski/799198/ltcube_350265601_350524801_4FGL_J1337.6-1257_daily_bin428.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/799198/ft2_4FGL_J1337.6-1257_daily_bin428.fits
.....................!
real 15.57
user 15.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799198/ft1_filtered_4FGL_J1337.6-1257_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/799198/ft2_4FGL_J1337.6-1257_daily_bin428.fits sctable="SC_DATA" expcube=/scratch/kocevski/799198/ltcube_350265601_350524801_4FGL_J1337.6-1257_daily_bin428.fits outfile=/scratch/kocevski/799198/expmap_350265601_350524801_4FGL_J1337.6-1257_daily_bin428.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/799198/ltcube_350265601_350524801_4FGL_J1337.6-1257_daily_bin428.fits
.....................!
real 192.03
user 186.81
sys 4.74

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/799198/ft1_filtered_4FGL_J1337.6-1257_daily_bin428.fits scfile=/scratch/kocevski/799198/ft2_4FGL_J1337.6-1257_daily_bin428.fits outfile=/scratch/kocevski/799198/cmap_350265601_350524801_4FGL_J1337.6-1257_daily_bin428.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/799198/ft1_filtered_4FGL_J1337.6-1257_daily_bin428.fits scfile=/scratch/kocevski/799198/ft2_4FGL_J1337.6-1257_daily_bin428.fits outfile=/scratch/kocevski/799198/cmap_HighResolution_350265601_350524801_4FGL_J1337.6-1257_daily_bin428.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799198/ft1_filtered_4FGL_J1337.6-1257_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/799198/ft2_4FGL_J1337.6-1257_daily_bin428.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799198/Model_4FGL_J1337.6-1257_daily_bin428.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/799198/ft1_filtered_4FGL_J1337.6-1257_daily_bin428.fits....................!
real 55.71
user 54.27
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.1667       1.0000         .10000E-03   10000.    
     3 'norm      '    2.1229       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .88404       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4126       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.129       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8265       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6321       1.0000         .10000E-03   10000.    
    13 'norm      '    17.931       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.531       1.0000         .10000E-03   10000.    
    15 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1069       1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.581       1.0000         .10000E-03   10000.    
    18 'norm      '    .18674E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    3.1698       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4512       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91477       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=   6942.992     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2615 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7770        .11041E-05** at limit **
   2  norm          4.1667        2.8889       -.49563E-06   -.54538E-04
   3  norm          2.1219        7.4351       -.30342E-05   -.42843E-03
   4  norm          .10000E-03    4.4235       -.65070E-06** at limit **
   5  Prefactor     .87633        9.9367       -.27581E-05   -.51586E-05
   6  Prefactor     6.4103        8.7523       -.39703E-05    .95752E-04
   7  Prefactor     .10000E-03    6.1176       -.64967E-06** at limit **
   8  norm          .10000E-03    .32462       -.49535E-07** at limit **
   9  norm          .10000E-03    1.4847        .25434E-07** at limit **
  10  norm          14.127        8.0167        .10113E-05    .35781E-03
  11  Prefactor     2.8286        35.843       -.57018E-05   -.67780E-04
  12  Prefactor     5.6306        36.402       -.90295E-05   -.88484E-05
  13  norm          17.932        20.450       -.18064E-05    .80091E-05
  14  Prefactor     30.528        20.498        .22713E-05    .21093E-03
  15  norm          .10000E-03    2.0324        .48443E-06** at limit **
  16  Prefactor     4.1183        5.7896        .77765E-05    .83752E-03
  17  Prefactor     51.471        53.631       -.96271E-04    .42452E-04
  18  norm          .10327E-03    4.7542       -.26629E-05** at limit **
  19  norm          3.1701        2.3096       -.37686E-06    .14639E-03
  20  norm          .10000E-03    2.1363       -.96289E-08** at limit **
  21  Prefactor     .10000E-03    8.1512        .51509E-06** at limit **
  22  Normalizat    1.4515        .24531        .21003E-05    .65884E-03
  23  Prefactor     .91467        .12799        .54770E-05    .49437E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.16674
  norm       = 2.12194
  norm       = 0.0001
  Prefactor  = 0.87633
  Prefactor  = 6.41025
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.1274
  Prefactor  = 2.82865
  Prefactor  = 5.6306
  norm       = 17.9318
  Prefactor  = 30.528
  norm       = 0.000100001
  Prefactor  = 4.11829
  Prefactor  = 51.4712
  norm       = 0.000103266
  norm       = 3.17014
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.45152
  Prefactor  = 0.914675
 **********
 **   18 **HESSE 
 **********

 FCN=   6942.992     FROM HESSE     STATUS=OK           382 CALLS     2997 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7952        .17783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1667        2.8906        .11434E-03   -1.5300    
   3  norm          2.1219        7.4384        .28303E-03   -1.5417    
   4  norm          .10000E-03    4.4291        .17115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .87633        41.616        .48150E-02   -1.5521    
   6  Prefactor     6.4103        8.7379        .15850E-03   -1.5202    
   7  Prefactor     .10000E-03    6.1224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .32876        .46343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4920        .98937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.127        7.9937        .10656E-03   -1.4956    
  11  Prefactor     2.8286        33.521        .24190E-03   -1.5372    
  12  Prefactor     5.6306        36.392        .16927E-03   -1.5233    
  13  norm          17.932        20.451        .94583E-04   -1.4861    
  14  Prefactor     30.528        19.851        .72512E-04   -1.4602    
  15  norm          .10000E-03    2.0418        .11600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1183        5.8638        .19893E-03   -1.5302    
  17  Prefactor     51.471        53.602        .27921E-03   -1.4272    
  18  norm          .10327E-03    11.003        .52962E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1701        2.3090        .10426E-03   -1.5352    
  20  norm          .10000E-03    2.1391        .11893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.1608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4515        .28704        .32361E-03   -.79150    
  23  Prefactor     .91467        .15011        .21067E-03   -.95630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1868e-08
Minuit parameter uncertainties:
  1  3.16744e-05
  2  2.89073
  3  7.44165
  4  3.23747e-06
  5  12.0862
  6  8.73962
  7  2.12158e-05
  8  2.50134e-06
  9  1.13741e-06
  10  7.9943
  11  19.4884
  12  28.6545
  13  20.4585
  14  19.8549
  15  6.80234e-05
  16  5.86461
  17  53.652
  18  0.0119909
  19  2.30903
  20  4.89342e-06
  21  1.92687e-05
  22  0.287364
  23  0.150181
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.413e+01  7.994e+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:  9.147e-01  1.502e-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.452e+00  2.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.69
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 8.60e-08 +/- 4.86e-08
Energy Flux (Fixed Index): 3.10e-05 +/- 1.75e-05

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) = 6942.64210135
delta logL = 0.350016457484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6942.63137376
delta logL = 0.36074405112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.246       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8120       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93026       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=   6942.631     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      262 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.245        8.1431        .11946E-03    .17283E-02
   2  alpha         2.8123        .62995        .11883E-01    .17803E-03
   3  Normalizat    1.4007        .28402        .32817E-03   -.22344E-03
   4  Prefactor     .93008        .14851        .20904E-03   -.53888E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2452
  alpha      = 2.81232
  Normalizat = 1.40065
  Prefactor  = 0.930077
 **********
 **   18 **HESSE 
 **********

 FCN=   6942.631     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.245        7.7114        .47785E-05   -1.5037    
   2  alpha         2.8123        .59642        .47534E-03    .12526    
   3  Normalizat    1.4007        .28368        .65635E-04   -.80610    
   4  Prefactor     .93008        .14843        .41809E-04   -.95098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37929e-09
Minuit parameter uncertainties:
  1  7.71213
  2  0.602318
  3  0.283996
  4  0.148497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799198': 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) = 6942.63137275
delta logL = 0.360745056592

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.125e+01  7.712e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.812e+00  6.023e-01  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.301e-01  1.485e-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.401e+00  2.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.44
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.81 +/- 0.60
Photon Flux (Free Index): 1.31e-07 +/- 8.19e-08
Energy Flux (Free Index): 3.16e-05 +/- 1.59e-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/799198/cmap_HighResolution_350265601_350524801_4FGL_J1337.6-1257_daily_bin428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.60e-08', energy_flux2='3.16e-05', photon_flux_error='4.86e-08', dlogl='3.61e-01', energy_flux='3.10e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-08 04:54:36.708884', photon_index_error2='0.60', photon_index2='2.81', ts='6.69', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='1.45', time_epoch_completed='1631102076.71', return_code='0', job_id='799198', GAL2='0.93', EG2='1.40', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='8.19e-08', ts2='7.44', photon_index='2.30' WHERE bin_id='428' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:54:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 799198: <4FGL_J1337.6-1257_daily_bin428> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin428> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:40:30 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:40:38 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:38 2021
Terminated at Wed Sep  8 04:54:37 2021
Results reported at Wed Sep  8 04:54:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin428 204.424 -12.9517 350265601 350524801 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 :                                   612.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            847 sec.

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

