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


Performing analysis on: 4FGL_J2158.8-3013_daily_bin1499
RA = 329.714, Dec = -30.2251
tmin = 627868801, tmax = 628128001
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='64470', job_status='RUN', time_executed='2021-09-27 22:35:10.262923', time_epoch_executed='1632807310.26' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='1499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64470

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64470/ft1_4FGL_J2158.8-3013_daily_bin1499.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64470/ft2_4FGL_J2158.8-3013_daily_bin1499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64470/ft1_4FGL_J2158.8-3013_daily_bin1499.fits outfile=/scratch/kocevski/64470/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin1499.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=627868801.0 tmax=628128001.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 2.53
user 2.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64470/ft1_filtered_4FGL_J2158.8-3013_daily_bin1499.fits" evtable="EVENTS" scfile=/scratch/kocevski/64470/ft2_4FGL_J2158.8-3013_daily_bin1499.fits sctable="SC_DATA" outfile=/scratch/kocevski/64470/ltcube_627868801_628128001_4FGL_J2158.8-3013_daily_bin1499.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/64470/ft2_4FGL_J2158.8-3013_daily_bin1499.fits
.....................!
real 17.64
user 17.22
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64470/ft1_filtered_4FGL_J2158.8-3013_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/64470/ft2_4FGL_J2158.8-3013_daily_bin1499.fits sctable="SC_DATA" expcube=/scratch/kocevski/64470/ltcube_627868801_628128001_4FGL_J2158.8-3013_daily_bin1499.fits outfile=/scratch/kocevski/64470/expmap_627868801_628128001_4FGL_J2158.8-3013_daily_bin1499.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/64470/ltcube_627868801_628128001_4FGL_J2158.8-3013_daily_bin1499.fits
.....................!
real 193.34
user 188.08
sys 4.83

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/64470/ft1_filtered_4FGL_J2158.8-3013_daily_bin1499.fits scfile=/scratch/kocevski/64470/ft2_4FGL_J2158.8-3013_daily_bin1499.fits outfile=/scratch/kocevski/64470/cmap_627868801_628128001_4FGL_J2158.8-3013_daily_bin1499.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64470/ft1_filtered_4FGL_J2158.8-3013_daily_bin1499.fits scfile=/scratch/kocevski/64470/ft2_4FGL_J2158.8-3013_daily_bin1499.fits outfile=/scratch/kocevski/64470/cmap_HighResolution_627868801_628128001_4FGL_J2158.8-3013_daily_bin1499.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64470/ft1_filtered_4FGL_J2158.8-3013_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/64470/ft2_4FGL_J2158.8-3013_daily_bin1499.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64470/Model_4FGL_J2158.8-3013_daily_bin1499.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/64470/ft1_filtered_4FGL_J2158.8-3013_daily_bin1499.fits.....................!
real 56.48
user 55.10
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3604       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.406       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2078       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.117       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    64.241       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.542       1.0000         .10000E-03   10000.    
    17 'norm      '    .10835E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.193       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.022       1.0000         .10000E-03   10000.    
    20 'norm      '    .17495E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2918       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90488       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=   6714.478     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2376 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1646       -.97358E-08** at limit **
   2  Prefactor     .10000E-03    1.7504       -.60552E-08** at limit **
   3  Prefactor     3.3619        7.7801        .52905E-06    .39678E-05
   4  Prefactor     .10000E-03    5.2704       -.19153E-06** at limit **
   5  Prefactor     .10000E-03    4.2506       -.95977E-07** at limit **
   6  norm          .10000E-03    1.9512       -.15365E-07** at limit **
   7  Prefactor     .10000E-03    30.182       -.37042E-05** at limit **
   8  Prefactor     21.384        53.786        .59042E-06   -.75334E-06
   9  norm          .10000E-03    2.2672       -.34237E-06** at limit **
  10  norm          1.2079        .40207        .16575E-09    .20358E-03
  11  Prefactor     .10000E-03    10.793       -.42409E-06** at limit **
  12  Prefactor     15.124        16.593        .40444E-07   -.22450E-04
  13  Prefactor     .10000E-03    4.2559        .27741E-07** at limit **
  14  norm          .10000E-03    11.232        .33344E-06** at limit **
  15  Prefactor     64.234        33.027        .12793E-06   -.35995E-04
  16  Prefactor     14.548        16.057        .13570E-06   -.17581E-03
  17  norm          .10000E-03    2.0751        .34257E-05** at limit **
  18  Prefactor     23.256        44.836       -.24869E-05   -.80179E-04
  19  Prefactor     13.021        13.411        .25657E-07   -.45073E-04
  20  norm          .10178E-03    2.4236        .66196E-06** at limit **
  21  Normalizat    1.2917        .20066       -.48776E-06   -.12946E-03
  22  Prefactor     .90503        .13642        .73778E-07   -.15614E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.36186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3842
  norm       = 0.0001
  norm       = 1.2079
  Prefactor  = 0.0001
  Prefactor  = 15.1242
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 64.2342
  Prefactor  = 14.5483
  norm       = 0.0001
  Prefactor  = 23.256
  Prefactor  = 13.0215
  norm       = 0.000101776
  Normalizat = 1.29168
  Prefactor  = 0.905031
 **********
 **   18 **HESSE 
 **********

 FCN=   6714.478     FROM HESSE     STATUS=OK           346 CALLS     2722 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1667        .11774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.7527        .10587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3619        7.7793        .22076E-03   -1.5341    
   4  Prefactor     .10000E-03    5.2809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2667        .16489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9540        .11178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.384        53.678        .86571E-04   -1.4783    
   9  norm          .10000E-03    2.2916        .12023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2079        .40246        .28678E-04   -1.5488    
  11  Prefactor     .10000E-03    10.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.124        16.627        .10301E-03   -1.4930    
  13  Prefactor     .10000E-03    4.2761        .16501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     64.234        33.220        .50069E-04   -1.4103    
  16  Prefactor     14.548        16.048        .10503E-03   -1.4945    
  17  norm          .10000E-03    2.0890        .22646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.256        45.204        .83174E-04   -1.4743    
  19  Prefactor     13.021        13.477        .11100E-03   -1.4986    
  20  norm          .10178E-03    3.8035        .44650E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2917        .23792        .26740E-03   -.83815    
  22  Prefactor     .90503        .16050        .22661E-03   -.95966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32785e-10
Minuit parameter uncertainties:
  1  1.21496e-07
  2  7.29733e-08
  3  7.78161
  4  5.10956e-07
  5  1.39124e-05
  6  2.64701e-07
  7  5.36068e-05
  8  53.7998
  9  8.08816e-07
  10  0.402461
  11  2.17168e-06
  12  16.6322
  13  1.32633e-05
  14  3.95259e-06
  15  33.2297
  16  16.0531
  17  6.52055e-06
  18  45.2708
  19  13.4803
  20  0.00519773
  21  0.238118
  22  0.160588
Done.

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

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.208e+00  4.025e-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:  9.050e-01  1.606e-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.292e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 47.71
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 3.33e-08
Energy Flux (Fixed Index): 1.13e-04 +/- 3.78e-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) = 6714.42158914
delta logL = 0.0567608531437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6714.41879102
delta logL = 0.0595589748627

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1944       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6787       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90299       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=   6714.419     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      200 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1943        .46401        .66155E-02   -.56866E-04
   2  alpha         1.6784        .27581        .19124       -.60928E-05
   3  Normalizat    1.3007        .18790        .60298E-01    .33252E-06
   4  Prefactor     .90289        .13579        .45043E-01    .21644E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.19426
  alpha      = 1.67835
  Normalizat = 1.30067
  Prefactor  = 0.902895
 **********
 **   18 **HESSE 
 **********

 FCN=   6714.419     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1943        .40825        .29156E-04   -1.5489    
   2  alpha         1.6784        .25581        .79787E-02   -.33488    
   3  Normalizat    1.3007        .21846        .26668E-03   -.83546    
   4  Prefactor     .90289        .15782        .22691E-03   -.96040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45168e-13
Minuit parameter uncertainties:
  1  0.408254
  2  0.256315
  3  0.218619
  4  0.1579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64470': 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) = 6714.41878998
delta logL = 0.0595600215484

Extracting fit parameters...

4FGL J2158.8-3013
   Spectrum: LogParabola
261         norm:  1.194e+00  4.083e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.678e+00  2.563e-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:  9.029e-01  1.579e-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.301e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 47.80
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.68 +/- 0.26
Photon Flux (Free Index): 9.02e-08 +/- 4.12e-08
Energy Flux (Free Index): 1.30e-04 +/- 6.97e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/64470/cmap_HighResolution_627868801_628128001_4FGL_J2158.8-3013_daily_bin1499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='1.30e-04', photon_flux_error='3.33e-08', dlogl='5.96e-02', energy_flux='1.13e-04', photon_flux2='9.02e-08', job_status='DONE', time_completed='2021-09-27 22:45:25.588082', photon_index_error2='0.26', photon_index2='1.68', ts='47.71', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='6.97e-05', EG='1.29', time_epoch_completed='1632807925.59', return_code='0', job_id='64470', GAL2='0.90', EG2='1.30', return_code2='0', energy_flux_error='3.78e-05', photon_flux_error2='4.12e-08', ts2='47.80', photon_index='1.77' WHERE bin_id='1499' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:45:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 64470: <4FGL_J2158.8-3013_daily_bin1499> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin1499> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:30:40 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:34:07 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:34:07 2021
Terminated at Mon Sep 27 22:45:26 2021
Results reported at Mon Sep 27 22:45:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin1499 329.714 -30.2251 627868801 628128001 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 :                                   578.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            886 sec.

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

