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


Performing analysis on: 4FGL_J2153.8-1137_daily_bin1130
RA = 328.461, Dec = -11.6306
tmin = 532224001, tmax = 532483201
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='24361', job_status='RUN', time_executed='2021-09-27 20:27:40.954108', time_epoch_executed='1632799660.95' WHERE source_name='4FGL J2153.8-1137' and cadence='daily' and bin_id='1130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/24361

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/24361/ft1_4FGL_J2153.8-1137_daily_bin1130.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/24361/ft2_4FGL_J2153.8-1137_daily_bin1130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/24361/ft1_4FGL_J2153.8-1137_daily_bin1130.fits outfile=/scratch/kocevski/24361/ft1_filteredMKT_4FGL_J2153.8-1137_daily_bin1130.fits ra=328.461 dec=-11.6306 rad=12.0 tmin=532224001.0 tmax=532483201.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.57
user 3.35
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/24361/ft2_4FGL_J2153.8-1137_daily_bin1130.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/24361/ft2_4FGL_J2153.8-1137_daily_bin1130.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/24361/ft1_filteredMKT_4FGL_J2153.8-1137_daily_bin1130.fits evtable="EVENTS" outfile="/scratch/kocevski/24361/ft1_filtered_4FGL_J2153.8-1137_daily_bin1130.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/24361/ft1_filtered_4FGL_J2153.8-1137_daily_bin1130.fits" evtable="EVENTS" scfile=/scratch/kocevski/24361/ft2_4FGL_J2153.8-1137_daily_bin1130.fits sctable="SC_DATA" outfile=/scratch/kocevski/24361/ltcube_532224001_532483201_4FGL_J2153.8-1137_daily_bin1130.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/24361/ft2_4FGL_J2153.8-1137_daily_bin1130.fits
.....................!
real 14.51
user 14.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/24361/ft1_filtered_4FGL_J2153.8-1137_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/24361/ft2_4FGL_J2153.8-1137_daily_bin1130.fits sctable="SC_DATA" expcube=/scratch/kocevski/24361/ltcube_532224001_532483201_4FGL_J2153.8-1137_daily_bin1130.fits outfile=/scratch/kocevski/24361/expmap_532224001_532483201_4FGL_J2153.8-1137_daily_bin1130.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/24361/ltcube_532224001_532483201_4FGL_J2153.8-1137_daily_bin1130.fits
.....................!
real 192.99
user 186.21
sys 5.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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2153.8-1137 @ 328.461 -11.6306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/24361/ft1_filtered_4FGL_J2153.8-1137_daily_bin1130.fits scfile=/scratch/kocevski/24361/ft2_4FGL_J2153.8-1137_daily_bin1130.fits outfile=/scratch/kocevski/24361/cmap_532224001_532483201_4FGL_J2153.8-1137_daily_bin1130.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=328.461 yref=-11.6306 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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/24361/ft1_filtered_4FGL_J2153.8-1137_daily_bin1130.fits scfile=/scratch/kocevski/24361/ft2_4FGL_J2153.8-1137_daily_bin1130.fits outfile=/scratch/kocevski/24361/cmap_HighResolution_532224001_532483201_4FGL_J2153.8-1137_daily_bin1130.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=328.461 yref=-11.6306 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/24361/ft1_filtered_4FGL_J2153.8-1137_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/24361/ft2_4FGL_J2153.8-1137_daily_bin1130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/24361/Model_4FGL_J2153.8-1137_daily_bin1130.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/24361/ft1_filtered_4FGL_J2153.8-1137_daily_bin1130.fits.....................!
real 48.40
user 46.99
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/24361/ft1_filtered_4FGL_J2153.8-1137_daily_bin1130.fits', '/scratch/kocevski/24361/ft2_4FGL_J2153.8-1137_daily_bin1130.fits', expMap='/scratch/kocevski/24361/expmap_532224001_532483201_4FGL_J2153.8-1137_daily_bin1130.fits', expCube='/scratch/kocevski/24361/ltcube_532224001_532483201_4FGL_J2153.8-1137_daily_bin1130.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/24361/Model_4FGL_J2153.8-1137_daily_bin1130.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2153.8-1137'

4FGL J2153.8-1137
   Spectrum: PowerLaw
284    Prefactor:  3.202e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.552e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  6.399e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/24361/ft1_filtered_4FGL_J2153.8-1137_daily_bin1130.fits
Spacecraft file(s): /scratch/kocevski/24361/ft2_4FGL_J2153.8-1137_daily_bin1130.fits
Exposure map: /scratch/kocevski/24361/expmap_532224001_532483201_4FGL_J2153.8-1137_daily_bin1130.fits
Exposure cube: /scratch/kocevski/24361/ltcube_532224001_532483201_4FGL_J2153.8-1137_daily_bin1130.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/24361/Model_4FGL_J2153.8-1137_daily_bin1130.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) = 4564.12955269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9459       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12202E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8722       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.230       1.0000         .10000E-03   10000.    
     9 'norm      '    8.7740       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3275       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .67592       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.633       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3194       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.100       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.270       1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.792       1.0000         .10000E-03   10000.    
    19 'norm      '    7.3729       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2593       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1030       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77770       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4564.125     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2522 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.235       -.73748E-06** at limit **
   2  Prefactor     .10000E-03    10.085        .37628E-06** at limit **
   3  Prefactor     3.0172        180.67        .99893E-05   -.12925E-04
   4  Prefactor     .10000E-03    3.7866       -.15750E-06** at limit **
   5  Prefactor     .10000E-03    4.1735        .34712E-05** at limit **
   6  Prefactor     4.8725        5.9765       -.71204E-07    .10932E-04
   7  Prefactor     .10000E-03    22.520       -.32505E-06** at limit **
   8  Prefactor     23.232        18.902       -.42524E-07    .51549E-04
   9  norm          8.7736        7.4557        .16065E-07   -.40064E-04
  10  Prefactor     1.3268        8.4002       -.97088E-06    .11626E-04
  11  Prefactor     .64712        12.974       -.28213E-05    .84273E-04
  12  Prefactor     .10000E-03    8.0352       -.57126E-07** at limit **
  13  Prefactor     18.636        14.791        .13917E-06    .48633E-04
  14  Prefactor     .10000E-03    35.991        .35271E-06** at limit **
  15  Prefactor     7.3185        12.331       -.15074E-06    .37493E-04
  16  Prefactor     26.067        64.674        .45909E-05    .83943E-05
  17  Prefactor     10.271        5.7944       -.15910E-06    .64082E-04
  18  Prefactor     52.775        73.137        .19603E-05    .12474E-04
  19  norm          7.3729        4.5603       -.33978E-06    .38346E-04
  20  Prefactor     .10000E-03    46.392       -.23227E-05** at limit **
  21  norm          1.2600        1.4610       -.24143E-06   -.23802E-03
  22  Normalizat    1.1026        .24957       -.36244E-06    .66528E-04
  23  Prefactor     .77792        .13838        .17873E-05    .34978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.87251
  Prefactor  = 0.0001
  Prefactor  = 23.2319
  norm       = 8.77357
  Prefactor  = 1.32683
  Prefactor  = 0.647124
  Prefactor  = 0.0001
  Prefactor  = 18.6364
  Prefactor  = 0.000100003
  Prefactor  = 7.3185
  Prefactor  = 26.0667
  Prefactor  = 10.2713
  Prefactor  = 52.7749
  norm       = 7.37289
  Prefactor  = 0.0001
  norm       = 1.25996
  Normalizat = 1.10261
  Prefactor  = 0.777916
 **********
 **   18 **HESSE 
 **********

 FCN=   4564.125     FROM HESSE     STATUS=OK           376 CALLS     2898 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0172        175.95        .23663E-03   -1.5361    
   4  Prefactor     .10000E-03    3.8994        .25684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3126        .17912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8725        5.9735        .17805E-03   -1.5266    
   7  Prefactor     .10000E-03    22.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.232        18.942        .83107E-04   -1.4744    
   9  norm          8.7736        7.4576        .67660E-03   -1.5115    
  10  Prefactor     1.3268        8.3891        .36503E-03   -1.5478    
  11  Prefactor     .64712        53.117        .44185E-02   -1.5547    
  12  Prefactor     .10000E-03    8.0432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.636        14.793        .92785E-04   -1.4844    
  14  Prefactor     .10000E-03    36.748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3185        12.316        .14825E-03   -1.5167    
  16  Prefactor     26.067        64.645        .78413E-04   -1.4686    
  17  Prefactor     10.271        5.7837        .11192E-03   -1.5067    
  18  Prefactor     52.775        73.183        .55201E-04   -1.4254    
  19  norm          7.3729        4.5584        .10807E-03   -1.5165    
  20  Prefactor     .10000E-03    46.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2600        1.4414        .81552E-04   -1.5483    
  22  Normalizat    1.1026        .29433        .28076E-03   -.89668    
  23  Prefactor     .77792        .16649        .19568E-03   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81879e-10
Minuit parameter uncertainties:
  1  3.79372e-05
  2  4.41995e-05
  3  46.2238
  4  1.66698e-05
  5  3.28921e-05
  6  5.9742
  7  2.7874e-05
  8  18.9469
  9  7.45836
  10  6.67375
  11  11.7356
  12  1.38728e-05
  13  14.7963
  14  0.000653126
  15  12.3206
  16  64.8193
  17  5.78404
  18  73.3083
  19  4.55857
  20  2.37282e-05
  21  1.44139
  22  0.294772
  23  0.1666
Done.

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

Extracting fit parameters...

4FGL J2153.8-1137
   Spectrum: PowerLaw
284    Prefactor:  1.327e+00  6.674e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.552e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  6.399e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  7.779e-01  1.666e-01  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.103e+00  2.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 328.461 -11.631
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/24361/likelihoodResults_532224001_532483201_4FGL_J2153.8-1137_daily_bin1130.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): 0
logL (Free Index) = 4564.02529655
delta logL = 0.0999623033385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4564.00733791
delta logL = 0.117920936931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74264       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9669       1.0000          .0000       10.000    
     3 'Normalizat'    1.0659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79167       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4564.007     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      219 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73712        32.560        .12224E-01   -.45253E-03
   2  Index         3.9731        6.9577        .20607       -.31377E-04
   3  Normalizat    1.0656        .43888E-01    .64435E-01   -.16496E-03
   4  Prefactor     .79185        .26206E-01    .43609E-01   -.15554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.737118
  Index      = 3.97313
  Normalizat = 1.06558
  Prefactor  = 0.791851
 **********
 **   18 **HESSE 
 **********

 FCN=   4564.007     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      250 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73712        132.80        .10812E-03   -1.5536    
   2  Index         3.9731        7.3872        .11473E-01   -.20685    
   3  Normalizat    1.0656        .28624        .28503E-03   -.90865    
   4  Prefactor     .79185        .16717        .19410E-03   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.03648e-10
Minuit parameter uncertainties:
  1  19.8311
  2  18.5071
  3  0.286661
  4  0.167281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/24361': 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) = 4564.00733545
delta logL = 0.117923400356

Extracting fit parameters...

4FGL J2153.8-1137
   Spectrum: PowerLaw
284    Prefactor:  7.371e-01  1.983e+01  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  3.973e+00  1.851e+01  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  6.399e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  7.919e-01  1.673e-01  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.066e+00  2.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 328.461 -11.631

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/24361/cmap_HighResolution_532224001_532483201_4FGL_J2153.8-1137_daily_bin1130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-27 20:36:52.414529', job_id='24361', GAL2='0.79', fit_tolerance='1e-08', EG2='1.07', EG='1.10', time_epoch_completed='1632800212.41', return_code2='102', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.18e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1130' AND source_name='4FGL J2153.8-1137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 20:36:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 24361: <4FGL_J2153.8-1137_daily_bin1130> in cluster <slac> Done

Job <4FGL_J2153.8-1137_daily_bin1130> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 20:20:14 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 20:27:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 20:27:16 2021
Terminated at Mon Sep 27 20:36:52 2021
Results reported at Mon Sep 27 20:36:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2153.8-1137_daily_bin1130 328.461 -11.6306 532224001 532483201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2153.8-1137 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   547.22 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             356.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   576 sec.
    Turnaround time :                            998 sec.

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

