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


Performing analysis on: 4FGL_J2153.8-1137_daily_bin1248
RA = 328.461, Dec = -11.6306
tmin = 562809601, tmax = 563068801
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='28413', job_status='RUN', time_executed='2021-09-27 20:37:06.622890', time_epoch_executed='1632800226.62' WHERE source_name='4FGL J2153.8-1137' and cadence='daily' and bin_id='1248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28413

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28413/ft1_4FGL_J2153.8-1137_daily_bin1248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28413/ft2_4FGL_J2153.8-1137_daily_bin1248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28413/ft1_4FGL_J2153.8-1137_daily_bin1248.fits outfile=/scratch/kocevski/28413/ft1_filteredMKT_4FGL_J2153.8-1137_daily_bin1248.fits ra=328.461 dec=-11.6306 rad=12.0 tmin=562809601.0 tmax=563068801.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.46
user 3.23
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28413/ft1_filtered_4FGL_J2153.8-1137_daily_bin1248.fits" evtable="EVENTS" scfile=/scratch/kocevski/28413/ft2_4FGL_J2153.8-1137_daily_bin1248.fits sctable="SC_DATA" outfile=/scratch/kocevski/28413/ltcube_562809601_563068801_4FGL_J2153.8-1137_daily_bin1248.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/28413/ft2_4FGL_J2153.8-1137_daily_bin1248.fits
.....................!
real 15.29
user 14.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28413/ft1_filtered_4FGL_J2153.8-1137_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/28413/ft2_4FGL_J2153.8-1137_daily_bin1248.fits sctable="SC_DATA" expcube=/scratch/kocevski/28413/ltcube_562809601_563068801_4FGL_J2153.8-1137_daily_bin1248.fits outfile=/scratch/kocevski/28413/expmap_562809601_563068801_4FGL_J2153.8-1137_daily_bin1248.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/28413/ltcube_562809601_563068801_4FGL_J2153.8-1137_daily_bin1248.fits
.....................!
real 193.06
user 188.18
sys 4.21

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/28413/ft1_filtered_4FGL_J2153.8-1137_daily_bin1248.fits scfile=/scratch/kocevski/28413/ft2_4FGL_J2153.8-1137_daily_bin1248.fits outfile=/scratch/kocevski/28413/cmap_562809601_563068801_4FGL_J2153.8-1137_daily_bin1248.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28413/ft1_filtered_4FGL_J2153.8-1137_daily_bin1248.fits scfile=/scratch/kocevski/28413/ft2_4FGL_J2153.8-1137_daily_bin1248.fits outfile=/scratch/kocevski/28413/cmap_HighResolution_562809601_563068801_4FGL_J2153.8-1137_daily_bin1248.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28413/ft1_filtered_4FGL_J2153.8-1137_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/28413/ft2_4FGL_J2153.8-1137_daily_bin1248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28413/Model_4FGL_J2153.8-1137_daily_bin1248.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/28413/ft1_filtered_4FGL_J2153.8-1137_daily_bin1248.fits.....................!
real 83.10
user 81.72
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22166E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .50364       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11603E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8589       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7878       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2658       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10212E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17208E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0786       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2615       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.716       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1109       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.928       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0635       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1997       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0991       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70210       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=   9453.443     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2638 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    14.204       -.66884E-06** at limit **
   2  Prefactor     .41166        7.1830        .35302E-06   -.40494E-04
   3  Prefactor     .10000E-03    5.4603       -.73075E-07** at limit **
   4  Prefactor     .10000E-03    2.9180       -.22065E-06** at limit **
   5  Prefactor     1.8582        1.4049       -.12264E-07    .48193E-04
   6  Prefactor     4.7872        4.1962       -.15514E-07    .73468E-05
   7  Prefactor     .10000E-03    7.4148       -.16466E-07** at limit **
   8  Prefactor     .10000E-03    17.555       -.20617E-06** at limit **
   9  norm          2.2665        5.0354        .16875E-06    .48332E-05
  10  Prefactor     .10000E-03    .80874       -.12105E-08** at limit **
  11  Prefactor     .10006E-03    4.7769       -.72100E-06** at limit **
  12  Prefactor     .10000E-03    5.4221        .49846E-07** at limit **
  13  Prefactor     3.0765        7.6405        .21336E-05    .19923E-04
  14  Prefactor     7.2592        7.7511        .14488E-06    .33835E-04
  15  Prefactor     27.717        10.323       -.52636E-07    .15232E-04
  16  Prefactor     7.1550        95.872       -.11025E-04    .41917E-05
  17  Prefactor     .10000E-03    1.7806       -.10114E-07** at limit **
  18  Prefactor     46.924        33.941        .38472E-06   -.42500E-05
  19  norm          1.0591        2.1040        .57107E-06    .27882E-03
  20  Prefactor     .10000E-03    19.273       -.15446E-06** at limit **
  21  norm          2.1996        .76824        .33238E-07    .11441E-03
  22  Normalizat    1.0991        .15099       -.19942E-06    .17208E-03
  23  Prefactor     .70216        .89401E-01    .29932E-06    .25940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Prefactor  = 0.411657
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.85821
  Prefactor  = 4.78725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.26652
  Prefactor  = 0.0001
  Prefactor  = 0.000100056
  Prefactor  = 0.000100002
  Prefactor  = 3.07653
  Prefactor  = 7.25922
  Prefactor  = 27.7167
  Prefactor  = 7.15503
  Prefactor  = 0.0001
  Prefactor  = 46.9237
  norm       = 1.05908
  Prefactor  = 0.0001
  norm       = 2.19958
  Normalizat = 1.09913
  Prefactor  = 0.702162
 **********
 **   18 **HESSE 
 **********

 FCN=   9453.443     FROM HESSE     STATUS=OK           400 CALLS     3038 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    105.21        .58279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .41166        79.030        .41033E-02   -1.5580    
   3  Prefactor     .10000E-03    5.4622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.8388        .31499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8582        1.3953        .97108E-04   -1.5435    
   6  Prefactor     4.7872        4.1931        .18065E-03   -1.5270    
   7  Prefactor     .10000E-03    7.4186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2665        5.0298        .27287E-03   -1.5407    
  10  Prefactor     .10000E-03    .81090        .85373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    5.3183        .66029E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.8777        .74298E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0765        7.6855        .11558E-02   -1.5357    
  14  Prefactor     7.2592        7.7736        .14885E-03   -1.5169    
  15  Prefactor     27.717        10.314        .76097E-04   -1.4655    
  16  Prefactor     7.1550        96.849        .15043E-03   -1.5173    
  17  Prefactor     .10000E-03    1.8094        .12643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     46.924        33.943        .29266E-03   -1.4337    
  19  norm          1.0591        2.0741        .18831E-03   -1.5502    
  20  Prefactor     .10000E-03    19.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1996        .76755        .48541E-04   -1.5411    
  22  Normalizat    1.0991        .18136        .24967E-03   -.89780    
  23  Prefactor     .70216        .10713        .18908E-03   -1.0344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60828e-08
Minuit parameter uncertainties:
  1  0.00231849
  2  11.4215
  3  4.96629e-07
  4  7.78288e-05
  5  1.39536
  6  4.19334
  7  7.98161e-07
  8  2.32673e-05
  9  5.03076
  10  1.89769e-07
  11  0.00109319
  12  0.0002539
  13  7.68793
  14  7.77473
  15  10.3144
  16  52.7521
  17  5.91895e-07
  18  33.9571
  19  2.07423
  20  2.33094e-06
  21  0.767558
  22  0.181461
  23  0.107164
Done.

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

Extracting fit parameters...

4FGL J2153.8-1137
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.898e-07  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.022e-01  1.072e-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.099e+00  1.815e-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: 3.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/28413/likelihoodResults_562809601_563068801_4FGL_J2153.8-1137_daily_bin1248.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) = 9453.44896301
delta logL = -0.00579612398542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9453.44316644
delta logL = 4.45723344455e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5391       1.0000          .0000       10.000    
     3 'Normalizat'    1.0991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70216       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=   9453.443     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      249 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4266        .86006E-02** at limit **
   2  Index         2.0735        5.9114        .50000        .21346E-06
   3  Normalizat    1.0991        .11071E-01    .24967E-03   -.51284E-03
   4  Prefactor     .70216        .68820E-02    .18908E-03   -.65739E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07353
  Normalizat = 1.09913
  Prefactor  = 0.702161
 **********
 **   18 **HESSE 
 **********

 FCN=   9453.443     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    72.575        .91845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0735        7.2870        .50000       -.62524    
   3  Normalizat    1.0991        .35501E-01    .49935E-04   -.89780    
   4  Prefactor     .70216        .22069E-01    .37815E-04   -1.0344    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.12802e-10
Minuit parameter uncertainties:
  1  4.3955e-06
  2  531.031
  3  0.0355017
  4  0.0220693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28413': 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) = 9453.44315861
delta logL = 8.27571057016e-06

Extracting fit parameters...

4FGL J2153.8-1137
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  4.395e-06  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.074e+00  5.310e+02  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.022e-01  2.207e-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:  1.099e+00  3.550e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/28413/cmap_HighResolution_562809601_563068801_4FGL_J2153.8-1137_daily_bin1248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2021-09-27 20:50:43.184260', job_id='28413', GAL2='0.70', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632801043.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='8.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1248' AND source_name='4FGL J2153.8-1137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 20:50:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 28413: <4FGL_J2153.8-1137_daily_bin1248> in cluster <slac> Done

Job <4FGL_J2153.8-1137_daily_bin1248> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 20:35:13 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 20:35:35 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:35:35 2021
Terminated at Mon Sep 27 20:50:44 2021
Results reported at Mon Sep 27 20:50:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2153.8-1137_daily_bin1248 328.461 -11.6306 562809601 563068801 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 :                                   812.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            931 sec.

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

