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


Performing analysis on: 4FGL_J2300.7-2645_daily_bin570
RA = 345.182, Dec = -26.7502
tmin = 387072001, tmax = 387331201
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='634239', job_status='RUN', time_executed='2021-09-29 05:18:26.716534', time_epoch_executed='1632917906.72' WHERE source_name='4FGL J2300.7-2645' and cadence='daily' and bin_id='570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634239

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/634239/ft1_4FGL_J2300.7-2645_daily_bin570.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/634239/ft2_4FGL_J2300.7-2645_daily_bin570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634239/ft1_4FGL_J2300.7-2645_daily_bin570.fits outfile=/scratch/kocevski/634239/ft1_filteredMKT_4FGL_J2300.7-2645_daily_bin570.fits ra=345.182 dec=-26.7502 rad=12.0 tmin=387072001.0 tmax=387331201.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.37
user 3.14
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634239/ft1_filtered_4FGL_J2300.7-2645_daily_bin570.fits" evtable="EVENTS" scfile=/scratch/kocevski/634239/ft2_4FGL_J2300.7-2645_daily_bin570.fits sctable="SC_DATA" outfile=/scratch/kocevski/634239/ltcube_387072001_387331201_4FGL_J2300.7-2645_daily_bin570.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/634239/ft2_4FGL_J2300.7-2645_daily_bin570.fits
.....................!
real 11.52
user 11.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634239/ft1_filtered_4FGL_J2300.7-2645_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/634239/ft2_4FGL_J2300.7-2645_daily_bin570.fits sctable="SC_DATA" expcube=/scratch/kocevski/634239/ltcube_387072001_387331201_4FGL_J2300.7-2645_daily_bin570.fits outfile=/scratch/kocevski/634239/expmap_387072001_387331201_4FGL_J2300.7-2645_daily_bin570.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/634239/ltcube_387072001_387331201_4FGL_J2300.7-2645_daily_bin570.fits
.....................!
real 197.19
user 192.06
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/634239/ft1_filtered_4FGL_J2300.7-2645_daily_bin570.fits scfile=/scratch/kocevski/634239/ft2_4FGL_J2300.7-2645_daily_bin570.fits outfile=/scratch/kocevski/634239/cmap_387072001_387331201_4FGL_J2300.7-2645_daily_bin570.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/634239/ft1_filtered_4FGL_J2300.7-2645_daily_bin570.fits scfile=/scratch/kocevski/634239/ft2_4FGL_J2300.7-2645_daily_bin570.fits outfile=/scratch/kocevski/634239/cmap_HighResolution_387072001_387331201_4FGL_J2300.7-2645_daily_bin570.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/634239/ft1_filtered_4FGL_J2300.7-2645_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/634239/ft2_4FGL_J2300.7-2645_daily_bin570.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/634239/Model_4FGL_J2300.7-2645_daily_bin570.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/634239/ft1_filtered_4FGL_J2300.7-2645_daily_bin570.fits.....................!
real 50.19
user 48.85
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    20.428       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3710       1.0000         .10000E-03   10000.    
     6 'norm      '    4.4193       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .27942E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3481       1.0000         .10000E-03   10000.    
     9 'norm      '    .10531E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5059       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.995       1.0000         .10000E-03   10000.    
    12 'norm      '    .57110       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25402E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.7537       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.596       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.793       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84350       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97429       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=   6535.643     FROM MIGRAD    STATUS=CONVERGED    963 CALLS     3157 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.892        .18142E-02** at limit **
   2  Prefactor     .10000E-03    4.5185        .16746E-02** at limit **
   3  norm          20.433        14.798        .88619E-04   -.10263E-04
   4  Prefactor     .10000E-03    21.345        .18142E-02** at limit **
   5  Prefactor     5.3703        9.4771        .86702E-03   -.17911E-04
   6  norm          4.4179        2.7192        .89306E-04   -.33811E-03
   7  Prefactor     .10000E-03    53.048        .12447    ** at limit **
   8  Prefactor     1.3498        15.580        .18849E-02    .59175E-04
   9  norm          .10000E-03    3.6149        .21726E-02** at limit **
  10  Prefactor     7.5107        12.340        .14638E-03    .48850E-04
  11  Prefactor     29.987        11.363        .73156E-04    .15804E-03
  12  norm          .57112        .61874        .55810E-03   -.74490E-03
  13  Prefactor     .10000E-03    15.435        .18142E-02** at limit **
  14  Prefactor     .10000E-03    33.872        .41077E-02** at limit **
  15  Prefactor     .10000E-03    3.4370        .14603E-02** at limit **
  16  Prefactor     .10000E-03    35.140        .18142E-02** at limit **
  17  norm          .10000E-03    1.7404        .10408E-02** at limit **
  18  Prefactor     .10000E-03    34.851        .18142E-02** at limit **
  19  norm          2.7532        3.2088        .14257E-03   -.51591E-04
  20  Prefactor     16.608        22.256        .98314E-04   -.42092E-04
  21  Prefactor     11.824        66.444        .11665E-03   -.11305E-04
  22  Prefactor     .10000E-03    17.837        .18142E-02** at limit **
  23  Normalizat    .84339        .19568        .24179E-03    .16010E-03
  24  Prefactor     .97437        .18794        .22716E-03    .20215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.4329
  Prefactor  = 0.0001
  Prefactor  = 5.37028
  norm       = 4.41787
  Prefactor  = 0.000100003
  Prefactor  = 1.34977
  norm       = 0.0001
  Prefactor  = 7.51074
  Prefactor  = 29.987
  norm       = 0.571123
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.75322
  Prefactor  = 16.6081
  Prefactor  = 11.8244
  Prefactor  = 0.0001
  Normalizat = 0.843393
  Prefactor  = 0.974368
 **********
 **   18 **HESSE 
 **********

 FCN=   6535.643     FROM HESSE     STATUS=OK           389 CALLS     3546 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.901        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5191        .33493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          20.433        14.798        .35447E-05   -1.4804    
   4  Prefactor     .10000E-03    21.352        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3703        9.4700        .34681E-04   -1.5244    
   6  norm          4.4179        2.7152        .35722E-05   -1.5288    
   7  Prefactor     .10000E-03    50.471        .12817       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3498        15.491        .75395E-04   -1.5476    
   9  norm          .10000E-03    3.6253        .43452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.5107        12.339        .58553E-05   -1.5160    
  11  Prefactor     29.987        11.347        .29262E-05   -1.4612    
  12  norm          .57112        .61746        .22324E-04   -1.5557    
  13  Prefactor     .10000E-03    15.435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.391        .82153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4373        .29206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    35.166        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.7405        .20816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.7532        3.2079        .57030E-05   -1.5376    
  20  Prefactor     16.608        22.253        .39326E-05   -1.4893    
  21  Prefactor     11.824        66.463        .46661E-05   -1.5020    
  22  Prefactor     .10000E-03    17.838        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .84339        .19559        .96717E-05   -.98479    
  24  Prefactor     .97437        .18808        .45431E-04   -.93589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27608e-10
Minuit parameter uncertainties:
  1  5.70882e-06
  2  7.55915e-06
  3  14.8004
  4  5.94186e-05
  5  9.47265
  6  2.7153
  7  0.000725724
  8  9.14789
  9  6.79177e-05
  10  12.3429
  11  11.3475
  12  0.617469
  13  1.92647e-05
  14  0.000511199
  15  1.07627e-05
  16  5.76072e-06
  17  1.78264e-06
  18  8.73381e-05
  19  3.20812
  20  22.264
  21  56.1626
  22  3.70123e-07
  23  0.195754
  24  0.188208
Done.

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

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.000e-04  1.076e-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.744e-01  1.882e-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:  8.434e-01  1.958e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/634239/likelihoodResults_387072001_387331201_4FGL_J2300.7-2645_daily_bin570.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) = 6535.64430299
delta logL = -0.00138464234169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6535.64291811
delta logL = 2.35198967857e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3853       1.0000          .0000       10.000    
     3 'Normalizat'    .84339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97437       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=   6535.643     FROM MIGRAD    STATUS=FAILED        87 CALLS      241 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10155E-03    41.240        .14839E-02** at limit **
   2  Index         2.3219        8.7676        .50000        .42163E-04
   3  Normalizat    .84339        .12826E-01    .24179E-03    .31455E-04
   4  Prefactor     .97437        .12937E-01    .22716E-03    .80377E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6535.643     FROM SIMPLEX   STATUS=PROGRESS     127 CALLS      368 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10142E-03    41.240        .27341E-03** at limit **
   2  Index         2.3199        8.7676        .66176E-03    .42163E-04
   3  Normalizat    .84339        .12826E-01    .32556E-05    .31455E-04
   4  Prefactor     .97436        .12937E-01    .29051E-05    .80377E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6535.643     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      421 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.295        .29677E-02** at limit **
   2  Index         1.8565        5.8254        .50000        .49772E-07
   3  Normalizat    .84339        .13369E-01    .96717E-05   -.14999E-03
   4  Prefactor     .97437        .13485E-01    .90863E-05   -.17291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8565
  Normalizat = 0.843393
  Prefactor  = 0.974367
 **********
 **   18 **HESSE 
 **********

 FCN=   6535.643     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      450 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    247.25        .59355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8565        7.6906        .50000       -.67988    
   3  Normalizat    .84339        .30503E-01    .19343E-05   -.98479    
   4  Prefactor     .97437        .30770E-01    .18173E-05   -.93589    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.70788e-11
Minuit parameter uncertainties:
  1  4.9245e-05
  2  801.761
  3  0.0305038
  4  0.0307703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634239': 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) = 6535.64291524
delta logL = 3.10647646984e-06

Extracting fit parameters...

4FGL J2300.7-2645
   Spectrum: PowerLaw
348    Prefactor:  1.000e-04  4.924e-05  1.000e-04  1.000e+04 ( 1.000e-13)
349        Index:  1.857e+00  8.018e+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:  9.744e-01  3.077e-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:  8.434e-01  3.050e-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/634239/cmap_HighResolution_387072001_387331201_4FGL_J2300.7-2645_daily_bin570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-03', job_status='DONE', photon_flux_upper_limit='5.62e-08', time_completed='2021-09-29 05:30:42.176214', job_id='634239', GAL2='0.97', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632918642.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='570' AND source_name='4FGL J2300.7-2645' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:30:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 634239: <4FGL_J2300.7-2645_daily_bin570> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2300.7-2645_daily_bin570 345.182 -26.7502 387072001 387331201 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 :                                   734.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

