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


Performing analysis on: 4FGL_J2301.0-0158_daily_bin1002
RA = 345.263, Dec = -1.9758
tmin = 499046401, tmax = 499305601
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='644408', job_status='RUN', time_executed='2021-09-29 05:45:49.727602', time_epoch_executed='1632919549.73' WHERE source_name='4FGL J2301.0-0158' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644408/ft1_4FGL_J2301.0-0158_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644408/ft2_4FGL_J2301.0-0158_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644408/ft1_4FGL_J2301.0-0158_daily_bin1002.fits outfile=/scratch/kocevski/644408/ft1_filteredMKT_4FGL_J2301.0-0158_daily_bin1002.fits ra=345.263 dec=-1.9758 rad=12.0 tmin=499046401.0 tmax=499305601.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.34
user 4.10
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644408/ft1_filtered_4FGL_J2301.0-0158_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/644408/ft2_4FGL_J2301.0-0158_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/644408/ltcube_499046401_499305601_4FGL_J2301.0-0158_daily_bin1002.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/644408/ft2_4FGL_J2301.0-0158_daily_bin1002.fits
.....................!
real 11.61
user 11.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644408/ft1_filtered_4FGL_J2301.0-0158_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/644408/ft2_4FGL_J2301.0-0158_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/644408/ltcube_499046401_499305601_4FGL_J2301.0-0158_daily_bin1002.fits outfile=/scratch/kocevski/644408/expmap_499046401_499305601_4FGL_J2301.0-0158_daily_bin1002.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/644408/ltcube_499046401_499305601_4FGL_J2301.0-0158_daily_bin1002.fits
.....................!
real 190.91
user 184.93
sys 5.59

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/644408/ft1_filtered_4FGL_J2301.0-0158_daily_bin1002.fits scfile=/scratch/kocevski/644408/ft2_4FGL_J2301.0-0158_daily_bin1002.fits outfile=/scratch/kocevski/644408/cmap_499046401_499305601_4FGL_J2301.0-0158_daily_bin1002.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.53
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644408/ft1_filtered_4FGL_J2301.0-0158_daily_bin1002.fits scfile=/scratch/kocevski/644408/ft2_4FGL_J2301.0-0158_daily_bin1002.fits outfile=/scratch/kocevski/644408/cmap_HighResolution_499046401_499305601_4FGL_J2301.0-0158_daily_bin1002.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644408/ft1_filtered_4FGL_J2301.0-0158_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/644408/ft2_4FGL_J2301.0-0158_daily_bin1002.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644408/Model_4FGL_J2301.0-0158_daily_bin1002.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/644408/ft1_filtered_4FGL_J2301.0-0158_daily_bin1002.fits.....................!
real 54.30
user 53.00
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.696       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7448       1.0000         .10000E-03   10000.    
     5 'Prefactor '    100.71       1.0000         .10000E-03   10000.    
     6 'norm      '    28.563       1.0000         .10000E-03   10000.    
     7 'Prefactor '    205.11       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.282       1.0000         .10000E-03   10000.    
     9 'norm      '    4.1545       1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.572       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10842E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.6631       1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.623       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.443       1.0000         .10000E-03   10000.    
    18 'Prefactor '    127.74       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    112.35       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5705       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85143       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90284       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=   4686.499     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2881 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.507       -.38392E-05** at limit **
   2  Prefactor     14.695        8.5370       -.13172E-06    .78163E-04
   3  norm          .10000E-03    3.2537        .17226E-05** at limit **
   4  Prefactor     8.9396        512.21       -.14077E-04   -.24714E-05
   5  Prefactor     100.72        147.75        .16585E-05   -.53357E-06
   6  norm          28.557        10.606       -.24064E-06   -.10242E-05
   7  Prefactor     205.16        151.35        .86359E-07    .73905E-05
   8  Prefactor     25.273        28.149        .33789E-07   -.13266E-05
   9  norm          4.1544        15.578        .58603E-06    .20416E-04
  10  Prefactor     62.582        55.844       -.46615E-08    .76719E-05
  11  Prefactor     .10000E-03    9.0115       -.82589E-07** at limit **
  12  Prefactor     .10000E-03    37.149       -.77355E-07** at limit **
  13  Prefactor     .10000E-03    5.3476       -.11234E-06** at limit **
  14  norm          .10000E-03    1.1314       -.60438E-06** at limit **
  15  norm          7.6647        7.4402        .19198E-06    .11779E-03
  16  Prefactor     28.622        20.514       -.18744E-07    .35814E-05
  17  Prefactor     11.449        48.675        .51041E-06    .11068E-04
  18  Prefactor     127.72        213.72        .24229E-05    .26307E-04
  19  Prefactor     .10000E-03    5.0307       -.92556E-07** at limit **
  20  norm          .10000E-03    9.8374       -.53216E-07** at limit **
  21  Prefactor     112.33        94.520        .33569E-06    .14070E-04
  22  Prefactor     3.5714        4.5627        .12606E-06    .11062E-03
  23  Prefactor     .10000E-03    18.211       -.83268E-07** at limit **
  24  Normalizat    .85114        .29576       -.57500E-07    .10010E-03
  25  Prefactor     .90304        .17000        .39829E-06    .93137E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.6954
  norm       = 0.0001
  Prefactor  = 8.9396
  Prefactor  = 100.72
  norm       = 28.557
  Prefactor  = 205.155
  Prefactor  = 25.2733
  norm       = 4.1544
  Prefactor  = 62.5824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.66473
  Prefactor  = 28.6221
  Prefactor  = 11.4488
  Prefactor  = 127.716
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 112.333
  Prefactor  = 3.57137
  Prefactor  = 0.0001
  Normalizat = 0.851136
  Prefactor  = 0.903038
 **********
 **   18 **HESSE 
 **********

 FCN=   4686.499     FROM HESSE     STATUS=OK           427 CALLS     3308 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.695        8.4642        .10448E-03   -1.4941    
   3  norm          .10000E-03    3.3238        .12084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9396        509.67        .13555E-03   -1.5110    
   5  Prefactor     100.72        151.37        .40061E-04   -1.3697    
   6  norm          28.557        10.939        .64425E-04   -1.4639    
   7  Prefactor     205.16        151.34        .14110E-03   -1.2833    
   8  Prefactor     25.273        28.135        .79670E-04   -1.4702    
   9  norm          4.1544        15.564        .19775E-03   -1.5300    
  10  Prefactor     62.582        55.936        .50728E-04   -1.4124    
  11  Prefactor     .10000E-03    9.0223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.3521        .15462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.9679        .13130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.6647        7.4408        .14486E-03   -1.5154    
  16  Prefactor     28.622        20.513        .74885E-04   -1.4637    
  17  Prefactor     11.449        48.730        .11843E-03   -1.5031    
  18  Prefactor     127.72        213.15        .17810E-03   -1.3443    
  19  Prefactor     .10000E-03    5.0341        .14996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.8386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     112.33        94.578        .18976E-03   -1.3584    
  22  Prefactor     3.5714        4.5558        .15939E-03   -1.5330    
  23  Prefactor     .10000E-03    18.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85114        .34091        .37786E-03   -.98199    
  25  Prefactor     .90304        .19764        .22251E-03   -.96035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83322e-10
Minuit parameter uncertainties:
  1  3.35348e-05
  2  8.46485
  3  1.62875e-05
  4  136.236
  5  151.959
  6  10.9394
  7  151.628
  8  28.1499
  9  15.5797
  10  55.9833
  11  4.47598e-06
  12  3.87353e-05
  13  1.61582e-06
  14  5.58586e-05
  15  7.44166
  16  20.5182
  17  47.305
  18  214.452
  19  1.07131e-06
  20  1.26746e-06
  21  94.7053
  22  4.55625
  23  7.64066e-06
  24  0.341776
  25  0.197802
Done.

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

Extracting fit parameters...

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  4.154e+00  1.558e+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:  9.030e-01  1.978e-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:  8.511e-01  3.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 345.263 -1.976
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/644408/likelihoodResults_499046401_499305601_4FGL_J2301.0-0158_daily_bin1002.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): 0
logL (Free Index) = 4686.49752575
delta logL = 0.00123924115451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4686.49751546
delta logL = 0.00124952890656

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1397       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4229       1.0000          .0000       5.0000    
     3 'Normalizat'    .84958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90367       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=   4686.498     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      266 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1496        15.710        .19811E-03    .34776E-04
   2  alpha         2.4243        1.9579        .51237E-01    .23404E-05
   3  Normalizat    .84955        .32106        .37820E-03    .97814E-04
   4  Prefactor     .90368        .19533        .22244E-03    .15294E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.1496
  alpha      = 2.42434
  Normalizat = 0.849547
  Prefactor  = 0.903676
 **********
 **   18 **HESSE 
 **********

 FCN=   4686.498     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1496        15.365        .79244E-05   -1.5301    
   2  alpha         2.4243        1.9281        .20495E-02   -.30270E-01
   3  Normalizat    .84955        .32129        .15128E-04   -.98256    
   4  Prefactor     .90368        .19532        .44488E-04   -.96013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96178e-11
Minuit parameter uncertainties:
  1  15.3798
  2  2.2024
  3  0.322015
  4  0.195474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644408': 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) = 4686.49751498
delta logL = 0.00125001414108

Extracting fit parameters...

4FGL J2301.0-0158
   Spectrum: LogParabola
333         norm:  4.150e+00  1.538e+01  1.000e-04  1.000e+04 ( 1.000e-12)
334        alpha:  2.424e+00  2.202e+00  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:  9.037e-01  1.955e-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:  8.495e-01  3.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 345.263 -1.976

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/644408/cmap_HighResolution_499046401_499305601_4FGL_J2301.0-0158_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-05', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-29 05:55:43.641389', job_id='644408', GAL2='0.90', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632920143.64', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.25e-03', ts2='0.09', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1002' AND source_name='4FGL J2301.0-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:55:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 644408: <4FGL_J2301.0-0158_daily_bin1002> in cluster <slac> Done

Job <4FGL_J2301.0-0158_daily_bin1002> 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) <bullet0202>, 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:55:44 2021
Results reported at Wed Sep 29 05:55:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2301.0-0158_daily_bin1002 345.263 -1.9758 499046401 499305601 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 :                                   591.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            611 sec.

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

