/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 6 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 = 7567
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2158.8-3013_daily_bin179
RA = 329.714, Dec = -30.2251
tmin = 285724801, tmax = 285984001
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='58511', job_status='RUN', time_executed='2021-09-27 22:12:02.531558', time_epoch_executed='1632805922.53' WHERE source_name='4FGL J2158.8-3013' and cadence='daily' and bin_id='179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58511

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58511/ft1_4FGL_J2158.8-3013_daily_bin179.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58511/ft2_4FGL_J2158.8-3013_daily_bin179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58511/ft1_4FGL_J2158.8-3013_daily_bin179.fits outfile=/scratch/kocevski/58511/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin179.fits ra=329.714 dec=-30.2251 rad=12.0 tmin=285724801.0 tmax=285984001.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.70
user 4.14
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/58511/ft2_4FGL_J2158.8-3013_daily_bin179.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/58511/ft1_filteredMKT_4FGL_J2158.8-3013_daily_bin179.fits evtable="EVENTS" outfile="/scratch/kocevski/58511/ft1_filtered_4FGL_J2158.8-3013_daily_bin179.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 1.03
user 0.45
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58511/ft1_filtered_4FGL_J2158.8-3013_daily_bin179.fits" evtable="EVENTS" scfile=/scratch/kocevski/58511/ft2_4FGL_J2158.8-3013_daily_bin179.fits sctable="SC_DATA" outfile=/scratch/kocevski/58511/ltcube_285724801_285984001_4FGL_J2158.8-3013_daily_bin179.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/58511/ft2_4FGL_J2158.8-3013_daily_bin179.fits
.....................!
real 21.37
user 20.89
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58511/ft1_filtered_4FGL_J2158.8-3013_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/58511/ft2_4FGL_J2158.8-3013_daily_bin179.fits sctable="SC_DATA" expcube=/scratch/kocevski/58511/ltcube_285724801_285984001_4FGL_J2158.8-3013_daily_bin179.fits outfile=/scratch/kocevski/58511/expmap_285724801_285984001_4FGL_J2158.8-3013_daily_bin179.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/58511/ltcube_285724801_285984001_4FGL_J2158.8-3013_daily_bin179.fits
.....................!
real 204.92
user 199.45
sys 4.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/58511/ft1_filtered_4FGL_J2158.8-3013_daily_bin179.fits scfile=/scratch/kocevski/58511/ft2_4FGL_J2158.8-3013_daily_bin179.fits outfile=/scratch/kocevski/58511/cmap_285724801_285984001_4FGL_J2158.8-3013_daily_bin179.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.65
user 0.50
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58511/ft1_filtered_4FGL_J2158.8-3013_daily_bin179.fits scfile=/scratch/kocevski/58511/ft2_4FGL_J2158.8-3013_daily_bin179.fits outfile=/scratch/kocevski/58511/cmap_HighResolution_285724801_285984001_4FGL_J2158.8-3013_daily_bin179.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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58511/ft1_filtered_4FGL_J2158.8-3013_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/58511/ft2_4FGL_J2158.8-3013_daily_bin179.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58511/Model_4FGL_J2158.8-3013_daily_bin179.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/58511/ft1_filtered_4FGL_J2158.8-3013_daily_bin179.fits.....................!
real 56.91
user 55.41
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5139       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.122       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0844       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7064       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.825       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.431       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9745       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87471       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0231       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=   6534.077     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2008 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7350       -.42691E-05** at limit **
   2  Prefactor     7.5139        7.5391       -.95618E-07   -.14606E-03
   3  Prefactor     15.124        8.9264       -.43716E-07   -.69724E-04
   4  Prefactor     .10000E-03    7.8252        .17114E-05** at limit **
   5  Prefactor     .10000E-03    2.9478       -.67697E-06** at limit **
   6  norm          .10000E-03    2.3403        .10428E-07** at limit **
   7  Prefactor     .10000E-03    13.737        .43377E-05** at limit **
   8  Prefactor     .10000E-03    25.433       -.32467E-06** at limit **
   9  norm          .10000E-03    4.0067        .26377E-05** at limit **
  10  norm          1.0844        .34159       -.14361E-07   -.14950E-02
  11  Prefactor     8.7066        7.2941       -.44672E-07   -.10115E-03
  12  Prefactor     15.825        11.340        .13218E-07   -.27841E-04
  13  Prefactor     .10000E-03    2.7587        .43200E-06** at limit **
  14  norm          .10000E-03    5.0639       -.24599E-05** at limit **
  15  Prefactor     16.432        24.016        .17875E-05    .54541E-05
  16  Prefactor     .10000E-03    5.7641        .61712E-05** at limit **
  17  norm          .10000E-03    .60025        .11134E-07** at limit **
  18  Prefactor     .10000E-03    25.573       -.24309E-05** at limit **
  19  Prefactor     .10000E-03    8.5960       -.61327E-05** at limit **
  20  norm          1.9745        2.8064       -.96027E-07   -.24364E-03
  21  Normalizat    .87469        .17468       -.35713E-06   -.98928E-04
  22  Prefactor     1.0231        .13180        .43977E-07   -.12831E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.51389
  Prefactor  = 15.1242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.08443
  Prefactor  = 8.70657
  Prefactor  = 15.8254
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.4324
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.97451
  Normalizat = 0.874686
  Prefactor  = 1.02308
 **********
 **   18 **HESSE 
 **********

 FCN=   6534.077     FROM HESSE     STATUS=OK           336 CALLS     2344 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7651        .17160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5139        7.5396        .14631E-03   -1.5160    
   3  Prefactor     15.124        8.9279        .10300E-03   -1.4930    
   4  Prefactor     .10000E-03    7.8804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9551        .13546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.3497        .12075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.1465        .31410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0844        .34214        .25634E-04   -1.5500    
  11  Prefactor     8.7066        7.2930        .13585E-03   -1.5118    
  12  Prefactor     15.825        11.343        .10068E-03   -1.4912    
  13  Prefactor     .10000E-03    2.7798        .13104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.0671        .17767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.432        24.126        .98807E-04   -1.4897    
  16  Prefactor     .10000E-03    5.7989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .60472        .61149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9745        2.7904        .15705E-03   -1.5427    
  21  Normalizat    .87469        .20063        .27368E-03   -.97355    
  22  Prefactor     1.0231        .15168        .19769E-03   -.91964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22853e-11
Minuit parameter uncertainties:
  1  7.86681e-06
  2  7.54059
  3  8.92866
  4  2.78369e-06
  5  1.26703e-06
  6  3.90458e-08
  7  1.24609e-05
  8  1.10223e-05
  9  2.16609e-05
  10  0.342144
  11  7.29374
  12  11.3442
  13  3.12107e-06
  14  5.08917e-07
  15  24.1403
  16  8.51319e-06
  17  1.85064e-07
  18  2.49578e-06
  19  1.89202e-05
  20  2.79054
  21  0.200801
  22  0.151741
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.023e+00  1.517e-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:  8.747e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 63.65
Ra Dec: 329.714 -30.225
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 8.99e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 1.02e-04 +/- 3.21e-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) = 6533.35007811
delta logL = 0.727141227778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6533.34734387
delta logL = 0.729875472387

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98915       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4631       1.0000          .0000       5.0000    
     3 'Normalizat'    .89839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0183       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=   6533.347     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      202 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98924        .33668        .60472E-02   -.66057E-03
   2  alpha         1.4631        .21868        .17765       -.16840E-04
   3  Normalizat    .89838        .16897        .44881E-01   -.30998E-04
   4  Prefactor     1.0183        .13113        .42309E-01    .41454E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.989237
  alpha      = 1.46314
  Normalizat = 0.898383
  Prefactor  = 1.01834
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98924        .38423        .26589E-04   -1.5509    
   2  alpha         1.4631        .25841        .75429E-02   -.42766    
   3  Normalizat    .89838        .19459        .27075E-03   -.96517    
   4  Prefactor     1.0183        .15093        .19830E-03   -.92121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69192e-11
Minuit parameter uncertainties:
  1  0.384234
  2  0.258965
  3  0.194741
  4  0.150991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58511': 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) = 6533.34734382
delta logL = 0.729875520607

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  1.018e+00  1.510e-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:  8.984e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 65.04
Ra Dec: 329.714 -30.225
Photon Index (Free Index): 1.46 +/- 0.26
Photon Flux (Free Index): 6.28e-08 +/- 3.02e-08
Energy Flux (Free Index): 1.72e-04 +/- 9.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/58511/cmap_HighResolution_285724801_285984001_4FGL_J2158.8-3013_daily_bin179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.99e-08', energy_flux2='1.72e-04', photon_flux_error='2.83e-08', dlogl='7.30e-01', energy_flux='1.02e-04', photon_flux2='6.28e-08', job_status='DONE', time_completed='2021-09-27 22:21:55.323666', photon_index_error2='0.26', photon_index2='1.46', ts='63.65', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='9.69e-05', EG='0.87', time_epoch_completed='1632806515.32', return_code='0', job_id='58511', GAL2='1.02', EG2='0.90', return_code2='0', energy_flux_error='3.21e-05', photon_flux_error2='3.02e-08', ts2='65.04', photon_index='1.77' WHERE bin_id='179' AND source_name='4FGL J2158.8-3013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 22:21:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 58511: <4FGL_J2158.8-3013_daily_bin179> in cluster <slac> Done

Job <4FGL_J2158.8-3013_daily_bin179> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep 27 22:11:16 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 22:11:46 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:11:46 2021
Terminated at Mon Sep 27 22:21:56 2021
Results reported at Mon Sep 27 22:21:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2158.8-3013_daily_bin179 329.714 -30.2251 285724801 285984001 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 :                                   589.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            640 sec.

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

