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


Performing analysis on: 4FGL_J2301.0-0158_daily_bin508
RA = 345.263, Dec = -1.9758
tmin = 371001601, tmax = 371260801
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='642561', job_status='RUN', time_executed='2021-09-29 05:43:31.369123', time_epoch_executed='1632919411.37' WHERE source_name='4FGL J2301.0-0158' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642561

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642561/ft1_4FGL_J2301.0-0158_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642561/ft2_4FGL_J2301.0-0158_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642561/ft1_4FGL_J2301.0-0158_daily_bin508.fits outfile=/scratch/kocevski/642561/ft1_filteredMKT_4FGL_J2301.0-0158_daily_bin508.fits ra=345.263 dec=-1.9758 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.59
user 6.34
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/642561/ft2_4FGL_J2301.0-0158_daily_bin508.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642561/ft2_4FGL_J2301.0-0158_daily_bin508.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/642561/ft1_filteredMKT_4FGL_J2301.0-0158_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/642561/ft1_filtered_4FGL_J2301.0-0158_daily_bin508.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.49
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642561/ft1_filtered_4FGL_J2301.0-0158_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/642561/ft2_4FGL_J2301.0-0158_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/642561/ltcube_371001601_371260801_4FGL_J2301.0-0158_daily_bin508.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/642561/ft2_4FGL_J2301.0-0158_daily_bin508.fits
.....................!
real 11.75
user 11.11
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642561/ft1_filtered_4FGL_J2301.0-0158_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/642561/ft2_4FGL_J2301.0-0158_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/642561/ltcube_371001601_371260801_4FGL_J2301.0-0158_daily_bin508.fits outfile=/scratch/kocevski/642561/expmap_371001601_371260801_4FGL_J2301.0-0158_daily_bin508.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/642561/ltcube_371001601_371260801_4FGL_J2301.0-0158_daily_bin508.fits
.....................!
real 191.45
user 186.75
sys 4.34

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 J2301.0-0158 @ 345.263 -1.9758

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/642561/ft1_filtered_4FGL_J2301.0-0158_daily_bin508.fits scfile=/scratch/kocevski/642561/ft2_4FGL_J2301.0-0158_daily_bin508.fits outfile=/scratch/kocevski/642561/cmap_371001601_371260801_4FGL_J2301.0-0158_daily_bin508.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=345.263 yref=-1.9758 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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642561/ft1_filtered_4FGL_J2301.0-0158_daily_bin508.fits scfile=/scratch/kocevski/642561/ft2_4FGL_J2301.0-0158_daily_bin508.fits outfile=/scratch/kocevski/642561/cmap_HighResolution_371001601_371260801_4FGL_J2301.0-0158_daily_bin508.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=345.263 yref=-1.9758 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/642561/ft1_filtered_4FGL_J2301.0-0158_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/642561/ft2_4FGL_J2301.0-0158_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642561/Model_4FGL_J2301.0-0158_daily_bin508.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/642561/ft1_filtered_4FGL_J2301.0-0158_daily_bin508.fits.....................!
real 52.05
user 50.64
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/642561/ft1_filtered_4FGL_J2301.0-0158_daily_bin508.fits', '/scratch/kocevski/642561/ft2_4FGL_J2301.0-0158_daily_bin508.fits', expMap='/scratch/kocevski/642561/expmap_371001601_371260801_4FGL_J2301.0-0158_daily_bin508.fits', expCube='/scratch/kocevski/642561/ltcube_371001601_371260801_4FGL_J2301.0-0158_daily_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/642561/Model_4FGL_J2301.0-0158_daily_bin508.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2301.0-0158'

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  6.486e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.316e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  1.074e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.227e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/642561/ft1_filtered_4FGL_J2301.0-0158_daily_bin508.fits
Spacecraft file(s): /scratch/kocevski/642561/ft2_4FGL_J2301.0-0158_daily_bin508.fits
Exposure map: /scratch/kocevski/642561/expmap_371001601_371260801_4FGL_J2301.0-0158_daily_bin508.fits
Exposure cube: /scratch/kocevski/642561/ltcube_371001601_371260801_4FGL_J2301.0-0158_daily_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/642561/Model_4FGL_J2301.0-0158_daily_bin508.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) = 4880.71876044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7639       1.0000         .10000E-03   10000.    
     3 'norm      '    9.2210       1.0000         .10000E-03   10000.    
     4 'Prefactor '    69.055       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.422       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.817       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    84.501       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4300       1.0000         .10000E-03   10000.    
    12 'Prefactor '    67.957       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .75664E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2915       1.0000         .10000E-03   10000.    
    15 'norm      '    .10300E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.800       1.0000         .10000E-03   10000.    
    20 'norm      '    6.3520       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8060       1.0000         .10000E-03   10000.    
    23 'Prefactor '    100.24       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0734       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70405       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4880.715     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2961 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8662       -.16013E-06** at limit **
   2  Prefactor     3.7637        5.3177       -.48779E-06   -.73822E-05
   3  norm          9.2216        5.4831       -.93775E-07    .50746E-04
   4  Prefactor     69.040        82.759        .24998E-06    .16469E-04
   5  Prefactor     .10000E-03    9.5337       -.18192E-05** at limit **
   6  norm          .10000E-03    .50184       -.99220E-06** at limit **
   7  Prefactor     40.447        35.471        .50720E-06    .15942E-03
   8  Prefactor     13.816        11.643       -.50832E-07    .64986E-04
   9  norm          .10000E-03    4.6280       -.90686E-07** at limit **
  10  Prefactor     84.494        49.723       -.57647E-08    .12785E-04
  11  Prefactor     7.4329        20.211       -.75974E-07   -.14341E-05
  12  Prefactor     67.931        57.931        .46837E-06    .11151E-05
  13  Prefactor     .10000E-03    76.608        .42087E-05** at limit **
  14  norm          1.2919        1.1236        .47988E-07    .16981E-04
  15  norm          .10000E-03    7.8420       -.28182E-07** at limit **
  16  Prefactor     .10000E-03    4.3213       -.82028E-07** at limit **
  17  Prefactor     .10000E-03    49.871       -.29893E-06** at limit **
  18  Prefactor     .10000E-03    129.93        .62831E-06** at limit **
  19  Prefactor     12.787        23.939        .53319E-06    .70647E-05
  20  norm          6.3605        32.754        .56016E-06   -.20451E-05
  21  Prefactor     .10000E-03    34.141       -.11566E-06** at limit **
  22  Prefactor     4.8070        8.8494       -.76480E-06   -.30666E-04
  23  Prefactor     100.27        47.977        .43571E-07   -.58856E-04
  24  Normalizat    1.0730        .24310       -.86194E-06    .10375E-03
  25  Prefactor     .70428        .13863        .12908E-05    .17209E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.76373
  norm       = 9.2216
  Prefactor  = 69.0401
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.4469
  Prefactor  = 13.8158
  norm       = 0.0001
  Prefactor  = 84.4943
  Prefactor  = 7.43289
  Prefactor  = 67.9305
  Prefactor  = 0.0001
  norm       = 1.29188
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7869
  norm       = 6.36052
  Prefactor  = 0.0001
  Prefactor  = 4.80705
  Prefactor  = 100.27
  Normalizat = 1.07304
  Prefactor  = 0.704283
 **********
 **   18 **HESSE 
 **********

 FCN=   4880.715     FROM HESSE     STATUS=OK           423 CALLS     3384 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8680        .13411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7637        5.3002        .17842E-03   -1.5320    
   3  norm          9.2216        5.4801        .11821E-03   -1.5101    
   4  Prefactor     69.040        82.743        .48303E-04   -1.4044    
   5  Prefactor     .10000E-03    9.5462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .50617        .48114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.447        35.843        .63047E-04   -1.4435    
   8  Prefactor     13.816        11.640        .10776E-03   -1.4964    
   9  norm          .10000E-03    4.6331        .14678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     84.494        49.930        .43700E-04   -1.3867    
  11  Prefactor     7.4329        20.291        .14714E-03   -1.5163    
  12  Prefactor     67.931        58.559        .48690E-04   -1.4058    
  13  Prefactor     .10000E-03    75.818        .37270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2919        1.1021        .64609E-04   -1.5481    
  15  norm          .10000E-03    8.0886        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3265        .14184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    49.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    130.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.787        23.417        .11196E-03   -1.4993    
  20  norm          6.3605        31.945        .15926E-03   -1.5204    
  21  Prefactor     .10000E-03    34.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.8070        8.7652        .18351E-03   -1.5269    
  23  Prefactor     100.27        48.020        .20077E-03   -1.3702    
  24  Normalizat    1.0730        .28528        .28007E-03   -.90622    
  25  Prefactor     .70428        .15964        .21202E-03   -1.0336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51409e-10
Minuit parameter uncertainties:
  1  2.46124e-06
  2  5.30091
  3  5.48042
  4  82.8809
  5  7.11987e-08
  6  3.12436e-08
  7  35.8623
  8  11.6423
  9  5.62995e-07
  10  49.9551
  11  20.3094
  12  58.6087
  13  9.74879e-05
  14  1.10214
  15  2.77332e-06
  16  1.00473e-06
  17  0.000194999
  18  0.000489406
  19  23.434
  20  28.5327
  21  2.24072e-05
  22  8.76757
  23  48.0382
  24  0.285685
  25  0.159741
Done.

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

Extracting fit parameters...

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  1.000e-04  5.630e-07  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.316e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  1.074e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.227e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  7.043e-01  1.597e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.073e+00  2.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 345.263 -1.976
Photon Flux Upper Limit: 7.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/642561/likelihoodResults_371001601_371260801_4FGL_J2301.0-0158_daily_bin508.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.71624171
delta logL = -0.0010243120978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4880.71521733
delta logL = 6.0441379901e-08

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 'alpha     '    2.3288       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70428       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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.133     FROM MIGRAD    STATUS=CONVERGED    186 CALLS      331 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0632        51.145        .14768E-01    .70732E-03
   2  alpha         5.0000        2.7644        .50000    ** at limit **
   3  Normalizat    .96426        .28361        .28007E-02   -.41534E-04
   4  Prefactor     .74611        .97126E-01    .21202E-02   -.33159E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.0632
  alpha      = 5
  Normalizat = 0.96426
  Prefactor  = 0.746112
 **********
 **   18 **HESSE 
 **********

 FCN=   4880.133     FROM HESSE     STATUS=OK            29 CALLS      360 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0632        1.1093        .69226E-03   -1.5502    
   2  alpha         5.0000        3.0816        .59233E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .96426        .26503        .11203E-03   -.94238    
   4  Prefactor     .74611        .15992        .84807E-04   -1.0175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00549e-09
Minuit parameter uncertainties:
  1  1.10933
  2  7.96932e-06
  3  0.265392
  4  0.160019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642561': 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) = 4880.13277441
delta logL = 0.582442985833

Extracting fit parameters...

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  1.063e+00  1.109e+00  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  5.000e+00  7.969e-06  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  1.074e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.227e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  7.461e-01  1.600e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.643e-01  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 345.263 -1.976
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.40e-08 +/- 8.71e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.19e-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/642561/cmap_HighResolution_371001601_371260801_4FGL_J2301.0-0158_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-05', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='5.82e-01', photon_flux2='8.40e-08', job_status='DONE', time_completed='2021-09-29 05:53:52.289861', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='7.10e-08', energy_flux_error2='1.19e-05', EG='1.07', time_epoch_completed='1632920032.29', return_code='0', job_id='642561', GAL2='0.75', EG2='0.96', return_code2='0', photon_flux_error2='8.71e-08', ts2='1.31', photon_index='2.32' WHERE bin_id='508' AND source_name='4FGL J2301.0-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:53:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 642561: <4FGL_J2301.0-0158_daily_bin508> in cluster <slac> Done

Job <4FGL_J2301.0-0158_daily_bin508> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 05:40:11 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 05:40:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 05:40:13 2021
Terminated at Wed Sep 29 05:53:53 2021
Results reported at Wed Sep 29 05:53:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2301.0-0158_daily_bin508 345.263 -1.9758 371001601 371260801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2301.0-0158 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   618.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             231.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            822 sec.

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

