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


Performing analysis on: 4FGL_J2300.7-2645_daily_bin703
RA = 345.182, Dec = -26.7502
tmin = 421545601, tmax = 421804801
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='634432', job_status='RUN', time_executed='2021-09-29 05:18:09.936646', time_epoch_executed='1632917889.94' WHERE source_name='4FGL J2300.7-2645' and cadence='daily' and bin_id='703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/634432/ft1_4FGL_J2300.7-2645_daily_bin703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/634432/ft2_4FGL_J2300.7-2645_daily_bin703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634432/ft1_4FGL_J2300.7-2645_daily_bin703.fits outfile=/scratch/kocevski/634432/ft1_filteredMKT_4FGL_J2300.7-2645_daily_bin703.fits ra=345.182 dec=-26.7502 rad=12.0 tmin=421545601.0 tmax=421804801.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.57
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/634432/ft2_4FGL_J2300.7-2645_daily_bin703.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/634432/ft1_filteredMKT_4FGL_J2300.7-2645_daily_bin703.fits evtable="EVENTS" outfile="/scratch/kocevski/634432/ft1_filtered_4FGL_J2300.7-2645_daily_bin703.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634432/ft1_filtered_4FGL_J2300.7-2645_daily_bin703.fits" evtable="EVENTS" scfile=/scratch/kocevski/634432/ft2_4FGL_J2300.7-2645_daily_bin703.fits sctable="SC_DATA" outfile=/scratch/kocevski/634432/ltcube_421545601_421804801_4FGL_J2300.7-2645_daily_bin703.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/634432/ft2_4FGL_J2300.7-2645_daily_bin703.fits
.....................!
real 12.16
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634432/ft1_filtered_4FGL_J2300.7-2645_daily_bin703.fits evtable="EVENTS" scfile=/scratch/kocevski/634432/ft2_4FGL_J2300.7-2645_daily_bin703.fits sctable="SC_DATA" expcube=/scratch/kocevski/634432/ltcube_421545601_421804801_4FGL_J2300.7-2645_daily_bin703.fits outfile=/scratch/kocevski/634432/expmap_421545601_421804801_4FGL_J2300.7-2645_daily_bin703.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/634432/ltcube_421545601_421804801_4FGL_J2300.7-2645_daily_bin703.fits
.....................!
real 190.99
user 185.22
sys 5.44

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/634432/ft1_filtered_4FGL_J2300.7-2645_daily_bin703.fits scfile=/scratch/kocevski/634432/ft2_4FGL_J2300.7-2645_daily_bin703.fits outfile=/scratch/kocevski/634432/cmap_421545601_421804801_4FGL_J2300.7-2645_daily_bin703.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/634432/ft1_filtered_4FGL_J2300.7-2645_daily_bin703.fits scfile=/scratch/kocevski/634432/ft2_4FGL_J2300.7-2645_daily_bin703.fits outfile=/scratch/kocevski/634432/cmap_HighResolution_421545601_421804801_4FGL_J2300.7-2645_daily_bin703.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/634432/ft1_filtered_4FGL_J2300.7-2645_daily_bin703.fits evtable="EVENTS" scfile=/scratch/kocevski/634432/ft2_4FGL_J2300.7-2645_daily_bin703.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/634432/Model_4FGL_J2300.7-2645_daily_bin703.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/634432/ft1_filtered_4FGL_J2300.7-2645_daily_bin703.fits.....................!
real 42.54
user 41.25
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/634432/ft1_filtered_4FGL_J2300.7-2645_daily_bin703.fits', '/scratch/kocevski/634432/ft2_4FGL_J2300.7-2645_daily_bin703.fits', expMap='/scratch/kocevski/634432/expmap_421545601_421804801_4FGL_J2300.7-2645_daily_bin703.fits', expCube='/scratch/kocevski/634432/ltcube_421545601_421804801_4FGL_J2300.7-2645_daily_bin703.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/634432/Model_4FGL_J2300.7-2645_daily_bin703.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/634432/ft1_filtered_4FGL_J2300.7-2645_daily_bin703.fits
Spacecraft file(s): /scratch/kocevski/634432/ft2_4FGL_J2300.7-2645_daily_bin703.fits
Exposure map: /scratch/kocevski/634432/expmap_421545601_421804801_4FGL_J2300.7-2645_daily_bin703.fits
Exposure cube: /scratch/kocevski/634432/ltcube_421545601_421804801_4FGL_J2300.7-2645_daily_bin703.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/634432/Model_4FGL_J2300.7-2645_daily_bin703.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) = 4805.29828125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9622       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4222       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8239       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.7175       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4638       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.569       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.711       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .68467       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.813       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    56.235       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0864       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89426       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=   4805.281     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2694 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.846        .40924E-05** at limit **
   2  Prefactor     4.9619        9.9854        .34937E-06   -.18338E-04
   3  norm          1.3937        94.370       -.33060E-06   -.26717E-04
   4  Prefactor     .10000E-03    7.1750        .19741E-06** at limit **
   5  Prefactor     7.8250        15.860        .34435E-05   -.16197E-03
   6  norm          .10000E-03    1.2141       -.71718E-07** at limit **
   7  Prefactor     .10000E-03    43.119        .75697E-06** at limit **
   8  Prefactor     .10000E-03    3.9706        .26742E-07** at limit **
   9  norm          2.7179        3.5391        .56211E-07   -.21537E-04
  10  Prefactor     .10000E-03    6.0301        .51276E-07** at limit **
  11  Prefactor     .10000E-03    6.5507       -.24529E-06** at limit **
  12  norm          1.4639        .77026       -.11663E-08   -.81529E-05
  13  Prefactor     .10000E-03    37.322       -.32959E-05** at limit **
  14  Prefactor     .10000E-03    3.7678        .20385E-07** at limit **
  15  Prefactor     12.570        14.370        .34026E-08   -.86060E-05
  16  Prefactor     .10000E-03    10.822       -.15487E-06** at limit **
  17  norm          12.713        10.646        .16474E-06    .78462E-05
  18  Prefactor     .10000E-03    14.492        .21109E-06** at limit **
  19  norm          .68738        3.1454        .12930E-05   -.99685E-04
  20  Prefactor     27.810        34.316       -.93585E-06   -.58677E-04
  21  Prefactor     .10000E-03    78.740       -.21284E-05** at limit **
  22  Prefactor     56.222        44.786       -.12494E-05   -.96025E-04
  23  Normalizat    1.0865        .20722       -.50430E-06   -.64821E-04
  24  Prefactor     .89416        .19332       -.41584E-06   -.60629E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 4.96194
  norm       = 1.39366
  Prefactor  = 0.0001
  Prefactor  = 7.82498
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.71789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46386
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 12.5702
  Prefactor  = 0.0001
  norm       = 12.7128
  Prefactor  = 0.0001
  norm       = 0.687381
  Prefactor  = 27.8102
  Prefactor  = 0.000100001
  Prefactor  = 56.2223
  Normalizat = 1.08649
  Prefactor  = 0.894162
 **********
 **   18 **HESSE 
 **********

 FCN=   4805.281     FROM HESSE     STATUS=OK           395 CALLS     3089 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9619        10.016        .18054E-03   -1.5262    
   3  norm          1.3937        96.948        .36267E-03   -1.5472    
   4  Prefactor     .10000E-03    7.1839        .18141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8250        16.222        .71677E-03   -1.5148    
   6  norm          .10000E-03    1.2421        .74568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9811        .13489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.7179        3.5234        .14210E-03   -1.5378    
  10  Prefactor     .10000E-03    6.0343        .16621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.5885        .17287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4639        .77278        .38852E-04   -1.5466    
  13  Prefactor     .10000E-03    38.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7713        .13141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.570        14.487        .11298E-03   -1.4999    
  16  Prefactor     .10000E-03    10.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.713        10.646        .11235E-03   -1.4995    
  18  Prefactor     .10000E-03    14.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .68738        3.1555        .22800E-03   -1.5542    
  20  Prefactor     27.810        34.037        .75965E-04   -1.4653    
  21  Prefactor     .10000E-03    79.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     56.222        45.338        .26747E-03   -1.4207    
  23  Normalizat    1.0865        .24393        .23563E-03   -.90187    
  24  Prefactor     .89416        .22683        .24816E-03   -.96345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6729e-10
Minuit parameter uncertainties:
  1  0.000635811
  2  10.0194
  3  23.2861
  4  1.40321e-05
  5  16.2311
  6  2.25528e-06
  7  0.000102573
  8  1.21116e-06
  9  3.52364
  10  3.80503e-06
  11  1.69327e-05
  12  0.772786
  13  0.000553049
  14  6.70013e-07
  15  14.4912
  16  1.43953e-05
  17  10.6476
  18  2.21172e-05
  19  2.94559
  20  34.061
  21  0.000483558
  22  45.3656
  23  0.24418
  24  0.227065
Done.

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

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.257e+01  1.449e+01  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.942e-01  2.271e-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:  1.086e+00  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 345.182 -26.750
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.83e-08 +/- 5.57e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.81e-05

TS (Fixed Index): 1.12
Ra Dec: 345.182 -26.750
Photon Flux Upper Limit: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/634432/likelihoodResults_421545601_421804801_4FGL_J2300.7-2645_daily_bin703.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) = 4804.76527689
delta logL = 0.515486475075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4804.7493153
delta logL = 0.531448065157

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7036       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1707       1.0000          .0000       10.000    
     3 'Normalizat'    1.0444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91939       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.

 FCN=   4804.749     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      245 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7066        75.365        .46386E-02    .11793E-03
   2  Index         3.1705        2.8416        .11293        .99865E-04
   3  Normalizat    1.0443        .66108E-01    .40950E-01   -.53143E-03
   4  Prefactor     .91961        .60880E-01    .45252E-01   -.56916E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.70661
  Index      = 3.17053
  Normalizat = 1.04434
  Prefactor  = 0.919606
 **********
 **   18 **HESSE 
 **********

 FCN=   4804.749     FROM HESSE     STATUS=OK            29 CALLS      274 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7066        11.720        .10914E-03   -1.5274    
   2  Index         3.1705        1.1510        .41147E-02   -.37459    
   3  Normalizat    1.0443        .23963        .23951E-03   -.91559    
   4  Prefactor     .91961        .22780        .24490E-03   -.95459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57007e-08
Minuit parameter uncertainties:
  1  11.7257
  2  1.16308
  3  0.239876
  4  0.228034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634432': 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) = 4804.74931339
delta logL = 0.531449974407

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  4.707e+00  1.173e+01  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  3.171e+00  1.163e+00  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:  9.196e-01  2.280e-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:  1.044e+00  2.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.26
Ra Dec: 345.182 -26.750
Photon Index (Free Index): 3.17 +/- 1.16
Photon Flux (Free Index): 8.68e-08 +/- 6.86e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.35e-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/634432/cmap_HighResolution_421545601_421804801_4FGL_J2300.7-2645_daily_bin703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='4.83e-08', energy_flux2='1.61e-05', photon_flux_error='5.57e-08', dlogl='5.31e-01', energy_flux='1.57e-05', photon_flux2='8.68e-08', job_status='DONE', time_completed='2021-09-29 05:27:51.931462', photon_index_error2='1.16', photon_index2='3.17', ts='1.12', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.35e-05', EG='1.09', time_epoch_completed='1632918471.93', return_code='0', job_id='634432', GAL2='0.92', EG2='1.04', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='6.86e-08', ts2='2.26', photon_index='2.41' WHERE bin_id='703' AND source_name='4FGL J2300.7-2645' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:27:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 634432: <4FGL_J2300.7-2645_daily_bin703> in cluster <slac> Done

Job <4FGL_J2300.7-2645_daily_bin703> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 05:15:39 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 05:15:40 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:15:40 2021
Terminated at Wed Sep 29 05:27:52 2021
Results reported at Wed Sep 29 05:27:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2300.7-2645_daily_bin703 345.182 -26.7502 421545601 421804801 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 :                                   580.52 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             282.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            733 sec.

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

