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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1598
RA = 204.424, Dec = -12.9517
tmin = 653529601, tmax = 653788801
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='726567', job_status='RUN', time_executed='2021-09-20 00:31:25.223510', time_epoch_executed='1632123085.22' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726567

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726567/ft1_4FGL_J1337.6-1257_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726567/ft2_4FGL_J1337.6-1257_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726567/ft1_4FGL_J1337.6-1257_daily_bin1598.fits outfile=/scratch/kocevski/726567/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1598.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=653529601.0 tmax=653788801.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 5.17
user 4.89
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/726567/ft2_4FGL_J1337.6-1257_daily_bin1598.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/726567/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1598.fits evtable="EVENTS" outfile="/scratch/kocevski/726567/ft1_filtered_4FGL_J1337.6-1257_daily_bin1598.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/726567/ft1_filtered_4FGL_J1337.6-1257_daily_bin1598.fits" evtable="EVENTS" scfile=/scratch/kocevski/726567/ft2_4FGL_J1337.6-1257_daily_bin1598.fits sctable="SC_DATA" outfile=/scratch/kocevski/726567/ltcube_653529601_653788801_4FGL_J1337.6-1257_daily_bin1598.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/726567/ft2_4FGL_J1337.6-1257_daily_bin1598.fits
.....................!
real 11.07
user 10.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726567/ft1_filtered_4FGL_J1337.6-1257_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/726567/ft2_4FGL_J1337.6-1257_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/726567/ltcube_653529601_653788801_4FGL_J1337.6-1257_daily_bin1598.fits outfile=/scratch/kocevski/726567/expmap_653529601_653788801_4FGL_J1337.6-1257_daily_bin1598.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/726567/ltcube_653529601_653788801_4FGL_J1337.6-1257_daily_bin1598.fits
.....................!
real 190.02
user 184.15
sys 5.52

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/726567/ft1_filtered_4FGL_J1337.6-1257_daily_bin1598.fits scfile=/scratch/kocevski/726567/ft2_4FGL_J1337.6-1257_daily_bin1598.fits outfile=/scratch/kocevski/726567/cmap_653529601_653788801_4FGL_J1337.6-1257_daily_bin1598.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726567/ft1_filtered_4FGL_J1337.6-1257_daily_bin1598.fits scfile=/scratch/kocevski/726567/ft2_4FGL_J1337.6-1257_daily_bin1598.fits outfile=/scratch/kocevski/726567/cmap_HighResolution_653529601_653788801_4FGL_J1337.6-1257_daily_bin1598.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/726567/ft1_filtered_4FGL_J1337.6-1257_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/726567/ft2_4FGL_J1337.6-1257_daily_bin1598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/726567/Model_4FGL_J1337.6-1257_daily_bin1598.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/726567/ft1_filtered_4FGL_J1337.6-1257_daily_bin1598.fits.....................!
real 51.10
user 49.67
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3765       1.0000         .10000E-03   10000.    
     2 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    72.356       1.0000         .10000E-03   10000.    
     4 'norm      '    14.277       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9445       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.273       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7351       1.0000         .10000E-03   10000.    
     9 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.253       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.311       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.464       1.0000         .10000E-03   10000.    
    13 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3000       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3994       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.8965       1.0000         .10000E-03   10000.    
    20 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1297       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0228       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=   5897.969     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2588 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3765        14.538       -.24831E-05   -.43570E-03
   2  norm          .10000E-03    2.1814       -.96685E-07** at limit **
   3  norm          72.354        23.791       -.76083E-06   -.48947E-05
   4  norm          14.278        15.870       -.46488E-06   -.38329E-03
   5  Prefactor     .10000E-03    3.6833       -.51615E-08** at limit **
   6  Prefactor     7.9467        12.831       -.24082E-06   -.14832E-03
   7  Prefactor     20.270        30.249        .17481E-06   -.33349E-03
   8  norm          1.7352        1.8759        .12224E-07   -.51993E-03
   9  norm          .10001E-03    4.5616        .86175E-06** at limit **
  10  norm          15.252        11.388       -.24149E-06   -.52899E-03
  11  Prefactor     24.307        20.250       -.12908E-05    .23121E-03
  12  Prefactor     29.473        42.043        .12196E-04    .62244E-04
  13  norm          .10000E-03    50.509       -.41109E-04** at limit **
  14  Prefactor     .10000E-03    21.318       -.10700E-04** at limit **
  15  norm          3.2999        6.2588       -.37479E-06   -.46422E-03
  16  Prefactor     1.3991        3.5883       -.75724E-06   -.82805E-03
  17  Prefactor     .10000E-03    38.587        .42842E-04** at limit **
  18  norm          .10000E-03    1.7327        .73339E-07** at limit **
  19  norm          7.8973        3.6555        .26246E-06   -.16169E-03
  20  norm          .10000E-03    5.7942        .87568E-06** at limit **
  21  Prefactor     .10000E-03    7.6172       -.15680E-05** at limit **
  22  Normalizat    1.1296        .30007       -.34247E-08   -.35829E-04
  23  Prefactor     1.0228        .14859       -.38250E-06   -.17821E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.37655
  norm       = 0.0001
  norm       = 72.3539
  norm       = 14.2785
  Prefactor  = 0.0001
  Prefactor  = 7.94674
  Prefactor  = 20.2705
  norm       = 1.73516
  norm       = 0.000100008
  norm       = 15.2524
  Prefactor  = 24.3066
  Prefactor  = 29.4731
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.2999
  Prefactor  = 1.39913
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.89734
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12957
  Prefactor  = 1.02284
 **********
 **   18 **HESSE 
 **********

 FCN=   5897.969     FROM HESSE     STATUS=OK           370 CALLS     2958 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3765        14.809        .37125E-03   -1.5473    
   2  norm          .10000E-03    4.9722        .21996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          72.354        23.824        .47197E-04   -1.4005    
   4  norm          14.278        15.885        .53002E-03   -1.4952    
   5  Prefactor     .10000E-03    3.6862        .14393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.9467        12.843        .14226E-03   -1.5144    
   7  Prefactor     20.270        26.243        .88957E-04   -1.4807    
   8  norm          1.7352        1.8623        .10340E-03   -1.5445    
   9  norm          .10001E-03    11.676        .24732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.252        11.144        .10255E-03   -1.4927    
  11  Prefactor     24.307        20.157        .81241E-04   -1.4722    
  12  Prefactor     29.473        41.991        .73810E-04   -1.4622    
  13  norm          .10000E-03    50.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2999        6.2647        .22287E-03   -1.5345    
  16  Prefactor     1.3991        3.5508        .22490E-03   -1.5471    
  17  Prefactor     .10000E-03    38.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7334        .98723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.8973        3.6552        .95727E-04   -1.5146    
  20  norm          .10000E-03    5.8473        .18048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.6217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1296        .35222        .38089E-03   -.88808    
  23  Prefactor     1.0228        .17495        .20489E-03   -.91972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4795e-09
Minuit parameter uncertainties:
  1  9.03241
  2  3.95115e-05
  3  23.8274
  4  15.8899
  5  3.84392e-07
  6  12.8471
  7  26.2578
  8  1.8624
  9  0.00061973
  10  11.1451
  11  20.1622
  12  42.0336
  13  6.57105e-05
  14  7.81526e-05
  15  6.26593
  16  3.55137
  17  6.64894e-06
  18  7.44245e-07
  19  3.65535
  20  4.80191e-06
  21  3.03907e-07
  22  0.352955
  23  0.175048
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.525e+01  1.115e+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:  1.023e+00  1.750e-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.130e+00  3.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.93
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 9.28e-08 +/- 6.78e-08
Energy Flux (Fixed Index): 3.35e-05 +/- 2.45e-05

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

Saving results to:
/scratch/kocevski/726567/likelihoodResults_653529601_653788801_4FGL_J1337.6-1257_daily_bin1598.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) = 5896.96667133
delta logL = 1.00266715127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5896.96365257
delta logL = 1.00568591917

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4004       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1990       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0438       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0511       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=   5896.964     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      272 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4021        8.7992        .10934E-03   -.23958E-02
   2  alpha         3.1993        .73186        .10363E-01   -.24991E-03
   3  Normalizat    1.0437        .33526        .39377E-03    .24769E-03
   4  Prefactor     1.0512        .17128        .20226E-03    .69525E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.40209
  alpha      = 3.19935
  Normalizat = 1.04365
  Prefactor  = 1.05123
 **********
 **   18 **HESSE 
 **********

 FCN=   5896.964     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4021        7.8373        .43736E-05   -1.5128    
   2  alpha         3.1993        .65356        .41453E-03    .28352    
   3  Normalizat    1.0437        .33518        .15751E-04   -.91582    
   4  Prefactor     1.0512        .17118        .40451E-04   -.91041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1665e-09
Minuit parameter uncertainties:
  1  7.83825
  2  0.661923
  3  0.335857
  4  0.171271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726567': 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) = 5896.96365057
delta logL = 1.00568791283

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  8.402e+00  7.838e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  3.199e+00  6.619e-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.051e+00  1.713e-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.044e+00  3.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.07
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 3.20 +/- 0.66
Photon Flux (Free Index): 1.72e-07 +/- 9.68e-08
Energy Flux (Free Index): 3.42e-05 +/- 1.79e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-05', comment='SUCCESS', photon_flux='9.28e-08', energy_flux2='3.42e-05', photon_flux_error='6.78e-08', dlogl='1.01e+00', energy_flux='3.35e-05', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-09-20 00:41:34.994778', photon_index_error2='0.66', photon_index2='3.20', ts='3.93', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='2.19e-07', energy_flux_error2='1.79e-05', EG='1.13', time_epoch_completed='1632123694.99', return_code='0', job_id='726567', GAL2='1.05', EG2='1.04', return_code2='0', energy_flux_error='2.45e-05', photon_flux_error2='9.68e-08', ts2='6.07', photon_index='2.30' WHERE bin_id='1598' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 00:41:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 726567: <4FGL_J1337.6-1257_daily_bin1598> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1598> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 20 00:30:23 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 00:30:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 00:30:25 2021
Terminated at Mon Sep 20 00:41:35 2021
Results reported at Mon Sep 20 00:41:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1598 204.424 -12.9517 653529601 653788801 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 :                                   613.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            672 sec.

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

