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


Performing analysis on: 4FGL_J2300.7-2645_daily_bin981
RA = 345.182, Dec = -26.7502
tmin = 493603201, tmax = 493862401
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='636153', job_status='RUN', time_executed='2021-09-29 05:23:50.791852', time_epoch_executed='1632918230.79' WHERE source_name='4FGL J2300.7-2645' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636153

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636153/ft1_4FGL_J2300.7-2645_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636153/ft2_4FGL_J2300.7-2645_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636153/ft1_4FGL_J2300.7-2645_daily_bin981.fits outfile=/scratch/kocevski/636153/ft1_filteredMKT_4FGL_J2300.7-2645_daily_bin981.fits ra=345.182 dec=-26.7502 rad=12.0 tmin=493603201.0 tmax=493862401.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 3.52
user 3.29
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/636153/ft2_4FGL_J2300.7-2645_daily_bin981.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/636153/ft2_4FGL_J2300.7-2645_daily_bin981.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/636153/ft1_filteredMKT_4FGL_J2300.7-2645_daily_bin981.fits evtable="EVENTS" outfile="/scratch/kocevski/636153/ft1_filtered_4FGL_J2300.7-2645_daily_bin981.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636153/ft1_filtered_4FGL_J2300.7-2645_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/636153/ft2_4FGL_J2300.7-2645_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/636153/ltcube_493603201_493862401_4FGL_J2300.7-2645_daily_bin981.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/636153/ft2_4FGL_J2300.7-2645_daily_bin981.fits
.....................!
real 12.07
user 11.72
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636153/ft1_filtered_4FGL_J2300.7-2645_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/636153/ft2_4FGL_J2300.7-2645_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/636153/ltcube_493603201_493862401_4FGL_J2300.7-2645_daily_bin981.fits outfile=/scratch/kocevski/636153/expmap_493603201_493862401_4FGL_J2300.7-2645_daily_bin981.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/636153/ltcube_493603201_493862401_4FGL_J2300.7-2645_daily_bin981.fits
.....................!
real 191.00
user 185.33
sys 5.21

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J2300.7-2645 @ 345.182 -26.7502

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/636153/ft1_filtered_4FGL_J2300.7-2645_daily_bin981.fits scfile=/scratch/kocevski/636153/ft2_4FGL_J2300.7-2645_daily_bin981.fits outfile=/scratch/kocevski/636153/cmap_493603201_493862401_4FGL_J2300.7-2645_daily_bin981.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.182 yref=-26.7502 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636153/ft1_filtered_4FGL_J2300.7-2645_daily_bin981.fits scfile=/scratch/kocevski/636153/ft2_4FGL_J2300.7-2645_daily_bin981.fits outfile=/scratch/kocevski/636153/cmap_HighResolution_493603201_493862401_4FGL_J2300.7-2645_daily_bin981.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.182 yref=-26.7502 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636153/ft1_filtered_4FGL_J2300.7-2645_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/636153/ft2_4FGL_J2300.7-2645_daily_bin981.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636153/Model_4FGL_J2300.7-2645_daily_bin981.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/636153/ft1_filtered_4FGL_J2300.7-2645_daily_bin981.fits.....................!
real 49.68
user 48.32
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/636153/ft1_filtered_4FGL_J2300.7-2645_daily_bin981.fits', '/scratch/kocevski/636153/ft2_4FGL_J2300.7-2645_daily_bin981.fits', expMap='/scratch/kocevski/636153/expmap_493603201_493862401_4FGL_J2300.7-2645_daily_bin981.fits', expCube='/scratch/kocevski/636153/ltcube_493603201_493862401_4FGL_J2300.7-2645_daily_bin981.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/636153/Model_4FGL_J2300.7-2645_daily_bin981.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2300.7-2645'

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.072e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.405e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
350        Scale:  1.367e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/636153/ft1_filtered_4FGL_J2300.7-2645_daily_bin981.fits
Spacecraft file(s): /scratch/kocevski/636153/ft2_4FGL_J2300.7-2645_daily_bin981.fits
Exposure map: /scratch/kocevski/636153/expmap_493603201_493862401_4FGL_J2300.7-2645_daily_bin981.fits
Exposure cube: /scratch/kocevski/636153/ltcube_493603201_493862401_4FGL_J2300.7-2645_daily_bin981.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/636153/Model_4FGL_J2300.7-2645_daily_bin981.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) = 6162.99270933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10173E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7594       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5378       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17267E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.004       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2755       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2475       1.0000         .10000E-03   10000.    
    12 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3153       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.7704       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.960       1.0000         .10000E-03   10000.    
    21 'Prefactor '    157.56       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .82938       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83064       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6162.987     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2724 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8130       -.20465E-07** at limit **
   2  Prefactor     .10000E-03    7.0471        .74888E-06** at limit **
   3  norm          .10000E-03    21.566        .10086E-05** at limit **
   4  Prefactor     .10000E-03    4.7816        .35134E-06** at limit **
   5  Prefactor     9.7560        9.2208        .13060E-05    .56856E-03
   6  norm          1.5367        1.5687        .74136E-07    .24963E-02
   7  Prefactor     .10000E-03    108.60       -.79070E-04** at limit **
   8  Prefactor     33.003        11.978       -.25694E-06    .10368E-03
   9  norm          2.2748        2.9903       -.33102E-07   -.22576E-03
  10  Prefactor     .10000E-03    4.4311       -.11369E-06** at limit **
  11  Prefactor     5.2478        7.2539       -.86864E-06   -.14237E-03
  12  norm          .10000E-03    .22396        .10646E-06** at limit **
  13  Prefactor     10.290        35.076       -.15882E-04   -.48770E-05
  14  Prefactor     .10000E-03    5.3035       -.34583E-06** at limit **
  15  Prefactor     9.3150        8.4482        .13183E-06    .25116E-04
  16  Prefactor     .10000E-03    7.8994       -.79486E-06** at limit **
  17  norm          .10000E-03    2.3310        .79679E-08** at limit **
  18  Prefactor     .10000E-03    40.519       -.91222E-05** at limit **
  19  norm          1.7701        2.6205       -.31060E-06   -.58775E-03
  20  Prefactor     30.960        27.033        .56343E-06    .45835E-05
  21  Prefactor     157.54        94.980       -.13833E-04   -.35879E-04
  22  Prefactor     .10000E-03    82.359        .69426E-04** at limit **
  23  Normalizat    .82948        .15288        .19163E-05    .23246E-03
  24  Prefactor     .83058        .14643       -.17688E-06    .28024E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.75599
  norm       = 1.53672
  Prefactor  = 0.000100002
  Prefactor  = 33.0027
  norm       = 2.27479
  Prefactor  = 0.0001
  Prefactor  = 5.24781
  norm       = 0.0001
  Prefactor  = 10.2897
  Prefactor  = 0.0001
  Prefactor  = 9.31498
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.7701
  Prefactor  = 30.9601
  Prefactor  = 157.543
  Prefactor  = 0.000100002
  Normalizat = 0.82948
  Prefactor  = 0.830582
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.987     FROM HESSE     STATUS=OK           397 CALLS     3121 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8162        .14971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3157        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    22.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7863        .16766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.7560        9.2344        .12827E-03   -1.5083    
   6  norm          1.5367        1.5495        .95519E-04   -1.5460    
   7  Prefactor     .10000E-03    109.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.003        12.014        .69750E-04   -1.4558    
   9  norm          2.2748        2.9520        .14255E-03   -1.5406    
  10  Prefactor     .10000E-03    4.4343        .16124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2478        6.7723        .17547E-03   -1.5250    
  12  norm          .10000E-03    .29243        .65284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.290        35.105        .12484E-03   -1.5066    
  14  Prefactor     .10000E-03    5.3550        .17655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.3150        8.3895        .13131E-03   -1.5097    
  16  Prefactor     .10000E-03    7.9020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.3363        .11705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    40.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.7701        2.5867        .14364E-03   -1.5442    
  20  Prefactor     30.960        26.896        .72010E-04   -1.4595    
  21  Prefactor     157.54        95.330        .16060E-03   -1.3191    
  22  Prefactor     .10000E-03    82.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .82948        .18103        .22590E-03   -.98984    
  24  Prefactor     .83058        .17291        .22466E-03   -.98611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52056e-09
Minuit parameter uncertainties:
  1  3.48554e-06
  2  2.251e-05
  3  2.23212e-05
  4  2.06928e-07
  5  9.23575
  6  1.54952
  7  0.00103645
  8  12.0151
  9  2.95217
  10  9.36363e-06
  11  6.7733
  12  5.82845e-06
  13  35.1757
  14  8.13475e-06
  15  8.39054
  16  2.97432e-06
  17  7.07764e-07
  18  2.80152e-06
  19  2.58686
  20  26.906
  21  95.4231
  22  0.000877698
  23  0.181159
  24  0.173023
Done.

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

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  9.315e+00  8.391e+00  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.405e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
350        Scale:  1.367e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  8.306e-01  1.730e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  8.295e-01  1.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.50
Ra Dec: 345.182 -26.750
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.58e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.05e-05

TS (Fixed Index): 2.50
Ra Dec: 345.182 -26.750
Photon Flux Upper Limit: 9.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636153/likelihoodResults_493603201_493862401_4FGL_J2300.7-2645_daily_bin981.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) = 6162.90852179
delta logL = 0.0787950874801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6162.90296077
delta logL = 0.0843561097145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1567       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7202       1.0000          .0000       10.000    
     3 'Normalizat'    .81817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83844       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+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=   6162.903     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      276 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1550        12.076        .13987E-03   -.58165E-03
   2  Index         2.7204        1.0667        .57116E-02   -.15385E-03
   3  Normalizat    .81819        .17489        .22722E-03   -.36731E-03
   4  Prefactor     .83842        .17293        .22370E-03   -.34807E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.15499
  Index      = 2.72039
  Normalizat = 0.818187
  Prefactor  = 0.838416
 **********
 **   18 **HESSE 
 **********

 FCN=   6162.903     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1550        9.2086        .55947E-05   -1.5212    
   2  Index         2.7204        .81605        .22846E-03   -.47341    
   3  Normalizat    .81819        .17384        .45444E-04   -.99398    
   4  Prefactor     .83842        .17212        .44740E-04   -.98327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6445e-10
Minuit parameter uncertainties:
  1  9.21071
  2  0.820699
  3  0.173955
  4  0.172233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636153': 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) = 6162.90296073
delta logL = 0.0843561439478

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  6.155e+00  9.211e+00  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.720e+00  8.207e-01  0.000e+00  1.000e+01 (-1.000e+00)
350        Scale:  1.367e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  8.384e-01  1.722e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  8.182e-01  1.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.68
Ra Dec: 345.182 -26.750
Photon Index (Free Index): 2.72 +/- 0.82
Photon Flux (Free Index): 4.41e-08 +/- 3.70e-08
Energy Flux (Free Index): 1.04e-05 +/- 8.26e-06

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/636153/cmap_HighResolution_493603201_493862401_4FGL_J2300.7-2645_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-03', comment='SUCCESS', photon_flux='3.58e-08', energy_flux2='1.04e-05', photon_flux_error='3.22e-08', dlogl='8.44e-02', energy_flux='1.17e-05', photon_flux2='4.41e-08', job_status='DONE', time_completed='2021-09-29 05:35:09.799384', photon_index_error2='0.82', photon_index2='2.72', ts='2.50', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='9.84e-08', energy_flux_error2='8.26e-06', EG='0.83', time_epoch_completed='1632918909.8', return_code='0', job_id='636153', GAL2='0.84', EG2='0.82', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.70e-08', ts2='2.68', photon_index='2.41' WHERE bin_id='981' AND source_name='4FGL J2300.7-2645' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:35:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 636153: <4FGL_J2300.7-2645_daily_bin981> in cluster <slac> Done

Job <4FGL_J2300.7-2645_daily_bin981> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 05:20:44 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 05:20:46 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:20:46 2021
Terminated at Wed Sep 29 05:35:10 2021
Results reported at Wed Sep 29 05:35:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2300.7-2645_daily_bin981 345.182 -26.7502 493603201 493862401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2300.7-2645 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   669.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

