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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin219
RA = 204.424, Dec = -12.9517
tmin = 296092801, tmax = 296352001
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='796350', job_status='RUN', time_executed='2021-09-08 04:32:41.223231', time_epoch_executed='1631100761.22' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796350

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796350/ft1_4FGL_J1337.6-1257_daily_bin219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796350/ft2_4FGL_J1337.6-1257_daily_bin219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796350/ft1_4FGL_J1337.6-1257_daily_bin219.fits outfile=/scratch/kocevski/796350/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin219.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=296092801.0 tmax=296352001.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 2.65
user 2.26
sys 0.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796350/ft1_filtered_4FGL_J1337.6-1257_daily_bin219.fits" evtable="EVENTS" scfile=/scratch/kocevski/796350/ft2_4FGL_J1337.6-1257_daily_bin219.fits sctable="SC_DATA" outfile=/scratch/kocevski/796350/ltcube_296092801_296352001_4FGL_J1337.6-1257_daily_bin219.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/796350/ft2_4FGL_J1337.6-1257_daily_bin219.fits
.....................!
real 19.33
user 18.89
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796350/ft1_filtered_4FGL_J1337.6-1257_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/796350/ft2_4FGL_J1337.6-1257_daily_bin219.fits sctable="SC_DATA" expcube=/scratch/kocevski/796350/ltcube_296092801_296352001_4FGL_J1337.6-1257_daily_bin219.fits outfile=/scratch/kocevski/796350/expmap_296092801_296352001_4FGL_J1337.6-1257_daily_bin219.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/796350/ltcube_296092801_296352001_4FGL_J1337.6-1257_daily_bin219.fits
.....................!
real 197.21
user 188.03
sys 5.17

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/796350/ft1_filtered_4FGL_J1337.6-1257_daily_bin219.fits scfile=/scratch/kocevski/796350/ft2_4FGL_J1337.6-1257_daily_bin219.fits outfile=/scratch/kocevski/796350/cmap_296092801_296352001_4FGL_J1337.6-1257_daily_bin219.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.62
user 0.41
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0964       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8263       1.0000         .10000E-03   10000.    
     4 'norm      '    9.4369       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.873       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .79309E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.2954       1.0000         .10000E-03   10000.    
     9 'norm      '    10.620       1.0000         .10000E-03   10000.    
    10 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.608       1.0000         .10000E-03   10000.    
    13 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1698       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1960       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12915E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1578       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1590       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91434       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=   8063.970     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2210 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0906        16.020        .28346E-05   -.20139E-03
   2  norm          .10000E-03    1.2798        .18338E-09** at limit **
   3  norm          2.8262        6.2784        .36892E-06   -.10431E-03
   4  norm          9.4370        8.0022        .29250E-07    .92180E-05
   5  Prefactor     10.872        7.7234       -.34641E-07    .72369E-04
   6  Prefactor     .10000E-03    6.3866       -.39075E-06** at limit **
   7  Prefactor     .10050E-03    19.154        .75328E-06** at limit **
   8  norm          8.2952        2.0621        .91206E-07   -.60386E-03
   9  norm          10.617        4.8267       -.45034E-06    .58826E-03
  10  norm          .10000E-03    5.8060        .22111E-06** at limit **
  11  Prefactor     .10000E-03    4.7777        .63296E-08** at limit **
  12  Prefactor     12.598        14.666        .15200E-05    .22538E-03
  13  norm          .10000E-03    12.294       -.84056E-07** at limit **
  14  Prefactor     4.1705        6.3724        .12668E-06   -.66606E-04
  15  norm          3.1955        3.0276        .38479E-07   -.15559E-04
  16  Prefactor     .10000E-03    3.2914        .16086E-06** at limit **
  17  Prefactor     .10000E-03    7.9026        .40076E-06** at limit **
  18  norm          .10000E-03    5.7306        .28693E-06** at limit **
  19  norm          .10000E-03    1.2024        .10877E-06** at limit **
  20  norm          .10000E-03    3.6597        .19534E-07** at limit **
  21  Prefactor     5.1506        13.203        .20816E-05    .12528E-03
  22  Normalizat    1.1591        .21095       -.97142E-06   -.23875E-04
  23  Prefactor     .91434        .10805       -.25725E-06   -.54815E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.09063
  norm       = 0.0001
  norm       = 2.82617
  norm       = 9.43695
  Prefactor  = 10.8721
  Prefactor  = 0.0001
  Prefactor  = 0.000100502
  norm       = 8.2952
  norm       = 10.6166
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.598
  norm       = 0.0001
  Prefactor  = 4.17045
  norm       = 3.19545
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.15056
  Normalizat = 1.15906
  Prefactor  = 0.914338
 **********
 **   18 **HESSE 
 **********

 FCN=   8063.970     FROM HESSE     STATUS=OK           374 CALLS     2584 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0906        16.853        .45505E-03   -1.5499    
   2  norm          .10000E-03    1.3000        .99180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8262        6.2664        .24191E-03   -1.5372    
   4  norm          9.4370        8.0014        .13046E-03   -1.5093    
   5  Prefactor     10.872        7.7149        .12150E-03   -1.5048    
   6  Prefactor     .10000E-03    6.4704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10050E-03    116.86        .63398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.2952        2.0724        .30474E-03   -1.5132    
   9  norm          10.617        4.3757        .11315E-03   -1.5056    
  10  norm          .10000E-03    5.9641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.7882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.598        14.898        .11281E-03   -1.4998    
  13  norm          .10000E-03    12.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1705        6.3659        .19737E-03   -1.5300    
  15  norm          3.1955        3.0264        .14756E-03   -1.5350    
  16  Prefactor     .10000E-03    8.9307        .31053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.9161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.8189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.1759        .18987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.6910        .16773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1506        13.235        .17702E-03   -1.5254    
  22  Normalizat    1.1591        .24441        .33304E-03   -.87878    
  23  Prefactor     .91434        .12660        .19464E-03   -.95642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63427e-09
Minuit parameter uncertainties:
  1  8.57694
  2  1.51184e-06
  3  6.26781
  4  8.00233
  5  7.71564
  6  1.14827e-05
  7  0.0153477
  8  2.07246
  9  4.37588
  10  2.82462e-05
  11  1.80848e-06
  12  14.9023
  13  6.42467e-06
  14  6.36692
  15  3.02652
  16  0.000163424
  17  3.2673e-05
  18  2.57162e-05
  19  5.4708e-06
  20  1.82836e-06
  21  13.2428
  22  0.244646
  23  0.126637
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.000e-04  2.825e-05  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.143e-01  1.266e-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.159e+00  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 7.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/796350/likelihoodResults_296092801_296352001_4FGL_J1337.6-1257_daily_bin219.txt

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): 102
logL (Free Index) = 8063.97077788
delta logL = -0.000800194889052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8063.96997899
delta logL = -1.31200340547e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10856E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2668       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91452       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8063.953     FROM MIGRAD    STATUS=CONVERGED    139 CALLS      289 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37363        3.2181        .36285E-02    .55190E-03
   2  alpha         1.0231        1.4062        .50000       -.67155E-04
   3  Normalizat    1.1600        .23626        .33304E-03   -.21847E-05
   4  Prefactor     .91328        .12520        .19464E-03   -.34462E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.373635
  alpha      = 1.02309
  Normalizat = 1.16002
  Prefactor  = 0.913276
 **********
 **   18 **HESSE 
 **********

 FCN=   8063.953     FROM HESSE     STATUS=OK            29 CALLS      318 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37363        3.3468        .14514E-03   -1.5586    
   2  alpha         1.0231        1.6568        .66279E-01   -32.048    
   3  Normalizat    1.1600        .23643        .13322E-04   -.87848    
   4  Prefactor     .91328        .12527        .77855E-05   -.95679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71204e-08
Minuit parameter uncertainties:
  1  2.23637
  2  1.94415
  3  0.236648
  4  0.125306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796350': 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) = 8063.95291944
delta logL = 0.0170582456731

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.736e-01  2.236e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.023e+00  1.944e+00  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.384e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  7.541e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.133e-01  1.253e-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.160e+00  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.424 -12.952

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/796350/cmap_HighResolution_296092801_296352001_4FGL_J1337.6-1257_daily_bin219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-05', job_status='DONE', photon_flux_upper_limit='7.75e-08', time_completed='2021-09-08 04:44:39.952861', job_id='796350', GAL2='0.91', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631101479.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.71e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='219' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:44:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 796350: <4FGL_J1337.6-1257_daily_bin219> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin219> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 04:30:47 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:32:20 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:32:20 2021
Terminated at Wed Sep  8 04:44:40 2021
Results reported at Wed Sep  8 04:44:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin219 204.424 -12.9517 296092801 296352001 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 :                                   711.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            833 sec.

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

