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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin325
RA = 204.424, Dec = -12.9517
tmin = 323568001, tmax = 323827201
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='797754', job_status='RUN', time_executed='2021-09-08 04:39:37.271786', time_epoch_executed='1631101177.27' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797754

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797754/ft1_4FGL_J1337.6-1257_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797754/ft2_4FGL_J1337.6-1257_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797754/ft1_4FGL_J1337.6-1257_daily_bin325.fits outfile=/scratch/kocevski/797754/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin325.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=323568001.0 tmax=323827201.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.31
user 3.11
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/797754/ft2_4FGL_J1337.6-1257_daily_bin325.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/797754/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin325.fits evtable="EVENTS" outfile="/scratch/kocevski/797754/ft1_filtered_4FGL_J1337.6-1257_daily_bin325.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797754/ft1_filtered_4FGL_J1337.6-1257_daily_bin325.fits" evtable="EVENTS" scfile=/scratch/kocevski/797754/ft2_4FGL_J1337.6-1257_daily_bin325.fits sctable="SC_DATA" outfile=/scratch/kocevski/797754/ltcube_323568001_323827201_4FGL_J1337.6-1257_daily_bin325.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/797754/ft2_4FGL_J1337.6-1257_daily_bin325.fits
.....................!
real 15.05
user 14.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797754/ft1_filtered_4FGL_J1337.6-1257_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/797754/ft2_4FGL_J1337.6-1257_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/797754/ltcube_323568001_323827201_4FGL_J1337.6-1257_daily_bin325.fits outfile=/scratch/kocevski/797754/expmap_323568001_323827201_4FGL_J1337.6-1257_daily_bin325.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/797754/ltcube_323568001_323827201_4FGL_J1337.6-1257_daily_bin325.fits
.....................!
real 191.25
user 186.04
sys 4.79

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/797754/ft1_filtered_4FGL_J1337.6-1257_daily_bin325.fits scfile=/scratch/kocevski/797754/ft2_4FGL_J1337.6-1257_daily_bin325.fits outfile=/scratch/kocevski/797754/cmap_323568001_323827201_4FGL_J1337.6-1257_daily_bin325.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.55
user 0.36
sys 0.18

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/797754/ft1_filtered_4FGL_J1337.6-1257_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/797754/ft2_4FGL_J1337.6-1257_daily_bin325.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797754/Model_4FGL_J1337.6-1257_daily_bin325.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/797754/ft1_filtered_4FGL_J1337.6-1257_daily_bin325.fits.....................!
real 54.33
user 52.92
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29284E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10852       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0824       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .76913E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.823       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.667       1.0000         .10000E-03   10000.    
    13 'norm      '    33.474       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3799       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24417E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.2294       1.0000         .10000E-03   10000.    
    19 'norm      '    .65933       1.0000         .10000E-03   10000.    
    20 'norm      '    8.3666       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3369       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89094       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=   6286.097     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2274 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10905E-03    7.0620        .74543E-01** at limit **
   2  norm          .11020        1.3966        .53981E-01    .57853E-03
   3  norm          .10000E-03    8.7416        .90712E-02** at limit **
   4  norm          .10000E-03    3.1235        .90712E-02** at limit **
   5  Prefactor     .10000E-03    3.7182        .90712E-02** at limit **
   6  Prefactor     8.0817        10.515        .35257E-02    .17770E-03
   7  Prefactor     .10000E-03    8.1696        .90712E-02** at limit **
   8  norm          .77863E-01    .68429        .23367E-01    .20037E-02
   9  norm          .10000E-03    1.1876        .90712E-02** at limit **
  10  norm          16.817        8.4200        .24412E-02    .18842E-04
  11  Prefactor     .10000E-03    4.7106        .90712E-02** at limit **
  12  Prefactor     27.669        31.250        .19041E-02   -.34795E-03
  13  norm          33.474        27.974        .17315E-02    .17682E-04
  14  Prefactor     9.3824        11.893        .32713E-02    .47191E-03
  15  norm          .10000E-03    1.8684        .90712E-02** at limit **
  16  Prefactor     .10001E-03    3.2842        .75125E-01** at limit **
  17  Prefactor     .10030E-03    112.97        .90712E-02** at limit **
  18  norm          5.2193        7.5355        .43944E-02   -.28604E-03
  19  norm          .65965        2.3901        .39344E-01    .97734E-03
  20  norm          8.3683        8.6336        .34649E-02   -.11173E-03
  21  Prefactor     .10000E-03    11.915        .90712E-02** at limit **
  22  Normalizat    1.3368        .24928        .72818E-01   -.37174E-05
  23  Prefactor     .89095        .12430        .44889E-01   -.14334E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000109047
  norm       = 0.110197
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.08171
  Prefactor  = 0.000100001
  norm       = 0.077863
  norm       = 0.0001
  norm       = 16.8173
  Prefactor  = 0.0001
  Prefactor  = 27.669
  norm       = 33.4739
  Prefactor  = 9.38244
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.000100297
  norm       = 5.21934
  norm       = 0.659646
  norm       = 8.36828
  Prefactor  = 0.000100001
  Normalizat = 1.33678
  Prefactor  = 0.890951
 **********
 **   18 **HESSE 
 **********

 FCN=   6286.097     FROM HESSE     STATUS=OK           386 CALLS     2660 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10905E-03    8.3594        .65500E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .11020        10.703        .18134E-02   -1.5642    
   3  norm          .10000E-03    8.8229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.1239        .13685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7230        .14929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0817        10.559        .14103E-03   -1.5139    
   7  Prefactor     .10000E-03    8.1862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .77863E-01    1.5544        .12660E-02   -1.5652    
   9  norm          .10000E-03    1.1906        .84319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.817        8.3573        .97649E-04   -1.4888    
  11  Prefactor     .10000E-03    4.7179        .16802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.669        31.252        .76165E-04   -1.4655    
  13  norm          33.474        27.973        .69260E-04   -1.4550    
  14  Prefactor     9.3824        11.885        .13085E-03   -1.5095    
  15  norm          .10000E-03    1.8757        .10582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    27.637        .26183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10030E-03    113.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2193        7.2638        .17578E-03   -1.5251    
  19  norm          .65965        3.5011        .21007E-02   -1.5546    
  20  norm          8.3683        8.5471        .13860E-03   -1.5129    
  21  Prefactor     .10000E-03    11.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3368        .28951        .32222E-03   -.82475    
  23  Prefactor     .89095        .14718        .20012E-03   -.96458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66087e-08
Minuit parameter uncertainties:
  1  0.0173952
  2  2.1714
  3  0.000327471
  4  6.20145e-07
  5  4.69516e-06
  6  10.5615
  7  0.0001854
  8  0.695368
  9  6.12192e-07
  10  8.3579
  11  3.98159e-06
  12  31.2704
  13  27.9843
  14  11.8878
  15  1.50898e-06
  16  0.00118393
  17  0.0116309
  18  7.26506
  19  3.03943
  20  8.5483
  21  0.000222226
  22  0.289863
  23  0.147246
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.682e+01  8.358e+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:  8.910e-01  1.472e-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.337e+00  2.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.99
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 5.09e-08
Energy Flux (Fixed Index): 3.69e-05 +/- 1.83e-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) = 6284.61393862
delta logL = 1.48271275201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6284.40465336
delta logL = 1.69199801269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8378       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2303       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88402       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=   6284.405     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      217 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8378        6.2825        .31940E-02   -.54245E-03
   2  alpha         1.2304        .37999        .29179       -.37049E-04
   3  Normalizat    1.3978        .23486        .71501E-01    .82522E-05
   4  Prefactor     .88404        .12261        .44801E-01    .66992E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.83775
  alpha      = 1.2304
  Normalizat = 1.39776
  Prefactor  = 0.884044
 **********
 **   18 **HESSE 
 **********

 FCN=   6284.405     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8378        8.9747        .12776E-03   -1.5081    
   2  alpha         1.2304        .56265        .12370E-01   -.53268    
   3  Normalizat    1.3978        .27511        .31636E-03   -.80693    
   4  Prefactor     .88404        .14387        .20093E-03   -.96701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19183e-10
Minuit parameter uncertainties:
  1  8.97597
  2  0.569257
  3  0.2754
  4  0.143936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797754': 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) = 6284.40465333
delta logL = 1.69199803636

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  9.838e+00  8.976e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.230e+00  5.693e-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.840e-01  1.439e-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.398e+00  2.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.35
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.23 +/- 0.57
Photon Flux (Free Index): 2.85e-08 +/- 2.59e-08
Energy Flux (Free Index): 6.68e-05 +/- 5.68e-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/797754/cmap_HighResolution_323568001_323827201_4FGL_J1337.6-1257_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='6.68e-05', photon_flux_error='5.09e-08', dlogl='1.69e+00', energy_flux='3.69e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2021-09-08 04:49:00.519143', photon_index_error2='0.57', photon_index2='1.23', ts='11.99', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='5.68e-05', EG='1.34', time_epoch_completed='1631101740.52', return_code='0', job_id='797754', GAL2='0.88', EG2='1.40', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='2.59e-08', ts2='15.35', photon_index='2.30' WHERE bin_id='325' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:49:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 797754: <4FGL_J1337.6-1257_daily_bin325> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin325> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 04:35:27 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:36:58 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:36:58 2021
Terminated at Wed Sep  8 04:49:01 2021
Results reported at Wed Sep  8 04:49:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin325 204.424 -12.9517 323568001 323827201 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 :                                   559.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            814 sec.

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

