/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 160 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2300.7-2645_daily_bin80
RA = 345.182, Dec = -26.7502
tmin = 260064001, tmax = 260323201
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='631310', job_status='RUN', time_executed='2021-09-29 05:08:05.803753', time_epoch_executed='1632917285.8' WHERE source_name='4FGL J2300.7-2645' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631310/ft1_4FGL_J2300.7-2645_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631310/ft2_4FGL_J2300.7-2645_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/631310/ft1_4FGL_J2300.7-2645_daily_bin80.fits outfile=/scratch/kocevski/631310/ft1_filteredMKT_4FGL_J2300.7-2645_daily_bin80.fits ra=345.182 dec=-26.7502 rad=12.0 tmin=260064001.0 tmax=260323201.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 1.46
user 1.28
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/631310/ft1_filtered_4FGL_J2300.7-2645_daily_bin80.fits" evtable="EVENTS" scfile=/scratch/kocevski/631310/ft2_4FGL_J2300.7-2645_daily_bin80.fits sctable="SC_DATA" outfile=/scratch/kocevski/631310/ltcube_260064001_260323201_4FGL_J2300.7-2645_daily_bin80.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/631310/ft2_4FGL_J2300.7-2645_daily_bin80.fits
.....................!
real 12.68
user 12.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631310/ft1_filtered_4FGL_J2300.7-2645_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/631310/ft2_4FGL_J2300.7-2645_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/631310/ltcube_260064001_260323201_4FGL_J2300.7-2645_daily_bin80.fits outfile=/scratch/kocevski/631310/expmap_260064001_260323201_4FGL_J2300.7-2645_daily_bin80.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/631310/ltcube_260064001_260323201_4FGL_J2300.7-2645_daily_bin80.fits
.....................!
real 190.20
user 184.92
sys 4.78

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/631310/ft1_filtered_4FGL_J2300.7-2645_daily_bin80.fits scfile=/scratch/kocevski/631310/ft2_4FGL_J2300.7-2645_daily_bin80.fits outfile=/scratch/kocevski/631310/cmap_260064001_260323201_4FGL_J2300.7-2645_daily_bin80.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/631310/ft1_filtered_4FGL_J2300.7-2645_daily_bin80.fits scfile=/scratch/kocevski/631310/ft2_4FGL_J2300.7-2645_daily_bin80.fits outfile=/scratch/kocevski/631310/cmap_HighResolution_260064001_260323201_4FGL_J2300.7-2645_daily_bin80.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/631310/ft1_filtered_4FGL_J2300.7-2645_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/631310/ft2_4FGL_J2300.7-2645_daily_bin80.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/631310/Model_4FGL_J2300.7-2645_daily_bin80.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/631310/ft1_filtered_4FGL_J2300.7-2645_daily_bin80.fits.....................!
real 49.80
user 48.53
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10592E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.895       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2694       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4886       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.131       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14079       1.0000         .10000E-03   10000.    
     9 'norm      '    4.6185       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3423       1.0000         .10000E-03   10000.    
    12 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7449       1.0000         .10000E-03   10000.    
    17 'norm      '    7.2212       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .83622E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.7897       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.240       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    60.441       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3764       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67881       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=   6255.522     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2391 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.377       -.15463E-04** at limit **
   2  Prefactor     .10000E-03    2.9972       -.27409E-07** at limit **
   3  norm          .10001E-03    36.317        .40097E-04** at limit **
   4  Prefactor     36.897        20.258       -.22285E-05    .76077E-04
   5  Prefactor     5.2630        9.3464       -.19292E-05   -.11255E-03
   6  norm          1.4888        1.5914        .51571E-06   -.30983E-03
   7  Prefactor     16.110        37.355       -.10067E-04   -.13490E-04
   8  Prefactor     .10026E-03    9.0024       -.10507E-05** at limit **
   9  norm          4.6202        3.9800        .25921E-06   -.10908E-03
  10  Prefactor     .10000E-03    7.0701        .14893E-06** at limit **
  11  Prefactor     6.3626        8.7668       -.10389E-05   -.53188E-04
  12  norm          .10000E-03    .21067        .38843E-08** at limit **
  13  Prefactor     .10000E-03    44.418       -.39748E-04** at limit **
  14  Prefactor     .10000E-03    4.4416       -.34604E-07** at limit **
  15  Prefactor     .10000E-03    4.8030        .14314E-06** at limit **
  16  Prefactor     3.7356        24.028        .13433E-06   -.53935E-04
  17  norm          7.2183        7.0900       -.58743E-06    .23916E-03
  18  Prefactor     .10280E-03    51.556       -.59425E-05** at limit **
  19  norm          1.7954        4.9343        .79560E-05    .14405E-03
  20  Prefactor     10.175        53.620       -.61081E-04   -.13700E-03
  21  Prefactor     .10000E-03    74.883        .19402E-04** at limit **
  22  Prefactor     60.417        44.026       -.71746E-05    .29703E-04
  23  Normalizat    1.3773        .18615        .56594E-05   -.79484E-04
  24  Prefactor     .67841        .16308       -.21514E-05    .40360E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 36.8967
  Prefactor  = 5.26296
  norm       = 1.48875
  Prefactor  = 16.1098
  Prefactor  = 0.000100263
  norm       = 4.62019
  Prefactor  = 0.0001
  Prefactor  = 6.36265
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.73564
  norm       = 7.21833
  Prefactor  = 0.000102798
  norm       = 1.79536
  Prefactor  = 10.1752
  Prefactor  = 0.0001
  Prefactor  = 60.4174
  Normalizat = 1.3773
  Prefactor  = 0.678414
 **********
 **   18 **HESSE 
 **********

 FCN=   6255.522     FROM HESSE     STATUS=OK           415 CALLS     2806 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0025        .13372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    36.981        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.897        20.252        .65981E-04   -1.4492    
   5  Prefactor     5.2630        9.3390        .17510E-03   -1.5249    
   6  norm          1.4888        1.6027        .91824E-04   -1.5464    
   7  Prefactor     16.110        37.612        .99721E-04   -1.4905    
   8  Prefactor     .10026E-03    17.842        .64470E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.6202        3.9589        .13196E-03   -1.5278    
  10  Prefactor     .10000E-03    7.0793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3626        8.3755        .15938E-03   -1.5203    
  12  norm          .10000E-03    .23142        .66902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    44.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4643        .16278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8251        .16903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7356        24.039        .20864E-03   -1.5321    
  17  norm          7.2183        7.0902        .14927E-03   -1.5171    
  18  Prefactor     .10280E-03    51.263        .15140       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.7954        4.7052        .21971E-03   -1.5440    
  20  Prefactor     10.175        51.074        .12521E-03   -1.5070    
  21  Prefactor     .10000E-03    75.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     60.417        44.016        .51609E-04   -1.4152    
  23  Normalizat    1.3773        .22879        .21734E-03   -.81288    
  24  Prefactor     .67841        .19683        .28067E-03   -1.0438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79761e-09
Minuit parameter uncertainties:
  1  4.80799e-05
  2  3.27997e-06
  3  0.00119604
  4  20.2557
  5  9.34159
  6  1.60277
  7  37.6674
  8  0.00433519
  9  3.95907
  10  1.6058e-05
  11  8.37699
  12  2.28791e-06
  13  1.08437e-06
  14  1.22535e-05
  15  1.02692e-05
  16  18.9634
  17  7.09106
  18  0.0239753
  19  4.70619
  20  45.6552
  21  0.000382212
  22  44.0399
  23  0.22896
  24  0.197036
Done.

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

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.000e-04  1.027e-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:  6.784e-01  1.970e-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.377e+00  2.290e-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: 6.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/631310/likelihoodResults_260064001_260323201_4FGL_J2300.7-2645_daily_bin80.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) = 6255.52303607
delta logL = -0.00098655198417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6255.52204948
delta logL = 4.14547685068e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3894       1.0000          .0000       10.000    
     3 'Normalizat'    1.3773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67841       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=   6255.522     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10197E-03    1.3948        .17081E-01** at limit **
   2  Index         2.2952        7.8343        .50000        .21517E-04
   3  Normalizat    1.3773        .22705E-02    .21734E-03   -.17856E-03
   4  Prefactor     .67841        .21446E-02    .28067E-03    .76554E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101967
  Index      = 2.29525
  Normalizat = 1.3773
  Prefactor  = 0.678409
 **********
 **   18 **HESSE 
 **********

 FCN=   6255.522     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10197E-03    81.244        .17342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2952        5.2893        .50000       -.57157    
   3  Normalizat    1.3773        .17449E-01    .43468E-04   -.81287    
   4  Prefactor     .67841        .16481E-01    .11227E-04   -1.0438    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.47169e-08
Minuit parameter uncertainties:
  1  0.0253176
  2  501.471
  3  0.0174486
  4  0.0164808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631310': 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) = 6255.52204906
delta logL = 4.61339368485e-07

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.020e-04  2.532e-02  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.295e+00  5.015e+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:  6.784e-01  1.648e-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.377e+00  1.745e-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/631310/cmap_HighResolution_260064001_260323201_4FGL_J2300.7-2645_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-09-29 05:18:39.311248', job_id='631310', GAL2='0.68', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1632917919.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='4.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='80' AND source_name='4FGL J2300.7-2645' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:18:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 631310: <4FGL_J2300.7-2645_daily_bin80> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2300.7-2645_daily_bin80 345.182 -26.7502 260064001 260323201 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 :                                   632.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            805 sec.

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

