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


Performing analysis on: 4FGL_J2300.7-2645_daily_bin800
RA = 345.182, Dec = -26.7502
tmin = 446688001, tmax = 446947201
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='635797', job_status='RUN', time_executed='2021-09-29 05:22:59.378417', time_epoch_executed='1632918179.38' WHERE source_name='4FGL J2300.7-2645' and cadence='daily' and bin_id='800'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635797/ft1_4FGL_J2300.7-2645_daily_bin800.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635797/ft2_4FGL_J2300.7-2645_daily_bin800.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635797/ft1_4FGL_J2300.7-2645_daily_bin800.fits outfile=/scratch/kocevski/635797/ft1_filteredMKT_4FGL_J2300.7-2645_daily_bin800.fits ra=345.182 dec=-26.7502 rad=12.0 tmin=446688001.0 tmax=446947201.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.39
user 3.16
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/635797/ft2_4FGL_J2300.7-2645_daily_bin800.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/635797/ft1_filteredMKT_4FGL_J2300.7-2645_daily_bin800.fits evtable="EVENTS" outfile="/scratch/kocevski/635797/ft1_filtered_4FGL_J2300.7-2645_daily_bin800.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/635797/ft1_filtered_4FGL_J2300.7-2645_daily_bin800.fits" evtable="EVENTS" scfile=/scratch/kocevski/635797/ft2_4FGL_J2300.7-2645_daily_bin800.fits sctable="SC_DATA" outfile=/scratch/kocevski/635797/ltcube_446688001_446947201_4FGL_J2300.7-2645_daily_bin800.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/635797/ft2_4FGL_J2300.7-2645_daily_bin800.fits
.....................!
real 11.68
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635797/ft1_filtered_4FGL_J2300.7-2645_daily_bin800.fits evtable="EVENTS" scfile=/scratch/kocevski/635797/ft2_4FGL_J2300.7-2645_daily_bin800.fits sctable="SC_DATA" expcube=/scratch/kocevski/635797/ltcube_446688001_446947201_4FGL_J2300.7-2645_daily_bin800.fits outfile=/scratch/kocevski/635797/expmap_446688001_446947201_4FGL_J2300.7-2645_daily_bin800.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/635797/ltcube_446688001_446947201_4FGL_J2300.7-2645_daily_bin800.fits
.....................!
real 190.02
user 185.51
sys 4.17

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/635797/ft1_filtered_4FGL_J2300.7-2645_daily_bin800.fits scfile=/scratch/kocevski/635797/ft2_4FGL_J2300.7-2645_daily_bin800.fits outfile=/scratch/kocevski/635797/cmap_446688001_446947201_4FGL_J2300.7-2645_daily_bin800.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635797/ft1_filtered_4FGL_J2300.7-2645_daily_bin800.fits scfile=/scratch/kocevski/635797/ft2_4FGL_J2300.7-2645_daily_bin800.fits outfile=/scratch/kocevski/635797/cmap_HighResolution_446688001_446947201_4FGL_J2300.7-2645_daily_bin800.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/635797/ft1_filtered_4FGL_J2300.7-2645_daily_bin800.fits evtable="EVENTS" scfile=/scratch/kocevski/635797/ft2_4FGL_J2300.7-2645_daily_bin800.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/635797/Model_4FGL_J2300.7-2645_daily_bin800.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/635797/ft1_filtered_4FGL_J2300.7-2645_daily_bin800.fits.....................!
real 45.73
user 44.44
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/635797/ft1_filtered_4FGL_J2300.7-2645_daily_bin800.fits', '/scratch/kocevski/635797/ft2_4FGL_J2300.7-2645_daily_bin800.fits', expMap='/scratch/kocevski/635797/expmap_446688001_446947201_4FGL_J2300.7-2645_daily_bin800.fits', expCube='/scratch/kocevski/635797/ltcube_446688001_446947201_4FGL_J2300.7-2645_daily_bin800.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/635797/Model_4FGL_J2300.7-2645_daily_bin800.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/635797/ft1_filtered_4FGL_J2300.7-2645_daily_bin800.fits
Spacecraft file(s): /scratch/kocevski/635797/ft2_4FGL_J2300.7-2645_daily_bin800.fits
Exposure map: /scratch/kocevski/635797/expmap_446688001_446947201_4FGL_J2300.7-2645_daily_bin800.fits
Exposure cube: /scratch/kocevski/635797/ltcube_446688001_446947201_4FGL_J2300.7-2645_daily_bin800.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/635797/Model_4FGL_J2300.7-2645_daily_bin800.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5796.98756658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6156       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    22.091       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .64775E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .18278E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0732       1.0000         .10000E-03   10000.    
    12 'norm      '    .17201       1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.441       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5377       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.248       1.0000         .10000E-03   10000.    
    17 'norm      '    7.8791       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11280E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.591       1.0000         .10000E-03   10000.    
    21 'Prefactor '    57.359       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0216       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87905       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=   5796.959     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2779 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6138        10.669       -.29933E-06   -.20532E-04
   2  Prefactor     .10000E-03    3.4716       -.78064E-07** at limit **
   3  norm          22.091        24.802       -.11815E-05   -.28352E-03
   4  Prefactor     .10000E-03    7.8895       -.49213E-07** at limit **
   5  Prefactor     .10000E-03    59.745       -.29725E-04** at limit **
   6  norm          .10000E-03    1.8959       -.41688E-06** at limit **
   7  Prefactor     .10000E-03    65.966        .25482E-05** at limit **
   8  Prefactor     .10000E-03    9.9623       -.25947E-06** at limit **
   9  norm          .10000E-03    1.9751       -.30670E-07** at limit **
  10  Prefactor     .10000E-03    6.0964        .29328E-06** at limit **
  11  Prefactor     2.0915        7.7619       -.14636E-05    .39726E-03
  12  norm          .17170        .50517        .47287E-06    .36309E-02
  13  Prefactor     45.445        37.420        .36783E-06    .98263E-05
  14  Prefactor     3.5376        7.1986       -.32104E-05    .83939E-04
  15  Prefactor     .10000E-03    3.6361       -.38731E-07** at limit **
  16  Prefactor     15.242        23.675        .29813E-07    .31196E-05
  17  norm          7.8783        7.9032        .51859E-06    .36846E-03
  18  Prefactor     .10000E-03    113.03       -.25625E-05** at limit **
  19  norm          .10000E-03    1.1430       -.16712E-06** at limit **
  20  Prefactor     31.595        28.460        .42384E-06    .70731E-05
  21  Prefactor     57.338        75.869       -.21220E-05   -.44567E-05
  22  Prefactor     .10000E-03    64.737        .21003E-05** at limit **
  23  Normalizat    1.0211        .16438       -.10595E-05   -.34505E-03
  24  Prefactor     .87938        .16122        .85326E-06   -.26895E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.61379
  Prefactor  = 0.0001
  norm       = 22.0914
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.09151
  norm       = 0.171701
  Prefactor  = 45.4449
  Prefactor  = 3.5376
  Prefactor  = 0.0001
  Prefactor  = 15.2423
  norm       = 7.87828
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 31.5953
  Prefactor  = 57.338
  Prefactor  = 0.000100001
  Normalizat = 1.02113
  Prefactor  = 0.879378
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.959     FROM HESSE     STATUS=OK           393 CALLS     3172 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6138        10.658        .16952E-03   -1.5234    
   2  Prefactor     .10000E-03    3.4842        .13854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          22.091        24.786        .85221E-04   -1.4768    
   4  Prefactor     .10000E-03    7.8991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    58.240        .33082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9749        .20432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    66.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.8913        .19978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0915        7.9081        .24590E-03   -1.5419    
  12  norm          .17170        .48607        .58670E-03   -1.5625    
  13  Prefactor     45.445        37.433        .59478E-04   -1.4359    
  14  Prefactor     3.5376        7.2015        .10746E-02   -1.5332    
  15  Prefactor     .10000E-03    3.6655        .14167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.242        23.681        .10257E-03   -1.4927    
  17  norm          7.8783        7.9205        .14285E-03   -1.5147    
  18  Prefactor     .10000E-03    114.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1551        .79391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.595        28.471        .71289E-04   -1.4583    
  21  Prefactor     57.338        75.824        .52969E-04   -1.4192    
  22  Prefactor     .10000E-03    65.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0211        .19405        .21913E-03   -.92326    
  24  Prefactor     .87938        .18949        .23485E-03   -.96865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76929e-09
Minuit parameter uncertainties:
  1  10.6619
  2  7.45996e-06
  3  24.7974
  4  1.63821e-05
  5  0.000988509
  6  3.31253e-05
  7  0.000418894
  8  3.01207e-05
  9  3.74755e-05
  10  4.01243e-05
  11  7.91206
  12  0.486079
  13  37.4525
  14  7.20322
  15  3.96676e-06
  16  23.6955
  17  7.92155
  18  0.00124036
  19  1.19574e-05
  20  28.4831
  21  75.952
  22  0.000524886
  23  0.194186
  24  0.189631
Done.

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

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.000e-04  3.967e-06  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.794e-01  1.896e-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.021e+00  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/635797/likelihoodResults_446688001_446947201_4FGL_J2300.7-2645_daily_bin800.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5796.96008609
delta logL = -0.0012992317379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5796.95878662
delta logL = 2.39743712882e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3830       1.0000          .0000       10.000    
     3 'Normalizat'    1.0212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87938       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5796.959     FROM MIGRAD    STATUS=FAILED        84 CALLS      232 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10170E-03    42.749        .14456E-02** at limit **
   2  Index         2.3154        7.3845        .50000        .43175E-04
   3  Normalizat    1.0211        .13184E-01    .21913E-03   -.21120E-03
   4  Prefactor     .87938        .13279E-01    .23485E-03    .79342E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5796.959     FROM SIMPLEX   STATUS=PROGRESS     127 CALLS      359 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10157E-03    42.749        .27024E-03** at limit **
   2  Index         2.3137        7.3845        .55791E-03    .43175E-04
   3  Normalizat    1.0211        .13184E-01    .30680E-05   -.21120E-03
   4  Prefactor     .87937        .13279E-01    .31224E-05    .79342E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5796.959     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      412 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.889        .28912E-02** at limit **
   2  Index         1.8485        8.7284        .50000        .63665E-08
   3  Normalizat    1.0211        .13449E-01    .43826E-04   -.18553E-03
   4  Prefactor     .87938        .13546E-01    .93939E-05   -.27762E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.84847
  Normalizat = 1.02114
  Prefactor  = 0.879376
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.959     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      441 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    256.40        .57824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8485        7.1155        .50000       -.68195    
   3  Normalizat    1.0211        .30970E-01    .87652E-05   -.92326    
   4  Prefactor     .87938        .31186E-01    .18788E-05   -.96866    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.16098e-10
Minuit parameter uncertainties:
  1  0.000149947
  2  776.977
  3  0.0309707
  4  0.0311871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635797': 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): 102
logL (Free Index) = 5796.95878363
delta logL = 3.22958840115e-06

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.000e-04  1.499e-04  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  1.848e+00  7.770e+02  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.794e-01  3.119e-02  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.021e+00  3.097e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 345.182 -26.750

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/635797/cmap_HighResolution_446688001_446947201_4FGL_J2300.7-2645_daily_bin800.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-03', job_status='DONE', photon_flux_upper_limit='5.11e-08', time_completed='2021-09-29 05:33:53.727279', job_id='635797', GAL2='0.88', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632918833.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='800' AND source_name='4FGL J2300.7-2645' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:33:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 635797: <4FGL_J2300.7-2645_daily_bin800> in cluster <slac> Done

Job <4FGL_J2300.7-2645_daily_bin800> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 05:20:21 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 05:20:23 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:23 2021
Terminated at Wed Sep 29 05:33:54 2021
Results reported at Wed Sep 29 05:33:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2300.7-2645_daily_bin800 345.182 -26.7502 446688001 446947201 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 :                                   653.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            813 sec.

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

