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


Performing analysis on: 4FGL_J2153.8-1137_daily_bin1288
RA = 328.461, Dec = -11.6306
tmin = 573177601, tmax = 573436801
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='28475', job_status='RUN', time_executed='2021-09-27 20:36:50.470666', time_epoch_executed='1632800210.47' WHERE source_name='4FGL J2153.8-1137' and cadence='daily' and bin_id='1288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28475

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28475/ft1_4FGL_J2153.8-1137_daily_bin1288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28475/ft2_4FGL_J2153.8-1137_daily_bin1288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28475/ft1_4FGL_J2153.8-1137_daily_bin1288.fits outfile=/scratch/kocevski/28475/ft1_filteredMKT_4FGL_J2153.8-1137_daily_bin1288.fits ra=328.461 dec=-11.6306 rad=12.0 tmin=573177601.0 tmax=573436801.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 5.45
user 5.20
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/28475/ft2_4FGL_J2153.8-1137_daily_bin1288.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/28475/ft1_filteredMKT_4FGL_J2153.8-1137_daily_bin1288.fits evtable="EVENTS" outfile="/scratch/kocevski/28475/ft1_filtered_4FGL_J2153.8-1137_daily_bin1288.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28475/ft1_filtered_4FGL_J2153.8-1137_daily_bin1288.fits" evtable="EVENTS" scfile=/scratch/kocevski/28475/ft2_4FGL_J2153.8-1137_daily_bin1288.fits sctable="SC_DATA" outfile=/scratch/kocevski/28475/ltcube_573177601_573436801_4FGL_J2153.8-1137_daily_bin1288.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/28475/ft2_4FGL_J2153.8-1137_daily_bin1288.fits
.....................!
real 12.08
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28475/ft1_filtered_4FGL_J2153.8-1137_daily_bin1288.fits evtable="EVENTS" scfile=/scratch/kocevski/28475/ft2_4FGL_J2153.8-1137_daily_bin1288.fits sctable="SC_DATA" expcube=/scratch/kocevski/28475/ltcube_573177601_573436801_4FGL_J2153.8-1137_daily_bin1288.fits outfile=/scratch/kocevski/28475/expmap_573177601_573436801_4FGL_J2153.8-1137_daily_bin1288.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/28475/ltcube_573177601_573436801_4FGL_J2153.8-1137_daily_bin1288.fits
.....................!
real 191.22
user 185.69
sys 4.87

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/28475/ft1_filtered_4FGL_J2153.8-1137_daily_bin1288.fits scfile=/scratch/kocevski/28475/ft2_4FGL_J2153.8-1137_daily_bin1288.fits outfile=/scratch/kocevski/28475/cmap_573177601_573436801_4FGL_J2153.8-1137_daily_bin1288.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28475/ft1_filtered_4FGL_J2153.8-1137_daily_bin1288.fits scfile=/scratch/kocevski/28475/ft2_4FGL_J2153.8-1137_daily_bin1288.fits outfile=/scratch/kocevski/28475/cmap_HighResolution_573177601_573436801_4FGL_J2153.8-1137_daily_bin1288.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28475/ft1_filtered_4FGL_J2153.8-1137_daily_bin1288.fits evtable="EVENTS" scfile=/scratch/kocevski/28475/ft2_4FGL_J2153.8-1137_daily_bin1288.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28475/Model_4FGL_J2153.8-1137_daily_bin1288.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/28475/ft1_filtered_4FGL_J2153.8-1137_daily_bin1288.fits.....................!
real 54.20
user 52.93
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14027E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    67.788       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .68647E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    82.145       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18461E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19157E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2135       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.659       1.0000         .10000E-03   10000.    
    16 'Prefactor '    91.046       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.051       1.0000         .10000E-03   10000.    
    18 'Prefactor '    90.641       1.0000         .10000E-03   10000.    
    19 'norm      '    4.5646       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3368       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3965       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0950       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=   5249.511     FROM MIGRAD    STATUS=CONVERGED    900 CALLS     3049 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.255        .18142E-02** at limit **
   2  Prefactor     .10011E-03    14.335        .83055E-01** at limit **
   3  Prefactor     67.786        49.494        .48750E-04    .14925E-04
   4  Prefactor     .10399E-03    13.344        .59594E-01** at limit **
   5  Prefactor     .10000E-03    .88660        .66454E-03** at limit **
   6  Prefactor     .10000E-03    6.1920        .17577E-02** at limit **
   7  Prefactor     .10000E-03    22.343        .18142E-02** at limit **
   8  Prefactor     82.150        41.115        .44317E-04    .15997E-03
   9  norm          .10000E-03    4.4343        .14893E-02** at limit **
  10  Prefactor     .10009E-03    7.0958        .55956E-01** at limit **
  11  Prefactor     .10105E-03    105.99        .51424E-02** at limit **
  12  Prefactor     7.2151        31.617        .14935E-03    .49784E-04
  13  Prefactor     .10000E-03    21.669        .18142E-02** at limit **
  14  Prefactor     .10000E-03    5.1749        .16089E-02** at limit **
  15  Prefactor     11.661        18.265        .11732E-03    .97966E-04
  16  Prefactor     91.024        142.18        .42114E-04    .34662E-04
  17  Prefactor     13.051        8.5578        .11088E-03    .19574E-03
  18  Prefactor     90.657        99.276        .42207E-04    .12390E-04
  19  norm          4.5652        5.8131        .18139E-03    .33826E-03
  20  Prefactor     .10000E-03    40.744        .18142E-02** at limit **
  21  norm          1.3366        1.6407        .97876E-04    .43697E-03
  22  Normalizat    1.3963        .37073        .34447E-03    .42535E-03
  23  Prefactor     1.0951        .20481        .22407E-03    .62252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00010011
  Prefactor  = 67.7856
  Prefactor  = 0.000103985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.1499
  norm       = 0.0001
  Prefactor  = 0.000100087
  Prefactor  = 0.000101049
  Prefactor  = 7.2151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6613
  Prefactor  = 91.0241
  Prefactor  = 13.0514
  Prefactor  = 90.6568
  norm       = 4.56522
  Prefactor  = 0.0001
  norm       = 1.33659
  Normalizat = 1.39632
  Prefactor  = 1.09513
 **********
 **   18 **HESSE 
 **********

 FCN=   5249.511     FROM HESSE     STATUS=OK           376 CALLS     3425 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.256        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10011E-03    13.789        .85878E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     67.786        49.492        .97500E-05   -1.4059    
   4  Prefactor     .10399E-03    11.754        .64516E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .88662        .13291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1928        .35155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     82.150        41.112        .88634E-05   -1.3893    
   9  norm          .10000E-03    4.4344        .29787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10009E-03    6.8702        .57380E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10105E-03    109.15        .20570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2151        31.603        .59739E-05   -1.5171    
  13  Prefactor     .10000E-03    21.673        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1750        .32179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.661        18.261        .46929E-05   -1.5025    
  16  Prefactor     91.024        142.15        .84227E-05   -1.3797    
  17  Prefactor     13.051        8.5569        .44350E-05   -1.4985    
  18  Prefactor     90.657        99.265        .84413E-05   -1.3801    
  19  norm          4.5652        5.8122        .72556E-05   -1.5281    
  20  Prefactor     .10000E-03    40.744        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3366        1.6406        .39150E-05   -1.5477    
  22  Normalizat    1.3963        .37102        .68893E-04   -.80735    
  23  Prefactor     1.0951        .20495        .44813E-04   -.89622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07206e-08
Minuit parameter uncertainties:
  1  1.49386e-05
  2  0.00245826
  3  49.5222
  4  0.0136915
  5  5.75237e-06
  6  1.45251e-05
  7  2.90102e-05
  8  41.1262
  9  3.44396e-06
  10  0.00154972
  11  0.0214378
  12  30.2274
  13  0.000101424
  14  1.35616e-05
  15  18.2701
  16  142.685
  17  8.5577
  18  99.4476
  19  5.81287
  20  4.42666e-05
  21  1.64061
  22  0.371742
  23  0.205097
Done.

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

Extracting fit parameters...

4FGL J2153.8-1137
   Spectrum: PowerLaw
284    Prefactor:  1.001e-04  1.550e-03  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.095e+00  2.051e-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.396e+00  3.717e-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: 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/28475/likelihoodResults_573177601_573436801_4FGL_J2153.8-1137_daily_bin1288.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) = 5249.51104988
delta logL = -4.81254783153e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5249.51098838
delta logL = 1.33695939439e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35115E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4070       1.0000          .0000       10.000    
     3 'Normalizat'    1.3966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0949       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=   5249.510     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      285 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36438        91.260        .67754E-01    .35480E-03
   2  Index         2.2145        5.6526        .50000       -.89327E-05
   3  Normalizat    1.3959        .28558E-01    .77838E-01    .42623E-05
   4  Prefactor     1.0946        .16813E-01    .37782E-01   -.33228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.364382
  Index      = 2.21451
  Normalizat = 1.39592
  Prefactor  = 1.09457
 **********
 **   18 **HESSE 
 **********

 FCN=   5249.510     FROM HESSE     STATUS=OK            35 CALLS      320 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36438        40.683        .36189E-02   -1.5587    
   2  Index         2.2145        3.2838        .30118E-01   -.59089    
   3  Normalizat    1.3959        .34347        .34450E-03   -.80747    
   4  Prefactor     1.0946        .20287        .22411E-03   -.89640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12513e-08
Minuit parameter uncertainties:
  1  7.70476
  2  3.78767
  3  0.344043
  4  0.203009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28475': 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): 0
logL (Free Index) = 5249.50957212
delta logL = 0.00142963521012

Extracting fit parameters...

4FGL J2153.8-1137
   Spectrum: PowerLaw
284    Prefactor:  3.644e-01  7.705e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.215e+00  3.788e+00  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.095e+00  2.030e-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.396e+00  3.440e-01  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/28475/cmap_HighResolution_573177601_573436801_4FGL_J2153.8-1137_daily_bin1288.png

Cleaning up...

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

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:47:23.096619', job_id='28475', GAL2='1.09', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632800843.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.43e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1288' AND source_name='4FGL J2153.8-1137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 20:47:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 28475: <4FGL_J2153.8-1137_daily_bin1288> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2153.8-1137_daily_bin1288 328.461 -11.6306 573177601 573436801 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 :                                   616.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             266.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            726 sec.

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

