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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1561
RA = 204.424, Dec = -12.9517
tmin = 643939201, tmax = 644198401
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='806588', job_status='RUN', time_executed='2021-09-08 05:00:40.856290', time_epoch_executed='1631102440.86' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806588

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806588/ft1_4FGL_J1337.6-1257_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806588/ft2_4FGL_J1337.6-1257_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806588/ft1_4FGL_J1337.6-1257_daily_bin1561.fits outfile=/scratch/kocevski/806588/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1561.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=643939201.0 tmax=644198401.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.49
user 4.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806588/ft1_filtered_4FGL_J1337.6-1257_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/806588/ft2_4FGL_J1337.6-1257_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/806588/ltcube_643939201_644198401_4FGL_J1337.6-1257_daily_bin1561.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/806588/ft2_4FGL_J1337.6-1257_daily_bin1561.fits
.....................!
real 15.15
user 14.67
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806588/ft1_filtered_4FGL_J1337.6-1257_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/806588/ft2_4FGL_J1337.6-1257_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/806588/ltcube_643939201_644198401_4FGL_J1337.6-1257_daily_bin1561.fits outfile=/scratch/kocevski/806588/expmap_643939201_644198401_4FGL_J1337.6-1257_daily_bin1561.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/806588/ltcube_643939201_644198401_4FGL_J1337.6-1257_daily_bin1561.fits
.....................!
real 190.83
user 186.05
sys 4.38

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/806588/ft1_filtered_4FGL_J1337.6-1257_daily_bin1561.fits scfile=/scratch/kocevski/806588/ft2_4FGL_J1337.6-1257_daily_bin1561.fits outfile=/scratch/kocevski/806588/cmap_643939201_644198401_4FGL_J1337.6-1257_daily_bin1561.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806588/ft1_filtered_4FGL_J1337.6-1257_daily_bin1561.fits scfile=/scratch/kocevski/806588/ft2_4FGL_J1337.6-1257_daily_bin1561.fits outfile=/scratch/kocevski/806588/cmap_HighResolution_643939201_644198401_4FGL_J1337.6-1257_daily_bin1561.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806588/ft1_filtered_4FGL_J1337.6-1257_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/806588/ft2_4FGL_J1337.6-1257_daily_bin1561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806588/Model_4FGL_J1337.6-1257_daily_bin1561.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/806588/ft1_filtered_4FGL_J1337.6-1257_daily_bin1561.fits.....................!
real 48.74
user 47.35
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1102       1.0000         .10000E-03   10000.    
     2 'norm      '    .37656       1.0000         .10000E-03   10000.    
     3 'norm      '    40.903       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7131       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7601       1.0000         .10000E-03   10000.    
     9 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    41.709       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    24.871       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26926E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .50820E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    55.648       1.0000         .10000E-03   10000.    
    18 'norm      '    8.3791       1.0000         .10000E-03   10000.    
    19 'norm      '    4.2876       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5430       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78287       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5589.440     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     2255 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1066        1.0598       -.76543E-07    .18626E-03
   2  norm          .37842        5.1391        .61652E-06    .82998E-04
   3  norm          40.901        1.0235       -.14969E-07    .76073E-03
   4  norm          1.7130        1.0722       -.65331E-07   -.26663E-03
   5  Prefactor     .10000E-03    5.8548        .34967E-05** at limit **
   6  Prefactor     .10000E-03    3.4961        .16820E-05** at limit **
   7  Prefactor     .10001E-03    19.840        .54614E-05** at limit **
   8  norm          3.7601        1.9483       -.17506E-06   -.86727E-04
   9  norm          .10000E-03    1.5151        .50733E-06** at limit **
  10  norm          41.725        12.516       -.57442E-06   -.15196E-01
  11  Prefactor     .10000E-03    8.2352       -.22115E-05** at limit **
  12  Prefactor     .10001E-03    12.909       -.68205E-06** at limit **
  13  norm          24.873        1.1230       -.32166E-08    .63326E-03
  14  Prefactor     .13356E-03    239.42       -.23566E-04** at limit **
  15  norm          .10000E-03    1.7334        .10595E-06** at limit **
  16  Prefactor     .22843E-03    37.208       -.10179E-04** at limit **
  17  Prefactor     55.576        10.828       -.10759E-05    .19207E-01
  18  norm          8.3952        1.1548        .11294E-06   -.26232E-03
  19  norm          4.2878        3.2828        .10568E-05    .22581E-03
  20  norm          .10000E-03    5.1229        .71572E-06** at limit **
  21  Prefactor     .10001E-03    10.817       -.35685E-05** at limit **
  22  Normalizat    1.5431        .32195        .30677E-05    .64679E-05
  23  Prefactor     .78297        .15886       -.24368E-05   -.34597E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.10657
  norm       = 0.378418
  norm       = 40.901
  norm       = 1.71296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 3.76009
  norm       = 0.0001
  norm       = 41.7255
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 24.8732
  Prefactor  = 0.000133558
  norm       = 0.0001
  Prefactor  = 0.000228433
  Prefactor  = 55.5758
  norm       = 8.39523
  norm       = 4.28778
  norm       = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 1.54307
  Prefactor  = 0.782965
 **********
 **   18 **HESSE 
 **********

 FCN=   5589.440     FROM HESSE     STATUS=OK           426 CALLS     2681 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1066        9.7389        .57481E-02   -1.5355    
   2  norm          .37842        2.5503        .39664E-01   -1.5585    
   3  norm          40.901        17.257        .15669E-02   -1.4428    
   4  norm          1.7130        6.4905        .80279E-02   -1.5446    
   5  Prefactor     .10000E-03    5.8300        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4859        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    19.734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7601        1.9447        .52052E-02   -1.5320    
   9  norm          .10000E-03    1.5116        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          41.725        13.145        .15518E-02   -1.4415    
  11  Prefactor     .10000E-03    8.2264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    12.948        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          24.873        25.471        .20081E-02   -1.4710    
  14  Prefactor     .13356E-03    13.864        .91569E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7321        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22843E-03    8.7400        .66662E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     55.576        69.111        .13443E-02   -1.4216    
  18  norm          8.3952        8.2668        .34623E-02   -1.5128    
  19  norm          4.2878        3.2849        .48641E-02   -1.5294    
  20  norm          .10000E-03    5.0984        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    10.805        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5431        .28174        .73950E-01   -.76575    
  23  Prefactor     .78297        .13749        .43494E-01   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81031e-06
Minuit parameter uncertainties:
  1  9.74383
  2  1.96463
  3  17.2594
  4  6.49318
  5  3.42281e-05
  6  1.75307e-05
  7  0.000801382
  8  1.9447
  9  3.43172e-06
  10  13.1457
  11  4.01454e-05
  12  0.000659409
  13  25.4817
  14  0.0431494
  15  1.01375e-06
  16  0.0670175
  17  69.2107
  18  8.26788
  19  3.28504
  20  1.33585e-05
  21  0.000477972
  22  0.282024
  23  0.137554
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  4.173e+01  1.315e+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.830e-01  1.376e-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.543e+00  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.95
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.54e-07 +/- 8.00e-08
Energy Flux (Fixed Index): 9.16e-05 +/- 2.88e-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) = 5587.42586056
delta logL = 2.01426374047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5587.19172594
delta logL = 2.24839836155

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.394       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2683       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75343       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=   5587.192     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      218 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.394        13.697        .19873E-02    .32824E-02
   2  alpha         1.2683        .33844        .20703       -.37867E-04
   3  Normalizat    1.7129        .26787        .71247E-01    .19363E-05
   4  Prefactor     .75345        .13482        .43108E-01    .11786E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.3939
  alpha      = 1.26827
  Normalizat = 1.71289
  Prefactor  = 0.753452
 **********
 **   18 **HESSE 
 **********

 FCN=   5587.192     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.394        22.913        .79494E-04   -1.4700    
   2  alpha         1.2683        .57677        .89165E-02   -.51518    
   3  Normalizat    1.7129        .31138        .31518E-03   -.71960    
   4  Prefactor     .75345        .15637        .22603E-03   -1.0147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32227e-08
Minuit parameter uncertainties:
  1  22.9212
  2  0.583748
  3  0.311734
  4  0.156466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806588': 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) = 5587.19172592
delta logL = 2.24839837732

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.539e+01  2.292e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.268e+00  5.837e-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.535e-01  1.565e-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.713e+00  3.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 44.37
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.27 +/- 0.58
Photon Flux (Free Index): 7.36e-08 +/- 6.88e-08
Energy Flux (Free Index): 1.58e-04 +/- 1.06e-04

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/806588/cmap_HighResolution_643939201_644198401_4FGL_J1337.6-1257_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.54e-07', energy_flux2='1.58e-04', photon_flux_error='8.00e-08', dlogl='2.25e+00', energy_flux='9.16e-05', photon_flux2='7.36e-08', job_status='DONE', time_completed='2021-09-08 05:09:44.769193', photon_index_error2='0.58', photon_index2='1.27', ts='39.95', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.06e-04', EG='1.54', time_epoch_completed='1631102984.77', return_code='0', job_id='806588', GAL2='0.75', EG2='1.71', return_code2='0', energy_flux_error='2.88e-05', photon_flux_error2='6.88e-08', ts2='44.37', photon_index='2.30' WHERE bin_id='1561' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:09:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 806588: <4FGL_J1337.6-1257_daily_bin1561> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1561> 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) <bullet0012>, 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:09:45 2021
Results reported at Wed Sep  8 05:09:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1561 204.424 -12.9517 643939201 644198401 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 :                                   538.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             386.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            562 sec.

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

