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


Performing analysis on: 4FGL_J1337.9-1956_daily_bin307
RA = 204.488, Dec = -19.945
tmin = 318902401, tmax = 319161601
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='809530', job_status='RUN', time_executed='2021-09-08 05:13:43.623368', time_epoch_executed='1631103223.62' WHERE source_name='4FGL J1337.9-1956' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809530

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809530/ft1_4FGL_J1337.9-1956_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809530/ft2_4FGL_J1337.9-1956_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809530/ft1_4FGL_J1337.9-1956_daily_bin307.fits outfile=/scratch/kocevski/809530/ft1_filteredMKT_4FGL_J1337.9-1956_daily_bin307.fits ra=204.488 dec=-19.945 rad=12.0 tmin=318902401.0 tmax=319161601.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.44
user 3.18
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/809530/ft2_4FGL_J1337.9-1956_daily_bin307.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809530/ft2_4FGL_J1337.9-1956_daily_bin307.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/809530/ft1_filteredMKT_4FGL_J1337.9-1956_daily_bin307.fits evtable="EVENTS" outfile="/scratch/kocevski/809530/ft1_filtered_4FGL_J1337.9-1956_daily_bin307.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809530/ft1_filtered_4FGL_J1337.9-1956_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/809530/ft2_4FGL_J1337.9-1956_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/809530/ltcube_318902401_319161601_4FGL_J1337.9-1956_daily_bin307.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/809530/ft2_4FGL_J1337.9-1956_daily_bin307.fits
.....................!
real 16.89
user 16.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809530/ft1_filtered_4FGL_J1337.9-1956_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/809530/ft2_4FGL_J1337.9-1956_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/809530/ltcube_318902401_319161601_4FGL_J1337.9-1956_daily_bin307.fits outfile=/scratch/kocevski/809530/expmap_318902401_319161601_4FGL_J1337.9-1956_daily_bin307.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/809530/ltcube_318902401_319161601_4FGL_J1337.9-1956_daily_bin307.fits
.....................!
real 193.46
user 187.35
sys 5.33

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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J1337.9-1956 @ 204.488 -19.945

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/809530/ft1_filtered_4FGL_J1337.9-1956_daily_bin307.fits scfile=/scratch/kocevski/809530/ft2_4FGL_J1337.9-1956_daily_bin307.fits outfile=/scratch/kocevski/809530/cmap_318902401_319161601_4FGL_J1337.9-1956_daily_bin307.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.488 yref=-19.945 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809530/ft1_filtered_4FGL_J1337.9-1956_daily_bin307.fits scfile=/scratch/kocevski/809530/ft2_4FGL_J1337.9-1956_daily_bin307.fits outfile=/scratch/kocevski/809530/cmap_HighResolution_318902401_319161601_4FGL_J1337.9-1956_daily_bin307.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.488 yref=-19.945 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809530/ft1_filtered_4FGL_J1337.9-1956_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/809530/ft2_4FGL_J1337.9-1956_daily_bin307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809530/Model_4FGL_J1337.9-1956_daily_bin307.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/809530/ft1_filtered_4FGL_J1337.9-1956_daily_bin307.fits.....................!
real 57.28
user 55.48
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809530/ft1_filtered_4FGL_J1337.9-1956_daily_bin307.fits', '/scratch/kocevski/809530/ft2_4FGL_J1337.9-1956_daily_bin307.fits', expMap='/scratch/kocevski/809530/expmap_318902401_319161601_4FGL_J1337.9-1956_daily_bin307.fits', expCube='/scratch/kocevski/809530/ltcube_318902401_319161601_4FGL_J1337.9-1956_daily_bin307.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809530/Model_4FGL_J1337.9-1956_daily_bin307.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1337.9-1956'

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.144e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.488e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/809530/ft1_filtered_4FGL_J1337.9-1956_daily_bin307.fits
Spacecraft file(s): /scratch/kocevski/809530/ft2_4FGL_J1337.9-1956_daily_bin307.fits
Exposure map: /scratch/kocevski/809530/expmap_318902401_319161601_4FGL_J1337.9-1956_daily_bin307.fits
Exposure cube: /scratch/kocevski/809530/ltcube_318902401_319161601_4FGL_J1337.9-1956_daily_bin307.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809530/Model_4FGL_J1337.9-1956_daily_bin307.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) = 6624.28334422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    185.73       1.0000         .10000E-03   10000.    
     2 'norm      '    .12109E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .53013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10808E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0119       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.721       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .47807       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.804       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.711       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.2699       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6716       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .74952       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6624.154     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     2655 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     185.63        92.802       -.10653E-05    .23589E-04
   2  norm          .10000E-03    12.017        .57871E-06** at limit **
   3  norm          .10000E-03    12.938       -.56216E-05** at limit **
   4  Prefactor     .10000E-03    2.7985        .24319E-06** at limit **
   5  norm          1.0097        2.5154       -.56495E-06    .98212E-04
   6  Prefactor     .10000E-03    3.1885        .83855E-07** at limit **
   7  Prefactor     41.724        15.510        .12327E-06   -.77078E-04
   8  Prefactor     .10000E-03    8.2060        .83850E-07** at limit **
   9  norm          .10000E-03    2.2446        .94626E-07** at limit **
  10  norm          .45848        4.3015       -.88584E-06    .14188E-03
  11  Prefactor     .10000E-03    21.230       -.77151E-06** at limit **
  12  Prefactor     15.824        21.051       -.39441E-06    .25641E-05
  13  Prefactor     .10000E-03    6.4173        .45550E-06** at limit **
  14  Prefactor     27.714        16.288        .35880E-06    .67574E-04
  15  norm          .10000E-03    5.3050       -.14187E-06** at limit **
  16  norm          9.2742        16.401        .17030E-06   -.11619E-04
  17  Prefactor     .10000E-03    2.2100        .10701E-06** at limit **
  18  Prefactor     .10000E-03    67.650        .37000E-06** at limit **
  19  norm          .10000E-03    3.8904       -.16791E-06** at limit **
  20  Prefactor     .10000E-03    4.1540        .61888E-06** at limit **
  21  norm          .10000E-03    2.2461       -.20988E-07** at limit **
  22  Prefactor     .10000E-03    19.070        .12064E-05** at limit **
  23  Prefactor     .10000E-03    12.046       -.16935E-06** at limit **
  24  Prefactor     .10000E-03    8.3765       -.75124E-07** at limit **
  25  Normalizat    1.6714        .26581       -.66501E-06   -.19770E-04
  26  Prefactor     .74942        .11413       -.76109E-06   -.13464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 185.627
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00973
  Prefactor  = 0.0001
  Prefactor  = 41.7241
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.458476
  Prefactor  = 0.0001
  Prefactor  = 15.8244
  Prefactor  = 0.0001
  Prefactor  = 27.7139
  norm       = 0.0001
  norm       = 9.27421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.67136
  Prefactor  = 0.74942
 **********
 **   18 **HESSE 
 **********

 FCN=   6624.154     FROM HESSE     STATUS=OK           450 CALLS     3105 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     185.63        92.860        .14814E-03   -1.2975    
   2  norm          .10000E-03    12.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    12.999        .32523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8120        .13297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0097        2.4516        .19539E-03   -1.5507    
   6  Prefactor     .10000E-03    3.1926        .14195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.724        15.563        .62062E-04   -1.4415    
   8  Prefactor     .10000E-03    8.2233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.2835        .23713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .45848        25.264        .30524E-02   -1.5573    
  11  Prefactor     .10000E-03    21.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.824        21.047        .10075E-03   -1.4912    
  13  Prefactor     .10000E-03    6.4591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.714        16.390        .76104E-04   -1.4655    
  15  norm          .10000E-03    5.3761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.2742        16.402        .13163E-03   -1.5099    
  17  Prefactor     .10000E-03    2.2276        .11818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    68.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.8908        .15669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.3159        .32549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.2499        .11910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.3782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.6714        .31969        .31907E-03   -.73071    
  26  Prefactor     .74942        .13765        .20049E-03   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42252e-10
Minuit parameter uncertainties:
  1  92.9333
  2  4.93375e-05
  3  1.19699e-05
  4  1.49793e-06
  5  2.45186
  6  3.83256e-06
  7  15.5645
  8  1.73745e-05
  9  9.14629e-06
  10  6.80909
  11  0.000146394
  12  21.0571
  13  1.98819e-05
  14  16.3924
  15  5.20445e-05
  16  16.4104
  17  9.9062e-06
  18  0.00023984
  19  1.08207e-05
  20  3.71295e-05
  21  6.4824e-06
  22  2.69709e-05
  23  3.4051e-05
  24  1.22886e-05
  25  0.320088
  26  0.137713
Done.

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

Extracting fit parameters...

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.464e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.488e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
588    Prefactor:  7.494e-01  1.377e-01  0.000e+00  1.000e+01 ( 1.000e+00)
589        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
590        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  1.671e+00  3.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.488 -19.945
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809530/likelihoodResults_318902401_319161601_4FGL_J1337.9-1956_daily_bin307.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) = 6624.15380828
delta logL = -0.000223641023695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6624.15358468
delta logL = -3.89845808968e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5811       1.0000          .0000       10.000    
     3 'Normalizat'    1.6714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74942       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6624.154     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    696.21        .90712E-02** at limit **
   2  Index         2.5764        5.9217        .50000        .19236E-05
   3  Normalizat    1.6714        .40853E-01    .72119E-01   -.11190E-04
   4  Prefactor     .74942        .18175E-01    .43055E-01   -.10508E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.57642
  Normalizat = 1.67136
  Prefactor  = 0.74942
 **********
 **   18 **HESSE 
 **********

 FCN=   6624.154     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    323.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5764        8.6353        .50000       -.50604    
   3  Normalizat    1.6714        .30211        .31906E-03   -.73071    
   4  Prefactor     .74942        .13458        .20049E-03   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05265e-11
Minuit parameter uncertainties:
  1  3.215e-05
  2  17.3111
  3  0.302445
  4  0.134639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809530': 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) = 6624.15358467
delta logL = -3.29555405187e-08

Extracting fit parameters...

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.215e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.576e+00  1.731e+01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
588    Prefactor:  7.494e-01  1.346e-01  0.000e+00  1.000e+01 ( 1.000e+00)
589        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
590        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  1.671e+00  3.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.488 -19.945

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/809530/cmap_HighResolution_318902401_319161601_4FGL_J1337.9-1956_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-08 05:25:46.483116', job_id='809530', GAL2='0.75', fit_tolerance='1e-08', EG2='1.67', EG='1.67', time_epoch_completed='1631103946.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='-3.30e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='307' AND source_name='4FGL J1337.9-1956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:25:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 809530: <4FGL_J1337.9-1956_daily_bin307> in cluster <slac> Done

Job <4FGL_J1337.9-1956_daily_bin307> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 05:10:27 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:10:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 05:10:55 2021
Terminated at Wed Sep  8 05:25:47 2021
Results reported at Wed Sep  8 05:25:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.9-1956_daily_bin307 204.488 -19.945 318902401 319161601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1337.9-1956 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   719.62 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            920 sec.

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

