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


Performing analysis on: 4FGL_J1337.6-1257_daily_bin249
RA = 204.424, Dec = -12.9517
tmin = 303868801, tmax = 304128001
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='797643', job_status='RUN', time_executed='2021-09-08 04:39:41.466562', time_epoch_executed='1631101181.47' WHERE source_name='4FGL J1337.6-1257' and cadence='daily' and bin_id='249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/797643

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/797643/ft1_4FGL_J1337.6-1257_daily_bin249.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/797643/ft2_4FGL_J1337.6-1257_daily_bin249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/797643/ft1_4FGL_J1337.6-1257_daily_bin249.fits outfile=/scratch/kocevski/797643/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin249.fits ra=204.424 dec=-12.9517 rad=12.0 tmin=303868801.0 tmax=304128001.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.43
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/797643/ft2_4FGL_J1337.6-1257_daily_bin249.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/797643/ft1_filteredMKT_4FGL_J1337.6-1257_daily_bin249.fits evtable="EVENTS" outfile="/scratch/kocevski/797643/ft1_filtered_4FGL_J1337.6-1257_daily_bin249.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.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/797643/ft1_filtered_4FGL_J1337.6-1257_daily_bin249.fits" evtable="EVENTS" scfile=/scratch/kocevski/797643/ft2_4FGL_J1337.6-1257_daily_bin249.fits sctable="SC_DATA" outfile=/scratch/kocevski/797643/ltcube_303868801_304128001_4FGL_J1337.6-1257_daily_bin249.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/797643/ft2_4FGL_J1337.6-1257_daily_bin249.fits
.....................!
real 14.16
user 13.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/797643/ft1_filtered_4FGL_J1337.6-1257_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/797643/ft2_4FGL_J1337.6-1257_daily_bin249.fits sctable="SC_DATA" expcube=/scratch/kocevski/797643/ltcube_303868801_304128001_4FGL_J1337.6-1257_daily_bin249.fits outfile=/scratch/kocevski/797643/expmap_303868801_304128001_4FGL_J1337.6-1257_daily_bin249.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/797643/ltcube_303868801_304128001_4FGL_J1337.6-1257_daily_bin249.fits
.....................!
real 191.52
user 186.19
sys 4.87

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/797643/ft1_filtered_4FGL_J1337.6-1257_daily_bin249.fits scfile=/scratch/kocevski/797643/ft2_4FGL_J1337.6-1257_daily_bin249.fits outfile=/scratch/kocevski/797643/cmap_303868801_304128001_4FGL_J1337.6-1257_daily_bin249.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/797643/ft1_filtered_4FGL_J1337.6-1257_daily_bin249.fits scfile=/scratch/kocevski/797643/ft2_4FGL_J1337.6-1257_daily_bin249.fits outfile=/scratch/kocevski/797643/cmap_HighResolution_303868801_304128001_4FGL_J1337.6-1257_daily_bin249.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/797643/ft1_filtered_4FGL_J1337.6-1257_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/797643/ft2_4FGL_J1337.6-1257_daily_bin249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/797643/Model_4FGL_J1337.6-1257_daily_bin249.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/797643/ft1_filtered_4FGL_J1337.6-1257_daily_bin249.fits.....................!
real 58.58
user 56.91
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7240       1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.510       1.0000         .10000E-03   10000.    
     4 'norm      '    23.120       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.819       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.6638       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0198       1.0000         .10000E-03   10000.    
    10 'norm      '    .76373E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4544       1.0000         .10000E-03   10000.    
    12 'Prefactor '    49.931       1.0000         .10000E-03   10000.    
    13 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5096       1.0000         .10000E-03   10000.    
    15 'norm      '    .12276E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.771       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.9881       1.0000         .10000E-03   10000.    
    19 'norm      '    11.625       1.0000         .10000E-03   10000.    
    20 'norm      '    12.050       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.540       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1017       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0780       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=   7191.217     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2574 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7259        8.5807        .15930E-06   -.94344E-04
   2  norm          .10000E-03    1.1880       -.42234E-08** at limit **
   3  norm          13.509        11.012        .23548E-06   -.87387E-04
   4  norm          23.120        14.994        .20176E-06    .89674E-04
   5  Prefactor     .10000E-03    8.3299       -.39936E-07** at limit **
   6  Prefactor     16.829        13.260       -.35082E-07   -.20102E-04
   7  Prefactor     .10000E-03    16.805       -.15927E-06** at limit **
   8  norm          4.6631        1.9943        .50782E-07    .24965E-04
   9  norm          1.0179        3.0868        .79289E-06    .29777E-03
  10  norm          .85249E-01    5.8995       -.15821E-05    .62952E-03
  11  Prefactor     4.4206        18.594        .11646E-04   -.44540E-03
  12  Prefactor     49.930        37.763        .15175E-06   -.87527E-04
  13  norm          .10000E-03    10.992        .46907E-08** at limit **
  14  Prefactor     2.5150        22.625       -.84647E-05   -.30079E-03
  15  norm          .10000E-03    4.2301       -.12275E-06** at limit **
  16  Prefactor     16.775        8.9078        .11372E-06    .56054E-03
  17  Prefactor     .10000E-03    28.775       -.36602E-07** at limit **
  18  norm          3.9926        9.5183        .56410E-06    .67270E-04
  19  norm          11.625        4.6516       -.14309E-07   -.87363E-04
  20  norm          12.049        10.884       -.31268E-06   -.39212E-04
  21  Prefactor     24.580        29.824        .50135E-05    .71309E-03
  22  Normalizat    1.1018        .28089       -.28742E-06    .11057E-03
  23  Prefactor     1.0779        .13805       -.80103E-06    .27903E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.72586
  norm       = 0.0001
  norm       = 13.5085
  norm       = 23.1199
  Prefactor  = 0.0001
  Prefactor  = 16.8286
  Prefactor  = 0.0001
  norm       = 4.6631
  norm       = 1.01794
  norm       = 0.0852494
  Prefactor  = 4.42061
  Prefactor  = 49.93
  norm       = 0.0001
  Prefactor  = 2.51501
  norm       = 0.0001
  Prefactor  = 16.7751
  Prefactor  = 0.0001
  norm       = 3.99263
  norm       = 11.6249
  norm       = 12.0491
  Prefactor  = 24.5801
  Normalizat = 1.10176
  Prefactor  = 1.07791
 **********
 **   18 **HESSE 
 **********

 FCN=   7191.217     FROM HESSE     STATUS=OK           380 CALLS     2954 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7259        8.5856        .16789E-03   -1.5229    
   2  norm          .10000E-03    1.2126        .90240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.509        11.014        .54488E-03   -1.4973    
   4  norm          23.120        14.994        .83305E-04   -1.4746    
   5  Prefactor     .10000E-03    8.4144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.829        13.326        .97660E-04   -1.4887    
   7  Prefactor     .10000E-03    16.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.6631        1.9988        .73967E-04   -1.5276    
   9  norm          1.0179        2.9611        .22333E-03   -1.5506    
  10  norm          .85249E-01    6.1487        .57588E-01   -1.5650    
  11  Prefactor     4.4206        19.965        .95395E-03   -1.5287    
  12  Prefactor     49.930        37.666        .56752E-04   -1.4294    
  13  norm          .10000E-03    10.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5150        22.427        .25793E-03   -1.5391    
  15  norm          .10000E-03    4.3988        .34044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.775        8.8854        .97801E-04   -1.4889    
  17  Prefactor     .10000E-03    28.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.9926        9.4247        .20196E-03   -1.5308    
  19  norm          11.625        4.6631        .10563E-03   -1.5026    
  20  norm          12.049        10.904        .11540E-03   -1.5014    
  21  Prefactor     24.580        32.068        .80862E-04   -1.4716    
  22  Normalizat    1.1018        .32190        .39108E-03   -.89695    
  23  Prefactor     1.0779        .15860        .20716E-03   -.90176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42707e-09
Minuit parameter uncertainties:
  1  8.58745
  2  1.98424e-06
  3  11.0154
  4  14.9967
  5  1.24698e-05
  6  13.3284
  7  1.45704e-05
  8  1.99887
  9  2.96148
  10  1.4473
  11  18.7992
  12  37.6844
  13  1.83898e-06
  14  15.0279
  15  3.66049e-06
  16  8.88611
  17  4.53006e-06
  18  9.42816
  19  4.66325
  20  10.9054
  21  32.0908
  22  0.322477
  23  0.158671
Done.

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

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  8.525e-02  1.447e+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.078e+00  1.587e-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.102e+00  3.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.424 -12.952
Photon Flux Upper Limit: 9.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/797643/likelihoodResults_303868801_304128001_4FGL_J1337.6-1257_daily_bin249.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): 102
logL (Free Index) = 7191.21676635
delta logL = 2.36380401475e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7191.10462398
delta logL = 0.112144733696

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99694E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0918       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=   7191.105     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      430 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99472E-01    .23042        .53201E-03    .15619E-01
   2  alpha         5.0000        4.1636        .14221    ** at limit **
   3  Normalizat    1.0566        .30580        .39840E-03    .64491E-05
   4  Prefactor     1.0919        .15617        .20600E-03   -.99340E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0994725
  alpha      = 5
  Normalizat = 1.05664
  Prefactor  = 1.09192
 **********
 **   18 **HESSE 
 **********

 FCN=   7191.105     FROM HESSE     STATUS=OK            25 CALLS      455 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99472E-01    .22396        .10640E-03   -1.5645    
   2  alpha         5.0000        4.1405        .56882E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0566        .30525        .15936E-04   -.91157    
   4  Prefactor     1.0919        .15616        .82398E-05   -.89725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70928e-10
Minuit parameter uncertainties:
  1  0.223967
  2  0.000115994
  3  0.305762
  4  0.156223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/797643': 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) = 7191.10462264
delta logL = 0.112146074039

Extracting fit parameters...

4FGL J1337.6-1257
   Spectrum: LogParabola
263         norm:  9.947e-02  2.240e-01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  1.160e-04  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.092e+00  1.562e-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.057e+00  3.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.424 -12.952

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/797643/cmap_HighResolution_303868801_304128001_4FGL_J1337.6-1257_daily_bin249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-05', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-09-08 04:51:26.027889', job_id='797643', GAL2='1.09', fit_tolerance='1e-08', EG2='1.06', EG='1.10', time_epoch_completed='1631101886.03', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.12e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='249' AND source_name='4FGL J1337.6-1257' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 04:51:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 797643: <4FGL_J1337.6-1257_daily_bin249> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.6-1257_daily_bin249 204.424 -12.9517 303868801 304128001 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 :                                   702.30 sec.
    Max Memory :                                 1103 MB
    Average Memory :                             278.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            966 sec.

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

