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


Performing analysis on: 4FGL_J1337.9-1956_daily_bin204
RA = 204.488, Dec = -19.945
tmin = 292204801, tmax = 292464001
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='808172', job_status='RUN', time_executed='2021-09-08 05:08:44.056520', time_epoch_executed='1631102924.06' WHERE source_name='4FGL J1337.9-1956' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808172

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808172/ft1_4FGL_J1337.9-1956_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808172/ft2_4FGL_J1337.9-1956_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808172/ft1_4FGL_J1337.9-1956_daily_bin204.fits outfile=/scratch/kocevski/808172/ft1_filteredMKT_4FGL_J1337.9-1956_daily_bin204.fits ra=204.488 dec=-19.945 rad=12.0 tmin=292204801.0 tmax=292464001.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 9.73
user 9.35
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808172/ft1_filtered_4FGL_J1337.9-1956_daily_bin204.fits" evtable="EVENTS" scfile=/scratch/kocevski/808172/ft2_4FGL_J1337.9-1956_daily_bin204.fits sctable="SC_DATA" outfile=/scratch/kocevski/808172/ltcube_292204801_292464001_4FGL_J1337.9-1956_daily_bin204.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/808172/ft2_4FGL_J1337.9-1956_daily_bin204.fits
.....................!
real 18.05
user 17.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808172/ft1_filtered_4FGL_J1337.9-1956_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/808172/ft2_4FGL_J1337.9-1956_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/808172/ltcube_292204801_292464001_4FGL_J1337.9-1956_daily_bin204.fits outfile=/scratch/kocevski/808172/expmap_292204801_292464001_4FGL_J1337.9-1956_daily_bin204.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/808172/ltcube_292204801_292464001_4FGL_J1337.9-1956_daily_bin204.fits
.....................!
real 196.35
user 190.77
sys 5.11

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/808172/ft1_filtered_4FGL_J1337.9-1956_daily_bin204.fits scfile=/scratch/kocevski/808172/ft2_4FGL_J1337.9-1956_daily_bin204.fits outfile=/scratch/kocevski/808172/cmap_292204801_292464001_4FGL_J1337.9-1956_daily_bin204.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808172/ft1_filtered_4FGL_J1337.9-1956_daily_bin204.fits scfile=/scratch/kocevski/808172/ft2_4FGL_J1337.9-1956_daily_bin204.fits outfile=/scratch/kocevski/808172/cmap_HighResolution_292204801_292464001_4FGL_J1337.9-1956_daily_bin204.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808172/ft1_filtered_4FGL_J1337.9-1956_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/808172/ft2_4FGL_J1337.9-1956_daily_bin204.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808172/Model_4FGL_J1337.9-1956_daily_bin204.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/808172/ft1_filtered_4FGL_J1337.9-1956_daily_bin204.fits.....................!
real 35.23
user 33.89
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    19.835       1.0000         .10000E-03   10000.    
     3 'norm      '    12.840       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3091       1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6714       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.455       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38984E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    4.0556       1.0000         .10000E-03   10000.    
    10 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.564       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13375E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11125E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17758E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7737       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5913       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76959       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=   3140.200     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     2628 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.416        .19563E-04** at limit **
   2  norm          19.842        16.228        .80567E-06   -.46269E-04
   3  norm          12.849        15.101        .30851E-06   -.16754E-03
   4  Prefactor     4.3004        14.776        .18598E-05   -.22061E-03
   5  norm          .10000E-03    2.0738        .24493E-07** at limit **
   6  Prefactor     7.6883        16.946        .71111E-06    .84429E-04
   7  Prefactor     14.470        16.352        .47454E-06    .98653E-04
   8  Prefactor     .10256E-03    37.758       -.41254E-05** at limit **
   9  norm          4.0682        5.1058        .48273E-06    .78401E-03
  10  norm          .10000E-03    4.5160        .12791E-06** at limit **
  11  Prefactor     .10000E-03    6.7367        .14555E-06** at limit **
  12  Prefactor     .10000E-03    18.859       -.14143E-04** at limit **
  13  Prefactor     23.528        19.858        .34231E-05   -.78950E-04
  14  Prefactor     .10000E-03    14.431       -.20519E-05** at limit **
  15  norm          .10000E-03    4.0164       -.19731E-08** at limit **
  16  norm          .10000E-03    15.467        .71317E-05** at limit **
  17  Prefactor     .10000E-03    5.6835        .10098E-05** at limit **
  18  Prefactor     .10000E-03    20.963        .11125E-04** at limit **
  19  norm          .10000E-03    4.7925       -.11225E-06** at limit **
  20  Prefactor     .10000E-03    5.8454       -.47531E-06** at limit **
  21  norm          1.7582        9.0028       -.10883E-04   -.24157E-03
  22  Prefactor     .10000E-03    63.039       -.50322E-05** at limit **
  23  Prefactor     .10000E-03    51.235       -.19444E-04** at limit **
  24  Prefactor     .10000E-03    45.703        .67203E-05** at limit **
  25  Normalizat    1.5909        .36213        .14682E-06    .22618E-03
  26  Prefactor     .76965        .16237       -.21057E-06    .26267E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 19.8417
  norm       = 12.8491
  Prefactor  = 4.30038
  norm       = 0.0001
  Prefactor  = 7.6883
  Prefactor  = 14.4697
  Prefactor  = 0.00010256
  norm       = 4.06818
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 23.528
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.75824
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 1.59088
  Prefactor  = 0.769646
 **********
 **   18 **HESSE 
 **********

 FCN=   3140.200     FROM HESSE     STATUS=OK           452 CALLS     3080 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          19.842        16.227        .89932E-04   -1.4817    
   3  norm          12.849        14.842        .11179E-03   -1.4991    
   4  Prefactor     4.3004        14.473        .19407E-03   -1.5293    
   5  norm          .10000E-03    2.0872        .78799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6883        16.837        .14478E-03   -1.5153    
   7  Prefactor     14.470        16.397        .10535E-03   -1.4947    
   8  Prefactor     .10256E-03    297.71        .57619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.0682        4.6066        .12229E-03   -1.5305    
  10  norm          .10000E-03    4.5235        .11627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.7445        .14206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.528        19.866        .82517E-04   -1.4737    
  14  Prefactor     .10000E-03    14.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0516        .10967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.7475        .13045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.7935        .11982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1074        .26435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7582        9.6114        .31437E-03   -1.5443    
  22  Prefactor     .10000E-03    63.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    51.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    45.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.5909        .43112        .30249E-03   -.75256    
  26  Prefactor     .76965        .19386        .19363E-03   -1.0086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03078e-09
Minuit parameter uncertainties:
  1  0.00103015
  2  16.2304
  3  14.8459
  4  14.4851
  5  3.45696e-06
  6  16.8472
  7  16.4026
  8  0.0554906
  9  4.60704
  10  9.89564e-06
  11  2.09186e-06
  12  0.000336129
  13  19.872
  14  4.91899e-05
  15  2.6102e-06
  16  0.000173159
  17  0.000161996
  18  0.000290421
  19  8.8426e-07
  20  2.19345e-05
  21  8.22353
  22  0.000242793
  23  0.000885618
  24  0.000280697
  25  0.432133
  26  0.194035
Done.

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

Extracting fit parameters...

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.092e-06  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.696e-01  1.940e-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.591e+00  4.321e-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.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808172/likelihoodResults_292204801_292464001_4FGL_J1337.9-1956_daily_bin204.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) = 3140.20024955
delta logL = -0.000702294764778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3140.1995477
delta logL = -4.47128059022e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11071E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4551       1.0000          .0000       10.000    
     3 'Normalizat'    1.5908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76969       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=   3140.200     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      244 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10473E-03    6.6037        .14898E-01** at limit **
   2  Index         2.3497        6.1051        .50000        .35996E-04
   3  Normalizat    1.5909        .81084E-02    .30249E-03   -.31533E-04
   4  Prefactor     .76965        .37960E-02    .19363E-03   -.17790E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104728
  Index      = 2.34973
  Normalizat = 1.59087
  Prefactor  = 0.769647
 **********
 **   18 **HESSE 
 **********

 FCN=   3140.200     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10473E-03    78.422        .15616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3497        8.3435        .50000       -.55867    
   3  Normalizat    1.5909        .28191E-01    .12100E-04   -.75256    
   4  Prefactor     .76965        .13198E-01    .77453E-05   -1.0086    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69369e-08
Minuit parameter uncertainties:
  1  0.0385614
  2  286.682
  3  0.028191
  4  0.0131976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808172': 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) = 3140.19954626
delta logL = 9.97774350253e-07

Extracting fit parameters...

4FGL J1337.9-1956
   Spectrum: PowerLaw
301    Prefactor:  1.047e-04  3.856e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.350e+00  2.867e+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.696e-01  1.320e-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.591e+00  2.819e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/808172/cmap_HighResolution_292204801_292464001_4FGL_J1337.9-1956_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.26e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-08 05:18:15.132096', job_id='808172', GAL2='0.77', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1631103495.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='9.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='204' AND source_name='4FGL J1337.9-1956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 05:18:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 808172: <4FGL_J1337.9-1956_daily_bin204> in cluster <slac> Done

Job <4FGL_J1337.9-1956_daily_bin204> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 05:05:30 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 05:06:00 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:06:00 2021
Terminated at Wed Sep  8 05:18:15 2021
Results reported at Wed Sep  8 05:18:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.9-1956_daily_bin204 204.488 -19.945 292204801 292464001 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 :                                   565.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            765 sec.

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

