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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1024
RA = 204.424, Dec = -12.9517
tmin = 504748801, tmax = 505008001
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='803590', job_status='RUN', time_executed='2021-09-08 04:56:44.430819', time_epoch_executed='1631102204.43' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1024'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803590

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803590/ft1_4FGL_J1337.6-1257_daily_bin1024.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803590/ft2_4FGL_J1337.6-1257_daily_bin1024.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803590/ft1_4FGL_J1337.6-1257_daily_bin1024.fits outfile=/scratch/kocevski/803590/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1024.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=504748801.0 tmax=505008001.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 8.52
user 8.10
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803590/ft1_filtered_4FGL_J1337.6-1257_daily_bin1024.fits" evtable="EVENTS" scfile=/scratch/kocevski/803590/ft2_4FGL_J1337.6-1257_daily_bin1024.fits sctable="SC_DATA" outfile=/scratch/kocevski/803590/ltcube_504748801_505008001_4FGL_J1337.6-1257_daily_bin1024.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/803590/ft2_4FGL_J1337.6-1257_daily_bin1024.fits
.....................!
real 17.62
user 17.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803590/ft1_filtered_4FGL_J1337.6-1257_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/803590/ft2_4FGL_J1337.6-1257_daily_bin1024.fits sctable="SC_DATA" expcube=/scratch/kocevski/803590/ltcube_504748801_505008001_4FGL_J1337.6-1257_daily_bin1024.fits outfile=/scratch/kocevski/803590/expmap_504748801_505008001_4FGL_J1337.6-1257_daily_bin1024.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/803590/ltcube_504748801_505008001_4FGL_J1337.6-1257_daily_bin1024.fits
.....................!
real 192.70
user 187.47
sys 4.31

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/803590/ft1_filtered_4FGL_J1337.6-1257_daily_bin1024.fits scfile=/scratch/kocevski/803590/ft2_4FGL_J1337.6-1257_daily_bin1024.fits outfile=/scratch/kocevski/803590/cmap_504748801_505008001_4FGL_J1337.6-1257_daily_bin1024.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.59
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803590/ft1_filtered_4FGL_J1337.6-1257_daily_bin1024.fits scfile=/scratch/kocevski/803590/ft2_4FGL_J1337.6-1257_daily_bin1024.fits outfile=/scratch/kocevski/803590/cmap_HighResolution_504748801_505008001_4FGL_J1337.6-1257_daily_bin1024.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=204.424 yref=-12.9517 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803590/ft1_filtered_4FGL_J1337.6-1257_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/803590/ft2_4FGL_J1337.6-1257_daily_bin1024.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803590/Model_4FGL_J1337.6-1257_daily_bin1024.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/803590/ft1_filtered_4FGL_J1337.6-1257_daily_bin1024.fits.....................!
real 47.90
user 46.58
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10405E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0391       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4309       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.678       1.0000         .10000E-03   10000.    
     8 'norm      '    3.5284       1.0000         .10000E-03   10000.    
     9 'norm      '    4.9139       1.0000         .10000E-03   10000.    
    10 'norm      '    24.839       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.259       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.524       1.0000         .10000E-03   10000.    
    13 'norm      '    30.672       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10383E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6376       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    18.894       1.0000         .10000E-03   10000.    
    21 'Prefactor '    56.691       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3345       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82673       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=   5332.389     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2501 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.655        .90712E-02** at limit **
   2  norm          2.0392        1.8782        .72404E-02   -.55080E-04
   3  norm          .10001E-03    5.8851        .90712E-02** at limit **
   4  norm          .10000E-03    4.4117        .90712E-02** at limit **
   5  Prefactor     8.4302        9.6831        .34516E-02   -.13202E-03
   6  Prefactor     .10000E-03    7.4875        .90712E-02** at limit **
   7  Prefactor     29.676        23.806        .18386E-02    .15881E-02
   8  norm          3.5279        2.3056        .53801E-02    .48882E-03
   9  norm          4.9142        6.0153        .45361E-02    .32589E-03
  10  norm          24.838        11.413        .20094E-02   -.34012E-03
  11  Prefactor     19.259        15.606        .22817E-02   -.31927E-03
  12  Prefactor     27.525        21.608        .19090E-02   -.10856E-02
  13  norm          30.673        33.531        .18086E-02   -.50814E-03
  14  Prefactor     .10004E-03    8.0226        .90712E-02** at limit **
  15  norm          .10000E-03    2.6174        .45723E-01** at limit **
  16  Prefactor     1.6375        5.1370        .82565E-02    .72826E-03
  17  Prefactor     .10000E-03    36.956        .90712E-02** at limit **
  18  norm          .10003E-03    7.0417        .90712E-02** at limit **
  19  norm          .10000E-03    .77048        .90712E-02** at limit **
  20  norm          18.893        11.442        .23036E-02   -.16760E-03
  21  Prefactor     56.691        37.719        .13320E-02    .40315E-03
  22  Normalizat    1.3349        .27277        .71907E-01   -.16895E-04
  23  Prefactor     .82650        .13903        .44064E-01    .19412E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 2.03921
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 8.43021
  Prefactor  = 0.000100002
  Prefactor  = 29.6764
  norm       = 3.5279
  norm       = 4.91423
  norm       = 24.838
  Prefactor  = 19.2592
  Prefactor  = 27.5253
  norm       = 30.6728
  Prefactor  = 0.000100035
  norm       = 0.000100001
  Prefactor  = 1.6375
  Prefactor  = 0.000100001
  norm       = 0.000100028
  norm       = 0.0001
  norm       = 18.8934
  Prefactor  = 56.6909
  Normalizat = 1.33488
  Prefactor  = 0.826498
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.389     FROM HESSE     STATUS=OK           362 CALLS     2863 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.147        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0392        1.8770        .93574E-04   -1.5422    
   3  norm          .10001E-03    5.9086        .17301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.4161        .14980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4302        9.6805        .13806E-03   -1.5127    
   6  Prefactor     .10000E-03    7.5710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.676        23.765        .73544E-04   -1.4618    
   8  norm          3.5279        2.3298        .83369E-04   -1.5332    
   9  norm          4.9142        5.9728        .15734E-03   -1.5265    
  10  norm          24.838        11.380        .80375E-04   -1.4711    
  11  Prefactor     19.259        15.570        .91267E-04   -1.4830    
  12  Prefactor     27.525        21.625        .76362E-04   -1.4658    
  13  norm          30.673        33.532        .36173E-03   -1.4600    
  14  Prefactor     .10004E-03    8.1040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.9748        .22936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6375        5.0969        .27673E-03   -1.5452    
  17  Prefactor     .10000E-03    37.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10003E-03    7.1478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .77313        .62584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.893        11.443        .92143E-04   -1.4838    
  21  Prefactor     56.691        37.748        .53279E-04   -1.4201    
  22  Normalizat    1.3349        .32166        .31818E-03   -.82531    
  23  Prefactor     .82650        .16344        .20973E-03   -.98759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83867e-08
Minuit parameter uncertainties:
  1  0.000272852
  2  1.87707
  3  0.000355787
  4  1.41106e-05
  5  9.68225
  6  0.00021411
  7  23.7722
  8  2.32982
  9  5.97349
  10  11.3814
  11  15.5732
  12  21.6315
  13  33.5523
  14  0.00106967
  15  0.000142762
  16  5.09824
  17  0.00038125
  18  0.000888042
  19  8.64399e-06
  20  11.4442
  21  37.7642
  22  0.322148
  23  0.163534
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.484e+01  1.138e+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.265e-01  1.635e-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.335e+00  3.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.14
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.51e-07 +/- 6.93e-08
Energy Flux (Fixed Index): 5.45e-05 +/- 2.50e-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) = 5332.33387822
delta logL = 0.0551874346156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5332.32794641
delta logL = 0.0611192423075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.360       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1607       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82159       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=   5332.328     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      263 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.360        11.830        .78026E-04    .97770E-03
   2  alpha         2.1605        .41039        .10203E-01    .12926E-03
   3  Normalizat    1.3509        .30133        .31667E-03   -.65520E-04
   4  Prefactor     .82144        .15989        .21032E-03   -.82812E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.3596
  alpha      = 2.16051
  Normalizat = 1.3509
  Prefactor  = 0.821443
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.328     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.360        11.747        .15605E-04   -1.4681    
   2  alpha         2.1605        .40730        .40812E-03   -.13622    
   3  Normalizat    1.3509        .30148        .12667E-04   -.82060    
   4  Prefactor     .82144        .15999        .84127E-05   -.98943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11141e-10
Minuit parameter uncertainties:
  1  11.7482
  2  0.40916
  3  0.301879
  4  0.160083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803590': 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) = 5332.3279458
delta logL = 0.061119848333

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  2.636e+01  1.175e+01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.161e+00  4.092e-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.214e-01  1.601e-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.351e+00  3.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.36
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.16 +/- 0.41
Photon Flux (Free Index): 1.37e-07 +/- 7.22e-08
Energy Flux (Free Index): 5.79e-05 +/- 2.69e-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/803590/cmap_HighResolution_504748801_505008001_4FGL_J1337.6-1257_daily_bin1024.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.51e-07', energy_flux2='5.79e-05', photon_flux_error='6.93e-08', dlogl='6.11e-02', energy_flux='5.45e-05', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-08 05:06:44.310809', photon_index_error2='0.41', photon_index2='2.16', ts='14.14', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.69e-05', EG='1.33', time_epoch_completed='1631102804.31', return_code='0', job_id='803590', GAL2='0.82', EG2='1.35', return_code2='0', energy_flux_error='2.50e-05', photon_flux_error2='7.22e-08', ts2='14.36', photon_index='2.30' WHERE bin_id='1024' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 803590: <4FGL_J1337.6-1257_daily_bin1024> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1024> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:50:41 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:55:01 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:55:01 2021
Terminated at Wed Sep  8 05:06:45 2021
Results reported at Wed Sep  8 05:06:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1024 204.424 -12.9517 504748801 505008001 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 :                                   578.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             239.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            964 sec.

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

