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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1424
RA = 204.424, Dec = -12.9517
tmin = 608428801, tmax = 608688001
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='805271', job_status='RUN', time_executed='2021-09-08 04:58:29.039815', time_epoch_executed='1631102309.04' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805271

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805271/ft1_4FGL_J1337.6-1257_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805271/ft2_4FGL_J1337.6-1257_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805271/ft1_4FGL_J1337.6-1257_daily_bin1424.fits outfile=/scratch/kocevski/805271/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1424.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=608428801.0 tmax=608688001.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 4.98
user 4.74
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805271/ft1_filtered_4FGL_J1337.6-1257_daily_bin1424.fits" evtable="EVENTS" scfile=/scratch/kocevski/805271/ft2_4FGL_J1337.6-1257_daily_bin1424.fits sctable="SC_DATA" outfile=/scratch/kocevski/805271/ltcube_608428801_608688001_4FGL_J1337.6-1257_daily_bin1424.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/805271/ft2_4FGL_J1337.6-1257_daily_bin1424.fits
.....................!
real 16.17
user 14.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805271/ft1_filtered_4FGL_J1337.6-1257_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/805271/ft2_4FGL_J1337.6-1257_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/805271/ltcube_608428801_608688001_4FGL_J1337.6-1257_daily_bin1424.fits outfile=/scratch/kocevski/805271/expmap_608428801_608688001_4FGL_J1337.6-1257_daily_bin1424.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/805271/ltcube_608428801_608688001_4FGL_J1337.6-1257_daily_bin1424.fits
.....................!
real 191.73
user 186.67
sys 4.56

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

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805271/ft1_filtered_4FGL_J1337.6-1257_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/805271/ft2_4FGL_J1337.6-1257_daily_bin1424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805271/Model_4FGL_J1337.6-1257_daily_bin1424.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/805271/ft1_filtered_4FGL_J1337.6-1257_daily_bin1424.fits.....................!
real 58.65
user 57.17
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    25.492       1.0000         .10000E-03   10000.    
     4 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0254       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4701       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .59579E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10329E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .41892E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    21.176       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.671       1.0000         .10000E-03   10000.    
    13 'norm      '    .10222E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .38900E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9183       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.651       1.0000         .10000E-03   10000.    
    20 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2086       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90659       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=   7033.554     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2229 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3355       -.21454E-06** at limit **
   2  norm          .10000E-03    .85749        .15659E-06** at limit **
   3  norm          25.496        13.051       -.64249E-06   -.97786E-05
   4  norm          .10000E-03    7.7582       -.30434E-05** at limit **
   5  Prefactor     1.0279        1.0979       -.46435E-07   -.22362E-03
   6  Prefactor     3.4727        6.6366        .18910E-06   -.10362E-03
   7  Prefactor     .10002E-03    6.6571        .10826E-05** at limit **
   8  norm          .10000E-03    .66708        .12331E-06** at limit **
   9  norm          .10000E-03    1.7116        .11869E-06** at limit **
  10  norm          21.196        9.0139       -.45460E-06   -.39935E-03
  11  Prefactor     .10000E-03    6.3421       -.21313E-05** at limit **
  12  Prefactor     24.682        24.567        .38566E-05    .28078E-04
  13  norm          .10000E-03    10.926        .27738E-05** at limit **
  14  Prefactor     .10000E-03    13.586       -.24651E-05** at limit **
  15  norm          .10000E-03    2.5850        .12600E-06** at limit **
  16  Prefactor     3.9195        5.9809        .24418E-06   -.75295E-04
  17  Prefactor     .10000E-03    21.760        .46705E-06** at limit **
  18  norm          .10000E-03    4.1944       -.21750E-06** at limit **
  19  norm          13.651        3.8311       -.35002E-06   -.40701E-04
  20  norm          .10000E-03    6.2749       -.76622E-06** at limit **
  21  Prefactor     .10000E-03    6.6775        .53220E-05** at limit **
  22  Normalizat    1.2085        .22768       -.21093E-06   -.12698E-03
  23  Prefactor     .90664        .11512       -.50770E-06   -.11757E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 25.4959
  norm       = 0.0001
  Prefactor  = 1.02791
  Prefactor  = 3.47274
  Prefactor  = 0.000100021
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 21.196
  Prefactor  = 0.0001
  Prefactor  = 24.6822
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.91949
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.651
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20851
  Prefactor  = 0.906638
 **********
 **   18 **HESSE 
 **********

 FCN=   7033.554     FROM HESSE     STATUS=OK           378 CALLS     2607 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3518        .14956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .86919        .75834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          25.496        13.053        .79341E-04   -1.4698    
   4  norm          .10000E-03    7.7944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0279        13.929        .25285E-02   -1.5505    
   6  Prefactor     3.4727        6.6246        .10854E-02   -1.5335    
   7  Prefactor     .10002E-03    31.045        .39901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.9259        .13152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.5223        .35532E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          21.196        9.1830        .87040E-04   -1.4787    
  11  Prefactor     .10000E-03    6.3667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.682        24.669        .80647E-04   -1.4714    
  13  norm          .10000E-03    10.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.995        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    14.110        .25749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9195        5.9813        .20381E-03   -1.5312    
  17  Prefactor     .10000E-03    21.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.2146        .16740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.651        3.8333        .83138E-04   -1.4969    
  20  norm          .10000E-03    6.3987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.6711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2085        .26673        .32367E-03   -.86340    
  23  Prefactor     .90664        .13472        .19389E-03   -.95910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69635e-10
Minuit parameter uncertainties:
  1  2.22289e-06
  2  4.31287e-07
  3  13.0548
  4  1.31617e-05
  5  7.56967
  6  6.62604
  7  0.00163281
  8  2.65714e-05
  9  0.000220278
  10  9.1836
  11  1.53248e-06
  12  24.6788
  13  4.579e-07
  14  1.3684e-05
  15  0.000116404
  16  5.98216
  17  8.79781e-06
  18  4.08873e-06
  19  3.83335
  20  2.24436e-05
  21  3.08951e-06
  22  0.267033
  23  0.134769
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.120e+01  9.184e+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.066e-01  1.348e-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.209e+00  2.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.62
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 5.59e-08
Energy Flux (Fixed Index): 4.65e-05 +/- 2.02e-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) = 7033.24633855
delta logL = 0.307716889187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7033.23442904
delta logL = 0.31962639212

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.152       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9442       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89329       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=   7033.234     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      235 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.152        36.564        .20812E-02   -.61943E-03
   2  alpha         1.9441        1.3875        .33024        .85206E-05
   3  Normalizat    1.2514        .26109        .72083E-01    .54619E-04
   4  Prefactor     .89330        .12567        .44920E-01    .80845E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.1523
  alpha      = 1.94413
  Normalizat = 1.25144
  Prefactor  = 0.893296
 **********
 **   18 **HESSE 
 **********

 FCN=   7033.234     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.152        9.5852        .83247E-04   -1.4745    
   2  alpha         1.9441        .44520        .12401E-01   -.22422    
   3  Normalizat    1.2514        .25630        .31897E-03   -.85028    
   4  Prefactor     .89330        .13392        .19518E-03   -.96376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68931e-10
Minuit parameter uncertainties:
  1  9.58582
  2  0.447711
  3  0.256557
  4  0.133965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805271': 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) = 7033.23442904
delta logL = 0.319626397393

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.315e+01  9.586e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.944e+00  4.477e-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:  8.933e-01  1.340e-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.251e+00  2.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.26
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.94 +/- 0.45
Photon Flux (Free Index): 9.66e-08 +/- 5.58e-08
Energy Flux (Free Index): 5.50e-05 +/- 2.73e-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/805271/cmap_HighResolution_608428801_608688001_4FGL_J1337.6-1257_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='5.50e-05', photon_flux_error='5.59e-08', dlogl='3.20e-01', energy_flux='4.65e-05', photon_flux2='9.66e-08', job_status='DONE', time_completed='2021-09-08 05:10:12.238036', photon_index_error2='0.45', photon_index2='1.94', ts='17.62', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.73e-05', EG='1.21', time_epoch_completed='1631103012.24', return_code='0', job_id='805271', GAL2='0.89', EG2='1.25', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='5.58e-08', ts2='18.26', photon_index='2.30' WHERE bin_id='1424' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:10:12 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1424 204.424 -12.9517 608428801 608688001 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 :                                   604.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            867 sec.

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

