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


Performing analysis on: 4FGL_J2153.8-1137_daily_bin1601
RA = 328.461, Dec = -11.6306
tmin = 654307201, tmax = 654566401
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='546565', job_status='RUN', time_executed='2021-09-29 00:28:32.595873', time_epoch_executed='1632900512.6' WHERE source_name='4FGL J2153.8-1137' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546565

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546565/ft1_4FGL_J2153.8-1137_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546565/ft2_4FGL_J2153.8-1137_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546565/ft1_4FGL_J2153.8-1137_daily_bin1601.fits outfile=/scratch/kocevski/546565/ft1_filteredMKT_4FGL_J2153.8-1137_daily_bin1601.fits ra=328.461 dec=-11.6306 rad=12.0 tmin=654307201.0 tmax=654566401.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 4.21
user 3.99
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546565/ft1_filtered_4FGL_J2153.8-1137_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/546565/ft2_4FGL_J2153.8-1137_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/546565/ltcube_654307201_654566401_4FGL_J2153.8-1137_daily_bin1601.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/546565/ft2_4FGL_J2153.8-1137_daily_bin1601.fits
.....................!
real 11.64
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546565/ft1_filtered_4FGL_J2153.8-1137_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/546565/ft2_4FGL_J2153.8-1137_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/546565/ltcube_654307201_654566401_4FGL_J2153.8-1137_daily_bin1601.fits outfile=/scratch/kocevski/546565/expmap_654307201_654566401_4FGL_J2153.8-1137_daily_bin1601.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/546565/ltcube_654307201_654566401_4FGL_J2153.8-1137_daily_bin1601.fits
.....................!
real 190.44
user 185.92
sys 4.10

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/546565/ft1_filtered_4FGL_J2153.8-1137_daily_bin1601.fits scfile=/scratch/kocevski/546565/ft2_4FGL_J2153.8-1137_daily_bin1601.fits outfile=/scratch/kocevski/546565/cmap_654307201_654566401_4FGL_J2153.8-1137_daily_bin1601.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546565/ft1_filtered_4FGL_J2153.8-1137_daily_bin1601.fits scfile=/scratch/kocevski/546565/ft2_4FGL_J2153.8-1137_daily_bin1601.fits outfile=/scratch/kocevski/546565/cmap_HighResolution_654307201_654566401_4FGL_J2153.8-1137_daily_bin1601.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/546565/ft1_filtered_4FGL_J2153.8-1137_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/546565/ft2_4FGL_J2153.8-1137_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/546565/Model_4FGL_J2153.8-1137_daily_bin1601.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/546565/ft1_filtered_4FGL_J2153.8-1137_daily_bin1601.fits.....................!
real 60.21
user 58.94
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6058       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11620E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2999       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .45133       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.888       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10932E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4594       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.684       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.342       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11318E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10791E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7186       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35448       1.0000         .10000E-03   10000.    
    21 'norm      '    3.7717       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91289       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0459       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=   6274.627     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2263 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5709        17.223        .26474E-06   -.18475E-04
   2  Prefactor     .10000E-03    12.140       -.99888E-07** at limit **
   3  Prefactor     .10000E-03    16.505        .61205E-06** at limit **
   4  Prefactor     1.3042        4.8864       -.27431E-05   -.96031E-03
   5  Prefactor     3.8706        3.0582       -.17789E-06   -.24603E-03
   6  Prefactor     .10000E-03    4.2988       -.33464E-07** at limit **
   7  Prefactor     .10000E-03    12.531       -.25190E-06** at limit **
   8  Prefactor     .10000E-03    7.6448       -.10668E-06** at limit **
   9  norm          .10000E-03    2.5248        .14881E-07** at limit **
  10  Prefactor     .42527        3.7157       -.79772E-06    .47985E-03
  11  Prefactor     12.892        11.969       -.25176E-05    .18319E-03
  12  Prefactor     .10000E-03    31.210        .19133E-06** at limit **
  13  Prefactor     7.4580        14.352       -.18024E-06   -.14996E-04
  14  Prefactor     13.705        14.326       -.53098E-05    .39488E-03
  15  Prefactor     12.345        11.330       -.17748E-05    .11691E-03
  16  Prefactor     .10000E-03    216.95        .19491E-05** at limit **
  17  Prefactor     .10000E-03    2.5307        .86198E-07** at limit **
  18  Prefactor     .10000E-03    37.863       -.26667E-05** at limit **
  19  norm          3.7253        4.8557       -.38384E-06   -.45471E-03
  20  Prefactor     .10009E-03    84.340        .70032E-07** at limit **
  21  norm          3.7718        1.4511        .51850E-08   -.25682E-04
  22  Normalizat    .91314        .22572        .32519E-05    .95557E-04
  23  Prefactor     1.0459        .13309        .55994E-07    .30747E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.57086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.30419
  Prefactor  = 3.87055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.425274
  Prefactor  = 12.8916
  Prefactor  = 0.0001
  Prefactor  = 7.45801
  Prefactor  = 13.7048
  Prefactor  = 12.3452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.72528
  Prefactor  = 0.000100092
  norm       = 3.77177
  Normalizat = 0.913135
  Prefactor  = 1.04592
 **********
 **   18 **HESSE 
 **********

 FCN=   6274.627     FROM HESSE     STATUS=OK           380 CALLS     2643 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5709        17.198        .13664E-03   -1.5122    
   2  Prefactor     .10000E-03    12.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3042        5.6164        .35865E-03   -1.5480    
   5  Prefactor     3.8706        3.0618        .11833E-03   -1.5314    
   6  Prefactor     .10000E-03    4.4297        .32075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.6669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.5285        .12292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .42527        25.641        .27995E-02   -1.5578    
  11  Prefactor     12.892        11.872        .11158E-03   -1.4990    
  12  Prefactor     .10000E-03    32.213        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.4580        14.354        .14684E-03   -1.5162    
  14  Prefactor     13.705        13.909        .10828E-03   -1.4967    
  15  Prefactor     12.345        11.283        .11403E-03   -1.5005    
  16  Prefactor     .10000E-03    218.15        .20679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.5590        .12292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    37.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.7253        4.8834        .18556E-03   -1.5322    
  20  Prefactor     .10009E-03    78.264        .22710       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.7718        1.4500        .56906E-04   -1.5320    
  22  Normalizat    .91314        .26487        .32426E-03   -.96000    
  23  Prefactor     1.0459        .15839        .18871E-03   -.91214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21893e-09
Minuit parameter uncertainties:
  1  17.2081
  2  3.47728e-05
  3  2.67225e-05
  4  5.41355
  5  3.06192
  6  1.18478e-05
  7  5.35607e-06
  8  3.85306e-07
  9  6.10529e-07
  10  6.60662
  11  11.8742
  12  0.000124408
  13  14.3607
  14  13.9122
  15  11.2847
  16  0.000395796
  17  8.64109e-06
  18  0.000141852
  19  4.88392
  20  0.00538191
  21  1.45003
  22  0.265246
  23  0.158458
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  1.046e+00  1.585e-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.131e-01  2.652e-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.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546565/likelihoodResults_654307201_654566401_4FGL_J2153.8-1137_daily_bin1601.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) = 6273.87981958
delta logL = 0.746901994744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6273.84854899
delta logL = 0.77817258371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31986E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.7284       1.0000          .0000       10.000    
     3 'Normalizat'    .80750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0902       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=   6273.849     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      335 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31017E-02    .40288E-01    .98789E-03    .21351E-01
   2  Index         7.7456        2.9133        .20755        .10259E-03
   3  Normalizat    .80784        .44712E-01    .77441E-01    .97608E-05
   4  Prefactor     1.0902        .27795E-01    .37970E-01   -.11878E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00310172
  Index      = 7.74562
  Normalizat = 0.807836
  Prefactor  = 1.09017
 **********
 **   18 **HESSE 
 **********

 FCN=   6273.849     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      370 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31017E-02    .12453        .40076E-04   -1.5697    
   2  Index         7.7456        8.6310        .77016E-02    .58132    
   3  Normalizat    .80784        .18631        .34280E-03   -.99779    
   4  Prefactor     1.0902        .11351        .18526E-03   -.89781    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.27512e-07
Minuit parameter uncertainties:
  1  0.0386688
  2  7.13985
  3  0.186461
  4  0.113533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546565': 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) = 6273.84853801
delta logL = 0.778183561883

Extracting fit parameters...

4FGL J2153.8-1137
   Spectrum: PowerLaw
284    Prefactor:  3.102e-03  3.867e-02  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  7.746e+00  7.140e+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.090e+00  1.135e-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:  8.078e-01  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 328.461 -11.631
Photon Index (Free Index): 7.75 +/- 7.14
Photon Flux (Free Index): 8.21e-08 +/- 7.09e-08
Energy Flux (Free Index): 9.59e-06 +/- 8.96e-06

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/546565/cmap_HighResolution_654307201_654566401_4FGL_J2153.8-1137_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.26e-03', comment='SUCCESS', energy_flux2='9.59e-06', dlogl='7.78e-01', photon_flux2='8.21e-08', job_status='DONE', time_completed='2021-09-29 00:38:43.854101', photon_index_error2='7.14', photon_index2='7.75', ts='0.00', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='8.96e-06', EG='0.91', time_epoch_completed='1632901123.85', return_code='0', job_id='546565', GAL2='1.09', EG2='0.81', return_code2='102', photon_flux_error2='7.09e-08', ts2='1.72', photon_index='2.55' WHERE bin_id='1601' AND source_name='4FGL J2153.8-1137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:38:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 546565: <4FGL_J2153.8-1137_daily_bin1601> in cluster <slac> Done

Job <4FGL_J2153.8-1137_daily_bin1601> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 00:25:26 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:25:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:25:29 2021
Terminated at Wed Sep 29 00:38:44 2021
Results reported at Wed Sep 29 00:38:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2153.8-1137_daily_bin1601 328.461 -11.6306 654307201 654566401 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 :                                   613.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            798 sec.

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

