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


Performing analysis on: 4FGL_J1337.9-1956_daily_bin485
RA = 204.488, Dec = -19.945
tmin = 365040001, tmax = 365299201
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='809782', job_status='RUN', time_executed='2021-09-08 05:16:04.438139', time_epoch_executed='1631103364.44' WHERE source_name='4FGL J1337.9-1956' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809782

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809782/ft1_4FGL_J1337.9-1956_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809782/ft2_4FGL_J1337.9-1956_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809782/ft1_4FGL_J1337.9-1956_daily_bin485.fits outfile=/scratch/kocevski/809782/ft1_filteredMKT_4FGL_J1337.9-1956_daily_bin485.fits ra=204.488 dec=-19.945 rad=12.0 tmin=365040001.0 tmax=365299201.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.04
user 2.81
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809782/ft1_filtered_4FGL_J1337.9-1956_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/809782/ft2_4FGL_J1337.9-1956_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/809782/ltcube_365040001_365299201_4FGL_J1337.9-1956_daily_bin485.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/809782/ft2_4FGL_J1337.9-1956_daily_bin485.fits
.....................!
real 14.46
user 14.06
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809782/ft1_filtered_4FGL_J1337.9-1956_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/809782/ft2_4FGL_J1337.9-1956_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/809782/ltcube_365040001_365299201_4FGL_J1337.9-1956_daily_bin485.fits outfile=/scratch/kocevski/809782/expmap_365040001_365299201_4FGL_J1337.9-1956_daily_bin485.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/809782/ltcube_365040001_365299201_4FGL_J1337.9-1956_daily_bin485.fits
.....................!
real 158.45
user 153.32
sys 4.47

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/809782/ft1_filtered_4FGL_J1337.9-1956_daily_bin485.fits scfile=/scratch/kocevski/809782/ft2_4FGL_J1337.9-1956_daily_bin485.fits outfile=/scratch/kocevski/809782/cmap_365040001_365299201_4FGL_J1337.9-1956_daily_bin485.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.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809782/ft1_filtered_4FGL_J1337.9-1956_daily_bin485.fits scfile=/scratch/kocevski/809782/ft2_4FGL_J1337.9-1956_daily_bin485.fits outfile=/scratch/kocevski/809782/cmap_HighResolution_365040001_365299201_4FGL_J1337.9-1956_daily_bin485.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.53
user 0.33
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17910E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    33.286       1.0000         .10000E-03   10000.    
     3 'norm      '    8.4372       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.6953       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9440       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4272       1.0000         .10000E-03   10000.    
     9 'norm      '    .10549E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.4782       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    70.496       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.470       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .96210E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.508       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3892       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82442       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6620.436     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     2591 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21363E-03    29.951        .89110E-05** at limit **
   2  norm          33.278        1.4762        .13388E-06   -.54380E-02
   3  norm          8.4185        1.2485        .47336E-07    .17517E-02
   4  Prefactor     .10000E-03    3.4922        .32988E-08** at limit **
   5  norm          3.6951        2.4958        .13013E-06    .18613E-04
   6  Prefactor     6.9426        1.0056        .30103E-08   -.21481E-03
   7  Prefactor     .10001E-03    2.1666        .59397E-06** at limit **
   8  Prefactor     6.4265        1.0339       -.50976E-07    .83243E-04
   9  norm          .10000E-03    3.4182        .72184E-06** at limit **
  10  norm          3.4780        1.1301       -.16233E-08   -.13541E-02
  11  Prefactor     .10004E-03    20.866        .23843E-05** at limit **
  12  Prefactor     .10000E-03    5.3191        .88773E-06** at limit **
  13  Prefactor     .10000E-03    2.0197        .53851E-06** at limit **
  14  Prefactor     .10000E-03    6.1718        .57908E-06** at limit **
  15  norm          .10000E-03    2.0905       -.43284E-06** at limit **
  16  norm          .10003E-03    17.089       -.34399E-05** at limit **
  17  Prefactor     .10001E-03    3.0108        .73377E-06** at limit **
  18  Prefactor     70.492        1.0410        .75039E-08    .23944E-02
  19  norm          .10000E-03    11.102        .46968E-06** at limit **
  20  Prefactor     .10000E-03    1.5582       -.38448E-06** at limit **
  21  norm          .10000E-03    2.1400        .60802E-06** at limit **
  22  Prefactor     38.492        1.7709       -.51574E-07   -.96117E-02
  23  Prefactor     .12554E-03    228.50        .22586E-04** at limit **
  24  Prefactor     13.502        1.0530        .51257E-07    .44474E-03
  25  Normalizat    1.3892        .29194        .39162E-05   -.26717E-04
  26  Prefactor     .82455        .13413       -.28648E-05   -.18494E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000213628
  norm       = 33.2779
  norm       = 8.41846
  Prefactor  = 0.000100001
  norm       = 3.6951
  Prefactor  = 6.94262
  Prefactor  = 0.00010001
  Prefactor  = 6.42653
  norm       = 0.000100003
  norm       = 3.478
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.00010003
  Prefactor  = 0.000100005
  Prefactor  = 70.4922
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 38.4921
  Prefactor  = 0.000125543
  Prefactor  = 13.5019
  Normalizat = 1.38917
  Prefactor  = 0.824554
 **********
 **   18 **HESSE 
 **********

 FCN=   6620.436     FROM HESSE     STATUS=OK           514 CALLS     3105 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21363E-03    194.40        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          33.278        14.328        .17364E-02   -1.4554    
   3  norm          8.4185        7.2395        .34503E-02   -1.5128    
   4  Prefactor     .10000E-03    3.5334        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6951        2.4990        .52523E-02   -1.5323    
   6  Prefactor     6.9426        8.4291        .38061E-02   -1.5181    
   7  Prefactor     .10001E-03    4.3047        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.4265        16.244        .39578E-02   -1.5201    
   9  norm          .10000E-03    3.6099        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4780        7.6833        .54205E-02   -1.5335    
  11  Prefactor     .10004E-03    20.675        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4682        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.0069        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0812        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10003E-03    17.151        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    4.4443        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     70.492        53.742        .11953E-02   -1.4027    
  19  norm          .10000E-03    11.004        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.5468        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.9115        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     38.492        73.144        .16155E-02   -1.4466    
  23  Prefactor     .12554E-03    22.137        .12435       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.502        31.576        .27246E-02   -1.4973    
  25  Normalizat    1.3892        .25000        .74640E-01   -.80942    
  26  Prefactor     .82455        .11417        .44034E-01   -.98830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96255e-06
Minuit parameter uncertainties:
  1  0.298219
  2  14.329
  3  7.2403
  4  0.000125404
  5  2.49903
  6  8.43051
  7  0.000417598
  8  16.2547
  9  0.000196942
  10  7.68552
  11  0.0017051
  12  7.33917e-05
  13  1.11259e-05
  14  8.00675e-05
  15  7.461e-06
  16  0.0014368
  17  0.000304426
  18  53.7789
  19  0.000115211
  20  5.68658e-06
  21  0.000261634
  22  73.3154
  23  0.0475758
  24  31.6151
  25  0.250215
  26  0.114203
Done.

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

Extracting fit parameters...

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.705e-03  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:  8.246e-01  1.142e-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.389e+00  2.502e-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.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809782/likelihoodResults_365040001_365299201_4FGL_J1337.9-1956_daily_bin485.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) = 6620.43668616
delta logL = -0.000227430852647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6620.43645873
delta logL = 3.62433638657e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5054       1.0000          .0000       10.000    
     3 'Normalizat'    1.3891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82457       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=   6620.436     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      256 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10161E-03    .75182E-01    .11278    ** at limit **
   2  Index         2.5688        8.4655        .50000       -.71415E-05
   3  Normalizat    1.3892        .68013E-03    .33030E-03    .47017E-04
   4  Prefactor     .82455        .31150E-03    .18936E-03    .96120E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101608
  Index      = 2.56876
  Normalizat = 1.38917
  Prefactor  = 0.824555
 **********
 **   18 **HESSE 
 **********

 FCN=   6620.436     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      287 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10161E-03    48.058        .40948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5688        5.6847        .50000       -.50779    
   3  Normalizat    1.3892        .94494E-02    .13212E-04   -.80942    
   4  Prefactor     .82455        .43278E-02    .75744E-05   -.98829    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.03114e-10
Minuit parameter uncertainties:
  1  0.0175955
  2  227.35
  3  0.00944944
  4  0.00432782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809782': 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) = 6620.43645864
delta logL = 9.67465894064e-08

Extracting fit parameters...

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.016e-04  1.760e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.569e+00  2.273e+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:  8.246e-01  4.328e-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.389e+00  9.449e-03  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/809782/cmap_HighResolution_365040001_365299201_4FGL_J1337.9-1956_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.72e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-08 05:26:03.671751', job_id='809782', GAL2='0.82', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1631103963.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='9.67e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='485' AND source_name='4FGL J1337.9-1956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:26:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 809782: <4FGL_J1337.9-1956_daily_bin485> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.9-1956_daily_bin485 204.488 -19.945 365040001 365299201 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 :                                   594.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             233.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            922 sec.

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

