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


Performing analysis on: 4FGL_J2153.8-1137_daily_bin1292
RA = 328.461, Dec = -11.6306
tmin = 574214401, tmax = 574473601
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='28480', job_status='RUN', time_executed='2021-09-27 20:36:59.649453', time_epoch_executed='1632800219.65' WHERE source_name='4FGL J2153.8-1137' and cadence='daily' and bin_id='1292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28480

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28480/ft1_4FGL_J2153.8-1137_daily_bin1292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28480/ft2_4FGL_J2153.8-1137_daily_bin1292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28480/ft1_4FGL_J2153.8-1137_daily_bin1292.fits outfile=/scratch/kocevski/28480/ft1_filteredMKT_4FGL_J2153.8-1137_daily_bin1292.fits ra=328.461 dec=-11.6306 rad=12.0 tmin=574214401.0 tmax=574473601.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.59
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28480/ft1_filtered_4FGL_J2153.8-1137_daily_bin1292.fits" evtable="EVENTS" scfile=/scratch/kocevski/28480/ft2_4FGL_J2153.8-1137_daily_bin1292.fits sctable="SC_DATA" outfile=/scratch/kocevski/28480/ltcube_574214401_574473601_4FGL_J2153.8-1137_daily_bin1292.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/28480/ft2_4FGL_J2153.8-1137_daily_bin1292.fits
.....................!
real 13.94
user 13.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28480/ft1_filtered_4FGL_J2153.8-1137_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/28480/ft2_4FGL_J2153.8-1137_daily_bin1292.fits sctable="SC_DATA" expcube=/scratch/kocevski/28480/ltcube_574214401_574473601_4FGL_J2153.8-1137_daily_bin1292.fits outfile=/scratch/kocevski/28480/expmap_574214401_574473601_4FGL_J2153.8-1137_daily_bin1292.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/28480/ltcube_574214401_574473601_4FGL_J2153.8-1137_daily_bin1292.fits
.....................!
real 191.26
user 185.04
sys 5.44

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/28480/ft1_filtered_4FGL_J2153.8-1137_daily_bin1292.fits scfile=/scratch/kocevski/28480/ft2_4FGL_J2153.8-1137_daily_bin1292.fits outfile=/scratch/kocevski/28480/cmap_574214401_574473601_4FGL_J2153.8-1137_daily_bin1292.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28480/ft1_filtered_4FGL_J2153.8-1137_daily_bin1292.fits scfile=/scratch/kocevski/28480/ft2_4FGL_J2153.8-1137_daily_bin1292.fits outfile=/scratch/kocevski/28480/cmap_HighResolution_574214401_574473601_4FGL_J2153.8-1137_daily_bin1292.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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28480/ft1_filtered_4FGL_J2153.8-1137_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/28480/ft2_4FGL_J2153.8-1137_daily_bin1292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28480/Model_4FGL_J2153.8-1137_daily_bin1292.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/28480/ft1_filtered_4FGL_J2153.8-1137_daily_bin1292.fits.....................!
real 60.22
user 58.82
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/28480/ft1_filtered_4FGL_J2153.8-1137_daily_bin1292.fits', '/scratch/kocevski/28480/ft2_4FGL_J2153.8-1137_daily_bin1292.fits', expMap='/scratch/kocevski/28480/expmap_574214401_574473601_4FGL_J2153.8-1137_daily_bin1292.fits', expCube='/scratch/kocevski/28480/ltcube_574214401_574473601_4FGL_J2153.8-1137_daily_bin1292.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/28480/Model_4FGL_J2153.8-1137_daily_bin1292.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/28480/ft1_filtered_4FGL_J2153.8-1137_daily_bin1292.fits
Spacecraft file(s): /scratch/kocevski/28480/ft2_4FGL_J2153.8-1137_daily_bin1292.fits
Exposure map: /scratch/kocevski/28480/expmap_574214401_574473601_4FGL_J2153.8-1137_daily_bin1292.fits
Exposure cube: /scratch/kocevski/28480/ltcube_574214401_574473601_4FGL_J2153.8-1137_daily_bin1292.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/28480/Model_4FGL_J2153.8-1137_daily_bin1292.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) = 6312.20038886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1825       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1261       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3158       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7579       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.009       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.564       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7670       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11252E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3081       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.148       1.0000         .10000E-03   10000.    
    19 'norm      '    8.0363       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3776       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97275       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0408       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=   6312.169     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2485 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1866        21.943       -.86191E-08   -.19507E-04
   2  Prefactor     .10000E-03    4.4913        .57853E-06** at limit **
   3  Prefactor     .10000E-03    35.066        .17031E-04** at limit **
   4  Prefactor     3.1254        6.0170       -.28303E-05   -.50574E-03
   5  Prefactor     3.3165        2.8669       -.79255E-06   -.66256E-03
   6  Prefactor     .10000E-03    2.0949       -.28259E-07** at limit **
   7  Prefactor     .10000E-03    21.715        .50746E-05** at limit **
   8  Prefactor     .10000E-03    7.7873       -.12132E-06** at limit **
   9  norm          .10000E-03    2.1188       -.10038E-07** at limit **
  10  Prefactor     .10000E-03    2.7075       -.17084E-06** at limit **
  11  Prefactor     5.7526        9.1192        .12311E-05   -.10649E-03
  12  Prefactor     17.021        21.861        .11964E-05    .25038E-04
  13  Prefactor     .10000E-03    4.4459       -.70087E-06** at limit **
  14  Prefactor     32.585        17.147        .85345E-06    .11893E-03
  15  Prefactor     8.7745        14.825       -.17762E-05   -.67789E-04
  16  Prefactor     .10000E-03    54.246        .72116E-05** at limit **
  17  Prefactor     6.3114        5.9682        .30531E-05   -.14267E-03
  18  Prefactor     22.018        60.504       -.22994E-03    .40261E-04
  19  norm          8.0366        4.6811       -.10796E-05   -.91943E-04
  20  Prefactor     .10000E-03    28.076       -.20197E-04** at limit **
  21  norm          1.3778        1.0990        .22651E-05    .42813E-03
  22  Normalizat    .97196        .23666        .12791E-04   -.23427E-03
  23  Prefactor     1.0412        .13780       -.10271E-05    .40298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.18658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.1254
  Prefactor  = 3.31652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.75256
  Prefactor  = 17.0207
  Prefactor  = 0.0001
  Prefactor  = 32.5849
  Prefactor  = 8.7745
  Prefactor  = 0.0001
  Prefactor  = 6.3114
  Prefactor  = 22.0181
  norm       = 8.03665
  Prefactor  = 0.0001
  norm       = 1.3778
  Normalizat = 0.971962
  Prefactor  = 1.04124
 **********
 **   18 **HESSE 
 **********

 FCN=   6312.169     FROM HESSE     STATUS=OK           368 CALLS     2853 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1866        21.928        .14016E-03   -1.5136    
   2  Prefactor     .10000E-03    4.4948        .16439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1254        6.0035        .22930E-03   -1.5354    
   5  Prefactor     3.3165        2.8614        .11988E-03   -1.5344    
   6  Prefactor     .10000E-03    2.0967        .11230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1193        .11294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7193        .12763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7526        9.1186        .16738E-03   -1.5228    
  12  Prefactor     17.021        21.864        .97112E-04   -1.4883    
  13  Prefactor     .10000E-03    4.4464        .16361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.585        17.276        .70218E-04   -1.4566    
  15  Prefactor     8.7745        14.752        .13537E-03   -1.5115    
  16  Prefactor     .10000E-03    54.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3114        5.9343        .15982E-03   -1.5205    
  18  Prefactor     22.018        60.607        .85111E-04   -1.4769    
  19  norm          8.0366        4.6800        .12460E-03   -1.5141    
  20  Prefactor     .10000E-03    28.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3778        1.0987        .37103E-04   -1.5473    
  22  Normalizat    .97196        .27805        .33326E-03   -.93976    
  23  Prefactor     1.0412        .16269        .19604E-03   -.91367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36231e-09
Minuit parameter uncertainties:
  1  21.9496
  2  2.26474e-05
  3  0.000105351
  4  6.00465
  5  2.86154
  6  7.37956e-06
  7  5.55568e-05
  8  6.05886e-05
  9  3.26563e-06
  10  2.88029e-05
  11  9.12083
  12  21.8742
  13  8.27638e-06
  14  17.2785
  15  14.7583
  16  5.30754e-06
  17  5.93483
  18  60.7767
  19  4.6802
  20  3.05037e-05
  21  1.09872
  22  0.278464
  23  0.162769
Done.

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

Extracting fit parameters...

4FGL J2153.8-1137
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.880e-05  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:  1.041e+00  1.628e-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:  9.720e-01  2.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 328.461 -11.631
Photon Flux Upper Limit: 8.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/28480/likelihoodResults_574214401_574473601_4FGL_J2153.8-1137_daily_bin1292.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) = 6312.17040968
delta logL = -0.00174918763605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6312.16866051
delta logL = -2.11512087844e-08

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 'Index     '    2.5489       1.0000          .0000       10.000    
     3 'Normalizat'    .97198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0412       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6312.169     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      236 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    123.24        .12769E-02** at limit **
   2  Index         2.5191        5.9449        .50000        .82103E-05
   3  Normalizat    .97197        .39994E-01    .33325E-03   -.41551E-04
   4  Prefactor     1.0412        .24425E-01    .19604E-03   -.44641E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100137
  Index      = 2.51907
  Normalizat = 0.971972
  Prefactor  = 1.04123
 **********
 **   18 **HESSE 
 **********

 FCN=   6312.169     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10014E-03    436.29        .25538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5191        8.5304        .50000       -.51920    
   3  Normalizat    .97197        .96276E-01    .13330E-04   -.93975    
   4  Prefactor     1.0412        .58774E-01    .39209E-04   -.91367    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.48045e-08
Minuit parameter uncertainties:
  1  0.0155927
  2  1492.89
  3  0.0962929
  4  0.058778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28480': 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) = 6312.16866044
delta logL = 5.01113390783e-08

Extracting fit parameters...

4FGL J2153.8-1137
   Spectrum: PowerLaw
284    Prefactor:  1.001e-04  1.559e-02  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.519e+00  1.493e+03  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:  1.041e+00  5.878e-02  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:  9.720e-01  9.629e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/28480/cmap_HighResolution_574214401_574473601_4FGL_J2153.8-1137_daily_bin1292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-09-27 20:47:32.594152', job_id='28480', GAL2='1.04', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632800852.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='5.01e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1292' AND source_name='4FGL J2153.8-1137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 20:47:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 28480: <4FGL_J2153.8-1137_daily_bin1292> in cluster <slac> Done

Job <4FGL_J2153.8-1137_daily_bin1292> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 20:35:18 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 20:36:07 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:36:07 2021
Terminated at Mon Sep 27 20:47:33 2021
Results reported at Mon Sep 27 20:47:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2153.8-1137_daily_bin1292 328.461 -11.6306 574214401 574473601 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 :                                   620.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            735 sec.

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

