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


Performing analysis on: 4FGL_J1337.9-1956_daily_bin635
RA = 204.488, Dec = -19.945
tmin = 403920001, tmax = 404179201
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='809964', job_status='RUN', time_executed='2021-09-08 05:19:09.205736', time_epoch_executed='1631103549.21' WHERE source_name='4FGL J1337.9-1956' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809964

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809964/ft1_4FGL_J1337.9-1956_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809964/ft2_4FGL_J1337.9-1956_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809964/ft1_4FGL_J1337.9-1956_daily_bin635.fits outfile=/scratch/kocevski/809964/ft1_filteredMKT_4FGL_J1337.9-1956_daily_bin635.fits ra=204.488 dec=-19.945 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.04
user 9.68
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809964/ft2_4FGL_J1337.9-1956_daily_bin635.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/809964/ft1_filteredMKT_4FGL_J1337.9-1956_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/809964/ft1_filtered_4FGL_J1337.9-1956_daily_bin635.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809964/ft1_filtered_4FGL_J1337.9-1956_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/809964/ft2_4FGL_J1337.9-1956_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/809964/ltcube_403920001_404179201_4FGL_J1337.9-1956_daily_bin635.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/809964/ft2_4FGL_J1337.9-1956_daily_bin635.fits
.....................!
real 10.60
user 10.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809964/ft1_filtered_4FGL_J1337.9-1956_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/809964/ft2_4FGL_J1337.9-1956_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/809964/ltcube_403920001_404179201_4FGL_J1337.9-1956_daily_bin635.fits outfile=/scratch/kocevski/809964/expmap_403920001_404179201_4FGL_J1337.9-1956_daily_bin635.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/809964/ltcube_403920001_404179201_4FGL_J1337.9-1956_daily_bin635.fits
.....................!
real 191.59
user 186.50
sys 4.36

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/809964/ft1_filtered_4FGL_J1337.9-1956_daily_bin635.fits scfile=/scratch/kocevski/809964/ft2_4FGL_J1337.9-1956_daily_bin635.fits outfile=/scratch/kocevski/809964/cmap_403920001_404179201_4FGL_J1337.9-1956_daily_bin635.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809964/ft1_filtered_4FGL_J1337.9-1956_daily_bin635.fits scfile=/scratch/kocevski/809964/ft2_4FGL_J1337.9-1956_daily_bin635.fits outfile=/scratch/kocevski/809964/cmap_HighResolution_403920001_404179201_4FGL_J1337.9-1956_daily_bin635.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809964/ft1_filtered_4FGL_J1337.9-1956_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/809964/ft2_4FGL_J1337.9-1956_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809964/Model_4FGL_J1337.9-1956_daily_bin635.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/809964/ft1_filtered_4FGL_J1337.9-1956_daily_bin635.fits..........................!
real 18.36
user 17.11
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    328.76       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10343E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.3789       1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.347       1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.424       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6758       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.306       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.076       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.232       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.160       1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1215       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    55.366       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10018E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0961       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=   789.7909     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     3703 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     328.72        304.84       -.21541E-04   -.15744E-04
   2  norm          .10000E-03    22.843        .43503E-05** at limit **
   3  norm          .10001E-03    35.495        .21842E-05** at limit **
   4  Prefactor     .10000E-03    26.407       -.11433E-04** at limit **
   5  norm          5.3790        10.120       -.10414E-06   -.83027E-04
   6  Prefactor     40.347        40.333        .14684E-06   -.58137E-04
   7  Prefactor     45.427        36.341        .24534E-05   -.47948E-04
   8  Prefactor     .10000E-03    25.231       -.81347E-05** at limit **
   9  norm          2.6759        8.0618        .14356E-05   -.43198E-04
  10  norm          .10000E-03    16.177       -.27062E-05** at limit **
  11  Prefactor     .10000E-03    64.355       -.14437E-04** at limit **
  12  Prefactor     39.343        80.664        .52308E-04   -.46948E-04
  13  Prefactor     .10000E-03    21.913        .99931E-05** at limit **
  14  Prefactor     57.073        43.670       -.32547E-05   -.56514E-04
  15  norm          .10000E-03    8.4288        .10693E-05** at limit **
  16  norm          .10000E-03    59.460        .69829E-05** at limit **
  17  Prefactor     46.231        23.455        .68337E-06   -.83731E-04
  18  Prefactor     24.106        140.41       -.10389E-03   -.15549E-04
  19  norm          .10000E-03    61.199       -.75860E-06** at limit **
  20  Prefactor     8.1217        13.294       -.21958E-05   -.21711E-03
  21  norm          .10000E-03    12.880        .13654E-05** at limit **
  22  Prefactor     55.363        202.44       -.30730E-05   -.26076E-04
  23  Prefactor     .10000E-03    40.770        .17536E-04** at limit **
  24  Prefactor     .10000E-03    34.868       -.17074E-05** at limit **
  25  Normalizat    .10000E-01    1.5457        .11662E-04** at limit **
  26  Prefactor     1.0961        .29286        .93890E-06   -.34463E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 328.717
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.000100001
  norm       = 5.37903
  Prefactor  = 40.3474
  Prefactor  = 45.4274
  Prefactor  = 0.0001
  norm       = 2.67592
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.3431
  Prefactor  = 0.000100001
  Prefactor  = 57.0732
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 46.2314
  Prefactor  = 24.1059
  norm       = 0.0001
  Prefactor  = 8.1217
  norm       = 0.0001
  Prefactor  = 55.3634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.0961
 **********
 **   18 **HESSE 
 **********

 FCN=   789.7909     FROM HESSE     STATUS=OK           446 CALLS     4149 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     328.72        304.29        .11216E-03   -1.2062    
   2  norm          .10000E-03    22.877        .13124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    35.609        .16298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.430        .14068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.3790        10.157        .11699E-03   -1.5244    
   6  Prefactor     40.347        40.338        .63105E-04   -1.4437    
   7  Prefactor     45.427        36.347        .59488E-04   -1.4359    
   8  Prefactor     .10000E-03    25.234        .13794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6759        8.0176        .13330E-03   -1.5381    
  10  norm          .10000E-03    16.183        .11024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    64.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     39.343        80.270        .63932E-04   -1.4453    
  13  Prefactor     .10000E-03    21.859        .12836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     57.073        43.722        .53100E-04   -1.4196    
  15  norm          .10000E-03    8.4397        .79731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    59.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     46.231        23.450        .58969E-04   -1.4347    
  18  Prefactor     24.106        141.73        .81495E-04   -1.4726    
  19  norm          .10000E-03    61.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.1217        13.305        .12174E-03   -1.5138    
  21  norm          .10000E-03    12.884        .98540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     55.363        202.64        .53909E-04   -1.4218    
  23  Prefactor     .10000E-03    40.768        .17540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    34.867        .16220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    7.1533        .19543       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.0961        .33518        .15604E-03   -.89591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80596e-09
Minuit parameter uncertainties:
  1  305.787
  2  5.14003e-05
  3  0.000845287
  4  0.000343111
  5  10.1602
  6  40.3648
  7  36.3652
  8  6.26545e-06
  9  8.02083
  10  6.97708e-07
  11  7.16716e-05
  12  80.4913
  13  0.000262093
  14  43.7465
  15  0.00015885
  16  3.09339e-05
  17  23.4551
  18  117.325
  19  7.04069e-08
  20  13.31
  21  4.30113e-06
  22  205.253
  23  4.02706e-06
  24  1.12343e-06
  25  0.000400712
  26  0.335824
Done.

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

Extracting fit parameters...

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.167e-05  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.096e+00  3.358e-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.000e-02  4.007e-04  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/809964/likelihoodResults_403920001_404179201_4FGL_J1337.9-1956_daily_bin635.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) = 789.79101689
delta logL = -7.39897380981e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 789.790943184
delta logL = -2.83770532405e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11290E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8076       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0962       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=   789.7909     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      266 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    33.700        .90712E-02** at limit **
   2  Index         2.8230        8.5883        .50000       -.19838E-05
   3  Normalizat    .10000E-01    .48021E-03    .32095    ** at limit **
   4  Prefactor     1.0961        .53437E-02    .37735E-01    .21065E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.82299
  Normalizat = 0.01
  Prefactor  = 1.09611
 **********
 **   18 **HESSE 
 **********

 FCN=   789.7909     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      305 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    310.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8230        5.9328        .50000       -.45048    
   3  Normalizat    .10000E-01    .10742E-01    .19543       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0961        .16163E-01    .15604E-03   -.89591    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.63397e-08
Minuit parameter uncertainties:
  1  0.00369393
  2  313.31
  3  2.17303e-05
  4  0.0161627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809964': 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) = 789.790942783
delta logL = 1.17309468806e-07

Extracting fit parameters...

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.694e-03  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.823e+00  3.133e+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:  1.096e+00  1.616e-02  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.000e-02  2.173e-05  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/809964/cmap_HighResolution_403920001_404179201_4FGL_J1337.9-1956_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-02', job_status='DONE', photon_flux_upper_limit='4.53e-07', time_completed='2021-09-08 05:26:06.318753', job_id='809964', GAL2='1.10', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631103966.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='635' AND source_name='4FGL J1337.9-1956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:26:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 809964: <4FGL_J1337.9-1956_daily_bin635> in cluster <slac> Done

Job <4FGL_J1337.9-1956_daily_bin635> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 05:10:53 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:15: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:15:16 2021
Terminated at Wed Sep  8 05:26:07 2021
Results reported at Wed Sep  8 05:26:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.9-1956_daily_bin635 204.488 -19.945 403920001 404179201 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 :                                   411.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             180.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            914 sec.

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

