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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin1542
RA = 204.424, Dec = -12.9517
tmin = 639014401, tmax = 639273601
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='805411', job_status='RUN', time_executed='2021-09-08 04:58:31.962332', time_epoch_executed='1631102311.96' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='1542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805411/ft1_4FGL_J1337.6-1257_daily_bin1542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805411/ft2_4FGL_J1337.6-1257_daily_bin1542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805411/ft1_4FGL_J1337.6-1257_daily_bin1542.fits outfile=/scratch/kocevski/805411/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin1542.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=639014401.0 tmax=639273601.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.45
user 5.13
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805411/ft1_filtered_4FGL_J1337.6-1257_daily_bin1542.fits" evtable="EVENTS" scfile=/scratch/kocevski/805411/ft2_4FGL_J1337.6-1257_daily_bin1542.fits sctable="SC_DATA" outfile=/scratch/kocevski/805411/ltcube_639014401_639273601_4FGL_J1337.6-1257_daily_bin1542.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/805411/ft2_4FGL_J1337.6-1257_daily_bin1542.fits
.....................!
real 16.43
user 16.01
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805411/ft1_filtered_4FGL_J1337.6-1257_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/805411/ft2_4FGL_J1337.6-1257_daily_bin1542.fits sctable="SC_DATA" expcube=/scratch/kocevski/805411/ltcube_639014401_639273601_4FGL_J1337.6-1257_daily_bin1542.fits outfile=/scratch/kocevski/805411/expmap_639014401_639273601_4FGL_J1337.6-1257_daily_bin1542.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/805411/ltcube_639014401_639273601_4FGL_J1337.6-1257_daily_bin1542.fits
.....................!
real 193.09
user 187.50
sys 4.98

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/805411/ft1_filtered_4FGL_J1337.6-1257_daily_bin1542.fits scfile=/scratch/kocevski/805411/ft2_4FGL_J1337.6-1257_daily_bin1542.fits outfile=/scratch/kocevski/805411/cmap_639014401_639273601_4FGL_J1337.6-1257_daily_bin1542.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.57
user 0.40
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805411/ft1_filtered_4FGL_J1337.6-1257_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/805411/ft2_4FGL_J1337.6-1257_daily_bin1542.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805411/Model_4FGL_J1337.6-1257_daily_bin1542.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/805411/ft1_filtered_4FGL_J1337.6-1257_daily_bin1542.fits.....................!
real 47.59
user 46.17
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .12385E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9568       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.508       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.482       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3729       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.5657       1.0000         .10000E-03   10000.    
    15 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1441       1.0000         .10000E-03   10000.    
    17 'Prefactor '    163.19       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    27.517       1.0000         .10000E-03   10000.    
    20 'norm      '    2.1777       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80013       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1507       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=   5503.551     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2555 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    24.077        .17727E-04** at limit **
   2  norm          .10000E-03    2.2266       -.45297E-06** at limit **
   3  norm          .10000E-03    10.936        .86292E-05** at limit **
   4  norm          .10000E-03    13.547       -.95139E-05** at limit **
   5  Prefactor     6.9571        12.413       -.14851E-05   -.43267E-04
   6  Prefactor     22.508        13.633       -.86732E-06    .67494E-04
   7  Prefactor     .10000E-03    7.7476       -.21404E-05** at limit **
   8  norm          .10000E-03    .32383       -.24067E-07** at limit **
   9  norm          .10000E-03    1.7684       -.37470E-07** at limit **
  10  norm          14.485        9.2561        .73617E-08    .47826E-04
  11  Prefactor     .10000E-03    16.332       -.68861E-05** at limit **
  12  Prefactor     7.3311        26.796       -.85556E-04    .60416E-05
  13  norm          .10000E-03    11.912        .92904E-06** at limit **
  14  Prefactor     9.5665        12.079        .35448E-05    .18006E-03
  15  norm          .10000E-03    1.8877        .65123E-07** at limit **
  16  Prefactor     6.1436        6.9045       -.63871E-07   -.15841E-03
  17  Prefactor     163.16        94.079       -.23155E-04    .28881E-04
  18  norm          .10000E-03    6.0554        .39980E-06** at limit **
  19  norm          27.517        5.5667       -.22959E-06    .14317E-03
  20  norm          2.1770        6.5139       -.13589E-05   -.40532E-03
  21  Prefactor     .10000E-03    30.281       -.60273E-05** at limit **
  22  Normalizat    .80015        .29378        .16455E-05    .69587E-04
  23  Prefactor     1.1507        .15557        .47651E-05   -.23064E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.95707
  Prefactor  = 22.5076
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.4846
  Prefactor  = 0.0001
  Prefactor  = 7.33111
  norm       = 0.0001
  Prefactor  = 9.5665
  norm       = 0.0001
  Prefactor  = 6.14363
  Prefactor  = 163.16
  norm       = 0.0001
  norm       = 27.5166
  norm       = 2.17696
  Prefactor  = 0.0001
  Normalizat = 0.80015
  Prefactor  = 1.15066
 **********
 **   18 **HESSE 
 **********

 FCN=   5503.551     FROM HESSE     STATUS=OK           366 CALLS     2921 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.1414        .21473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    13.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9571        12.401        .15210E-03   -1.5180    
   6  Prefactor     22.508        13.664        .84428E-04   -1.4759    
   7  Prefactor     .10000E-03    7.7557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .32516        .41210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7774        .96224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.485        9.2398        .10525E-03   -1.4947    
  11  Prefactor     .10000E-03    16.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.3311        26.857        .14771E-03   -1.5166    
  13  norm          .10000E-03    11.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.5665        12.077        .12957E-03   -1.5089    
  15  norm          .10000E-03    1.8895        .99529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.1436        6.8887        .16196E-03   -1.5212    
  17  Prefactor     163.16        94.046        .15785E-03   -1.3146    
  18  norm          .10000E-03    6.1087        .17811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          27.517        5.5617        .74746E-04   -1.4658    
  20  norm          2.1770        6.4799        .27900E-03   -1.5413    
  21  Prefactor     .10000E-03    30.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .80015        .32136        .43011E-03   -1.0006    
  23  Prefactor     1.1507        .17110        .19820E-03   -.87864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03082e-09
Minuit parameter uncertainties:
  1  0.000459231
  2  8.64499e-05
  3  9.62388e-05
  4  3.28887e-05
  5  12.4055
  6  13.6658
  7  4.03368e-06
  8  1.57276e-06
  9  5.13647e-07
  10  9.24068
  11  6.62792e-05
  12  26.9017
  13  6.19908e-06
  14  12.08
  15  1.57558e-05
  16  6.88964
  17  94.1326
  18  1.28956e-05
  19  5.5618
  20  6.48199
  21  6.90219e-05
  22  0.322123
  23  0.171185
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.448e+01  9.241e+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:  1.151e+00  1.712e-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:  8.002e-01  3.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.99
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 8.82e-08 +/- 5.62e-08
Energy Flux (Fixed Index): 3.18e-05 +/- 2.03e-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) = 5503.54674002
delta logL = 0.00420313478025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5503.54594961
delta logL = 0.00499354016938

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.806       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2350       1.0000          .0000       5.0000    
     3 'Normalizat'    .80576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1489       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=   5503.546     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      232 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.806        236.12        .26023E-02   -.30080E-03
   2  alpha         2.2350        2.8769        .41448        .17551E-04
   3  Normalizat    .80565        .20720        .96773E-01    .24561E-04
   4  Prefactor     1.1489        .72445E-01    .35969E-01   -.18160E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 14.8059
  alpha      = 2.23503
  Normalizat = 0.80565
  Prefactor  = 1.14895
 **********
 **   18 **HESSE 
 **********

 FCN=   5503.546     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.806        9.9494        .10409E-03   -1.4938    
   2  alpha         2.2350        .69369        .14725E-01   -.10619    
   3  Normalizat    .80565        .31070        .42880E-03   -.99859    
   4  Prefactor     1.1489        .16810        .19833E-03   -.87917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83219e-11
Minuit parameter uncertainties:
  1  9.95046
  2  0.703019
  3  0.311388
  4  0.16818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805411': 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) = 5503.54594955
delta logL = 0.00499360557023

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  1.481e+01  9.950e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.235e+00  7.030e-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.149e+00  1.682e-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:  8.057e-01  3.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.99
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.24 +/- 0.70
Photon Flux (Free Index): 8.32e-08 +/- 7.17e-08
Energy Flux (Free Index): 3.23e-05 +/- 2.17e-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/805411/cmap_HighResolution_639014401_639273601_4FGL_J1337.6-1257_daily_bin1542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.82e-08', energy_flux2='3.23e-05', photon_flux_error='5.62e-08', dlogl='4.99e-03', energy_flux='3.18e-05', photon_flux2='8.32e-08', job_status='DONE', time_completed='2021-09-08 05:08:36.604865', photon_index_error2='0.70', photon_index2='2.24', ts='4.99', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='0.80', time_epoch_completed='1631102916.6', return_code='0', job_id='805411', GAL2='1.15', EG2='0.81', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='7.17e-08', ts2='4.99', photon_index='2.30' WHERE bin_id='1542' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:08:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 805411: <4FGL_J1337.6-1257_daily_bin1542> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin1542> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 04:55:55 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:57:39 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:57:39 2021
Terminated at Wed Sep  8 05:08:37 2021
Results reported at Wed Sep  8 05:08:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin1542 204.424 -12.9517 639014401 639273601 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 :                                   565.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            762 sec.

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

