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


Performing analysis on: 4FGL_J2300.7-2645_daily_bin733
RA = 345.182, Dec = -26.7502
tmin = 429321601, tmax = 429580801
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='634480', job_status='RUN', time_executed='2021-09-29 05:18:58.374881', time_epoch_executed='1632917938.37' WHERE source_name='4FGL J2300.7-2645' and cadence='daily' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634480

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/634480/ft1_4FGL_J2300.7-2645_daily_bin733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/634480/ft2_4FGL_J2300.7-2645_daily_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634480/ft1_4FGL_J2300.7-2645_daily_bin733.fits outfile=/scratch/kocevski/634480/ft1_filteredMKT_4FGL_J2300.7-2645_daily_bin733.fits ra=345.182 dec=-26.7502 rad=12.0 tmin=429321601.0 tmax=429580801.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 6.45
user 6.13
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634480/ft1_filtered_4FGL_J2300.7-2645_daily_bin733.fits" evtable="EVENTS" scfile=/scratch/kocevski/634480/ft2_4FGL_J2300.7-2645_daily_bin733.fits sctable="SC_DATA" outfile=/scratch/kocevski/634480/ltcube_429321601_429580801_4FGL_J2300.7-2645_daily_bin733.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/634480/ft2_4FGL_J2300.7-2645_daily_bin733.fits
.....................!
real 12.13
user 11.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634480/ft1_filtered_4FGL_J2300.7-2645_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/634480/ft2_4FGL_J2300.7-2645_daily_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/634480/ltcube_429321601_429580801_4FGL_J2300.7-2645_daily_bin733.fits outfile=/scratch/kocevski/634480/expmap_429321601_429580801_4FGL_J2300.7-2645_daily_bin733.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/634480/ltcube_429321601_429580801_4FGL_J2300.7-2645_daily_bin733.fits
.....................!
real 193.08
user 187.10
sys 5.62

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/634480/ft1_filtered_4FGL_J2300.7-2645_daily_bin733.fits scfile=/scratch/kocevski/634480/ft2_4FGL_J2300.7-2645_daily_bin733.fits outfile=/scratch/kocevski/634480/cmap_429321601_429580801_4FGL_J2300.7-2645_daily_bin733.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/634480/ft1_filtered_4FGL_J2300.7-2645_daily_bin733.fits scfile=/scratch/kocevski/634480/ft2_4FGL_J2300.7-2645_daily_bin733.fits outfile=/scratch/kocevski/634480/cmap_HighResolution_429321601_429580801_4FGL_J2300.7-2645_daily_bin733.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.787       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5093       1.0000         .10000E-03   10000.    
     3 'norm      '    20.204       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.7610       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.331       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.172       1.0000         .10000E-03   10000.    
    12 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.948       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    19.773       1.0000         .10000E-03   10000.    
    18 'Prefactor '    59.261       1.0000         .10000E-03   10000.    
    19 'norm      '    2.6005       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7054       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .69599       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93343       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=   3246.108     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2669 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.782        20.615       -.64095E-05   -.23079E-04
   2  Prefactor     3.5101        7.9350       -.62291E-06   -.17812E-03
   3  norm          20.202        31.429       -.34353E-05   -.25615E-04
   4  Prefactor     .10000E-03    7.9176       -.22593E-05** at limit **
   5  Prefactor     .10000E-03    18.739        .87370E-05** at limit **
   6  norm          3.7604        3.5695       -.19631E-05   -.20219E-03
   7  Prefactor     29.347        70.557        .28442E-04   -.52968E-04
   8  Prefactor     .10000E-03    4.5231       -.15633E-07** at limit **
   9  norm          .10000E-03    3.3195       -.19411E-08** at limit **
  10  Prefactor     .10000E-03    8.1973        .74350E-06** at limit **
  11  Prefactor     17.172        10.247       -.19232E-05   -.29659E-03
  12  norm          .10000E-03    .29216        .68827E-07** at limit **
  13  Prefactor     23.949        59.530        .23860E-05    .15115E-05
  14  Prefactor     .10000E-03    9.6384       -.43548E-06** at limit **
  15  Prefactor     .10000E-03    8.5499        .26062E-05** at limit **
  16  Prefactor     .10000E-03    14.803       -.28475E-05** at limit **
  17  norm          19.774        11.630        .42421E-06    .71035E-05
  18  Prefactor     59.253        54.503       -.10328E-04    .84616E-05
  19  norm          2.6005        2.8810       -.55988E-07   -.68135E-04
  20  Prefactor     .10000E-03    23.683       -.47447E-05** at limit **
  21  Prefactor     4.6825        293.82       -.99413E-04    .28613E-05
  22  Prefactor     .10000E-03    14.832       -.27033E-05** at limit **
  23  Normalizat    .69558        .20700        .15557E-05   -.35622E-04
  24  Prefactor     .93386        .20022        .14654E-05   -.46707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7818
  Prefactor  = 3.51015
  norm       = 20.2023
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 3.76037
  Prefactor  = 29.3469
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1716
  norm       = 0.0001
  Prefactor  = 23.9489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.7739
  Prefactor  = 59.2526
  norm       = 2.60045
  Prefactor  = 0.0001
  Prefactor  = 4.68255
  Prefactor  = 0.0001
  Normalizat = 0.695584
  Prefactor  = 0.933856
 **********
 **   18 **HESSE 
 **********

 FCN=   3246.108     FROM HESSE     STATUS=OK           399 CALLS     3068 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.782        20.641        .10080E-03   -1.4913    
   2  Prefactor     3.5101        7.9246        .21581E-03   -1.5333    
   3  norm          20.202        31.422        .89108E-04   -1.4809    
   4  Prefactor     .10000E-03    7.9216        .15660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.7604        3.5677        .89085E-04   -1.5320    
   7  Prefactor     29.347        70.427        .73978E-04   -1.4624    
   8  Prefactor     .10000E-03    4.5330        .11833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.3507        .10104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2032        .15921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.172        9.9464        .96651E-04   -1.4879    
  12  norm          .10000E-03    .30889        .58059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.949        59.544        .81855E-04   -1.4729    
  14  Prefactor     .10000E-03    9.6794        .17276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.5914        .16241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          19.774        11.630        .90074E-04   -1.4818    
  18  Prefactor     59.253        54.616        .52117E-04   -1.4167    
  19  norm          2.6005        2.8695        .97871E-04   -1.5385    
  20  Prefactor     .10000E-03    23.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.6825        296.41        .18551E-03   -1.5275    
  22  Prefactor     .10000E-03    14.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .69558        .24161        .24057E-03   -1.0407    
  24  Prefactor     .93386        .23370        .21378E-03   -.94968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52739e-10
Minuit parameter uncertainties:
  1  20.6504
  2  7.92699
  3  31.4476
  4  3.56126e-06
  5  0.000491941
  6  3.56793
  7  70.6277
  8  4.02963e-06
  9  2.3887e-06
  10  2.10111e-07
  11  9.94737
  12  4.25393e-06
  13  59.6927
  14  2.43818e-05
  15  1.04381e-05
  16  7.3458e-06
  17  11.6313
  18  54.6621
  19  2.86962
  20  0.000118856
  21  74.9008
  22  1.33621e-05
  23  0.241982
  24  0.233947
Done.

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

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.000e-04  1.044e-05  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:  9.339e-01  2.339e-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:  6.956e-01  2.420e-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: 9.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/634480/likelihoodResults_429321601_429580801_4FGL_J2300.7-2645_daily_bin733.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) = 3246.10872056
delta logL = -0.000554587703391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3246.1081663
delta logL = -3.27088400809e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4124       1.0000          .0000       10.000    
     3 'Normalizat'    .69547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93398       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=   3246.108     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    217.08        .90712E-02** at limit **
   2  Index         2.4196        7.8523        .50000       -.77779E-05
   3  Normalizat    .69558        .25389E-01    .42230E-01    .25258E-04
   4  Prefactor     .93386        .25995E-01    .45437E-01    .16452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41959
  Normalizat = 0.695584
  Prefactor  = 0.933856
 **********
 **   18 **HESSE 
 **********

 FCN=   3246.108     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      233 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    948.00        .16270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4196        8.7299        .50000       -.54227    
   3  Normalizat    .69558        .61215E-01    .24056E-03   -1.0407    
   4  Prefactor     .93386        .62688E-01    .21378E-03   -.94968    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.44446e-09
Minuit parameter uncertainties:
  1  0.000159801
  2  45.7105
  3  0.0612207
  4  0.0626925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634480': 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) = 3246.10816595
delta logL = 2.43539943767e-08

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.000e-04  1.598e-04  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.420e+00  4.571e+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:  9.339e-01  6.269e-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:  6.956e-01  6.122e-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/634480/cmap_HighResolution_429321601_429580801_4FGL_J2300.7-2645_daily_bin733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.29e-03', job_status='DONE', photon_flux_upper_limit='9.44e-08', time_completed='2021-09-29 05:27:29.451277', job_id='634480', GAL2='0.93', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632918449.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='733' AND source_name='4FGL J2300.7-2645' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:27:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 634480: <4FGL_J2300.7-2645_daily_bin733> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2300.7-2645_daily_bin733 345.182 -26.7502 429321601 429580801 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 :                                   507.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             256.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            706 sec.

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

