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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin620
RA = 329.714, Dec = -30.2251
tmin = 400032001, tmax = 400291201
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='61270', job_status='RUN', time_executed='2021-09-27 22:24:43.757999', time_epoch_executed='1632806683.76' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61270/ft1_4FGL_J2158.8-3013_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61270/ft2_4FGL_J2158.8-3013_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61270/ft1_4FGL_J2158.8-3013_daily_bin620.fits outfile=/scratch/kocevski/61270/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin620.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=400032001.0 tmax=400291201.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.42
user 4.16
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/61270/ft2_4FGL_J2158.8-3013_daily_bin620.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/61270/ft2_4FGL_J2158.8-3013_daily_bin620.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/61270/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin620.fits evtable="EVENTS" outfile="/scratch/kocevski/61270/ft1_filtered_4FGL_J2158.8-3013_daily_bin620.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61270/ft1_filtered_4FGL_J2158.8-3013_daily_bin620.fits" evtable="EVENTS" scfile=/scratch/kocevski/61270/ft2_4FGL_J2158.8-3013_daily_bin620.fits sctable="SC_DATA" outfile=/scratch/kocevski/61270/ltcube_400032001_400291201_4FGL_J2158.8-3013_daily_bin620.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/61270/ft2_4FGL_J2158.8-3013_daily_bin620.fits
.....................!
real 15.27
user 14.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61270/ft1_filtered_4FGL_J2158.8-3013_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/61270/ft2_4FGL_J2158.8-3013_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/61270/ltcube_400032001_400291201_4FGL_J2158.8-3013_daily_bin620.fits outfile=/scratch/kocevski/61270/expmap_400032001_400291201_4FGL_J2158.8-3013_daily_bin620.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/61270/ltcube_400032001_400291201_4FGL_J2158.8-3013_daily_bin620.fits
.....................!
real 192.36
user 186.48
sys 4.90

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2158.8-3013 @ 329.714 -30.2251

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/61270/ft1_filtered_4FGL_J2158.8-3013_daily_bin620.fits scfile=/scratch/kocevski/61270/ft2_4FGL_J2158.8-3013_daily_bin620.fits outfile=/scratch/kocevski/61270/cmap_400032001_400291201_4FGL_J2158.8-3013_daily_bin620.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=329.714 yref=-30.2251 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61270/ft1_filtered_4FGL_J2158.8-3013_daily_bin620.fits scfile=/scratch/kocevski/61270/ft2_4FGL_J2158.8-3013_daily_bin620.fits outfile=/scratch/kocevski/61270/cmap_HighResolution_400032001_400291201_4FGL_J2158.8-3013_daily_bin620.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=329.714 yref=-30.2251 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/61270/ft1_filtered_4FGL_J2158.8-3013_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/61270/ft2_4FGL_J2158.8-3013_daily_bin620.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61270/Model_4FGL_J2158.8-3013_daily_bin620.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/61270/ft1_filtered_4FGL_J2158.8-3013_daily_bin620.fits.....................!
real 42.36
user 40.88
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/61270/ft1_filtered_4FGL_J2158.8-3013_daily_bin620.fits', '/scratch/kocevski/61270/ft2_4FGL_J2158.8-3013_daily_bin620.fits', expMap='/scratch/kocevski/61270/expmap_400032001_400291201_4FGL_J2158.8-3013_daily_bin620.fits', expCube='/scratch/kocevski/61270/ltcube_400032001_400291201_4FGL_J2158.8-3013_daily_bin620.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/61270/Model_4FGL_J2158.8-3013_daily_bin620.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2158.8-3013'

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.436e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.767e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  4.097e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/61270/ft1_filtered_4FGL_J2158.8-3013_daily_bin620.fits
Spacecraft file(s): /scratch/kocevski/61270/ft2_4FGL_J2158.8-3013_daily_bin620.fits
Exposure map: /scratch/kocevski/61270/expmap_400032001_400291201_4FGL_J2158.8-3013_daily_bin620.fits
Exposure cube: /scratch/kocevski/61270/ltcube_400032001_400291201_4FGL_J2158.8-3013_daily_bin620.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/61270/Model_4FGL_J2158.8-3013_daily_bin620.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) = 4467.31199602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8243       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15153E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.131       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.631       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    71.220       1.0000         .10000E-03   10000.    
     9 'norm      '    18.460       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3350       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4028       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5914       1.0000         .10000E-03   10000.    
    14 'norm      '    23.244       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.791       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2909       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    68.302       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.943       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .51839       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0673       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4467.246     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2415 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8216        8.7952        .13497E-05   -.13244E-03
   2  Prefactor     .10001E-03    6.4171        .28685E-06** at limit **
   3  Prefactor     41.127        15.998       -.85911E-07    .13484E-04
   4  Prefactor     .10000E-03    7.1141        .67366E-07** at limit **
   5  Prefactor     .10000E-03    10.148        .10861E-06** at limit **
   6  norm          18.630        12.321       -.76205E-06   -.11484E-05
   7  Prefactor     .10000E-03    65.162        .16652E-05** at limit **
   8  Prefactor     71.210        70.500       -.67258E-05   -.13537E-04
   9  norm          18.462        9.4339        .14383E-05   -.50390E-04
  10  norm          1.3350        .56614       -.40600E-07    .25606E-03
  11  Prefactor     .10000E-03    5.6106        .54704E-07** at limit **
  12  Prefactor     8.4028        18.549        .21912E-05   -.24729E-04
  13  Prefactor     1.5904        17.997       -.27424E-05   -.33625E-03
  14  norm          23.240        19.476        .17784E-05    .48756E-05
  15  Prefactor     20.786        18.348        .15741E-05    .90572E-05
  16  Prefactor     6.2880        17.158        .77714E-06   -.55608E-04
  17  norm          .10000E-03    1.6970       -.59545E-06** at limit **
  18  Prefactor     68.319        60.867        .11198E-04    .42841E-04
  19  Prefactor     11.942        15.865        .26381E-05   -.25795E-04
  20  norm          .10000E-03    1.8701       -.58979E-07** at limit **
  21  Normalizat    .51836        .26567       -.41555E-05    .16652E-06
  22  Prefactor     1.0674        .16916        .83914E-06   -.59018E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.82161
  Prefactor  = 0.000100012
  Prefactor  = 41.1273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.6301
  Prefactor  = 0.000100004
  Prefactor  = 71.2104
  norm       = 18.4619
  norm       = 1.33501
  Prefactor  = 0.0001
  Prefactor  = 8.40277
  Prefactor  = 1.59036
  norm       = 23.2402
  Prefactor  = 20.7864
  Prefactor  = 6.28802
  norm       = 0.000100001
  Prefactor  = 68.3193
  Prefactor  = 11.9421
  norm       = 0.0001
  Normalizat = 0.518361
  Prefactor  = 1.06742
 **********
 **   18 **HESSE 
 **********

 FCN=   4467.246     FROM HESSE     STATUS=OK           354 CALLS     2769 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8216        8.7652        .20639E-03   -1.5317    
   2  Prefactor     .10001E-03    7.1424        .53880E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.127        15.969        .62503E-04   -1.4424    
   4  Prefactor     .10000E-03    7.1227        .17411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.630        12.313        .92792E-04   -1.4844    
   7  Prefactor     .10000E-03    65.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     71.210        70.105        .47569E-04   -1.4018    
   9  norm          18.462        9.4123        .93219E-04   -1.4848    
  10  norm          1.3350        .56683        .29743E-04   -1.5477    
  11  Prefactor     .10000E-03    5.6265        .15459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.4028        18.470        .13829E-03   -1.5128    
  13  Prefactor     1.5904        18.939        .33634E-03   -1.5456    
  14  norm          23.240        19.442        .83082E-04   -1.4743    
  15  Prefactor     20.786        18.352        .87841E-04   -1.4796    
  16  Prefactor     6.2880        17.103        .16004E-03   -1.5206    
  17  norm          .10000E-03    1.7626        .17093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     68.319        60.349        .48567E-04   -1.4053    
  19  Prefactor     11.942        15.873        .11592E-03   -1.5017    
  20  norm          .10000E-03    1.8797        .89266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .51836        .28672        .36926E-03   -1.1157    
  22  Prefactor     1.0674        .18781        .19600E-03   -.90515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57475e-09
Minuit parameter uncertainties:
  1  8.76816
  2  0.000582618
  3  15.9707
  4  1.18322e-05
  5  2.25086e-05
  6  12.3149
  7  0.00107558
  8  70.1869
  9  9.41309
  10  0.566832
  11  3.67962e-06
  12  18.4821
  13  10.9804
  14  19.4473
  15  18.357
  16  17.1166
  17  7.79095e-05
  18  60.403
  19  15.8783
  20  7.5317e-06
  21  0.287541
  22  0.187929
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.335e+00  5.668e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.767e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  4.097e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.067e+00  1.879e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  5.184e-01  2.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.16
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 4.70e-08
Energy Flux (Fixed Index): 1.25e-04 +/- 5.33e-05

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) = 4466.03029613
delta logL = 1.21617255569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4466.01809034
delta logL = 1.22837834278

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1689       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3733       1.0000          .0000       5.0000    
     3 'Normalizat'    .41421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1068       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4466.018     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      240 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1690        4.8598        .51610E-02    .15662E-03
   2  alpha         2.3732        3.6392        .15505        .58508E-04
   3  Normalizat    .41418        .16902        .92150E-01    .35181E-04
   4  Prefactor     1.1068        .75455E-01    .37334E-01   -.11376E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16898
  alpha      = 2.37325
  Normalizat = 0.414183
  Prefactor  = 1.10679
 **********
 **   18 **HESSE 
 **********

 FCN=   4466.018     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1690        .54506        .22859E-04   -1.5492    
   2  alpha         2.3732        .39724        .63524E-02   -.50722E-01
   3  Normalizat    .41418        .24949        .40836E-03   -1.1657    
   4  Prefactor     1.1068        .18093        .19228E-03   -.89250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43583e-09
Minuit parameter uncertainties:
  1  0.545062
  2  0.398935
  3  0.250162
  4  0.181028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61270': 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) = 4466.01809021
delta logL = 1.22837847083

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.169e+00  5.451e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.373e+00  3.989e-01  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  4.097e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.107e+00  1.810e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  4.142e-01  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.00
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 2.37 +/- 0.40
Photon Flux (Free Index): 2.29e-07 +/- 1.07e-07
Energy Flux (Free Index): 7.95e-05 +/- 2.98e-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/61270/cmap_HighResolution_400032001_400291201_4FGL_J2158.8-3013_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='7.95e-05', photon_flux_error='4.70e-08', dlogl='1.23e+00', energy_flux='1.25e-04', photon_flux2='2.29e-07', job_status='DONE', time_completed='2021-09-27 22:33:03.012012', photon_index_error2='0.40', photon_index2='2.37', ts='18.16', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.98e-05', EG='0.52', time_epoch_completed='1632807183.01', return_code='0', job_id='61270', GAL2='1.11', EG2='0.41', return_code2='0', energy_flux_error='5.33e-05', photon_flux_error2='1.07e-07', ts2='21.00', photon_index='1.77' WHERE bin_id='620' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:33:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 61270: <4FGL_J2158.8-3013_daily_bin620> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin620> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep 27 22:20:25 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:20:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 22:20:54 2021
Terminated at Mon Sep 27 22:33:03 2021
Results reported at Mon Sep 27 22:33:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin620 329.714 -30.2251 400032001 400291201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2158.8-3013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   497.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            758 sec.

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

