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


Performing analysis on: 4FGL_J2153.8-1137_daily_bin1456
RA = 328.461, Dec = -11.6306
tmin = 616723201, tmax = 616982401
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='28718', job_status='RUN', time_executed='2021-09-27 20:38:36.726315', time_epoch_executed='1632800316.73' WHERE source_name='4FGL J2153.8-1137' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28718

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28718/ft1_4FGL_J2153.8-1137_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28718/ft2_4FGL_J2153.8-1137_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28718/ft1_4FGL_J2153.8-1137_daily_bin1456.fits outfile=/scratch/kocevski/28718/ft1_filteredMKT_4FGL_J2153.8-1137_daily_bin1456.fits ra=328.461 dec=-11.6306 rad=12.0 tmin=616723201.0 tmax=616982401.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.05
user 2.82
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28718/ft1_filtered_4FGL_J2153.8-1137_daily_bin1456.fits" evtable="EVENTS" scfile=/scratch/kocevski/28718/ft2_4FGL_J2153.8-1137_daily_bin1456.fits sctable="SC_DATA" outfile=/scratch/kocevski/28718/ltcube_616723201_616982401_4FGL_J2153.8-1137_daily_bin1456.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/28718/ft2_4FGL_J2153.8-1137_daily_bin1456.fits
.....................!
real 15.42
user 15.00
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28718/ft1_filtered_4FGL_J2153.8-1137_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/28718/ft2_4FGL_J2153.8-1137_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/28718/ltcube_616723201_616982401_4FGL_J2153.8-1137_daily_bin1456.fits outfile=/scratch/kocevski/28718/expmap_616723201_616982401_4FGL_J2153.8-1137_daily_bin1456.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/28718/ltcube_616723201_616982401_4FGL_J2153.8-1137_daily_bin1456.fits
.....................!
real 192.64
user 185.84
sys 5.26

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/28718/ft1_filtered_4FGL_J2153.8-1137_daily_bin1456.fits scfile=/scratch/kocevski/28718/ft2_4FGL_J2153.8-1137_daily_bin1456.fits outfile=/scratch/kocevski/28718/cmap_616723201_616982401_4FGL_J2153.8-1137_daily_bin1456.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/28718/ft1_filtered_4FGL_J2153.8-1137_daily_bin1456.fits scfile=/scratch/kocevski/28718/ft2_4FGL_J2153.8-1137_daily_bin1456.fits outfile=/scratch/kocevski/28718/cmap_HighResolution_616723201_616982401_4FGL_J2153.8-1137_daily_bin1456.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28718/ft1_filtered_4FGL_J2153.8-1137_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/28718/ft2_4FGL_J2153.8-1137_daily_bin1456.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28718/Model_4FGL_J2153.8-1137_daily_bin1456.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/28718/ft1_filtered_4FGL_J2153.8-1137_daily_bin1456.fits.......................!
real 20.40
user 19.22
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.135       1.0000         .10000E-03   10000.    
     6 'Prefactor '    248.55       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.041       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6947       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    97.788       1.0000         .10000E-03   10000.    
    14 'Prefactor '    63.176       1.0000         .10000E-03   10000.    
    15 'Prefactor '    88.821       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.502       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11166E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.7200       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .63776       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .30612       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=   793.6375     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2855 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    144.90       -.42540E-05** at limit **
   2  Prefactor     .10000E-03    137.08       -.45635E-04** at limit **
   3  Prefactor     .10000E-03    766.65       -.54684E-03** at limit **
   4  Prefactor     .10000E-03    22.858        .21386E-07** at limit **
   5  Prefactor     12.133        14.590        .15548E-05    .70720E-03
   6  Prefactor     248.59        195.56        .21602E-04    .31734E-05
   7  Prefactor     .10000E-03    149.39        .18566E-04** at limit **
   8  Prefactor     .10000E-03    39.692       -.72726E-05** at limit **
   9  norm          .10000E-03    20.461        .45476E-06** at limit **
  10  Prefactor     34.032        37.886        .19811E-05    .19771E-04
  11  Prefactor     1.7018        266.33        .15390E-04    .11335E-04
  12  Prefactor     .10000E-03    34.083        .49782E-05** at limit **
  13  Prefactor     97.768        87.810       -.10245E-04   -.19486E-04
  14  Prefactor     63.172        52.182       -.58980E-06    .16902E-04
  15  Prefactor     88.808        55.229        .68540E-06   -.21714E-04
  16  Prefactor     .10000E-03    132.00       -.72840E-04** at limit **
  17  Prefactor     .10000E-03    16.818       -.12877E-05** at limit **
  18  Prefactor     .10000E-03    63.408        .16780E-04** at limit **
  19  norm          12.498        11.409        .14196E-06   -.26518E-03
  20  Prefactor     .10000E-03    201.36        .20182E-03** at limit **
  21  norm          4.7196        2.3111        .83351E-07    .17427E-04
  22  Normalizat    .63838        .69499        .52820E-06    .57464E-06
  23  Prefactor     .30591        .37405       -.48327E-05   -.16107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1333
  Prefactor  = 248.59
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.0315
  Prefactor  = 1.70184
  Prefactor  = 0.0001
  Prefactor  = 97.7685
  Prefactor  = 63.1724
  Prefactor  = 88.8077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4984
  Prefactor  = 0.0001
  norm       = 4.7196
  Normalizat = 0.638379
  Prefactor  = 0.305914
 **********
 **   18 **HESSE 
 **********

 FCN=   793.6375     FROM HESSE     STATUS=OK           360 CALLS     3215 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    144.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    137.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    766.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.859        .13162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.133        14.589        .11228E-03   -1.5011    
   6  Prefactor     248.59        195.10        .12847E-03   -1.2541    
   7  Prefactor     .10000E-03    149.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.694        .17350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    20.461        .12452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.032        37.922        .68683E-04   -1.4541    
  11  Prefactor     1.7018        252.55        .32326E-03   -1.5447    
  12  Prefactor     .10000E-03    34.084        .16075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     97.768        86.282        .20325E-03   -1.3727    
  14  Prefactor     63.172        52.123        .50486E-04   -1.4117    
  15  Prefactor     88.808        55.229        .42633E-04   -1.3820    
  16  Prefactor     .10000E-03    132.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.031        .11234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    63.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.498        11.424        .76968E-04   -1.5001    
  20  Prefactor     .10000E-03    201.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.7196        2.3174        .28117E-04   -1.5273    
  22  Normalizat    .63838        .76315        .35334E-03   -1.0638    
  23  Prefactor     .30591        .40378        .28684E-03   -1.2192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35383e-10
Minuit parameter uncertainties:
  1  6.2321e-06
  2  1.45329e-05
  3  0.000107709
  4  9.85518e-07
  5  14.5929
  6  195.618
  7  8.04597e-06
  8  4.48225e-05
  9  4.9297e-06
  10  37.9489
  11  41.6425
  12  1.33618e-05
  13  86.3929
  14  52.1608
  15  55.2609
  16  6.76727e-05
  17  3.11012e-05
  18  2.17247e-05
  19  11.4263
  20  7.35036e-06
  21  2.31741
  22  0.776335
  23  0.407573
Done.

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

Extracting fit parameters...

4FGL J2153.8-1137
   Spectrum: PowerLaw
284    Prefactor:  3.403e+01  3.795e+01  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:  3.059e-01  4.076e-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:  6.384e-01  7.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 328.461 -11.631
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 2.51e-07 +/- 2.79e-07
Energy Flux (Fixed Index): 6.88e-05 +/- 7.67e-05

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

Saving results to:
/scratch/kocevski/28718/likelihoodResults_616723201_616982401_4FGL_J2153.8-1137_daily_bin1456.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) = 793.499875389
delta logL = 0.137575951881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 793.491206213
delta logL = 0.146245128283

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.988       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2252       1.0000          .0000       10.000    
     3 'Normalizat'    .54377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .35001       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=   793.4912     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      292 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.993        38.969        .85419E-04   -.48877E-03
   2  Index         3.2254        1.4412        .41935E-02   -.14476E-03
   3  Normalizat    .54306        .70699        .38066E-03    .56248E-04
   4  Prefactor     .35042        .40253        .26818E-03    .13814E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9928
  Index      = 3.22537
  Normalizat = 0.543057
  Prefactor  = 0.350421
 **********
 **   18 **HESSE 
 **********

 FCN=   793.4912     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.993        36.448        .17084E-04   -1.4770    
   2  Index         3.2254        1.3494        .16774E-03   -.36284    
   3  Normalizat    .54306        .70615        .15226E-04   -1.1046    
   4  Prefactor     .35042        .40160        .53637E-04   -1.1942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46258e-10
Minuit parameter uncertainties:
  1  36.485
  2  1.3689
  3  0.718339
  4  0.404861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28718': 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) = 793.491205639
delta logL = 0.146245702355

Extracting fit parameters...

4FGL J2153.8-1137
   Spectrum: PowerLaw
284    Prefactor:  2.199e+01  3.648e+01  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  3.225e+00  1.369e+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:  3.504e-01  4.049e-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:  5.431e-01  7.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 328.461 -11.631
Photon Index (Free Index): 3.23 +/- 1.37
Photon Flux (Free Index): 3.94e-07 +/- 4.53e-07
Energy Flux (Free Index): 7.15e-05 +/- 7.08e-05

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/28718/cmap_HighResolution_616723201_616982401_4FGL_J2153.8-1137_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-02', comment='SUCCESS', photon_flux='2.51e-07', energy_flux2='7.15e-05', photon_flux_error='2.79e-07', dlogl='1.46e-01', energy_flux='6.88e-05', photon_flux2='3.94e-07', job_status='DONE', time_completed='2021-09-27 20:47:07.306874', photon_index_error2='1.37', photon_index2='3.23', ts='1.44', fit_tolerance='1e-08', GAL='0.31', photon_index_error='0.00', photon_flux_upper_limit='9.24e-07', energy_flux_error2='7.08e-05', EG='0.64', time_epoch_completed='1632800827.31', return_code='0', job_id='28718', GAL2='0.35', EG2='0.54', return_code2='0', energy_flux_error='7.67e-05', photon_flux_error2='4.53e-07', ts2='1.69', photon_index='2.55' WHERE bin_id='1456' AND source_name='4FGL J2153.8-1137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 20:47:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 28718: <4FGL_J2153.8-1137_daily_bin1456> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2153.8-1137_daily_bin1456 328.461 -11.6306 616723201 616982401 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 :                                   359.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             256.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            694 sec.

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

