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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1424
RA = 329.714, Dec = -30.2251
tmin = 608428801, tmax = 608688001
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='64350', job_status='RUN', time_executed='2021-09-27 22:33:41.162382', time_epoch_executed='1632807221.16' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64350

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64350/ft1_4FGL_J2158.8-3013_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64350/ft2_4FGL_J2158.8-3013_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64350/ft1_4FGL_J2158.8-3013_daily_bin1424.fits outfile=/scratch/kocevski/64350/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1424.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=608428801.0 tmax=608688001.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.95
user 4.69
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/64350/ft2_4FGL_J2158.8-3013_daily_bin1424.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/64350/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1424.fits evtable="EVENTS" outfile="/scratch/kocevski/64350/ft1_filtered_4FGL_J2158.8-3013_daily_bin1424.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64350/ft1_filtered_4FGL_J2158.8-3013_daily_bin1424.fits" evtable="EVENTS" scfile=/scratch/kocevski/64350/ft2_4FGL_J2158.8-3013_daily_bin1424.fits sctable="SC_DATA" outfile=/scratch/kocevski/64350/ltcube_608428801_608688001_4FGL_J2158.8-3013_daily_bin1424.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/64350/ft2_4FGL_J2158.8-3013_daily_bin1424.fits
.....................!
real 12.93
user 12.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64350/ft1_filtered_4FGL_J2158.8-3013_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/64350/ft2_4FGL_J2158.8-3013_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/64350/ltcube_608428801_608688001_4FGL_J2158.8-3013_daily_bin1424.fits outfile=/scratch/kocevski/64350/expmap_608428801_608688001_4FGL_J2158.8-3013_daily_bin1424.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/64350/ltcube_608428801_608688001_4FGL_J2158.8-3013_daily_bin1424.fits
.....................!
real 192.11
user 185.99
sys 5.76

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/64350/ft1_filtered_4FGL_J2158.8-3013_daily_bin1424.fits scfile=/scratch/kocevski/64350/ft2_4FGL_J2158.8-3013_daily_bin1424.fits outfile=/scratch/kocevski/64350/cmap_608428801_608688001_4FGL_J2158.8-3013_daily_bin1424.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.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64350/ft1_filtered_4FGL_J2158.8-3013_daily_bin1424.fits scfile=/scratch/kocevski/64350/ft2_4FGL_J2158.8-3013_daily_bin1424.fits outfile=/scratch/kocevski/64350/cmap_HighResolution_608428801_608688001_4FGL_J2158.8-3013_daily_bin1424.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64350/ft1_filtered_4FGL_J2158.8-3013_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/64350/ft2_4FGL_J2158.8-3013_daily_bin1424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64350/Model_4FGL_J2158.8-3013_daily_bin1424.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/64350/ft1_filtered_4FGL_J2158.8-3013_daily_bin1424.fits.....................!
real 60.44
user 59.12
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/64350/ft1_filtered_4FGL_J2158.8-3013_daily_bin1424.fits', '/scratch/kocevski/64350/ft2_4FGL_J2158.8-3013_daily_bin1424.fits', expMap='/scratch/kocevski/64350/expmap_608428801_608688001_4FGL_J2158.8-3013_daily_bin1424.fits', expCube='/scratch/kocevski/64350/ltcube_608428801_608688001_4FGL_J2158.8-3013_daily_bin1424.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/64350/Model_4FGL_J2158.8-3013_daily_bin1424.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/64350/ft1_filtered_4FGL_J2158.8-3013_daily_bin1424.fits
Spacecraft file(s): /scratch/kocevski/64350/ft2_4FGL_J2158.8-3013_daily_bin1424.fits
Exposure map: /scratch/kocevski/64350/expmap_608428801_608688001_4FGL_J2158.8-3013_daily_bin1424.fits
Exposure cube: /scratch/kocevski/64350/ltcube_608428801_608688001_4FGL_J2158.8-3013_daily_bin1424.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/64350/Model_4FGL_J2158.8-3013_daily_bin1424.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) = 7395.2827315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2125       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6196       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.451       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9345       1.0000         .10000E-03   10000.    
     6 'norm      '    .12592E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12201E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.566       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9965       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4326       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9243       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.632       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3965       1.0000         .10000E-03   10000.    
    14 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.984       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6197       1.0000         .10000E-03   10000.    
    17 'norm      '    .41883       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33443E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1905       1.0000         .10000E-03   10000.    
    20 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0615       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78768       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=   7395.226     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2103 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2117        5.8879        .12455E-06    .40451E-04
   2  Prefactor     .10000E-03    3.3070        .17447E-07** at limit **
   3  Prefactor     5.6171        7.2484        .21796E-06   -.35871E-04
   4  Prefactor     29.447        14.734        .27276E-07    .23307E-04
   5  Prefactor     6.9390        7.7602        .23412E-06   -.10004E-04
   6  norm          .10000E-03    3.8257       -.13954E-06** at limit **
   7  Prefactor     .10000E-03    18.975       -.13404E-05** at limit **
   8  Prefactor     10.507        63.975       -.36172E-05   -.30558E-04
   9  norm          2.9984        3.9971        .18916E-06    .44641E-05
  10  norm          1.4326        .42541        .66161E-09    .48046E-03
  11  Prefactor     2.9264        5.3409        .17416E-06   -.17867E-03
  12  Prefactor     22.668        15.367       -.64988E-07    .80147E-05
  13  Prefactor     4.3938        5.0607        .53157E-08   -.79991E-04
  14  norm          .10000E-03    6.4195       -.66545E-08** at limit **
  15  Prefactor     20.991        15.879       -.12419E-06   -.72776E-05
  16  Prefactor     5.6348        8.5478        .34553E-06    .22818E-04
  17  norm          .41510        1.4266        .16914E-05   -.21056E-03
  18  Prefactor     .10087E-03    34.152       -.40756E-05** at limit **
  19  Prefactor     2.2043        14.997        .85637E-06   -.68846E-04
  20  norm          .10000E-03    2.2569       -.57372E-08** at limit **
  21  Normalizat    1.0613        .17367        .43293E-06    .45306E-04
  22  Prefactor     .78785        .11957       -.46124E-06    .20845E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.21174
  Prefactor  = 0.0001
  Prefactor  = 5.61708
  Prefactor  = 29.4474
  Prefactor  = 6.93901
  norm       = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 10.5075
  norm       = 2.99838
  norm       = 1.43261
  Prefactor  = 2.92645
  Prefactor  = 22.6681
  Prefactor  = 4.39381
  norm       = 0.0001
  Prefactor  = 20.9914
  Prefactor  = 5.63484
  norm       = 0.415097
  Prefactor  = 0.000100872
  Prefactor  = 2.20429
  norm       = 0.0001
  Normalizat = 1.0613
  Prefactor  = 0.787853
 **********
 **   18 **HESSE 
 **********

 FCN=   7395.226     FROM HESSE     STATUS=OK           364 CALLS     2467 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2117        5.8900        .14936E-03   -1.5171    
   2  Prefactor     .10000E-03    3.3558        .15269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6171        7.2010        .16946E-03   -1.5234    
   4  Prefactor     29.447        14.721        .73826E-04   -1.4622    
   5  Prefactor     6.9390        7.7182        .15235E-03   -1.5181    
   6  norm          .10000E-03    20.741        .32312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.507        65.556        .12326E-03   -1.5060    
   9  norm          2.9984        3.9759        .17081E-03   -1.5362    
  10  norm          1.4326        .42781        .27429E-04   -1.5469    
  11  Prefactor     2.9264        5.3310        .23755E-03   -1.5366    
  12  Prefactor     22.668        15.386        .84197E-04   -1.4755    
  13  Prefactor     4.3938        5.0723        .19208E-03   -1.5289    
  14  norm          .10000E-03    6.4237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.991        15.886        .87437E-04   -1.4791    
  16  Prefactor     5.6348        8.5824        .16946E-03   -1.5233    
  17  norm          .41510        1.7938        .19142E-03   -1.5579    
  18  Prefactor     .10087E-03    43.296        .13939       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2043        15.157        .27808E-03   -1.5411    
  20  norm          .10000E-03    2.2887        .12613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0613        .20703        .25488E-03   -.91004    
  22  Prefactor     .78785        .14161        .21360E-03   -1.0018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08411e-10
Minuit parameter uncertainties:
  1  5.89044
  2  1.5852e-07
  3  7.20211
  4  14.7232
  5  7.7193
  6  0.000369175
  7  0.000482747
  8  52.5761
  9  3.97625
  10  0.427812
  11  5.33187
  12  15.3882
  13  5.07279
  14  4.84882e-06
  15  15.8889
  16  8.58423
  17  1.72568
  18  0.0122978
  19  11.5644
  20  5.7036e-06
  21  0.207185
  22  0.141675
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.433e+00  4.278e-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:  7.879e-01  1.417e-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:  1.061e+00  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 64.35
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 3.54e-08
Energy Flux (Fixed Index): 1.35e-04 +/- 4.02e-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) = 7395.19860262
delta logL = 0.0278483859147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7395.19455167
delta logL = 0.0318993351548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4305       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8209       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79028       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=   7395.195     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4305        .86443        .60917E-02    .21332E-03
   2  alpha         1.8209        .44814        .16373        .61862E-04
   3  Normalizat    1.0538        .16470        .57793E-01    .92570E-04
   4  Prefactor     .79029        .11877        .43591E-01    .19036E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.4305
  alpha      = 1.82092
  Normalizat = 1.05381
  Prefactor  = 0.790287
 **********
 **   18 **HESSE 
 **********

 FCN=   7395.195     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4305        .39067        .26910E-04   -1.5469    
   2  alpha         1.8209        .21387        .68596E-02   -.27509    
   3  Normalizat    1.0538        .19031        .25557E-03   -.91249    
   4  Prefactor     .79029        .13836        .21324E-03   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7821e-11
Minuit parameter uncertainties:
  1  0.390668
  2  0.214151
  3  0.190435
  4  0.138423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64350': 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) = 7395.19455167
delta logL = 0.031899336529

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.430e+00  3.907e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.821e+00  2.142e-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:  7.903e-01  1.384e-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:  1.054e+00  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 64.50
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.82 +/- 0.21
Photon Flux (Free Index): 1.26e-07 +/- 4.47e-08
Energy Flux (Free Index): 1.24e-04 +/- 5.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/64350/cmap_HighResolution_608428801_608688001_4FGL_J2158.8-3013_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='1.24e-04', photon_flux_error='3.54e-08', dlogl='3.19e-02', energy_flux='1.35e-04', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-27 22:43:46.090739', photon_index_error2='0.21', photon_index2='1.82', ts='64.35', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='5.20e-05', EG='1.06', time_epoch_completed='1632807826.09', return_code='0', job_id='64350', GAL2='0.79', EG2='1.05', return_code2='0', energy_flux_error='4.02e-05', photon_flux_error2='4.47e-08', ts2='64.50', photon_index='1.77' WHERE bin_id='1424' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:43:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 64350: <4FGL_J2158.8-3013_daily_bin1424> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1424> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:30:31 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:33:08 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:33:08 2021
Terminated at Mon Sep 27 22:43:46 2021
Results reported at Mon Sep 27 22:43:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1424 329.714 -30.2251 608428801 608688001 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 :                                   594.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            795 sec.

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

