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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin504
RA = 204.424, Dec = -12.9517
tmin = 369964801, tmax = 370224001
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='799323', job_status='RUN', time_executed='2021-09-08 04:44:52.818504', time_epoch_executed='1631101492.82' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799323

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799323/ft1_4FGL_J1337.6-1257_daily_bin504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799323/ft2_4FGL_J1337.6-1257_daily_bin504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799323/ft1_4FGL_J1337.6-1257_daily_bin504.fits outfile=/scratch/kocevski/799323/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin504.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=369964801.0 tmax=370224001.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 7.79
user 7.45
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799323/ft1_filtered_4FGL_J1337.6-1257_daily_bin504.fits" evtable="EVENTS" scfile=/scratch/kocevski/799323/ft2_4FGL_J1337.6-1257_daily_bin504.fits sctable="SC_DATA" outfile=/scratch/kocevski/799323/ltcube_369964801_370224001_4FGL_J1337.6-1257_daily_bin504.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/799323/ft2_4FGL_J1337.6-1257_daily_bin504.fits
.....................!
real 15.11
user 14.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799323/ft1_filtered_4FGL_J1337.6-1257_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/799323/ft2_4FGL_J1337.6-1257_daily_bin504.fits sctable="SC_DATA" expcube=/scratch/kocevski/799323/ltcube_369964801_370224001_4FGL_J1337.6-1257_daily_bin504.fits outfile=/scratch/kocevski/799323/expmap_369964801_370224001_4FGL_J1337.6-1257_daily_bin504.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/799323/ltcube_369964801_370224001_4FGL_J1337.6-1257_daily_bin504.fits
.....................!
real 191.78
user 186.34
sys 5.03

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/799323/ft1_filtered_4FGL_J1337.6-1257_daily_bin504.fits scfile=/scratch/kocevski/799323/ft2_4FGL_J1337.6-1257_daily_bin504.fits outfile=/scratch/kocevski/799323/cmap_369964801_370224001_4FGL_J1337.6-1257_daily_bin504.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799323/ft1_filtered_4FGL_J1337.6-1257_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/799323/ft2_4FGL_J1337.6-1257_daily_bin504.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799323/Model_4FGL_J1337.6-1257_daily_bin504.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/799323/ft1_filtered_4FGL_J1337.6-1257_daily_bin504.fits.....................!
real 47.31
user 45.94
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    28.217       1.0000         .10000E-03   10000.    
     4 'norm      '    13.642       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9638       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.4054       1.0000         .10000E-03   10000.    
     9 'norm      '    .17058E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.4606       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7354       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.417       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .59527       1.0000         .10000E-03   10000.    
    20 'norm      '    21.487       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1561       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1823       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=   5513.771     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2517 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9780        .30647E-06** at limit **
   2  norm          .10000E-03    2.4774        .24031E-06** at limit **
   3  norm          28.218        15.976        .95926E-07   -.34987E-04
   4  norm          13.642        11.491       -.10675E-06   -.22048E-04
   5  Prefactor     .10000E-03    18.921        .12397E-06** at limit **
   6  Prefactor     3.9624        8.4586        .76955E-05   -.88988E-04
   7  Prefactor     .10000E-03    31.891        .64284E-06** at limit **
   8  norm          4.4054        2.4426        .57863E-07   -.29022E-03
   9  norm          .10008E-03    3.2600        .18074E-05** at limit **
  10  norm          9.4556        7.9361       -.18485E-06   -.57277E-03
  11  Prefactor     .10000E-03    6.6617       -.30191E-06** at limit **
  12  Prefactor     1.6735        163.26       -.90548E-05   -.10862E-03
  13  norm          .10000E-03    17.014       -.26593E-06** at limit **
  14  Prefactor     .10000E-03    6.2804       -.66786E-06** at limit **
  15  norm          .10000E-03    3.3148        .81237E-08** at limit **
  16  Prefactor     .10000E-03    7.0572        .40966E-06** at limit **
  17  Prefactor     70.399        76.935        .56429E-06   -.10710E-03
  18  norm          .10000E-03    4.6864        .16215E-06** at limit **
  19  norm          .59615        3.2585        .50674E-06    .36889E-04
  20  norm          21.486        13.704       -.31269E-06   -.13266E-03
  21  Prefactor     .10000E-03    23.334        .65634E-06** at limit **
  22  Normalizat    1.1561        .30068       -.35905E-05   -.31548E-03
  23  Prefactor     1.1822        .15242       -.69073E-06   -.58799E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 28.2176
  norm       = 13.6415
  Prefactor  = 0.0001
  Prefactor  = 3.96243
  Prefactor  = 0.0001
  norm       = 4.40544
  norm       = 0.000100084
  norm       = 9.45558
  Prefactor  = 0.0001
  Prefactor  = 1.67352
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.3992
  norm       = 0.0001
  norm       = 0.596145
  norm       = 21.4855
  Prefactor  = 0.0001
  Normalizat = 1.15608
  Prefactor  = 1.18223
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.771     FROM HESSE     STATUS=OK           366 CALLS     2883 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.5539        .22827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          28.218        15.974        .75420E-04   -1.4645    
   4  norm          13.642        11.491        .10845E-03   -1.4969    
   5  Prefactor     .10000E-03    19.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9624        8.4433        .10130E-02   -1.5310    
   7  Prefactor     .10000E-03    32.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.4054        2.4488        .81076E-04   -1.5288    
   9  norm          .10008E-03    13.326        .23907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.4556        7.7705        .13029E-03   -1.5093    
  11  Prefactor     .10000E-03    6.6705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6735        169.39        .31858E-02   -1.5449    
  13  norm          .10000E-03    17.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.2927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3301        .13198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     70.399        76.971        .47837E-04   -1.4028    
  18  norm          .10000E-03    4.7030        .15697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .59615        5.9175        .24166E-02   -1.5554    
  20  norm          21.486        13.572        .86409E-04   -1.4781    
  21  Prefactor     .10000E-03    23.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1561        .33769        .37987E-03   -.87971    
  23  Prefactor     1.1822        .17343        .20104E-03   -.86880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34889e-09
Minuit parameter uncertainties:
  1  7.19803e-06
  2  9.99443e-06
  3  15.976
  4  11.4924
  5  0.000170589
  6  8.44581
  7  1.54068e-05
  8  2.44885
  9  0.00211503
  10  7.77133
  11  7.27371e-06
  12  33.7711
  13  0.000129181
  14  4.14872e-05
  15  6.82971e-06
  16  3.05563e-05
  17  77.08
  18  7.68823e-06
  19  3.7566
  20  13.5743
  21  0.000178047
  22  0.338322
  23  0.173512
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  9.456e+00  7.771e+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.182e+00  1.735e-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.156e+00  3.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.08
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 5.76e-08 +/- 4.73e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.71e-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) = 5513.18587581
delta logL = 0.584789495924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5512.94261673
delta logL = 0.828048577779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7981       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0310       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1767       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=   5512.943     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      213 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7981        3.9401        .51781E-02    .75287E-03
   2  alpha         1.0310        .52619        .41570       -.57285E-04
   3  Normalizat    1.1978        .28092        .84473E-01    .43733E-05
   4  Prefactor     1.1767        .15099        .35207E-01    .33173E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.79811
  alpha      = 1.031
  Normalizat = 1.19775
  Prefactor  = 1.17668
 **********
 **   18 **HESSE 
 **********

 FCN=   5512.943     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7981        5.5859        .13516E-03   -1.5318    
   2  alpha         1.0310        .76771        .17595E-01   -.62809    
   3  Normalizat    1.1978        .31910        .37402E-03   -.86672    
   4  Prefactor     1.1767        .17195        .20151E-03   -.87052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42885e-10
Minuit parameter uncertainties:
  1  5.58671
  2  0.787443
  3  0.319617
  4  0.172034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799323': 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) = 5512.94261673
delta logL = 0.828048580159

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  3.798e+00  5.587e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.031e+00  7.874e-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.177e+00  1.720e-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.198e+00  3.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.68
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 1.03 +/- 0.79
Photon Flux (Free Index): 1.15e-08 +/- 1.43e-08
Energy Flux (Free Index): 4.29e-05 +/- 6.12e-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/799323/cmap_HighResolution_369964801_370224001_4FGL_J1337.6-1257_daily_bin504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.76e-08', energy_flux2='4.29e-05', photon_flux_error='4.73e-08', dlogl='8.28e-01', energy_flux='2.07e-05', photon_flux2='1.15e-08', job_status='DONE', time_completed='2021-09-08 04:54:15.583892', photon_index_error2='0.79', photon_index2='1.03', ts='7.08', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='6.12e-05', EG='1.16', time_epoch_completed='1631102055.58', return_code='0', job_id='799323', GAL2='1.18', EG2='1.20', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='1.43e-08', ts2='8.68', photon_index='2.30' WHERE bin_id='504' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:54:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 799323: <4FGL_J1337.6-1257_daily_bin504> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin504> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:40:40 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:40:48 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:40:48 2021
Terminated at Wed Sep  8 04:54:16 2021
Results reported at Wed Sep  8 04:54:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin504 204.424 -12.9517 369964801 370224001 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            816 sec.

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

