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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1398
RA = 204.424, Dec = -12.9517
tmin = 601689601, tmax = 601948801
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='805233', job_status='RUN', time_executed='2021-09-08 04:57:47.059600', time_epoch_executed='1631102267.06' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805233/ft1_4FGL_J1337.6-1257_daily_bin1398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805233/ft2_4FGL_J1337.6-1257_daily_bin1398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805233/ft1_4FGL_J1337.6-1257_daily_bin1398.fits outfile=/scratch/kocevski/805233/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1398.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=601689601.0 tmax=601948801.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.57
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805233/ft1_filtered_4FGL_J1337.6-1257_daily_bin1398.fits" evtable="EVENTS" scfile=/scratch/kocevski/805233/ft2_4FGL_J1337.6-1257_daily_bin1398.fits sctable="SC_DATA" outfile=/scratch/kocevski/805233/ltcube_601689601_601948801_4FGL_J1337.6-1257_daily_bin1398.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/805233/ft2_4FGL_J1337.6-1257_daily_bin1398.fits
.....................!
real 13.56
user 13.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805233/ft1_filtered_4FGL_J1337.6-1257_daily_bin1398.fits evtable="EVENTS" scfile=/scratch/kocevski/805233/ft2_4FGL_J1337.6-1257_daily_bin1398.fits sctable="SC_DATA" expcube=/scratch/kocevski/805233/ltcube_601689601_601948801_4FGL_J1337.6-1257_daily_bin1398.fits outfile=/scratch/kocevski/805233/expmap_601689601_601948801_4FGL_J1337.6-1257_daily_bin1398.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/805233/ltcube_601689601_601948801_4FGL_J1337.6-1257_daily_bin1398.fits
.....................!
real 190.31
user 185.49
sys 4.43

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/805233/ft1_filtered_4FGL_J1337.6-1257_daily_bin1398.fits scfile=/scratch/kocevski/805233/ft2_4FGL_J1337.6-1257_daily_bin1398.fits outfile=/scratch/kocevski/805233/cmap_601689601_601948801_4FGL_J1337.6-1257_daily_bin1398.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805233/ft1_filtered_4FGL_J1337.6-1257_daily_bin1398.fits scfile=/scratch/kocevski/805233/ft2_4FGL_J1337.6-1257_daily_bin1398.fits outfile=/scratch/kocevski/805233/cmap_HighResolution_601689601_601948801_4FGL_J1337.6-1257_daily_bin1398.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=204.424 yref=-12.9517 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16129E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .14471E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.1630       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3285       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.973       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0563       1.0000         .10000E-03   10000.    
     8 'norm      '    .91638       1.0000         .10000E-03   10000.    
     9 'norm      '    .10942E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.5007       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2235       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2923       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6419       1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.212       1.0000         .10000E-03   10000.    
    18 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2743       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1353       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0319       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=   7450.371     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2569 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    6.0365        .46805E-07** at limit **
   2  norm          .10000E-03    1.2152       -.88180E-07** at limit **
   3  norm          5.1635        9.4837        .54770E-05   -.35125E-04
   4  norm          .10000E-03    10.387       -.48146E-06** at limit **
   5  Prefactor     7.3293        10.138        .29643E-06   -.36495E-04
   6  Prefactor     12.976        11.034        .24246E-07   -.78637E-04
   7  Prefactor     7.0341        16.399       -.12988E-06   -.25341E-04
   8  norm          .91689        1.0417       -.55715E-07   -.24047E-03
   9  norm          .10000E-03    2.5963        .10903E-05** at limit **
  10  norm          6.4996        5.5710       -.40334E-07   -.13151E-03
  11  Prefactor     .10000E-03    9.2789       -.10455E-06** at limit **
  12  Prefactor     .10000E-03    8.0586       -.10988E-06** at limit **
  13  norm          .10000E-03    20.047       -.35627E-07** at limit **
  14  Prefactor     6.2289        12.311        .88600E-06   -.47552E-04
  15  norm          2.2920        5.0523        .14232E-05   -.25325E-04
  16  Prefactor     1.6429        4.1427        .14236E-05   -.17096E-04
  17  Prefactor     69.281        51.361        .65532E-06    .26846E-03
  18  norm          .10000E-03    4.1473       -.16056E-06** at limit **
  19  norm          3.2753        2.6941        .18199E-06   -.30571E-04
  20  norm          .10000E-03    6.1142       -.45320E-07** at limit **
  21  Prefactor     .10000E-03    8.0290       -.74136E-07** at limit **
  22  Normalizat    1.1354        .23551       -.13403E-05   -.60460E-04
  23  Prefactor     1.0317        .12076       -.24709E-06   -.11897E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100097
  norm       = 0.0001
  norm       = 5.1635
  norm       = 0.0001
  Prefactor  = 7.32926
  Prefactor  = 12.9765
  Prefactor  = 7.03411
  norm       = 0.916886
  norm       = 0.0001
  norm       = 6.49962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.22886
  norm       = 2.29198
  Prefactor  = 1.64288
  Prefactor  = 69.2808
  norm       = 0.0001
  norm       = 3.27529
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13541
  Prefactor  = 1.0317
 **********
 **   18 **HESSE 
 **********

 FCN=   7450.371     FROM HESSE     STATUS=OK           378 CALLS     2947 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10010E-03    116.89        .40372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0406        .18482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1635        9.4781        .88463E-03   -1.5253    
   4  norm          .10000E-03    10.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3293        10.114        .14816E-03   -1.5166    
   6  Prefactor     12.976        11.099        .11121E-03   -1.4987    
   7  Prefactor     7.0341        16.198        .15102E-03   -1.5177    
   8  norm          .91689        .93789        .90137E-03   -1.5516    
   9  norm          .10000E-03    2.6136        .26883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.4996        5.5540        .15741E-03   -1.5198    
  11  Prefactor     .10000E-03    9.3071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    20.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2289        12.281        .16091E-03   -1.5209    
  15  norm          2.2920        5.0270        .27110E-03   -1.5405    
  16  Prefactor     1.6429        4.1131        .26570E-03   -1.5452    
  17  Prefactor     69.281        51.014        .24125E-03   -1.4041    
  18  norm          .10000E-03    4.1981        .17148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2753        2.6886        .12234E-03   -1.5346    
  20  norm          .10000E-03    6.2364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1354        .27002        .35027E-03   -.88623    
  23  Prefactor     1.0317        .13934        .19496E-03   -.91680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13003e-09
Minuit parameter uncertainties:
  1  0.00675527
  2  2.18188e-05
  3  9.48083
  4  5.55855e-05
  5  10.1166
  6  11.1006
  7  16.2078
  8  0.937906
  9  1.331e-06
  10  5.55441
  11  5.06647e-05
  12  1.30808e-05
  13  7.47417e-06
  14  12.2858
  15  5.02797
  16  4.11385
  17  51.0465
  18  1.39777e-05
  19  2.68875
  20  8.44906e-06
  21  1.40279e-05
  22  0.270348
  23  0.139392
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  6.500e+00  5.554e+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.032e+00  1.394e-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.135e+00  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.55
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.96e-08 +/- 3.38e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.22e-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) = 7449.15757661
delta logL = 1.21391513794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7448.96130919
delta logL = 1.41018255736

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7351       1.0000         .10000E-03   10000.    
     2 'alpha     '    .97179       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0314       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=   7448.961     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7367        2.7670        .61550E-02    .33173E-03
   2  alpha         .97174        .46794        .43737       -.83868E-04
   3  Normalizat    1.1556        .21855        .78544E-01   -.88734E-04
   4  Prefactor     1.0314        .11726        .41149E-01   -.13124E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.73675
  alpha      = 0.971743
  Normalizat = 1.1556
  Prefactor  = 1.03142
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7367        4.3289        .13094E-03   -1.5377    
   2  alpha         .97174        .74351        .18700E-01   -.65771    
   3  Normalizat    1.1556        .25077        .34768E-03   -.87986    
   4  Prefactor     1.0314        .13487        .19506E-03   -.91689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66266e-10
Minuit parameter uncertainties:
  1  4.32941
  2  0.762225
  3  0.251028
  4  0.134914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805233': 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) = 7448.96130892
delta logL = 1.41018282327

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.737e+00  4.329e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  9.717e-01  7.622e-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:  1.031e+00  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.156e+00  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.37
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 0.97 +/- 0.76
Photon Flux (Free Index): 8.49e-09 +/- 1.08e-08
Energy Flux (Free Index): 3.65e-05 +/- 4.80e-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/805233/cmap_HighResolution_601689601_601948801_4FGL_J1337.6-1257_daily_bin1398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.96e-08', energy_flux2='3.65e-05', photon_flux_error='3.38e-08', dlogl='1.41e+00', energy_flux='1.43e-05', photon_flux2='8.49e-09', job_status='DONE', time_completed='2021-09-08 05:09:42.283627', photon_index_error2='0.76', photon_index2='0.97', ts='6.55', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='4.80e-05', EG='1.14', time_epoch_completed='1631102982.28', return_code='0', job_id='805233', GAL2='1.03', EG2='1.16', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='1.08e-08', ts2='9.37', photon_index='2.30' WHERE bin_id='1398' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:09:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 805233: <4FGL_J1337.6-1257_daily_bin1398> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1398 204.424 -12.9517 601689601 601948801 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 :                                   622.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            839 sec.

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

