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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin194
RA = 204.424, Dec = -12.9517
tmin = 289612801, tmax = 289872001
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='796310', job_status='RUN', time_executed='2021-09-08 04:34:56.488366', time_epoch_executed='1631100896.49' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796310/ft1_4FGL_J1337.6-1257_daily_bin194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796310/ft2_4FGL_J1337.6-1257_daily_bin194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796310/ft1_4FGL_J1337.6-1257_daily_bin194.fits outfile=/scratch/kocevski/796310/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin194.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=289612801.0 tmax=289872001.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.55
user 3.25
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796310/ft1_filtered_4FGL_J1337.6-1257_daily_bin194.fits" evtable="EVENTS" scfile=/scratch/kocevski/796310/ft2_4FGL_J1337.6-1257_daily_bin194.fits sctable="SC_DATA" outfile=/scratch/kocevski/796310/ltcube_289612801_289872001_4FGL_J1337.6-1257_daily_bin194.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/796310/ft2_4FGL_J1337.6-1257_daily_bin194.fits
.....................!
real 15.37
user 14.91
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796310/ft1_filtered_4FGL_J1337.6-1257_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/796310/ft2_4FGL_J1337.6-1257_daily_bin194.fits sctable="SC_DATA" expcube=/scratch/kocevski/796310/ltcube_289612801_289872001_4FGL_J1337.6-1257_daily_bin194.fits outfile=/scratch/kocevski/796310/expmap_289612801_289872001_4FGL_J1337.6-1257_daily_bin194.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/796310/ltcube_289612801_289872001_4FGL_J1337.6-1257_daily_bin194.fits
.....................!
real 192.50
user 185.93
sys 5.68

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/796310/ft1_filtered_4FGL_J1337.6-1257_daily_bin194.fits scfile=/scratch/kocevski/796310/ft2_4FGL_J1337.6-1257_daily_bin194.fits outfile=/scratch/kocevski/796310/cmap_289612801_289872001_4FGL_J1337.6-1257_daily_bin194.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/796310/ft1_filtered_4FGL_J1337.6-1257_daily_bin194.fits scfile=/scratch/kocevski/796310/ft2_4FGL_J1337.6-1257_daily_bin194.fits outfile=/scratch/kocevski/796310/cmap_HighResolution_289612801_289872001_4FGL_J1337.6-1257_daily_bin194.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.1870       1.0000         .10000E-03   10000.    
     3 'norm      '    .39610       1.0000         .10000E-03   10000.    
     4 'norm      '    15.241       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22205E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.982       1.0000         .10000E-03   10000.    
     8 'norm      '    11.683       1.0000         .10000E-03   10000.    
     9 'norm      '    .15973E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.012       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.297       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .56408E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.6356       1.0000         .10000E-03   10000.    
    20 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.650       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2528       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84615       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=   6831.036     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2554 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9145        .12324E-06** at limit **
   2  norm          3.1873        2.4611        .13211E-06    .10824E-03
   3  norm          .41318        5.5615        .12330E-05   -.24654E-04
   4  norm          15.240        11.994        .93813E-07   -.47048E-04
   5  Prefactor     .10003E-03    15.766        .74473E-05** at limit **
   6  Prefactor     .10000E-03    7.4509        .20927E-07** at limit **
   7  Prefactor     10.939        23.490       -.48936E-06   -.47892E-04
   8  norm          11.683        2.6922       -.10761E-06   -.94383E-03
   9  norm          .10000E-03    4.3400       -.32491E-05** at limit **
  10  norm          14.004        10.510       -.58602E-06   -.84708E-04
  11  Prefactor     .10000E-03    15.329        .11242E-06** at limit **
  12  Prefactor     .10000E-03    10.987        .22404E-06** at limit **
  13  norm          .10000E-03    11.106        .98251E-07** at limit **
  14  Prefactor     .10000E-03    14.714        .22780E-06** at limit **
  15  norm          10.298        5.8364       -.12855E-07   -.34193E-03
  16  Prefactor     .10006E-03    4.3238        .27656E-05** at limit **
  17  Prefactor     .10000E-03    12.059       -.58099E-08** at limit **
  18  norm          .10000E-03    16.384        .12022E-05** at limit **
  19  norm          3.6355        3.0884       -.88171E-07   -.31491E-03
  20  norm          .10000E-03    5.0992        .13254E-06** at limit **
  21  Prefactor     27.650        22.204       -.15587E-06   -.96554E-04
  22  Normalizat    1.2527        .26532        .47346E-05   -.42743E-03
  23  Prefactor     .84612        .12434       -.34973E-05   -.13090E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.18727
  norm       = 0.413178
  norm       = 15.2402
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 10.9386
  norm       = 11.6832
  norm       = 0.0001
  norm       = 14.0035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2977
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 3.63554
  norm       = 0.0001
  Prefactor  = 27.6499
  Normalizat = 1.25269
  Prefactor  = 0.846125
 **********
 **   18 **HESSE 
 **********

 FCN=   6831.036     FROM HESSE     STATUS=OK           370 CALLS     2924 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9566        .15973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.1873        2.4612        .11059E-03   -1.5351    
   3  norm          .41318        18.564        .37090E-02   -1.5579    
   4  norm          15.240        11.988        .10259E-03   -1.4927    
   5  Prefactor     .10003E-03    31.882        .39338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.939        23.864        .12089E-03   -1.5046    
   8  norm          11.683        2.7042        .61306E-04   -1.5024    
   9  norm          .10000E-03    7.7452        .23219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.004        10.466        .10700E-03   -1.4959    
  11  Prefactor     .10000E-03    15.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.298        5.8393        .12487E-03   -1.5066    
  16  Prefactor     .10006E-03    28.192        .26334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    16.965        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6355        3.0869        .12731E-03   -1.5327    
  20  norm          .10000E-03    5.1372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.650        22.205        .76188E-04   -1.4656    
  22  Normalizat    1.2527        .29868        .33855E-03   -.84990    
  23  Prefactor     .84612        .14725        .20669E-03   -.98050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4999e-08
Minuit parameter uncertainties:
  1  1.77281e-05
  2  2.46128
  3  5.5402
  4  11.9895
  5  0.00182291
  6  3.4852e-05
  7  23.8844
  8  2.70428
  9  4.30622e-05
  10  10.4675
  11  2.08654e-06
  12  8.54092e-05
  13  4.89812e-05
  14  7.71761e-06
  15  5.83959
  16  0.00267619
  17  3.68521e-05
  18  0.00031821
  19  3.08703
  20  2.42478e-05
  21  22.2118
  22  0.299092
  23  0.147321
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.400e+01  1.047e+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:  8.461e-01  1.473e-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.253e+00  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.85
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 8.52e-08 +/- 6.37e-08
Energy Flux (Fixed Index): 3.07e-05 +/- 2.30e-05

TS (Fixed Index): 3.85
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 1.95e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/796310/likelihoodResults_289612801_289872001_4FGL_J1337.6-1257_daily_bin194.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): 0
logL (Free Index) = 6830.35224043
delta logL = 0.68420293903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6830.34460533
delta logL = 0.691838041241

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0918       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0996       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87712       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=   6830.345     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      275 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0909        9.5591        .12105E-03    .45494E-03
   2  alpha         3.0996        .80462        .11189E-01    .39688E-04
   3  Normalizat    1.1589        .29564        .34977E-03   -.58408E-04
   4  Prefactor     .87712        .14813        .20330E-03   -.32520E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.09086
  alpha      = 3.09965
  Normalizat = 1.15895
  Prefactor  = 0.877117
 **********
 **   18 **HESSE 
 **********

 FCN=   6830.345     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0909        8.3214        .48419E-05   -1.5105    
   2  alpha         3.0996        .70254        .44757E-03    .24222    
   3  Normalizat    1.1589        .29420        .13991E-04   -.87881    
   4  Prefactor     .87712        .14744        .40660E-04   -.96945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17612e-10
Minuit parameter uncertainties:
  1  8.32242
  2  0.712742
  3  0.294615
  4  0.147508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796310': 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) = 6830.34460532
delta logL = 0.691838051212

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  9.091e+00  8.322e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  3.100e+00  7.127e-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:  8.771e-01  1.475e-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.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.35
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 3.10 +/- 0.71
Photon Flux (Free Index): 1.60e-07 +/- 9.65e-08
Energy Flux (Free Index): 3.33e-05 +/- 1.74e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/796310/cmap_HighResolution_289612801_289872001_4FGL_J1337.6-1257_daily_bin194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-05', comment='SUCCESS', photon_flux='8.52e-08', energy_flux2='3.33e-05', photon_flux_error='6.37e-08', dlogl='6.92e-01', energy_flux='3.07e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-08 04:46:01.228647', photon_index_error2='0.71', photon_index2='3.10', ts='3.85', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.95e-07', energy_flux_error2='1.74e-05', EG='1.25', time_epoch_completed='1631101561.23', return_code='0', job_id='796310', GAL2='0.88', EG2='1.16', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='9.65e-08', ts2='5.35', photon_index='2.30' WHERE bin_id='194' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:46:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 796310: <4FGL_J1337.6-1257_daily_bin194> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin194 204.424 -12.9517 289612801 289872001 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 :                                   663.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             246.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            918 sec.

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

