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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1558
RA = 204.424, Dec = -12.9517
tmin = 643161601, tmax = 643420801
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='806583', job_status='RUN', time_executed='2021-09-08 05:04:17.269294', time_epoch_executed='1631102657.27' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806583

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806583/ft1_4FGL_J1337.6-1257_daily_bin1558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806583/ft2_4FGL_J1337.6-1257_daily_bin1558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806583/ft1_4FGL_J1337.6-1257_daily_bin1558.fits outfile=/scratch/kocevski/806583/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1558.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=643161601.0 tmax=643420801.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.47
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806583/ft1_filtered_4FGL_J1337.6-1257_daily_bin1558.fits" evtable="EVENTS" scfile=/scratch/kocevski/806583/ft2_4FGL_J1337.6-1257_daily_bin1558.fits sctable="SC_DATA" outfile=/scratch/kocevski/806583/ltcube_643161601_643420801_4FGL_J1337.6-1257_daily_bin1558.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/806583/ft2_4FGL_J1337.6-1257_daily_bin1558.fits
.....................!
real 13.99
user 13.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806583/ft1_filtered_4FGL_J1337.6-1257_daily_bin1558.fits evtable="EVENTS" scfile=/scratch/kocevski/806583/ft2_4FGL_J1337.6-1257_daily_bin1558.fits sctable="SC_DATA" expcube=/scratch/kocevski/806583/ltcube_643161601_643420801_4FGL_J1337.6-1257_daily_bin1558.fits outfile=/scratch/kocevski/806583/expmap_643161601_643420801_4FGL_J1337.6-1257_daily_bin1558.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/806583/ltcube_643161601_643420801_4FGL_J1337.6-1257_daily_bin1558.fits
.....................!
real 190.59
user 185.85
sys 4.34

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/806583/ft1_filtered_4FGL_J1337.6-1257_daily_bin1558.fits scfile=/scratch/kocevski/806583/ft2_4FGL_J1337.6-1257_daily_bin1558.fits outfile=/scratch/kocevski/806583/cmap_643161601_643420801_4FGL_J1337.6-1257_daily_bin1558.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806583/ft1_filtered_4FGL_J1337.6-1257_daily_bin1558.fits scfile=/scratch/kocevski/806583/ft2_4FGL_J1337.6-1257_daily_bin1558.fits outfile=/scratch/kocevski/806583/cmap_HighResolution_643161601_643420801_4FGL_J1337.6-1257_daily_bin1558.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806583/ft1_filtered_4FGL_J1337.6-1257_daily_bin1558.fits evtable="EVENTS" scfile=/scratch/kocevski/806583/ft2_4FGL_J1337.6-1257_daily_bin1558.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806583/Model_4FGL_J1337.6-1257_daily_bin1558.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/806583/ft1_filtered_4FGL_J1337.6-1257_daily_bin1558.fits.....................!
real 51.32
user 49.99
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.8502       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2104       1.0000         .10000E-03   10000.    
     9 'norm      '    .10321E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    39.426       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.081       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.443       1.0000         .10000E-03   10000.    
    13 'norm      '    33.886       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.3571       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7403       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.404       1.0000         .10000E-03   10000.    
    18 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.3131       1.0000         .10000E-03   10000.    
    20 'norm      '    5.0890       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .54685       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5130       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74669       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=   5872.237     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2568 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9225       -.10022E-06** at limit **
   2  norm          .10000E-03    1.4381       -.19704E-07** at limit **
   3  norm          7.8514        10.680        .51560E-05   -.61620E-04
   4  norm          .10000E-03    5.1271        .16945E-05** at limit **
   5  Prefactor     .10000E-03    4.0328        .81141E-06** at limit **
   6  Prefactor     .10000E-03    3.3488       -.37278E-06** at limit **
   7  Prefactor     .10000E-03    6.8198        .11326E-05** at limit **
   8  norm          2.2107        1.7495       -.29210E-07   -.50042E-03
   9  norm          .10000E-03    3.0554        .83538E-06** at limit **
  10  norm          39.428        11.500       -.39134E-05   -.13130E-03
  11  Prefactor     11.084        14.880        .38515E-05   -.26525E-04
  12  Prefactor     23.449        36.722        .13581E-04   -.60038E-05
  13  norm          33.887        32.558        .28014E-05   -.35430E-06
  14  Prefactor     .10000E-03    7.3275       -.10630E-05** at limit **
  15  norm          4.3575        4.7442       -.83645E-07   -.21699E-03
  16  Prefactor     8.7395        7.7959        .10465E-05   -.47475E-04
  17  Prefactor     26.406        36.067        .40448E-05   -.25380E-05
  18  norm          .10000E-03    4.8615       -.22145E-05** at limit **
  19  norm          5.3124        3.5241        .26278E-06   -.20935E-03
  20  norm          5.0867        6.6588       -.11566E-06   -.13192E-03
  21  Prefactor     .70229        23.789       -.48443E-07   -.74022E-04
  22  Normalizat    1.5129        .26433       -.37058E-06   -.35481E-04
  23  Prefactor     .74663        .13059       -.12629E-05    .20465E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.85141
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.21068
  norm       = 0.000100001
  norm       = 39.4283
  Prefactor  = 11.0842
  Prefactor  = 23.4486
  norm       = 33.8869
  Prefactor  = 0.0001
  norm       = 4.35748
  Prefactor  = 8.73951
  Prefactor  = 26.4061
  norm       = 0.0001
  norm       = 5.31244
  norm       = 5.08667
  Prefactor  = 0.702294
  Normalizat = 1.51294
  Prefactor  = 0.746635
 **********
 **   18 **HESSE 
 **********

 FCN=   5872.237     FROM HESSE     STATUS=OK           374 CALLS     2942 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.4517        .89716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.8514        10.641        .14311E-03   -1.5147    
   4  norm          .10000E-03    5.1385        .16946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0439        .15031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3561        .13692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2107        1.7525        .85078E-04   -1.5411    
   9  norm          .10000E-03    3.1821        .26195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          39.428        11.531        .63835E-04   -1.4451    
  11  Prefactor     11.084        14.855        .12035E-03   -1.5042    
  12  Prefactor     23.449        36.643        .82730E-04   -1.4739    
  13  norm          33.887        32.556        .68839E-04   -1.4543    
  14  Prefactor     .10000E-03    7.3564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.3575        4.7436        .16767E-03   -1.5290    
  16  Prefactor     8.7395        7.8037        .13558E-03   -1.5117    
  17  Prefactor     26.406        36.065        .77961E-04   -1.4680    
  18  norm          .10000E-03    4.8689        .16471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3124        3.5252        .11095E-03   -1.5247    
  20  norm          5.0867        6.6561        .17823E-03   -1.5257    
  21  Prefactor     .70229        270.60        .70377E-02   -1.5540    
  22  Normalizat    1.5129        .30878        .31452E-03   -.77415    
  23  Prefactor     .74663        .15175        .21876E-03   -1.0173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16251e-10
Minuit parameter uncertainties:
  1  1.23795e-05
  2  1.0444e-06
  3  10.6435
  4  3.62201e-08
  5  1.089e-05
  6  8.7275e-06
  7  5.30223e-05
  8  1.75252
  9  0.000105976
  10  11.5317
  11  14.8599
  12  36.6782
  13  32.5727
  14  7.65549e-05
  15  4.74405
  16  7.80459
  17  36.0948
  18  7.16164e-07
  19  3.52533
  20  6.65709
  21  27.6961
  22  0.309163
  23  0.151833
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.943e+01  1.153e+01  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:  7.466e-01  1.518e-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.513e+00  3.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.02
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.40e-07 +/- 7.02e-08
Energy Flux (Fixed Index): 8.65e-05 +/- 2.53e-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) = 5871.22201684
delta logL = 1.01548279963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5871.14757761
delta logL = 1.08992202523

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    44.486       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8322       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5899       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72208       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=   5871.148     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .74E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          44.494        14.446        .15027E-02    .21275E-04
   2  alpha         1.8322        .31660        .21301       -.36684E-05
   3  Normalizat    1.5901        .25353        .69754E-01    .42839E-05
   4  Prefactor     .72199        .12833        .42694E-01    .12105E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 44.4944
  alpha      = 1.83221
  Normalizat = 1.5901
  Prefactor  = 0.72199
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.148     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          44.494        13.373        .30055E-03   -1.4373    
   2  alpha         1.8322        .30885        .89094E-02   -.27040    
   3  Normalizat    1.5901        .29258        .30858E-03   -.75277    
   4  Prefactor     .72199        .14809        .22205E-03   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64184e-12
Minuit parameter uncertainties:
  1  13.3734
  2  0.309699
  3  0.292898
  4  0.148172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806583': 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) = 5871.14757693
delta logL = 1.08992271009

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  4.449e+01  1.337e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.832e+00  3.097e-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:  7.220e-01  1.482e-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.590e+00  2.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 39.28
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.83 +/- 0.31
Photon Flux (Free Index): 1.69e-07 +/- 6.84e-08
Energy Flux (Free Index): 1.15e-04 +/- 4.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/806583/cmap_HighResolution_643161601_643420801_4FGL_J1337.6-1257_daily_bin1558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.40e-07', energy_flux2='1.15e-04', photon_flux_error='7.02e-08', dlogl='1.09e+00', energy_flux='8.65e-05', photon_flux2='1.69e-07', job_status='DONE', time_completed='2021-09-08 05:13:44.014638', photon_index_error2='0.31', photon_index2='1.83', ts='37.02', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='4.44e-05', EG='1.51', time_epoch_completed='1631103224.01', return_code='0', job_id='806583', GAL2='0.72', EG2='1.59', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='6.84e-08', ts2='39.28', photon_index='2.30' WHERE bin_id='1558' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:13:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 806583: <4FGL_J1337.6-1257_daily_bin1558> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1558> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 05:00:23 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:00:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 05:00:25 2021
Terminated at Wed Sep  8 05:13:44 2021
Results reported at Wed Sep  8 05:13:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1558 204.424 -12.9517 643161601 643420801 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 :                                   563.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

