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


Performing analysis on: 4FGL_J1337.9-1956_daily_bin309
RA = 204.488, Dec = -19.945
tmin = 319420801, tmax = 319680001
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='809533', job_status='RUN', time_executed='2021-09-08 05:11:15.069798', time_epoch_executed='1631103075.07' WHERE source_name='4FGL J1337.9-1956' and cadence='daily' and bin_id='309'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809533

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809533/ft1_4FGL_J1337.9-1956_daily_bin309.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809533/ft2_4FGL_J1337.9-1956_daily_bin309.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809533/ft1_4FGL_J1337.9-1956_daily_bin309.fits outfile=/scratch/kocevski/809533/ft1_filteredMKT_4FGL_J1337.9-1956_daily_bin309.fits ra=204.488 dec=-19.945 rad=12.0 tmin=319420801.0 tmax=319680001.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.47
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809533/ft2_4FGL_J1337.9-1956_daily_bin309.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/809533/ft1_filteredMKT_4FGL_J1337.9-1956_daily_bin309.fits evtable="EVENTS" outfile="/scratch/kocevski/809533/ft1_filtered_4FGL_J1337.9-1956_daily_bin309.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809533/ft1_filtered_4FGL_J1337.9-1956_daily_bin309.fits" evtable="EVENTS" scfile=/scratch/kocevski/809533/ft2_4FGL_J1337.9-1956_daily_bin309.fits sctable="SC_DATA" outfile=/scratch/kocevski/809533/ltcube_319420801_319680001_4FGL_J1337.9-1956_daily_bin309.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/809533/ft2_4FGL_J1337.9-1956_daily_bin309.fits
.....................!
real 15.02
user 14.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809533/ft1_filtered_4FGL_J1337.9-1956_daily_bin309.fits evtable="EVENTS" scfile=/scratch/kocevski/809533/ft2_4FGL_J1337.9-1956_daily_bin309.fits sctable="SC_DATA" expcube=/scratch/kocevski/809533/ltcube_319420801_319680001_4FGL_J1337.9-1956_daily_bin309.fits outfile=/scratch/kocevski/809533/expmap_319420801_319680001_4FGL_J1337.9-1956_daily_bin309.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/809533/ltcube_319420801_319680001_4FGL_J1337.9-1956_daily_bin309.fits
.....................!
real 194.07
user 188.08
sys 5.44

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/809533/ft1_filtered_4FGL_J1337.9-1956_daily_bin309.fits scfile=/scratch/kocevski/809533/ft2_4FGL_J1337.9-1956_daily_bin309.fits outfile=/scratch/kocevski/809533/cmap_319420801_319680001_4FGL_J1337.9-1956_daily_bin309.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809533/ft1_filtered_4FGL_J1337.9-1956_daily_bin309.fits scfile=/scratch/kocevski/809533/ft2_4FGL_J1337.9-1956_daily_bin309.fits outfile=/scratch/kocevski/809533/cmap_HighResolution_319420801_319680001_4FGL_J1337.9-1956_daily_bin309.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.74
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809533/ft1_filtered_4FGL_J1337.9-1956_daily_bin309.fits evtable="EVENTS" scfile=/scratch/kocevski/809533/ft2_4FGL_J1337.9-1956_daily_bin309.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809533/Model_4FGL_J1337.9-1956_daily_bin309.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/809533/ft1_filtered_4FGL_J1337.9-1956_daily_bin309.fits.....................!
real 64.11
user 62.38
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809533/ft1_filtered_4FGL_J1337.9-1956_daily_bin309.fits', '/scratch/kocevski/809533/ft2_4FGL_J1337.9-1956_daily_bin309.fits', expMap='/scratch/kocevski/809533/expmap_319420801_319680001_4FGL_J1337.9-1956_daily_bin309.fits', expCube='/scratch/kocevski/809533/ltcube_319420801_319680001_4FGL_J1337.9-1956_daily_bin309.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809533/Model_4FGL_J1337.9-1956_daily_bin309.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/809533/ft1_filtered_4FGL_J1337.9-1956_daily_bin309.fits
Spacecraft file(s): /scratch/kocevski/809533/ft2_4FGL_J1337.9-1956_daily_bin309.fits
Exposure map: /scratch/kocevski/809533/expmap_319420801_319680001_4FGL_J1337.9-1956_daily_bin309.fits
Exposure cube: /scratch/kocevski/809533/ltcube_319420801_319680001_4FGL_J1337.9-1956_daily_bin309.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809533/Model_4FGL_J1337.9-1956_daily_bin309.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) = 7960.29768401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.541       1.0000         .10000E-03   10000.    
     2 'norm      '    6.8661       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.677       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .28523       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11075E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4912       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.6986       1.0000         .10000E-03   10000.    
    16 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1430       1.0000         .10000E-03   10000.    
    21 'norm      '    15.074       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11214E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.841       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.687       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5094       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77459       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=   7960.295     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     3027 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     86.561        62.530        .10474E-04    .23724E-03
   2  norm          6.8652        7.8974       -.34991E-07   -.48985E-04
   3  norm          .10000E-03    2.2558        .14552E-06** at limit **
   4  Prefactor     .10000E-03    1.6825        .13299E-07** at limit **
   5  norm          .10000E-03    .78705        .23178E-07** at limit **
   6  Prefactor     .10000E-03    2.4403        .18423E-06** at limit **
   7  Prefactor     17.671        11.421       -.23324E-06   -.15728E-04
   8  Prefactor     .10000E-03    10.737       -.35647E-06** at limit **
   9  norm          .25996        .90703        .64503E-06   -.30299E-02
  10  norm          .10000E-03    1.9522       -.21534E-06** at limit **
  11  Prefactor     .10000E-03    3.2056       -.56722E-07** at limit **
  12  Prefactor     .10000E-03    22.420        .27046E-05** at limit **
  13  Prefactor     6.4886        7.3043        .75636E-06   -.41344E-03
  14  Prefactor     .10000E-03    4.6642       -.12010E-06** at limit **
  15  norm          4.6980        4.3922        .95615E-06   -.97799E-03
  16  norm          .10000E-03    19.620       -.52700E-05** at limit **
  17  Prefactor     .10000E-03    2.3400       -.38786E-06** at limit **
  18  Prefactor     .10000E-03    26.345        .75844E-05** at limit **
  19  norm          .10000E-03    6.3051       -.17639E-06** at limit **
  20  Prefactor     1.1434        3.7168        .12523E-05   -.19414E-03
  21  norm          15.074        7.9950        .23941E-06   -.18123E-03
  22  Prefactor     .10000E-03    33.412       -.56524E-05** at limit **
  23  Prefactor     12.848        16.381        .15593E-05    .63514E-04
  24  Prefactor     29.687        20.604        .31794E-07   -.18067E-04
  25  Normalizat    1.5093        .22390       -.21289E-05   -.60128E-04
  26  Prefactor     .77465        .99337E-01   -.34434E-06   -.19478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 86.561
  norm       = 6.86519
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6714
  Prefactor  = 0.0001
  norm       = 0.25996
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.48863
  Prefactor  = 0.0001
  norm       = 4.69804
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 1.14337
  norm       = 15.074
  Prefactor  = 0.000100001
  Prefactor  = 12.8483
  Prefactor  = 29.6872
  Normalizat = 1.50935
  Prefactor  = 0.77465
 **********
 **   18 **HESSE 
 **********

 FCN=   7960.295     FROM HESSE     STATUS=OK           460 CALLS     3487 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     86.561        62.806        .21593E-03   -1.3845    
   2  norm          6.8652        7.8995        .15311E-03   -1.5184    
   3  norm          .10000E-03    2.2652        .13073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6879        .11300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .79279        .77289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4438        .13612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.671        11.514        .95261E-04   -1.4867    
   8  Prefactor     .10000E-03    10.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .25996        1.4335        .57551E-01   -1.5606    
  10  norm          .10000E-03    1.9611        .12172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.2101        .15599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4886        7.3532        .78761E-03   -1.5198    
  14  Prefactor     .10000E-03    4.6924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.6980        4.5100        .89333E-03   -1.5274    
  16  norm          .10000E-03    19.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3553        .13305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.3443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1434        3.7577        .28750E-03   -1.5494    
  21  norm          15.074        8.0017        .51580E-03   -1.4931    
  22  Prefactor     .10000E-03    33.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.848        16.391        .11178E-03   -1.4991    
  24  Prefactor     29.687        20.611        .73533E-04   -1.4618    
  25  Normalizat    1.5093        .26854        .30807E-03   -.77516    
  26  Prefactor     .77465        .11885        .18958E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84073e-09
Minuit parameter uncertainties:
  1  62.854
  2  7.90072
  3  2.25187e-05
  4  9.39927e-06
  5  3.04908e-07
  6  6.32571e-06
  7  11.5157
  8  3.94281e-05
  9  1.22071
  10  2.93991e-06
  11  6.66469e-07
  12  0.00015015
  13  7.35421
  14  2.91129e-06
  15  4.51037
  16  0.000219892
  17  1.19562e-06
  18  0.000443034
  19  1.17988e-05
  20  3.75843
  21  8.00222
  22  0.000353587
  23  16.3967
  24  20.6156
  25  0.268794
  26  0.11889
Done.

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

Extracting fit parameters...

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  6.665e-07  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.747e-01  1.189e-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.509e+00  2.688e-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: 6.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809533/likelihoodResults_319420801_319680001_4FGL_J1337.9-1956_daily_bin309.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) = 7960.29685121
delta logL = -0.00147849516725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7960.2953723
delta logL = 4.20443029725e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4626       1.0000          .0000       10.000    
     3 'Normalizat'    1.5093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77465       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7960.295     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10465E-03    2.5559        .16028E-01** at limit **
   2  Index         2.3392        8.4670        .50000        .55438E-04
   3  Normalizat    1.5093        .46729E-02    .30807E-03   -.40962E-05
   4  Prefactor     .77465        .21557E-02    .18958E-03    .16305E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010465
  Index      = 2.33923
  Normalizat = 1.50935
  Prefactor  = 0.774652
 **********
 **   18 **HESSE 
 **********

 FCN=   7960.295     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10465E-03    47.882        .16796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3392        6.8038        .50000       -.56114    
   3  Normalizat    1.5093        .20461E-01    .12323E-04   -.77516    
   4  Prefactor     .77465        .94390E-02    .75832E-05   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.17953e-08
Minuit parameter uncertainties:
  1  0.0298675
  2  315.997
  3  0.0204611
  4  0.00943903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809533': 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): 102
logL (Free Index) = 7960.29537118
delta logL = 1.54136341735e-06

Extracting fit parameters...

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.047e-04  2.987e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.339e+00  3.160e+02  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.747e-01  9.439e-03  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.509e+00  2.046e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/809533/cmap_HighResolution_319420801_319680001_4FGL_J1337.9-1956_daily_bin309.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='6.01e-08', time_completed='2021-09-08 05:25:29.450821', job_id='809533', GAL2='0.77', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1631103929.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.54e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='309' AND source_name='4FGL J1337.9-1956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:25:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 809533: <4FGL_J1337.9-1956_daily_bin309> in cluster <slac> Done

Job <4FGL_J1337.9-1956_daily_bin309> 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) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:10:57 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:57 2021
Terminated at Wed Sep  8 05:25:29 2021
Results reported at Wed Sep  8 05:25:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.9-1956_daily_bin309 204.488 -19.945 319420801 319680001 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 :                                   846.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            902 sec.

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

