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


Performing analysis on: 4FGL_J2158.1-1501_daily_bin1446
RA = 329.527, Dec = -15.0237
tmin = 614131201, tmax = 614390401
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='57946', job_status='RUN', time_executed='2021-09-27 22:11:49.125271', time_epoch_executed='1632805909.13' WHERE source_name='4FGL J2158.1-1501' and cadence='daily' and bin_id='1446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57946

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57946/ft1_4FGL_J2158.1-1501_daily_bin1446.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57946/ft2_4FGL_J2158.1-1501_daily_bin1446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57946/ft1_4FGL_J2158.1-1501_daily_bin1446.fits outfile=/scratch/kocevski/57946/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1446.fits ra=329.527 dec=-15.0237 rad=12.0 tmin=614131201.0 tmax=614390401.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.77
user 4.52
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/57946/ft2_4FGL_J2158.1-1501_daily_bin1446.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/57946/ft2_4FGL_J2158.1-1501_daily_bin1446.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/57946/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1446.fits evtable="EVENTS" outfile="/scratch/kocevski/57946/ft1_filtered_4FGL_J2158.1-1501_daily_bin1446.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.53
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57946/ft1_filtered_4FGL_J2158.1-1501_daily_bin1446.fits" evtable="EVENTS" scfile=/scratch/kocevski/57946/ft2_4FGL_J2158.1-1501_daily_bin1446.fits sctable="SC_DATA" outfile=/scratch/kocevski/57946/ltcube_614131201_614390401_4FGL_J2158.1-1501_daily_bin1446.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/57946/ft2_4FGL_J2158.1-1501_daily_bin1446.fits
.....................!
real 14.07
user 13.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57946/ft1_filtered_4FGL_J2158.1-1501_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/57946/ft2_4FGL_J2158.1-1501_daily_bin1446.fits sctable="SC_DATA" expcube=/scratch/kocevski/57946/ltcube_614131201_614390401_4FGL_J2158.1-1501_daily_bin1446.fits outfile=/scratch/kocevski/57946/expmap_614131201_614390401_4FGL_J2158.1-1501_daily_bin1446.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/57946/ltcube_614131201_614390401_4FGL_J2158.1-1501_daily_bin1446.fits
.....................!
real 196.76
user 190.85
sys 5.19

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

Setting source of interest to:
4FGL J2158.1-1501 @ 329.527 -15.0237

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/57946/ft1_filtered_4FGL_J2158.1-1501_daily_bin1446.fits scfile=/scratch/kocevski/57946/ft2_4FGL_J2158.1-1501_daily_bin1446.fits outfile=/scratch/kocevski/57946/cmap_614131201_614390401_4FGL_J2158.1-1501_daily_bin1446.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.527 yref=-15.0237 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57946/ft1_filtered_4FGL_J2158.1-1501_daily_bin1446.fits scfile=/scratch/kocevski/57946/ft2_4FGL_J2158.1-1501_daily_bin1446.fits outfile=/scratch/kocevski/57946/cmap_HighResolution_614131201_614390401_4FGL_J2158.1-1501_daily_bin1446.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.527 yref=-15.0237 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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57946/ft1_filtered_4FGL_J2158.1-1501_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/57946/ft2_4FGL_J2158.1-1501_daily_bin1446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57946/Model_4FGL_J2158.1-1501_daily_bin1446.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/57946/ft1_filtered_4FGL_J2158.1-1501_daily_bin1446.fits.....................!
real 47.04
user 45.69
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/57946/ft1_filtered_4FGL_J2158.1-1501_daily_bin1446.fits', '/scratch/kocevski/57946/ft2_4FGL_J2158.1-1501_daily_bin1446.fits', expMap='/scratch/kocevski/57946/expmap_614131201_614390401_4FGL_J2158.1-1501_daily_bin1446.fits', expCube='/scratch/kocevski/57946/ltcube_614131201_614390401_4FGL_J2158.1-1501_daily_bin1446.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/57946/Model_4FGL_J2158.1-1501_daily_bin1446.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2158.1-1501'

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  6.798e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
270        Index:  2.181e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.246e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/57946/ft1_filtered_4FGL_J2158.1-1501_daily_bin1446.fits
Spacecraft file(s): /scratch/kocevski/57946/ft2_4FGL_J2158.1-1501_daily_bin1446.fits
Exposure map: /scratch/kocevski/57946/expmap_614131201_614390401_4FGL_J2158.1-1501_daily_bin1446.fits
Exposure cube: /scratch/kocevski/57946/ltcube_614131201_614390401_4FGL_J2158.1-1501_daily_bin1446.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/57946/Model_4FGL_J2158.1-1501_daily_bin1446.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) = 4648.53695744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6376       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.954       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18922E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    10.251       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0024       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11346E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3548       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9137       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.913       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.170       1.0000         .10000E-03   10000.    
    16 'norm      '    4.8285       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0418       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96305       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4648.488     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     1937 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8708       -.29687E-06** at limit **
   2  Prefactor     4.6387        17.644        .85129E-06   -.11196E-03
   3  Prefactor     1.3216        12.463        .89609E-06   -.17908E-03
   4  Prefactor     .10000E-03    11.675        .12561E-05** at limit **
   5  Prefactor     27.950        60.677        .37890E-06   -.44083E-04
   6  Prefactor     .10000E-03    18.928        .51513E-06** at limit **
   7  Prefactor     .10034E-03    82.505        .22170E-04** at limit **
   8  norm          10.260        11.590        .75050E-06   -.16779E-03
   9  Prefactor     9.0037        8.9973        .26124E-06   -.56938E-03
  10  Prefactor     .10012E-03    54.913       -.15752E-04** at limit **
  11  Prefactor     6.3536        10.543        .39417E-06   -.43763E-04
  12  Prefactor     9.9157        12.354       -.65618E-08   -.22511E-03
  13  Prefactor     28.927        24.212        .10564E-06   -.48520E-04
  14  Prefactor     .10000E-03    30.407        .14090E-06** at limit **
  15  Prefactor     10.365        114.59       -.57547E-05    .65329E-05
  16  norm          4.8278        4.8183       -.11775E-06   -.28037E-03
  17  norm          .10000E-03    1.3978       -.16056E-05** at limit **
  18  Normalizat    1.0421        .25876        .16606E-05   -.66884E-03
  19  Prefactor     .96297        .15889       -.32675E-05   -.12307E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.63869
  Prefactor  = 1.32158
  Prefactor  = 0.000100003
  Prefactor  = 27.9498
  Prefactor  = 0.000100001
  Prefactor  = 0.00010034
  norm       = 10.2599
  Prefactor  = 9.00365
  Prefactor  = 0.000100115
  Prefactor  = 6.35363
  Prefactor  = 9.91572
  Prefactor  = 28.9273
  Prefactor  = 0.0001
  Prefactor  = 10.3646
  norm       = 4.82783
  norm       = 0.0001
  Normalizat = 1.04207
  Prefactor  = 0.962973
 **********
 **   18 **HESSE 
 **********

 FCN=   4648.488     FROM HESSE     STATUS=OK           270 CALLS     2207 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6387        17.605        .18689E-03   -1.5277    
   3  Prefactor     1.3216        12.419        .38272E-03   -1.5478    
   4  Prefactor     .10000E-03    12.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.950        60.659        .75774E-04   -1.4650    
   6  Prefactor     .10000E-03    19.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10034E-03    146.80        .45778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.260        11.484        .12515E-03   -1.5067    
   9  Prefactor     9.0037        8.9061        .13358E-03   -1.5108    
  10  Prefactor     .10012E-03    99.110        .47329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3536        10.532        .15922E-03   -1.5204    
  12  Prefactor     9.9157        12.337        .12727E-03   -1.5078    
  13  Prefactor     28.927        24.232        .74509E-04   -1.4632    
  14  Prefactor     .10000E-03    30.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.365        112.67        .12564E-03   -1.5064    
  16  norm          4.8278        4.8131        .14141E-03   -1.5268    
  17  norm          .10000E-03    1.4206        .11308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0421        .30572        .29894E-03   -.91634    
  19  Prefactor     .96297        .19225        .20025E-03   -.93974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21844e-09
Minuit parameter uncertainties:
  1  4.81786e-05
  2  17.6246
  3  8.10432
  4  0.000359335
  5  60.7937
  6  0.000204204
  7  0.0141637
  8  11.4866
  9  8.90745
  10  0.00677587
  11  10.535
  12  12.3406
  13  24.2398
  14  7.00023e-05
  15  68.5088
  16  4.81351
  17  4.23697e-05
  18  0.306237
  19  0.192389
Done.

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

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  1.001e-04  6.776e-03  1.000e-04  1.000e+04 ( 1.000e-13)
270        Index:  2.181e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  1.246e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  9.630e-01  1.924e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  1.042e+00  3.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 329.527 -15.024
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57946/likelihoodResults_614131201_614390401_4FGL_J2158.1-1501_daily_bin1446.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) = 4648.48809876
delta logL = -4.73799118481e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4648.48809876
delta logL = -4.73770251119e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1813       1.0000          .0000       10.000    
     3 'Normalizat'    1.0421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96298       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4648.488     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      209 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.874        .14033    ** at limit **
   2  Index         2.1284        3.3434        .50000        .46821E-05
   3  Normalizat    1.0421        .58310E-02    .67575E-01   -.36099E-03
   4  Prefactor     .96298        .37916E-02    .45803E-01   -.36030E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12839
  Normalizat = 1.04206
  Prefactor  = 0.962979
 **********
 **   18 **HESSE 
 **********

 FCN=   4648.488     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      240 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9526.3        .48141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1284        6.0267        .50000       -.61178    
   3  Normalizat    1.0421        .95107E-01    .29895E-03   -.91634    
   4  Prefactor     .96298        .61819E-01    .20025E-03   -.93974    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.76204e-09
Minuit parameter uncertainties:
  1  0.00361293
  2  49.6048
  3  0.0951222
  4  0.0618239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57946': 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) = 4648.48805133
delta logL = 5.97747202846e-08

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  3.613e-03  1.000e-04  1.000e+04 ( 1.000e-13)
270        Index:  2.128e+00  4.960e+01  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  1.246e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  9.630e-01  6.182e-02  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  1.042e+00  9.512e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 329.527 -15.024

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/57946/cmap_HighResolution_614131201_614390401_4FGL_J2158.1-1501_daily_bin1446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-27 22:20:28.406989', job_id='57946', GAL2='0.96', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632806428.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.98e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1446' AND source_name='4FGL J2158.1-1501' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:20:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 57946: <4FGL_J2158.1-1501_daily_bin1446> in cluster <slac> Done

Job <4FGL_J2158.1-1501_daily_bin1446> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep 27 22:10:30 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:10:42 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:10:42 2021
Terminated at Mon Sep 27 22:20:29 2021
Results reported at Mon Sep 27 22:20:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.1-1501_daily_bin1446 329.527 -15.0237 614131201 614390401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2158.1-1501 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   499.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             362.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   586 sec.
    Turnaround time :                            599 sec.

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

