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


Performing analysis on: 4FGL_J1337.9-1956_daily_bin1003
RA = 204.488, Dec = -19.945
tmin = 499305601, tmax = 499564801
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='812850', job_status='RUN', time_executed='2021-09-08 05:22:43.273079', time_epoch_executed='1631103763.27' WHERE source_name='4FGL J1337.9-1956' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812850

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812850/ft1_4FGL_J1337.9-1956_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812850/ft2_4FGL_J1337.9-1956_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812850/ft1_4FGL_J1337.9-1956_daily_bin1003.fits outfile=/scratch/kocevski/812850/ft1_filteredMKT_4FGL_J1337.9-1956_daily_bin1003.fits ra=204.488 dec=-19.945 rad=12.0 tmin=499305601.0 tmax=499564801.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 5.49
user 5.20
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/812850/ft2_4FGL_J1337.9-1956_daily_bin1003.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/812850/ft1_filteredMKT_4FGL_J1337.9-1956_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/812850/ft1_filtered_4FGL_J1337.9-1956_daily_bin1003.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812850/ft1_filtered_4FGL_J1337.9-1956_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/812850/ft2_4FGL_J1337.9-1956_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/812850/ltcube_499305601_499564801_4FGL_J1337.9-1956_daily_bin1003.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/812850/ft2_4FGL_J1337.9-1956_daily_bin1003.fits
.....................!
real 19.50
user 19.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812850/ft1_filtered_4FGL_J1337.9-1956_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/812850/ft2_4FGL_J1337.9-1956_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/812850/ltcube_499305601_499564801_4FGL_J1337.9-1956_daily_bin1003.fits outfile=/scratch/kocevski/812850/expmap_499305601_499564801_4FGL_J1337.9-1956_daily_bin1003.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/812850/ltcube_499305601_499564801_4FGL_J1337.9-1956_daily_bin1003.fits
.....................!
real 191.05
user 186.29
sys 4.24

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/812850/ft1_filtered_4FGL_J1337.9-1956_daily_bin1003.fits scfile=/scratch/kocevski/812850/ft2_4FGL_J1337.9-1956_daily_bin1003.fits outfile=/scratch/kocevski/812850/cmap_499305601_499564801_4FGL_J1337.9-1956_daily_bin1003.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812850/ft1_filtered_4FGL_J1337.9-1956_daily_bin1003.fits scfile=/scratch/kocevski/812850/ft2_4FGL_J1337.9-1956_daily_bin1003.fits outfile=/scratch/kocevski/812850/cmap_HighResolution_499305601_499564801_4FGL_J1337.9-1956_daily_bin1003.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/812850/ft1_filtered_4FGL_J1337.9-1956_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/812850/ft2_4FGL_J1337.9-1956_daily_bin1003.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/812850/Model_4FGL_J1337.9-1956_daily_bin1003.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/812850/ft1_filtered_4FGL_J1337.9-1956_daily_bin1003.fits.....................!
real 70.00
user 68.45
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.2383       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.2773       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.5445       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3804       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.218       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.939       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4538       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.096       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .16559       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.352       1.0000         .10000E-03   10000.    
    21 'norm      '    .25424E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97916       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2291       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=   8895.672     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     2645 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    55.910        .90712E-02** at limit **
   2  norm          .10002E-03    5.8871        .90712E-02** at limit **
   3  norm          9.2400        5.4280        .32964E-02   -.19964E-03
   4  Prefactor     .10000E-03    2.2758        .90712E-02** at limit **
   5  norm          5.2774        2.6728        .43741E-02    .25091E-02
   6  Prefactor     .10000E-03    3.3764        .90712E-02** at limit **
   7  Prefactor     .10002E-03    6.0911        .90712E-02** at limit **
   8  Prefactor     .10000E-03    7.8929        .90712E-02** at limit **
   9  norm          7.5423        3.8315        .36502E-02    .85220E-03
  10  norm          3.3798        5.6414        .55018E-02    .65015E-03
  11  Prefactor     14.218        10.735        .26556E-02   -.52346E-03
  12  Prefactor     25.939        24.045        .19664E-02   -.27708E-03
  13  Prefactor     .10000E-03    4.8260        .90712E-02** at limit **
  14  Prefactor     3.4514        8.5612        .54404E-02    .28540E-03
  15  norm          .10000E-03    2.5617        .90712E-02** at limit **
  16  norm          13.096        18.157        .27672E-02   -.81346E-05
  17  Prefactor     .10000E-03    2.5010        .90712E-02** at limit **
  18  Prefactor     .10001E-03    10.265        .90712E-02** at limit **
  19  norm          .19959        7.1074        .98194E-01    .48896E-03
  20  Prefactor     12.348        4.8882        .28495E-02   -.16599E-02
  21  norm          .10036E-03    3.8981        .65130E-01** at limit **
  22  Prefactor     .10006E-03    18.931        .90712E-02** at limit **
  23  Prefactor     .10002E-03    9.7024        .90712E-02** at limit **
  24  Prefactor     .10005E-03    111.27        .90712E-02** at limit **
  25  Normalizat    .97934        .24329        .91718E-01    .23550E-04
  26  Prefactor     1.2290        .11514        .33976E-01   -.20788E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  norm       = 0.000100018
  norm       = 9.23998
  Prefactor  = 0.0001
  norm       = 5.27736
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.000100003
  norm       = 7.54233
  norm       = 3.37978
  Prefactor  = 14.2185
  Prefactor  = 25.9391
  Prefactor  = 0.0001
  Prefactor  = 3.4514
  norm       = 0.0001
  norm       = 13.096
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.199588
  Prefactor  = 12.3482
  norm       = 0.000100357
  Prefactor  = 0.000100064
  Prefactor  = 0.000100015
  Prefactor  = 0.000100046
  Normalizat = 0.979335
  Prefactor  = 1.22905
 **********
 **   18 **HESSE 
 **********

 FCN=   8895.672     FROM HESSE     STATUS=OK           460 CALLS     3105 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    55.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10002E-03    6.0043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.2400        5.4155        .13186E-03   -1.5100    
   4  Prefactor     .10000E-03    2.2864        .13868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.2774        2.6731        .53229E-03   -1.5248    
   6  Prefactor     .10000E-03    3.3860        .16924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    6.1494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.9107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.5423        3.8247        .12011E-03   -1.5159    
  10  norm          3.3798        5.6103        .22007E-03   -1.5340    
  11  Prefactor     14.218        10.672        .10622E-03   -1.4954    
  12  Prefactor     25.939        24.021        .78655E-04   -1.4689    
  13  Prefactor     .10000E-03    4.8400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4514        8.4901        .21762E-03   -1.5336    
  15  norm          .10000E-03    2.6125        .14738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.096        18.161        .11069E-03   -1.4984    
  17  Prefactor     .10000E-03    2.5280        .14540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    10.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .19959        9.2055        .79912E-01   -1.5619    
  20  Prefactor     12.348        4.8979        .11398E-03   -1.5005    
  21  norm          .10036E-03    21.352        .35948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10006E-03    18.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    9.7243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10005E-03    114.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .97934        .27462        .40619E-03   -.93726    
  26  Prefactor     1.2290        .13129        .17938E-03   -.85442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24222e-08
Minuit parameter uncertainties:
  1  0.00202745
  2  0.000657053
  3  5.41582
  4  3.70241e-06
  5  2.67316
  6  3.84709e-05
  7  0.000751534
  8  0.00032888
  9  3.82479
  10  5.6112
  11  10.6736
  12  24.0295
  13  8.15009e-06
  14  8.49308
  15  3.34939e-05
  16  18.1684
  17  1.98378e-05
  18  0.000524232
  19  2.71071
  20  4.89801
  21  0.00552404
  22  0.0021976
  23  0.000774071
  24  0.00459199
  25  0.275013
  26  0.131329
Done.

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

Extracting fit parameters...

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.422e+01  1.067e+01  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:  1.229e+00  1.313e-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:  9.793e-01  2.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.13
Ra Dec: 204.488 -19.945
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 5.21e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.15e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8894.11875166
delta logL = 1.55307519885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8893.9881229
delta logL = 1.68370396433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.049       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5333       1.0000          .0000       10.000    
     3 'Normalizat'    1.0098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2223       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=   8893.988     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      226 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.068        23.503        .20858E-02   -.66605E-05
   2  Index         1.5337        .48426        .25603       -.44616E-04
   3  Normalizat    1.0108        .23369        .90463E-01    .23305E-04
   4  Prefactor     1.2219        .11426        .34123E-01   -.75657E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.0677
  Index      = 1.53372
  Normalizat = 1.01075
  Prefactor  = 1.22189
 **********
 **   18 **HESSE 
 **********

 FCN=   8893.988     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.068        19.489        .83432E-04   -1.4747    
   2  Index         1.5337        .48406        .93530E-02   -.76600    
   3  Normalizat    1.0108        .26462        .40060E-03   -.92671    
   4  Prefactor     1.2219        .13026        .17984E-03   -.85660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83693e-10
Minuit parameter uncertainties:
  1  19.4947
  2  0.485529
  3  0.264968
  4  0.13029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812850': 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) = 8893.98811605
delta logL = 1.68371081302

Extracting fit parameters...

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  2.307e+01  1.949e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.534e+00  4.855e-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:  1.222e+00  1.303e-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.011e+00  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.50
Ra Dec: 204.488 -19.945
Photon Index (Free Index): 1.53 +/- 0.49
Photon Flux (Free Index): 2.05e-08 +/- 2.20e-08
Energy Flux (Free Index): 5.78e-05 +/- 6.78e-05

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/812850/cmap_HighResolution_499305601_499564801_4FGL_J1337.9-1956_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.21e-08', energy_flux2='5.78e-05', photon_flux_error='3.91e-08', dlogl='1.68e+00', energy_flux='1.53e-05', photon_flux2='2.05e-08', job_status='DONE', time_completed='2021-09-08 05:35:50.941560', photon_index_error2='0.49', photon_index2='1.53', ts='5.13', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='6.78e-05', EG='0.98', time_epoch_completed='1631104550.94', return_code='0', job_id='812850', GAL2='1.22', EG2='1.01', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='2.20e-08', ts2='8.50', photon_index='2.49' WHERE bin_id='1003' AND source_name='4FGL J1337.9-1956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:35:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 812850: <4FGL_J1337.9-1956_daily_bin1003> in cluster <slac> Done

Job <4FGL_J1337.9-1956_daily_bin1003> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 05:20:14 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:20:16 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:20:16 2021
Terminated at Wed Sep  8 05:35:51 2021
Results reported at Wed Sep  8 05:35:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.9-1956_daily_bin1003 204.488 -19.945 499305601 499564801 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 :                                   783.41 sec.
    Max Memory :                                 1235 MB
    Average Memory :                             323.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

