/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 116 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 = 7436
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2300.7-2645_daily_bin204
RA = 345.182, Dec = -26.7502
tmin = 292204801, tmax = 292464001
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='631487', job_status='RUN', time_executed='2021-09-29 05:07:36.441789', time_epoch_executed='1632917256.44' WHERE source_name='4FGL J2300.7-2645' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631487

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631487/ft1_4FGL_J2300.7-2645_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631487/ft2_4FGL_J2300.7-2645_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/631487/ft1_4FGL_J2300.7-2645_daily_bin204.fits outfile=/scratch/kocevski/631487/ft1_filteredMKT_4FGL_J2300.7-2645_daily_bin204.fits ra=345.182 dec=-26.7502 rad=12.0 tmin=292204801.0 tmax=292464001.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 9.56
user 9.18
sys 0.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/631487/ft2_4FGL_J2300.7-2645_daily_bin204.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/631487/ft1_filteredMKT_4FGL_J2300.7-2645_daily_bin204.fits evtable="EVENTS" outfile="/scratch/kocevski/631487/ft1_filtered_4FGL_J2300.7-2645_daily_bin204.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/631487/ft1_filtered_4FGL_J2300.7-2645_daily_bin204.fits" evtable="EVENTS" scfile=/scratch/kocevski/631487/ft2_4FGL_J2300.7-2645_daily_bin204.fits sctable="SC_DATA" outfile=/scratch/kocevski/631487/ltcube_292204801_292464001_4FGL_J2300.7-2645_daily_bin204.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/631487/ft2_4FGL_J2300.7-2645_daily_bin204.fits
.....................!
real 11.36
user 10.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631487/ft1_filtered_4FGL_J2300.7-2645_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/631487/ft2_4FGL_J2300.7-2645_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/631487/ltcube_292204801_292464001_4FGL_J2300.7-2645_daily_bin204.fits outfile=/scratch/kocevski/631487/expmap_292204801_292464001_4FGL_J2300.7-2645_daily_bin204.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/631487/ltcube_292204801_292464001_4FGL_J2300.7-2645_daily_bin204.fits
.....................!
real 190.89
user 184.98
sys 5.59

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/631487/ft1_filtered_4FGL_J2300.7-2645_daily_bin204.fits scfile=/scratch/kocevski/631487/ft2_4FGL_J2300.7-2645_daily_bin204.fits outfile=/scratch/kocevski/631487/cmap_292204801_292464001_4FGL_J2300.7-2645_daily_bin204.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/631487/ft1_filtered_4FGL_J2300.7-2645_daily_bin204.fits scfile=/scratch/kocevski/631487/ft2_4FGL_J2300.7-2645_daily_bin204.fits outfile=/scratch/kocevski/631487/cmap_HighResolution_292204801_292464001_4FGL_J2300.7-2645_daily_bin204.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.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/631487/ft1_filtered_4FGL_J2300.7-2645_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/631487/ft2_4FGL_J2300.7-2645_daily_bin204.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/631487/Model_4FGL_J2300.7-2645_daily_bin204.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/631487/ft1_filtered_4FGL_J2300.7-2645_daily_bin204.fits.....................!
real 59.46
user 58.13
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.419       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .50976E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3940       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7556       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11956E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .52498       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11270E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7300       1.0000         .10000E-03   10000.    
    12 'norm      '    .61269       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12237E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2163       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    29.591       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.4312       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    52.199       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.905       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4328       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75439       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=   7713.096     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2795 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.420        15.999       -.23737E-07   -.66515E-05
   2  Prefactor     .10000E-03    18.951        .38033E-06** at limit **
   3  norm          .10001E-03    9.0279        .21500E-05** at limit **
   4  Prefactor     1.4086        133.99       -.16793E-05    .36941E-05
   5  Prefactor     8.7540        9.7059       -.60549E-07   -.26249E-04
   6  norm          .10000E-03    .56979        .56262E-07** at limit **
   7  Prefactor     .10000E-03    79.179        .55718E-06** at limit **
   8  Prefactor     .10001E-03    22.937       -.54108E-05** at limit **
   9  norm          .52885        3.1785       -.16199E-05   -.53098E-03
  10  Prefactor     .10001E-03    13.140        .23306E-05** at limit **
  11  Prefactor     3.7481        10.400        .16072E-05    .98789E-04
  12  norm          .61299        .64328        .11166E-06    .90240E-03
  13  Prefactor     .10000E-03    171.05        .55840E-06** at limit **
  14  Prefactor     2.2176        7.7464       -.47398E-06   -.41953E-04
  15  Prefactor     .10000E-03    14.484       -.71817E-06** at limit **
  16  Prefactor     .10000E-03    4.8354        .30912E-07** at limit **
  17  norm          29.592        14.045       -.42037E-07    .62755E-05
  18  Prefactor     .10000E-03    30.712       -.11156E-06** at limit **
  19  norm          3.4310        2.2147       -.30426E-07   -.18822E-04
  20  Prefactor     .10000E-03    8.2747       -.53777E-06** at limit **
  21  Prefactor     52.436        97.858       -.54885E-06   -.41797E-04
  22  Prefactor     17.904        32.446       -.44745E-07    .18037E-06
  23  Normalizat    1.4329        .19827       -.55598E-06   -.28825E-03
  24  Prefactor     .75428        .17878        .32594E-06    .16841E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.4197
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 1.40857
  Prefactor  = 8.75403
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.528848
  Prefactor  = 0.000100009
  Prefactor  = 3.74806
  norm       = 0.612994
  Prefactor  = 0.0001
  Prefactor  = 2.21761
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 29.5922
  Prefactor  = 0.0001
  norm       = 3.43104
  Prefactor  = 0.0001
  Prefactor  = 52.4361
  Prefactor  = 17.9036
  Normalizat = 1.43288
  Prefactor  = 0.754283
 **********
 **   18 **HESSE 
 **********

 FCN=   7713.096     FROM HESSE     STATUS=OK           405 CALLS     3200 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.420        16.000        .81063E-04   -1.4719    
   2  Prefactor     .10000E-03    19.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    36.341        .43290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4086        135.43        .36786E-03   -1.5471    
   5  Prefactor     8.7540        9.6888        .13546E-03   -1.5116    
   6  norm          .10000E-03    .57702        .64715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    80.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    31.980        .44655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .52885        3.4999        .29297E-03   -1.5563    
  10  Prefactor     .10001E-03    38.087        .45365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7481        10.401        .20907E-03   -1.5321    
  12  norm          .61299        .61452        .52264E-03   -1.5551    
  13  Prefactor     .10000E-03    171.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2176        7.7250        .27625E-03   -1.5410    
  15  Prefactor     .10000E-03    14.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          29.592        14.043        .73652E-04   -1.4619    
  18  Prefactor     .10000E-03    30.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.4310        2.2111        .10120E-03   -1.5337    
  20  Prefactor     .10000E-03    8.2712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     52.436        97.982        .27756E-03   -1.4258    
  22  Prefactor     17.904        32.441        .94654E-04   -1.4861    
  23  Normalizat    1.4329        .21581        .22971E-03   -.79682    
  24  Prefactor     .75428        .19404        .28358E-03   -1.0144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31085e-09
Minuit parameter uncertainties:
  1  16.0033
  2  3.38908e-05
  3  0.00105529
  4  27.6874
  5  9.69049
  6  7.37128e-07
  7  1.64968e-05
  8  0.00122891
  9  2.72092
  10  0.00115321
  11  10.406
  12  0.614525
  13  8.13637e-05
  14  7.72847
  15  0.000181485
  16  1.53032e-06
  17  14.0445
  18  3.70218e-05
  19  2.21114
  20  2.36184e-05
  21  98.2846
  22  32.4725
  23  0.215943
  24  0.194213
Done.

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

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.000e-04  1.815e-04  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:  7.543e-01  1.942e-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.433e+00  2.159e-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: 8.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/631487/likelihoodResults_292204801_292464001_4FGL_J2300.7-2645_daily_bin204.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) = 7713.09628428
delta logL = -0.000319740948726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7713.09596548
delta logL = -9.31655449676e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14756E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4619       1.0000          .0000       10.000    
     3 'Normalizat'    1.4330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75422       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=   7713.096     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      226 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    1.0472        .90712E-01** at limit **
   2  Index         2.5405        2.0485        .50000       -.46630E-04
   3  Normalizat    1.4329        .20471E-02    .51957E-01    .24862E-04
   4  Prefactor     .75428        .19111E-02    .64104E-01    .34710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100044
  Index      = 2.54047
  Normalizat = 1.43289
  Prefactor  = 0.754278
 **********
 **   18 **HESSE 
 **********

 FCN=   7713.096     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      259 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    1229.4        .35861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5405        6.2686        .50000       -.51428    
   3  Normalizat    1.4329        .32890E-01    .22971E-03   -.79682    
   4  Prefactor     .75428        .30632E-01    .28358E-03   -1.0144    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.30277e-07
Minuit parameter uncertainties:
  1  0.0149953
  2  32.1073
  3  0.0328906
  4  0.0306325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631487': 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) = 7713.09596327
delta logL = 1.26904797071e-06

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.000e-04  1.500e-02  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  2.540e+00  3.211e+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:  7.543e-01  3.063e-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.433e+00  3.289e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/631487/cmap_HighResolution_292204801_292464001_4FGL_J2300.7-2645_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='8.76e-08', time_completed='2021-09-29 05:20:38.005350', job_id='631487', GAL2='0.75', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1632918038.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='204' AND source_name='4FGL J2300.7-2645' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:20:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 631487: <4FGL_J2300.7-2645_daily_bin204> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2300.7-2645_daily_bin204 345.182 -26.7502 292204801 292464001 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 :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            908 sec.

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

