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


Performing analysis on: 4FGL_J2301.0-0158_daily_bin1000
RA = 345.263, Dec = -1.9758
tmin = 498528001, tmax = 498787201
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='644405', job_status='RUN', time_executed='2021-09-29 05:49:08.297983', time_epoch_executed='1632919748.3' WHERE source_name='4FGL J2301.0-0158' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644405

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644405/ft1_4FGL_J2301.0-0158_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644405/ft2_4FGL_J2301.0-0158_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644405/ft1_4FGL_J2301.0-0158_daily_bin1000.fits outfile=/scratch/kocevski/644405/ft1_filteredMKT_4FGL_J2301.0-0158_daily_bin1000.fits ra=345.263 dec=-1.9758 rad=12.0 tmin=498528001.0 tmax=498787201.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.98
user 4.75
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/644405/ft2_4FGL_J2301.0-0158_daily_bin1000.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/644405/ft1_filteredMKT_4FGL_J2301.0-0158_daily_bin1000.fits evtable="EVENTS" outfile="/scratch/kocevski/644405/ft1_filtered_4FGL_J2301.0-0158_daily_bin1000.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644405/ft1_filtered_4FGL_J2301.0-0158_daily_bin1000.fits" evtable="EVENTS" scfile=/scratch/kocevski/644405/ft2_4FGL_J2301.0-0158_daily_bin1000.fits sctable="SC_DATA" outfile=/scratch/kocevski/644405/ltcube_498528001_498787201_4FGL_J2301.0-0158_daily_bin1000.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/644405/ft2_4FGL_J2301.0-0158_daily_bin1000.fits
.....................!
real 13.77
user 13.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644405/ft1_filtered_4FGL_J2301.0-0158_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/644405/ft2_4FGL_J2301.0-0158_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/644405/ltcube_498528001_498787201_4FGL_J2301.0-0158_daily_bin1000.fits outfile=/scratch/kocevski/644405/expmap_498528001_498787201_4FGL_J2301.0-0158_daily_bin1000.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/644405/ltcube_498528001_498787201_4FGL_J2301.0-0158_daily_bin1000.fits
.....................!
real 190.11
user 184.73
sys 5.01

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/644405/ft1_filtered_4FGL_J2301.0-0158_daily_bin1000.fits scfile=/scratch/kocevski/644405/ft2_4FGL_J2301.0-0158_daily_bin1000.fits outfile=/scratch/kocevski/644405/cmap_498528001_498787201_4FGL_J2301.0-0158_daily_bin1000.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644405/ft1_filtered_4FGL_J2301.0-0158_daily_bin1000.fits scfile=/scratch/kocevski/644405/ft2_4FGL_J2301.0-0158_daily_bin1000.fits outfile=/scratch/kocevski/644405/cmap_HighResolution_498528001_498787201_4FGL_J2301.0-0158_daily_bin1000.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.59
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644405/ft1_filtered_4FGL_J2301.0-0158_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/644405/ft2_4FGL_J2301.0-0158_daily_bin1000.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644405/Model_4FGL_J2301.0-0158_daily_bin1000.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/644405/ft1_filtered_4FGL_J2301.0-0158_daily_bin1000.fits.....................!
real 59.95
user 58.58
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/644405/ft1_filtered_4FGL_J2301.0-0158_daily_bin1000.fits', '/scratch/kocevski/644405/ft2_4FGL_J2301.0-0158_daily_bin1000.fits', expMap='/scratch/kocevski/644405/expmap_498528001_498787201_4FGL_J2301.0-0158_daily_bin1000.fits', expCube='/scratch/kocevski/644405/ltcube_498528001_498787201_4FGL_J2301.0-0158_daily_bin1000.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/644405/Model_4FGL_J2301.0-0158_daily_bin1000.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/644405/ft1_filtered_4FGL_J2301.0-0158_daily_bin1000.fits
Spacecraft file(s): /scratch/kocevski/644405/ft2_4FGL_J2301.0-0158_daily_bin1000.fits
Exposure map: /scratch/kocevski/644405/expmap_498528001_498787201_4FGL_J2301.0-0158_daily_bin1000.fits
Exposure cube: /scratch/kocevski/644405/ltcube_498528001_498787201_4FGL_J2301.0-0158_daily_bin1000.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/644405/Model_4FGL_J2301.0-0158_daily_bin1000.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) = 6048.36339829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6055       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.927       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .75913E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    31.687       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5279       1.0000         .10000E-03   10000.    
     9 'norm      '    33.971       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    75.133       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3679       1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.047       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    147.89       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5824       1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    173.19       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97461       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84883       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=   6048.309     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2967 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6110        11.604        .11220E-05   -.32583E-04
   2  Prefactor     .10001E-03    2.2614       -.31242E-06** at limit **
   3  norm          12.924        4.8954       -.99772E-07   -.42302E-03
   4  Prefactor     .10003E-03    312.07        .16745E-05** at limit **
   5  Prefactor     .10000E-03    54.671       -.97909E-06** at limit **
   6  norm          31.688        3.4636        .44856E-07    .12437E-02
   7  Prefactor     .10000E-03    20.481        .31099E-06** at limit **
   8  Prefactor     2.5290        14.064        .50264E-05   -.48810E-04
   9  norm          33.973        15.886        .10237E-06    .76266E-05
  10  Prefactor     .10000E-03    30.159       -.94018E-06** at limit **
  11  Prefactor     .10000E-03    17.648       -.21248E-06** at limit **
  12  Prefactor     75.139        57.170        .70839E-07    .13557E-04
  13  Prefactor     .10000E-03    3.4821        .90166E-07** at limit **
  14  norm          2.3681        1.2794        .47920E-07   -.84054E-04
  15  norm          .10000E-03    1.7470        .22230E-07** at limit **
  16  Prefactor     11.049        16.534        .32202E-06    .20806E-04
  17  Prefactor     .10000E-03    37.352        .16239E-05** at limit **
  18  Prefactor     147.93        376.08       -.20113E-04   -.10866E-04
  19  Prefactor     2.5774        19.687        .88671E-05   -.19500E-04
  20  norm          .10000E-03    14.889        .33800E-06** at limit **
  21  Prefactor     .10000E-03    143.98       -.21499E-06** at limit **
  22  Prefactor     .10000E-03    2.1285        .25864E-06** at limit **
  23  Prefactor     173.21        75.763       -.94085E-06   -.15622E-04
  24  Normalizat    .97442        .23982       -.15289E-05   -.10115E-03
  25  Prefactor     .84886        .14673        .27669E-06   -.74802E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.61095
  Prefactor  = 0.000100007
  norm       = 12.9239
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  norm       = 31.6885
  Prefactor  = 0.0001
  Prefactor  = 2.52905
  norm       = 33.9732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.1392
  Prefactor  = 0.0001
  norm       = 2.36812
  norm       = 0.0001
  Prefactor  = 11.0494
  Prefactor  = 0.0001
  Prefactor  = 147.927
  Prefactor  = 2.57737
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 173.211
  Normalizat = 0.974421
  Prefactor  = 0.848862
 **********
 **   18 **HESSE 
 **********

 FCN=   6048.309     FROM HESSE     STATUS=OK           431 CALLS     3398 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6110        11.595        .78069E-03   -1.5194    
   2  Prefactor     .10001E-03    3.7799        .39767E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.924        4.9019        .10165E-03   -1.4989    
   4  Prefactor     .10003E-03    315.68        .20933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    54.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          31.688        3.4665        .46066E-04   -1.4582    
   7  Prefactor     .10000E-03    20.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5290        13.876        .12845E-02   -1.5390    
   9  norm          33.973        15.904        .68753E-04   -1.4542    
  10  Prefactor     .10000E-03    30.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     75.139        57.376        .46323E-04   -1.3972    
  13  Prefactor     .10000E-03    3.4854        .14171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3681        1.2789        .59716E-04   -1.5400    
  15  norm          .10000E-03    1.7481        .10038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.049        16.537        .12054E-03   -1.5043    
  17  Prefactor     .10000E-03    37.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     147.93        375.92        .33138E-04   -1.3269    
  19  Prefactor     2.5774        19.786        .12698E-02   -1.5387    
  20  norm          .10000E-03    14.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    145.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.1398        .11078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     173.21        75.970        .15331E-03   -1.3068    
  24  Normalizat    .97442        .27965        .33944E-03   -.93892    
  25  Prefactor     .84886        .17158        .23045E-03   -.97952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00292e-10
Minuit parameter uncertainties:
  1  11.5988
  2  0.000318964
  3  4.90207
  4  0.00600554
  5  1.80032e-06
  6  3.46652
  7  2.13322e-05
  8  11.852
  9  15.9056
  10  8.0327e-05
  11  5.40923e-06
  12  57.4179
  13  1.03745e-05
  14  1.27887
  15  2.17134e-06
  16  16.5443
  17  6.21462e-06
  18  382.279
  19  14.2887
  20  6.2801e-05
  21  2.99714e-05
  22  2.38885e-05
  23  76.0127
  24  0.280075
  25  0.171685
Done.

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

Extracting fit parameters...

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  3.397e+01  1.591e+01  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:  8.489e-01  1.717e-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.744e-01  2.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.30
Ra Dec: 345.263 -1.976
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 4.84e-08
Energy Flux (Fixed Index): 3.37e-05 +/- 1.58e-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) = 6047.80192028
delta logL = 0.506945175531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6047.78910787
delta logL = 0.519757581293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.976       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8373       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83217       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.

 FCN=   6047.789     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.976        16.011        .17445E-02    .20827E-02
   2  alpha         1.8373        .39114        .30020       -.25398E-04
   3  Normalizat    1.0167        .22865        .75243E-01    .14943E-04
   4  Prefactor     .83216        .14589        .44135E-01    .90496E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 32.9761
  alpha      = 1.83727
  Normalizat = 1.01674
  Prefactor  = 0.832164
 **********
 **   18 **HESSE 
 **********

 FCN=   6047.789     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.976        16.942        .69780E-04   -1.4559    
   2  alpha         1.8373        .45047        .12163E-01   -.26830    
   3  Normalizat    1.0167        .26727        .33298E-03   -.92472    
   4  Prefactor     .83216        .17036        .23241E-03   -.98553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33573e-09
Minuit parameter uncertainties:
  1  16.9448
  2  0.453137
  3  0.267622
  4  0.170473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644405': 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) = 6047.78910785
delta logL = 0.51975760107

Extracting fit parameters...

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  3.298e+01  1.694e+01  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  1.837e+00  4.531e-01  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:  8.322e-01  1.705e-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.017e+00  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.23
Ra Dec: 345.263 -1.976
Photon Index (Free Index): 1.84 +/- 0.45
Photon Flux (Free Index): 7.11e-08 +/- 4.56e-08
Energy Flux (Free Index): 4.40e-05 +/- 2.64e-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/644405/cmap_HighResolution_498528001_498787201_4FGL_J2301.0-0158_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='4.40e-05', photon_flux_error='4.84e-08', dlogl='5.20e-01', energy_flux='3.37e-05', photon_flux2='7.11e-08', job_status='DONE', time_completed='2021-09-29 05:59:31.811359', photon_index_error2='0.45', photon_index2='1.84', ts='13.30', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='2.64e-05', EG='0.97', time_epoch_completed='1632920371.81', return_code='0', job_id='644405', GAL2='0.83', EG2='1.02', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='4.56e-08', ts2='14.23', photon_index='2.32' WHERE bin_id='1000' AND source_name='4FGL J2301.0-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:59:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 644405: <4FGL_J2301.0-0158_daily_bin1000> in cluster <slac> Done

Job <4FGL_J2301.0-0158_daily_bin1000> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 05:45:33 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 05:45:35 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:45:35 2021
Terminated at Wed Sep 29 05:59:35 2021
Results reported at Wed Sep 29 05:59:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2301.0-0158_daily_bin1000 345.263 -1.9758 498528001 498787201 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 :                                   619.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            842 sec.

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

