/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7476
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1337.6-1257_daily_bin209
RA = 204.424, Dec = -12.9517
tmin = 293500801, tmax = 293760001
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='796334', job_status='RUN', time_executed='2021-09-08 04:32:30.689015', time_epoch_executed='1631100750.69' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/796334

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/796334/ft1_4FGL_J1337.6-1257_daily_bin209.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/796334/ft2_4FGL_J1337.6-1257_daily_bin209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/796334/ft1_4FGL_J1337.6-1257_daily_bin209.fits outfile=/scratch/kocevski/796334/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin209.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=293500801.0 tmax=293760001.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.97
user 2.72
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/796334/ft1_filtered_4FGL_J1337.6-1257_daily_bin209.fits" evtable="EVENTS" scfile=/scratch/kocevski/796334/ft2_4FGL_J1337.6-1257_daily_bin209.fits sctable="SC_DATA" outfile=/scratch/kocevski/796334/ltcube_293500801_293760001_4FGL_J1337.6-1257_daily_bin209.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/796334/ft2_4FGL_J1337.6-1257_daily_bin209.fits
.....................!
real 12.73
user 12.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/796334/ft1_filtered_4FGL_J1337.6-1257_daily_bin209.fits evtable="EVENTS" scfile=/scratch/kocevski/796334/ft2_4FGL_J1337.6-1257_daily_bin209.fits sctable="SC_DATA" expcube=/scratch/kocevski/796334/ltcube_293500801_293760001_4FGL_J1337.6-1257_daily_bin209.fits outfile=/scratch/kocevski/796334/expmap_293500801_293760001_4FGL_J1337.6-1257_daily_bin209.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/796334/ltcube_293500801_293760001_4FGL_J1337.6-1257_daily_bin209.fits
.....................!
real 156.81
user 152.04
sys 4.25

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/796334/ft1_filtered_4FGL_J1337.6-1257_daily_bin209.fits scfile=/scratch/kocevski/796334/ft2_4FGL_J1337.6-1257_daily_bin209.fits outfile=/scratch/kocevski/796334/cmap_293500801_293760001_4FGL_J1337.6-1257_daily_bin209.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.48
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/796334/ft1_filtered_4FGL_J1337.6-1257_daily_bin209.fits scfile=/scratch/kocevski/796334/ft2_4FGL_J1337.6-1257_daily_bin209.fits outfile=/scratch/kocevski/796334/cmap_HighResolution_293500801_293760001_4FGL_J1337.6-1257_daily_bin209.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.48
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/796334/ft1_filtered_4FGL_J1337.6-1257_daily_bin209.fits evtable="EVENTS" scfile=/scratch/kocevski/796334/ft2_4FGL_J1337.6-1257_daily_bin209.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/796334/Model_4FGL_J1337.6-1257_daily_bin209.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/796334/ft1_filtered_4FGL_J1337.6-1257_daily_bin209.fits.....................!
real 53.92
user 52.56
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5499       1.0000         .10000E-03   10000.    
     3 'norm      '    45.927       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.435       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3994       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8270       1.0000         .10000E-03   10000.    
     9 'norm      '    .10592E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2610       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22604       1.0000         .10000E-03   10000.    
    13 'norm      '    .15101E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4484       1.0000         .10000E-03   10000.    
    15 'norm      '    6.6266       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5115       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3054       1.0000         .10000E-03   10000.    
    20 'norm      '    .20403E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .59992E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1370       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92073       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=   8429.903     FROM MIGRAD    STATUS=CONVERGED    923 CALLS     2640 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7174        .14715E-02** at limit **
   2  norm          1.5501        1.5660        .11287E-03   -.10899E-03
   3  norm          45.927        13.371        .59163E-04   -.50115E-04
   4  norm          .10000E-03    3.1585        .15898E-02** at limit **
   5  Prefactor     .10000E-03    4.4689        .18142E-02** at limit **
   6  Prefactor     15.434        7.4596        .10195E-03   -.94837E-03
   7  Prefactor     1.4356        18.221        .36684E-03   -.20751E-03
   8  norm          1.8271        1.1411        .75317E-04   -.27623E-03
   9  norm          .10000E-03    3.9231        .19884E-02** at limit **
  10  norm          4.2630        5.7065        .19519E-03   -.39490E-03
  11  Prefactor     .10000E-03    4.2941        .18142E-02** at limit **
  12  Prefactor     .21881        21.322        .10581        .45278E-03
  13  norm          .10000E-03    61.990        .18142E-02** at limit **
  14  Prefactor     5.4453        8.2765        .17215E-03    .23444E-03
  15  norm          6.6266        4.1537        .14264E-03   -.40552E-03
  16  Prefactor     1.5122        2.7035        .19673E-03   -.39365E-03
  17  Prefactor     .10003E-03    43.241        .18142E-02** at limit **
  18  norm          .10000E-03    2.8635        .14994E-02** at limit **
  19  norm          1.3066        2.4194        .18550E-03   -.31845E-03
  20  norm          .10005E-03    37.843        .37715E-02** at limit **
  21  Prefactor     .10019E-03    147.05        .64209E-02** at limit **
  22  Normalizat    1.1371        .22996        .31867E-03   -.36495E-03
  23  Prefactor     .92061        .12102        .18874E-03   -.19123E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.55008
  norm       = 45.9269
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4339
  Prefactor  = 1.43556
  norm       = 1.82706
  norm       = 0.000100001
  norm       = 4.26303
  Prefactor  = 0.000100001
  Prefactor  = 0.218815
  norm       = 0.000100002
  Prefactor  = 5.44526
  norm       = 6.62661
  Prefactor  = 1.51219
  Prefactor  = 0.000100028
  norm       = 0.0001
  norm       = 1.30658
  norm       = 0.000100055
  Prefactor  = 0.000100185
  Normalizat = 1.13715
  Prefactor  = 0.920611
 **********
 **   18 **HESSE 
 **********

 FCN=   8429.903     FROM HESSE     STATUS=OK           356 CALLS     2996 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7180        .29431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5501        1.5660        .45146E-05   -1.5459    
   3  norm          45.927        13.370        .11833E-04   -1.4352    
   4  norm          .10000E-03    3.1589        .31797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4702        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.434        7.4592        .20389E-04   -1.4922    
   7  Prefactor     1.4356        18.086        .14674E-04   -1.5468    
   8  norm          1.8271        1.1410        .30127E-05   -1.5438    
   9  norm          .10000E-03    3.9475        .39767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2630        5.7023        .78075E-05   -1.5295    
  11  Prefactor     .10000E-03    4.2944        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .21881        19.890        .11074       -1.5614    
  13  norm          .10000E-03    62.049        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4453        8.2748        .68859E-05   -1.5241    
  15  norm          6.6266        4.1536        .57057E-05   -1.5193    
  16  Prefactor     1.5122        2.7033        .78693E-05   -1.5462    
  17  Prefactor     .10003E-03    43.249        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.8653        .29988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3066        2.4181        .74199E-05   -1.5479    
  20  norm          .10005E-03    39.163        .15086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10019E-03    153.41        .25684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1371        .23001        .63734E-04   -.88568    
  23  Prefactor     .92061        .12109        .37749E-04   -.95425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1415e-09
Minuit parameter uncertainties:
  1  2.04892e-05
  2  1.56602
  3  13.3712
  4  1.65227e-05
  5  5.52816e-05
  6  7.45968
  7  10.1944
  8  1.14104
  9  0.000108173
  10  5.70307
  11  0.000112187
  12  4.17291
  13  0.000692593
  14  8.2765
  15  4.15374
  16  2.7035
  17  0.00220215
  18  2.20867e-05
  19  2.41823
  20  0.00293057
  21  0.0106896
  22  0.230217
  23  0.121124
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  4.263e+00  5.703e+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:  9.206e-01  1.211e-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.137e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/796334/likelihoodResults_293500801_293760001_4FGL_J1337.6-1257_daily_bin209.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) = 8429.75074329
delta logL = 0.152078140967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8429.74585285
delta logL = 0.156968580015

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0044       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9498       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1143       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92817       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=   8429.746     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0053        77.005        .58543E-02    .78331E-03
   2  alpha         2.9475        3.8055        .42026        .59492E-04
   3  Normalizat    1.1148        .59295E-01    .72634E-01    .19286E-04
   4  Prefactor     .92796        .30208E-01    .45363E-01    .36415E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.00527
  alpha      = 2.94751
  Normalizat = 1.11476
  Prefactor  = 0.927957
 **********
 **   18 **HESSE 
 **********

 FCN=   8429.746     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0053        7.1931        .16217E-03   -1.5361    
   2  alpha         2.9475        1.6162        .20970E-01    .17997    
   3  Normalizat    1.1148        .22717        .32142E-03   -.89279    
   4  Prefactor     .92796        .12151        .18807E-03   -.95171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5758e-11
Minuit parameter uncertainties:
  1  7.19516
  2  1.7634
  3  0.227368
  4  0.121544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/796334': 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) = 8429.74584824
delta logL = 0.156973193489

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.005e+00  7.195e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.948e+00  1.763e+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.280e-01  1.215e-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.115e+00  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.95 +/- 1.76
Photon Flux (Free Index): 4.25e-08 +/- 4.84e-08
Energy Flux (Free Index): 9.49e-06 +/- 1.14e-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/796334/cmap_HighResolution_293500801_293760001_4FGL_J1337.6-1257_daily_bin209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.59e-05', comment='SUCCESS', energy_flux2='9.49e-06', dlogl='1.57e-01', photon_flux2='4.25e-08', job_status='DONE', time_completed='2021-09-08 04:43:14.437604', photon_index_error2='1.76', photon_index2='2.95', ts='0.77', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='9.96e-08', energy_flux_error2='1.14e-05', EG='1.14', time_epoch_completed='1631101394.44', return_code='0', job_id='796334', GAL2='0.93', EG2='1.11', return_code2='0', photon_flux_error2='4.84e-08', ts2='1.12', photon_index='2.30' WHERE bin_id='209' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:43:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 796334: <4FGL_J1337.6-1257_daily_bin209> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin209 204.424 -12.9517 293500801 293760001 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 :                                   635.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             315.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            749 sec.

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

