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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin975
RA = 204.424, Dec = -12.9517
tmin = 492048001, tmax = 492307201
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='803510', job_status='RUN', time_executed='2021-09-08 04:54:49.877301', time_epoch_executed='1631102089.88' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803510

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803510/ft1_4FGL_J1337.6-1257_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803510/ft2_4FGL_J1337.6-1257_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803510/ft1_4FGL_J1337.6-1257_daily_bin975.fits outfile=/scratch/kocevski/803510/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin975.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=492048001.0 tmax=492307201.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.71
user 3.51
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803510/ft1_filtered_4FGL_J1337.6-1257_daily_bin975.fits" evtable="EVENTS" scfile=/scratch/kocevski/803510/ft2_4FGL_J1337.6-1257_daily_bin975.fits sctable="SC_DATA" outfile=/scratch/kocevski/803510/ltcube_492048001_492307201_4FGL_J1337.6-1257_daily_bin975.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/803510/ft2_4FGL_J1337.6-1257_daily_bin975.fits
.....................!
real 17.83
user 17.41
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803510/ft1_filtered_4FGL_J1337.6-1257_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/803510/ft2_4FGL_J1337.6-1257_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/803510/ltcube_492048001_492307201_4FGL_J1337.6-1257_daily_bin975.fits outfile=/scratch/kocevski/803510/expmap_492048001_492307201_4FGL_J1337.6-1257_daily_bin975.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/803510/ltcube_492048001_492307201_4FGL_J1337.6-1257_daily_bin975.fits
.....................!
real 192.47
user 186.18
sys 5.57

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/803510/ft1_filtered_4FGL_J1337.6-1257_daily_bin975.fits scfile=/scratch/kocevski/803510/ft2_4FGL_J1337.6-1257_daily_bin975.fits outfile=/scratch/kocevski/803510/cmap_492048001_492307201_4FGL_J1337.6-1257_daily_bin975.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803510/ft1_filtered_4FGL_J1337.6-1257_daily_bin975.fits scfile=/scratch/kocevski/803510/ft2_4FGL_J1337.6-1257_daily_bin975.fits outfile=/scratch/kocevski/803510/cmap_HighResolution_492048001_492307201_4FGL_J1337.6-1257_daily_bin975.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.61
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1891       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.3352       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5385       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6347       1.0000         .10000E-03   10000.    
     9 'norm      '    9.8543       1.0000         .10000E-03   10000.    
    10 'norm      '    8.8127       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.246       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3104       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.849       1.0000         .10000E-03   10000.    
    18 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    39.935       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0142       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0760       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=   5357.787     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2474 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1895        5.7523        .19523E-07   -.20820E-05
   2  norm          .10000E-03    .88038       -.14051E-07** at limit **
   3  norm          .10000E-03    5.0019       -.71343E-08** at limit **
   4  norm          6.3352        9.1830        .31828E-07    .96451E-07
   5  Prefactor     8.5379        12.096        .34553E-06   -.94138E-05
   6  Prefactor     .10000E-03    7.4984       -.21857E-06** at limit **
   7  Prefactor     .10000E-03    26.221       -.71074E-06** at limit **
   8  norm          2.6346        2.4624       -.35554E-07   -.12770E-04
   9  norm          9.8512        6.4648        .11015E-05   -.58854E-04
  10  norm          8.8119        11.721       -.11969E-06   -.17428E-04
  11  Prefactor     .10000E-03    5.6304       -.53745E-07** at limit **
  12  Prefactor     10.247        17.847       -.11112E-07    .14069E-05
  13  norm          .10000E-03    30.511       -.10992E-05** at limit **
  14  Prefactor     .10000E-03    2.7801       -.23907E-07** at limit **
  15  norm          .10000E-03    1.4782       -.16095E-07** at limit **
  16  Prefactor     1.3095        7.4474        .35414E-05   -.94536E-05
  17  Prefactor     28.846        46.391       -.18391E-06    .33710E-05
  18  norm          .10000E-03    14.967       -.32294E-06** at limit **
  19  norm          .10000E-03    2.6098       -.69365E-07** at limit **
  20  norm          39.933        22.375        .23191E-06   -.65310E-05
  21  Prefactor     .10000E-03    86.416        .57880E-06** at limit **
  22  Normalizat    1.0141        .29224        .17656E-07    .75155E-05
  23  Prefactor     1.0760        .14247        .14210E-06    .76167E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.18949
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.33523
  Prefactor  = 8.53788
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.63465
  norm       = 9.8512
  norm       = 8.81187
  Prefactor  = 0.0001
  Prefactor  = 10.2474
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.30954
  Prefactor  = 28.8463
  norm       = 0.0001
  norm       = 0.0001
  norm       = 39.9332
  Prefactor  = 0.0001
  Normalizat = 1.01415
  Prefactor  = 1.07596
 **********
 **   18 **HESSE 
 **********

 FCN=   5357.787     FROM HESSE     STATUS=OK           368 CALLS     2842 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1895        5.7283        .27462E-03   -1.5412    
   2  norm          .10000E-03    .89114        .67053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.0030        .15989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.3352        9.1782        .79736E-03   -1.5205    
   5  Prefactor     8.5379        12.089        .68592E-03   -1.5123    
   6  Prefactor     .10000E-03    7.5455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6346        2.4593        .10707E-03   -1.5383    
   9  norm          9.8512        6.4592        .12210E-03   -1.5080    
  10  norm          8.8119        11.722        .13502E-03   -1.5114    
  11  Prefactor     .10000E-03    5.6427        .16962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.247        17.848        .12518E-03   -1.5068    
  13  norm          .10000E-03    30.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7831        .11919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4800        .86906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3095        7.4796        .18789E-02   -1.5479    
  17  Prefactor     28.846        46.419        .74592E-04   -1.4633    
  18  norm          .10000E-03    15.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.6332        .11544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          39.933        22.357        .63429E-04   -1.4443    
  21  Prefactor     .10000E-03    86.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0141        .33527        .19306E-02   -.92558    
  23  Prefactor     1.0760        .16511        .18726E-03   -.90238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64798e-09
Minuit parameter uncertainties:
  1  5.72969
  2  1.00887e-06
  3  1.05391e-06
  4  9.18025
  5  12.0921
  6  3.31508e-05
  7  0.000244574
  8  2.45942
  9  6.4597
  10  11.7251
  11  9.70824e-06
  12  17.857
  13  0.000248856
  14  3.53241e-06
  15  2.78741e-06
  16  6.26028
  17  46.4776
  18  5.97914e-05
  19  5.53155e-06
  20  22.3612
  21  2.94879e-05
  22  0.335975
  23  0.165189
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  8.812e+00  1.173e+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:  1.076e+00  1.652e-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.014e+00  3.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 204.424 -12.952
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 5.36e-08 +/- 7.14e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 2.57e-05

TS (Fixed Index): 1.03
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 1.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803510/likelihoodResults_492048001_492307201_4FGL_J1337.6-1257_daily_bin975.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5357.59239766
delta logL = 0.194736909044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5357.58671115
delta logL = 0.200423418069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7824       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9003       1.0000          .0000       5.0000    
     3 'Normalizat'    .97557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0874       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=   5357.587     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      283 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7849        10.244        .15407E-03   -.60316E-03
   2  alpha         2.9008        1.0679        .15219E-01   -.60916E-04
   3  Normalizat    .97533        .33572        .39272E-03    .58666E-03
   4  Prefactor     1.0874        .16544        .18636E-03    .13715E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 6.78491
  alpha      = 2.90081
  Normalizat = 0.975331
  Prefactor  = 1.0874
 **********
 **   18 **HESSE 
 **********

 FCN=   5357.587     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7849        9.2526        .61627E-05   -1.5187    
   2  alpha         2.9008        .96919        .60877E-03    .16102    
   3  Normalizat    .97533        .33551        .78544E-04   -.93861    
   4  Prefactor     1.0874        .16529        .37271E-04   -.89870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97682e-09
Minuit parameter uncertainties:
  1  9.25452
  2  0.996016
  3  0.336234
  4  0.165371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803510': 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) = 5357.58670989
delta logL = 0.200424677464

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  6.785e+00  9.255e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.901e+00  9.960e-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.087e+00  1.654e-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:  9.753e-01  3.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 204.424 -12.952
Photon Index (Free Index): 2.90 +/- 1.00
Photon Flux (Free Index): 8.97e-08 +/- 9.39e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.97e-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/803510/cmap_HighResolution_492048001_492307201_4FGL_J1337.6-1257_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.71e-05', comment='SUCCESS', photon_flux='5.36e-08', energy_flux2='2.05e-05', photon_flux_error='7.14e-08', dlogl='2.00e-01', energy_flux='1.93e-05', photon_flux2='8.97e-08', job_status='DONE', time_completed='2021-09-08 05:04:46.213255', photon_index_error2='1.00', photon_index2='2.90', ts='1.03', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.86e-07', energy_flux_error2='1.97e-05', EG='1.01', time_epoch_completed='1631102686.21', return_code='0', job_id='803510', GAL2='1.09', EG2='0.98', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='9.39e-08', ts2='1.46', photon_index='2.30' WHERE bin_id='975' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:04:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 803510: <4FGL_J1337.6-1257_daily_bin975> in cluster <slac> Done

Job <4FGL_J1337.6-1257_daily_bin975> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 04:50:34 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 04:54:31 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:54:31 2021
Terminated at Wed Sep  8 05:04:47 2021
Results reported at Wed Sep  8 05:04:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin975 204.424 -12.9517 492048001 492307201 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 :                                   587.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            853 sec.

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

