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


Performing analysis on: 4FGL_J2158.1-1501_daily_bin1271
RA = 329.527, Dec = -15.0237
tmin = 568771201, tmax = 569030401
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='55235', job_status='RUN', time_executed='2021-09-27 22:05:14.270831', time_epoch_executed='1632805514.27' WHERE source_name='4FGL J2158.1-1501' and cadence='daily' and bin_id='1271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55235

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55235/ft1_4FGL_J2158.1-1501_daily_bin1271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55235/ft2_4FGL_J2158.1-1501_daily_bin1271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55235/ft1_4FGL_J2158.1-1501_daily_bin1271.fits outfile=/scratch/kocevski/55235/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1271.fits ra=329.527 dec=-15.0237 rad=12.0 tmin=568771201.0 tmax=569030401.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.61
user 3.39
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55235/ft2_4FGL_J2158.1-1501_daily_bin1271.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/55235/ft1_filteredMKT_4FGL_J2158.1-1501_daily_bin1271.fits evtable="EVENTS" outfile="/scratch/kocevski/55235/ft1_filtered_4FGL_J2158.1-1501_daily_bin1271.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.59
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55235/ft1_filtered_4FGL_J2158.1-1501_daily_bin1271.fits" evtable="EVENTS" scfile=/scratch/kocevski/55235/ft2_4FGL_J2158.1-1501_daily_bin1271.fits sctable="SC_DATA" outfile=/scratch/kocevski/55235/ltcube_568771201_569030401_4FGL_J2158.1-1501_daily_bin1271.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/55235/ft2_4FGL_J2158.1-1501_daily_bin1271.fits
.....................!
real 13.78
user 13.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55235/ft1_filtered_4FGL_J2158.1-1501_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/55235/ft2_4FGL_J2158.1-1501_daily_bin1271.fits sctable="SC_DATA" expcube=/scratch/kocevski/55235/ltcube_568771201_569030401_4FGL_J2158.1-1501_daily_bin1271.fits outfile=/scratch/kocevski/55235/expmap_568771201_569030401_4FGL_J2158.1-1501_daily_bin1271.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/55235/ltcube_568771201_569030401_4FGL_J2158.1-1501_daily_bin1271.fits
.....................!
real 191.96
user 184.81
sys 5.62

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/55235/ft1_filtered_4FGL_J2158.1-1501_daily_bin1271.fits scfile=/scratch/kocevski/55235/ft2_4FGL_J2158.1-1501_daily_bin1271.fits outfile=/scratch/kocevski/55235/cmap_568771201_569030401_4FGL_J2158.1-1501_daily_bin1271.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55235/ft1_filtered_4FGL_J2158.1-1501_daily_bin1271.fits scfile=/scratch/kocevski/55235/ft2_4FGL_J2158.1-1501_daily_bin1271.fits outfile=/scratch/kocevski/55235/cmap_HighResolution_568771201_569030401_4FGL_J2158.1-1501_daily_bin1271.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.58
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55235/ft1_filtered_4FGL_J2158.1-1501_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/55235/ft2_4FGL_J2158.1-1501_daily_bin1271.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55235/Model_4FGL_J2158.1-1501_daily_bin1271.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/55235/ft1_filtered_4FGL_J2158.1-1501_daily_bin1271.fits.....................!
real 49.30
user 47.57
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/55235/ft1_filtered_4FGL_J2158.1-1501_daily_bin1271.fits', '/scratch/kocevski/55235/ft2_4FGL_J2158.1-1501_daily_bin1271.fits', expMap='/scratch/kocevski/55235/expmap_568771201_569030401_4FGL_J2158.1-1501_daily_bin1271.fits', expCube='/scratch/kocevski/55235/ltcube_568771201_569030401_4FGL_J2158.1-1501_daily_bin1271.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/55235/Model_4FGL_J2158.1-1501_daily_bin1271.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/55235/ft1_filtered_4FGL_J2158.1-1501_daily_bin1271.fits
Spacecraft file(s): /scratch/kocevski/55235/ft2_4FGL_J2158.1-1501_daily_bin1271.fits
Exposure map: /scratch/kocevski/55235/expmap_568771201_569030401_4FGL_J2158.1-1501_daily_bin1271.fits
Exposure cube: /scratch/kocevski/55235/ltcube_568771201_569030401_4FGL_J2158.1-1501_daily_bin1271.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/55235/Model_4FGL_J2158.1-1501_daily_bin1271.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4880.77107277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8682       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.343       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7242       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .50830       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0354       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3168       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88740       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=   4880.696     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1629 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.423        .90712E-02** at limit **
   2  Prefactor     4.8704        14.501        .45578E-02   -.24766E-03
   3  Prefactor     .10000E-03    3.1008        .90712E-02** at limit **
   4  Prefactor     .10000E-03    5.0042        .90712E-02** at limit **
   5  Prefactor     .10000E-03    74.270        .90712E-02** at limit **
   6  Prefactor     .10003E-03    16.759        .90712E-02** at limit **
   7  Prefactor     .10000E-03    6.5333        .90712E-02** at limit **
   8  norm          .10000E-03    2.0796        .90712E-02** at limit **
   9  Prefactor     10.344        8.3066        .31147E-02    .17362E-02
  10  Prefactor     .10000E-03    12.308        .90712E-02** at limit **
  11  Prefactor     .10003E-03    15.597        .90712E-02** at limit **
  12  Prefactor     3.7239        13.079        .52311E-02    .20719E-03
  13  Prefactor     .10000E-03    7.7636        .90712E-02** at limit **
  14  Prefactor     .10000E-03    126.18        .90712E-02** at limit **
  15  Prefactor     .10000E-03    21.951        .90712E-02** at limit **
  16  norm          .51656        2.7373        .61599E-01    .46440E-03
  17  norm          2.0353        1.2671        .72478E-02    .95400E-04
  18  Normalizat    1.3166        .25022        .62813E-01    .21528E-04
  19  Prefactor     .88745        .15579        .44844E-01    .24168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.87042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.3443
  Prefactor  = 0.000100001
  Prefactor  = 0.000100028
  Prefactor  = 3.72386
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.516564
  norm       = 2.03525
  Normalizat = 1.3166
  Prefactor  = 0.887453
 **********
 **   18 **HESSE 
 **********

 FCN=   4880.696     FROM HESSE     STATUS=OK           264 CALLS     1893 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8704        14.489        .18231E-03   -1.5267    
   3  Prefactor     .10000E-03    3.1443        .12013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.0430        .15261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    74.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    16.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.5414        .17440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.0796        .98393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.344        8.3316        .62293E-03   -1.5065    
  10  Prefactor     .10000E-03    12.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    15.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7239        13.079        .20924E-03   -1.5322    
  13  Prefactor     .10000E-03    7.7701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    126.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .51656        9.4128        .21840E-02   -1.5564    
  17  norm          2.0353        1.2671        .59570E-04   -1.5423    
  18  Normalizat    1.3166        .30510        .27783E-03   -.83072    
  19  Prefactor     .88745        .18961        .21068E-03   -.96581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22161e-09
Minuit parameter uncertainties:
  1  5.4868e-05
  2  14.4992
  3  2.10863e-06
  4  4.27307e-06
  5  0.000598718
  6  0.00143627
  7  1.30561e-05
  8  2.4157e-06
  9  8.33254
  10  0.000217237
  11  0.00132906
  12  13.089
  13  3.19204e-06
  14  0.000681929
  15  0.000244193
  16  4.41052
  17  1.26707
  18  0.305514
  19  0.189755
Done.

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

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  2.172e-04  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:  8.875e-01  1.898e-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.317e+00  3.055e-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: 8.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55235/likelihoodResults_568771201_569030401_4FGL_J2158.1-1501_daily_bin1271.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) = 4880.69590936
delta logL = -0.000385199971788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4880.69552413
delta logL = 3.05462890537e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1639       1.0000          .0000       10.000    
     3 'Normalizat'    1.3166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88746       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4880.696     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      245 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10055E-03    101.85        .18142E-02** at limit **
   2  Index         2.1273        7.0740        .50000        .88121E-05
   3  Normalizat    1.3166        .17441E-01    .27783E-03   -.40919E-06
   4  Prefactor     .88745        .11171E-01    .21068E-03   -.97131E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100552
  Index      = 2.12727
  Normalizat = 1.3166
  Prefactor  = 0.887453
 **********
 **   18 **HESSE 
 **********

 FCN=   4880.696     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10055E-03    447.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1273        6.4655        .50000       -.61205    
   3  Normalizat    1.3166        .37926E-01    .11113E-04   -.83072    
   4  Prefactor     .88745        .24291E-01    .84272E-05   -.96581    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.29925e-09
Minuit parameter uncertainties:
  1  0.0316869
  2  588.848
  3  0.037927
  4  0.0242913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55235': 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) = 4880.69552404
delta logL = 1.13128407975e-07

Extracting fit parameters...

4FGL J2158.1-1501
   Spectrum: PowerLaw
269    Prefactor:  1.006e-04  3.169e-02  1.000e-04  1.000e+04 ( 1.000e-13)
270        Index:  2.127e+00  5.888e+02  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:  8.875e-01  2.429e-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.317e+00  3.793e-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/55235/cmap_HighResolution_568771201_569030401_4FGL_J2158.1-1501_daily_bin1271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='8.07e-08', time_completed='2021-09-27 22:13:30.025791', job_id='55235', GAL2='0.89', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1632806010.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1271' AND source_name='4FGL J2158.1-1501' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:13:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 55235: <4FGL_J2158.1-1501_daily_bin1271> in cluster <slac> Done

Job <4FGL_J2158.1-1501_daily_bin1271> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep 27 22:00:35 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:02: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:02:42 2021
Terminated at Mon Sep 27 22:13:31 2021
Results reported at Mon Sep 27 22:13:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.1-1501_daily_bin1271 329.527 -15.0237 568771201 569030401 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 :                                   488.57 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            776 sec.

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

