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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1339
RA = 204.424, Dec = -12.9517
tmin = 586396801, tmax = 586656001
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='805133', job_status='RUN', time_executed='2021-09-08 04:57:57.772649', time_epoch_executed='1631102277.77' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805133

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805133/ft1_4FGL_J1337.6-1257_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805133/ft2_4FGL_J1337.6-1257_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805133/ft1_4FGL_J1337.6-1257_daily_bin1339.fits outfile=/scratch/kocevski/805133/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1339.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=586396801.0 tmax=586656001.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.83
user 2.42
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805133/ft2_4FGL_J1337.6-1257_daily_bin1339.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/805133/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1339.fits evtable="EVENTS" outfile="/scratch/kocevski/805133/ft1_filtered_4FGL_J1337.6-1257_daily_bin1339.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/805133/ft1_filtered_4FGL_J1337.6-1257_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/805133/ft2_4FGL_J1337.6-1257_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/805133/ltcube_586396801_586656001_4FGL_J1337.6-1257_daily_bin1339.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/805133/ft2_4FGL_J1337.6-1257_daily_bin1339.fits
.....................!
real 10.39
user 9.95
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805133/ft1_filtered_4FGL_J1337.6-1257_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/805133/ft2_4FGL_J1337.6-1257_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/805133/ltcube_586396801_586656001_4FGL_J1337.6-1257_daily_bin1339.fits outfile=/scratch/kocevski/805133/expmap_586396801_586656001_4FGL_J1337.6-1257_daily_bin1339.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/805133/ltcube_586396801_586656001_4FGL_J1337.6-1257_daily_bin1339.fits
.....................!
real 189.82
user 185.45
sys 3.91

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/805133/ft1_filtered_4FGL_J1337.6-1257_daily_bin1339.fits scfile=/scratch/kocevski/805133/ft2_4FGL_J1337.6-1257_daily_bin1339.fits outfile=/scratch/kocevski/805133/cmap_586396801_586656001_4FGL_J1337.6-1257_daily_bin1339.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.53
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805133/ft1_filtered_4FGL_J1337.6-1257_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/805133/ft2_4FGL_J1337.6-1257_daily_bin1339.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805133/Model_4FGL_J1337.6-1257_daily_bin1339.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/805133/ft1_filtered_4FGL_J1337.6-1257_daily_bin1339.fits.....................!
real 56.50
user 55.22
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9181       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1213       1.0000         .10000E-03   10000.    
     3 'norm      '    11.435       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9195       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7443       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6022       1.0000         .10000E-03   10000.    
    10 'norm      '    24.132       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4524       1.0000         .10000E-03   10000.    
    13 'norm      '    31.550       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.1664       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.2959       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.5441       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.446       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .84520       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0654       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=   7120.295     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2188 TOTAL
                     EDM=   .54E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9179        7.7214       -.13181E-06   -.46988E-06
   2  norm          3.1212        2.2881       -.32239E-07   -.50804E-05
   3  norm          11.434        10.564       -.31761E-06    .71709E-05
   4  norm          .10000E-03    4.7787       -.19927E-05** at limit **
   5  Prefactor     3.9125        10.185       -.13524E-05   -.77007E-05
   6  Prefactor     3.7470        7.5738       -.17595E-07   -.15648E-03
   7  Prefactor     .10000E-03    16.984       -.39777E-06** at limit **
   8  norm          .10000E-03    .72812       -.65405E-08** at limit **
   9  norm          1.6002        3.3373        .29052E-06    .17882E-04
  10  norm          24.136        9.0919       -.56671E-07    .39827E-05
  11  Prefactor     .10000E-03    3.6468       -.29943E-06** at limit **
  12  Prefactor     3.4516        21.366       -.22265E-05   -.13351E-04
  13  norm          31.550        27.870       -.26680E-06    .38627E-06
  14  Prefactor     .10000E-03    4.6286        .23666E-05** at limit **
  15  norm          3.1664        4.1415       -.83398E-07   -.39150E-04
  16  Prefactor     .10000E-03    2.3977       -.46271E-07** at limit **
  17  Prefactor     .10000E-03    13.259        .16731E-06** at limit **
  18  norm          2.2948        2.2339        .25377E-07   -.46541E-03
  19  norm          .10000E-03    1.0382       -.60014E-07** at limit **
  20  norm          6.5443        5.9468        .31631E-06    .16379E-04
  21  Prefactor     14.444        19.286       -.39980E-05    .12016E-05
  22  Normalizat    .84524        .21597        .85301E-06    .11524E-05
  23  Prefactor     1.0654        .11793        .23965E-06   -.14906E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.91789
  norm       = 3.12121
  norm       = 11.4344
  norm       = 0.0001
  Prefactor  = 3.91251
  Prefactor  = 3.74696
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.60018
  norm       = 24.1357
  Prefactor  = 0.0001
  Prefactor  = 3.4516
  norm       = 31.55
  Prefactor  = 0.0001
  norm       = 3.16641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.29484
  norm       = 0.0001
  norm       = 6.54431
  Prefactor  = 14.4436
  Normalizat = 0.845237
  Prefactor  = 1.06543
 **********
 **   18 **HESSE 
 **********

 FCN=   7120.295     FROM HESSE     STATUS=OK           378 CALLS     2566 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9179        7.7243        .14249E-03   -1.5145    
   2  norm          3.1212        2.2887        .10608E-03   -1.5355    
   3  norm          11.434        10.566        .11847E-03   -1.5032    
   4  norm          .10000E-03    4.7852        .18017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9125        10.146        .20378E-03   -1.5312    
   6  Prefactor     3.7470        8.3204        .10433E-02   -1.5321    
   7  Prefactor     .10000E-03    17.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .76024        .14033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6002        3.2450        .18940E-03   -1.5455    
  10  norm          24.136        8.9488        .81542E-04   -1.4725    
  11  Prefactor     .10000E-03    3.6653        .15739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4516        21.471        .21766E-03   -1.5336    
  13  norm          31.550        27.871        .71335E-04   -1.4584    
  14  Prefactor     .10000E-03    4.6466        .17661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1664        4.1442        .18877E-03   -1.5352    
  16  Prefactor     .10000E-03    2.4481        .12749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2948        5.4058        .13543E-02   -1.5405    
  19  norm          .10000E-03    2.6221        .16694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.5443        5.9395        .15688E-03   -1.5196    
  21  Prefactor     14.444        19.282        .10538E-03   -1.4948    
  22  Normalizat    .84524        .24511        .36146E-03   -.98412    
  23  Prefactor     1.0654        .13488        .18166E-03   -.90579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96849e-10
Minuit parameter uncertainties:
  1  7.72523
  2  2.28872
  3  10.5674
  4  6.13867e-07
  5  10.1504
  6  8.32299
  7  3.37086e-05
  8  1.78639e-06
  9  3.24531
  10  8.94934
  11  3.2294e-06
  12  17.2262
  13  27.8822
  14  7.38668e-06
  15  4.14455
  16  3.14005e-06
  17  3.52424e-06
  18  5.40694
  19  6.63965e-06
  20  5.94003
  21  19.2906
  22  0.245435
  23  0.134921
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.414e+01  8.949e+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.065e+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:  8.452e-01  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.49
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 5.45e-08
Energy Flux (Fixed Index): 5.30e-05 +/- 1.96e-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) = 7120.25012871
delta logL = 0.0448471907503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7120.24895669
delta logL = 0.0460192069113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.664       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4122       1.0000          .0000       5.0000    
     3 'Normalizat'    .83305       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0694       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=   7120.249     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      259 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.683        110.69        .21035E-02    .66637E-03
   2  alpha         2.4131        3.7039        .21045        .55933E-04
   3  Normalizat    .83281        .18295        .82162E-01    .60508E-04
   4  Prefactor     1.0694        .76568E-01    .38887E-01    .62113E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.6828
  alpha      = 2.41307
  Normalizat = 0.832811
  Prefactor  = 1.0694
 **********
 **   18 **HESSE 
 **********

 FCN=   7120.249     FROM HESSE     STATUS=OK            31 CALLS      290 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.683        9.3595        .42069E-03   -1.4755    
   2  alpha         2.4131        .36744        .86978E-02   -.34778E-01
   3  Normalizat    .83281        .23898        .36377E-03   -.98863    
   4  Prefactor     1.0694        .13230        .18133E-03   -.90451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35786e-09
Minuit parameter uncertainties:
  1  9.36006
  2  0.368779
  3  0.239285
  4  0.132338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805133': 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) = 7120.24894392
delta logL = 0.0460319761014

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.268e+01  9.360e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.413e+00  3.688e-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.069e+00  1.323e-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:  8.328e-01  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.68
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.41 +/- 0.37
Photon Flux (Free Index): 1.57e-07 +/- 6.03e-08
Energy Flux (Free Index): 5.09e-05 +/- 1.82e-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/805133/cmap_HighResolution_586396801_586656001_4FGL_J1337.6-1257_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='5.09e-05', photon_flux_error='5.45e-08', dlogl='4.60e-02', energy_flux='5.30e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-08 05:08:00.412764', photon_index_error2='0.37', photon_index2='2.41', ts='23.49', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.82e-05', EG='0.85', time_epoch_completed='1631102880.41', return_code='0', job_id='805133', GAL2='1.07', EG2='0.83', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='6.03e-08', ts2='23.68', photon_index='2.30' WHERE bin_id='1339' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:08:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 805133: <4FGL_J1337.6-1257_daily_bin1339> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1339 204.424 -12.9517 586396801 586656001 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 :                                   579.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            742 sec.

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

