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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin560
RA = 346.078, Dec = 6.3071
tmin = 384480001, tmax = 384739201
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='649451', job_status='RUN', time_executed='2021-09-29 06:01:07.005046', time_epoch_executed='1632920467.01' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649451

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649451/ft1_4FGL_J2304.3+0618_daily_bin560.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649451/ft2_4FGL_J2304.3+0618_daily_bin560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649451/ft1_4FGL_J2304.3+0618_daily_bin560.fits outfile=/scratch/kocevski/649451/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin560.fits ra=346.078 dec=6.3071 rad=12.0 tmin=384480001.0 tmax=384739201.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.94
user 3.70
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/649451/ft2_4FGL_J2304.3+0618_daily_bin560.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/649451/ft2_4FGL_J2304.3+0618_daily_bin560.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/649451/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin560.fits evtable="EVENTS" outfile="/scratch/kocevski/649451/ft1_filtered_4FGL_J2304.3+0618_daily_bin560.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.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649451/ft1_filtered_4FGL_J2304.3+0618_daily_bin560.fits" evtable="EVENTS" scfile=/scratch/kocevski/649451/ft2_4FGL_J2304.3+0618_daily_bin560.fits sctable="SC_DATA" outfile=/scratch/kocevski/649451/ltcube_384480001_384739201_4FGL_J2304.3+0618_daily_bin560.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/649451/ft2_4FGL_J2304.3+0618_daily_bin560.fits
.....................!
real 12.16
user 11.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649451/ft1_filtered_4FGL_J2304.3+0618_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/649451/ft2_4FGL_J2304.3+0618_daily_bin560.fits sctable="SC_DATA" expcube=/scratch/kocevski/649451/ltcube_384480001_384739201_4FGL_J2304.3+0618_daily_bin560.fits outfile=/scratch/kocevski/649451/expmap_384480001_384739201_4FGL_J2304.3+0618_daily_bin560.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/649451/ltcube_384480001_384739201_4FGL_J2304.3+0618_daily_bin560.fits
.....................!
real 190.55
user 185.08
sys 4.46

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J2304.3+0618 @ 346.078 6.3071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/649451/ft1_filtered_4FGL_J2304.3+0618_daily_bin560.fits scfile=/scratch/kocevski/649451/ft2_4FGL_J2304.3+0618_daily_bin560.fits outfile=/scratch/kocevski/649451/cmap_384480001_384739201_4FGL_J2304.3+0618_daily_bin560.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=346.078 yref=6.3071 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649451/ft1_filtered_4FGL_J2304.3+0618_daily_bin560.fits scfile=/scratch/kocevski/649451/ft2_4FGL_J2304.3+0618_daily_bin560.fits outfile=/scratch/kocevski/649451/cmap_HighResolution_384480001_384739201_4FGL_J2304.3+0618_daily_bin560.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=346.078 yref=6.3071 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/649451/ft1_filtered_4FGL_J2304.3+0618_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/649451/ft2_4FGL_J2304.3+0618_daily_bin560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649451/Model_4FGL_J2304.3+0618_daily_bin560.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/649451/ft1_filtered_4FGL_J2304.3+0618_daily_bin560.fits.....................!
real 87.08
user 85.63
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/649451/ft1_filtered_4FGL_J2304.3+0618_daily_bin560.fits', '/scratch/kocevski/649451/ft2_4FGL_J2304.3+0618_daily_bin560.fits', expMap='/scratch/kocevski/649451/expmap_384480001_384739201_4FGL_J2304.3+0618_daily_bin560.fits', expCube='/scratch/kocevski/649451/ltcube_384480001_384739201_4FGL_J2304.3+0618_daily_bin560.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/649451/Model_4FGL_J2304.3+0618_daily_bin560.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.3+0618'

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  4.761e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.530e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/649451/ft1_filtered_4FGL_J2304.3+0618_daily_bin560.fits
Spacecraft file(s): /scratch/kocevski/649451/ft2_4FGL_J2304.3+0618_daily_bin560.fits
Exposure map: /scratch/kocevski/649451/expmap_384480001_384739201_4FGL_J2304.3+0618_daily_bin560.fits
Exposure cube: /scratch/kocevski/649451/ltcube_384480001_384739201_4FGL_J2304.3+0618_daily_bin560.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/649451/Model_4FGL_J2304.3+0618_daily_bin560.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) = 8323.37423619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.338       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45970       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.547       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6177       1.0000         .10000E-03   10000.    
     7 'norm      '    19.436       1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.183       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .91593E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .61918E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.412       1.0000         .10000E-03   10000.    
    12 'norm      '    7.0662       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1463       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7489       1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    184.08       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.389       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.896       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    29.943       1.0000         .10000E-03   10000.    
    22 'Prefactor '    52.129       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3201       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97651       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8323.340     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2936 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.341        24.116        .10363E-06   -.13161E-04
   2  Prefactor     .45974        .21018       -.15813E-07   -.74193E-03
   3  Prefactor     .10000E-03    2.6810        .12115E-08** at limit **
   4  Prefactor     .10000E-03    12.512       -.71183E-07** at limit **
   5  Prefactor     13.545        17.737        .61684E-05   -.89803E-05
   6  Prefactor     1.6176        .25095       -.45509E-07    .91503E-03
   7  norm          19.441        20.730       -.49776E-05   -.15675E-04
   8  Prefactor     40.183        32.054       -.84562E-07    .32579E-05
   9  Prefactor     .10000E-03    3.8581       -.32233E-07** at limit **
  10  Prefactor     .85387E-01    7.5608       -.40908E-06   -.13812E-03
  11  Prefactor     38.415        23.662       -.68659E-06    .26512E-06
  12  norm          7.0664        1.9468        .13497E-07   -.41456E-04
  13  Prefactor     5.1468        6.0923        .29251E-05    .12516E-04
  14  Prefactor     8.7105        44.243        .23838E-05   -.75778E-05
  15  norm          .10000E-03    3.0983       -.50712E-07** at limit **
  16  Prefactor     .10000E-03    2.0374       -.21376E-07** at limit **
  17  Prefactor     184.08        183.96       -.89503E-07    .43549E-07
  18  Prefactor     18.391        19.523        .13480E-05   -.19349E-04
  19  Prefactor     26.899        26.972       -.74249E-06   -.13489E-04
  20  norm          .10000E-03    6.5477       -.10933E-07** at limit **
  21  norm          29.944        27.827       -.95930E-06   -.10106E-05
  22  Prefactor     52.135        41.310        .43269E-05   -.11361E-05
  23  Prefactor     .10000E-03    21.087       -.93116E-07** at limit **
  24  Normalizat    1.3200        .24843        .37485E-06   -.13903E-04
  25  Prefactor     .97647        .13400       -.98398E-07    .35093E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3407
  Prefactor  = 0.45974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.545
  Prefactor  = 1.61761
  norm       = 19.4414
  Prefactor  = 40.1827
  Prefactor  = 0.0001
  Prefactor  = 0.0853871
  Prefactor  = 38.4151
  norm       = 7.06642
  Prefactor  = 5.14678
  Prefactor  = 8.71048
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 184.082
  Prefactor  = 18.3908
  Prefactor  = 26.8986
  norm       = 0.0001
  norm       = 29.9436
  Prefactor  = 52.1354
  Prefactor  = 0.0001
  Normalizat = 1.32005
  Prefactor  = 0.976471
 **********
 **   18 **HESSE 
 **********

 FCN=   8323.340     FROM HESSE     STATUS=OK           439 CALLS     3375 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.341        24.076        .99087E-04   -1.4899    
   2  Prefactor     .45974        .20753        .25633E-04   -1.5572    
   3  Prefactor     .10000E-03    2.6938        .14588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.545        17.725        .10883E-03   -1.4972    
   6  Prefactor     1.6176        .25105        .16900E-04   -1.5454    
   7  norm          19.441        20.909        .90849E-04   -1.4826    
   8  Prefactor     40.183        32.092        .63234E-04   -1.4439    
   9  Prefactor     .10000E-03    13.098        .34561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .85387E-01    9.4024        .78988E-01   -1.5650    
  11  Prefactor     38.415        23.676        .64670E-04   -1.4468    
  12  norm          7.0664        1.9493        .62770E-04   -1.5176    
  13  Prefactor     5.1468        6.0929        .17722E-03   -1.5254    
  14  Prefactor     8.7105        44.169        .13552E-03   -1.5118    
  15  norm          .10000E-03    3.1104        .15679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0433        .12716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     184.08        183.99        .29757E-04   -1.2986    
  18  Prefactor     18.391        19.538        .93399E-04   -1.4850    
  19  Prefactor     26.899        27.013        .77247E-04   -1.4670    
  20  norm          .10000E-03    6.5544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          29.944        27.820        .73219E-04   -1.4613    
  22  Prefactor     52.135        41.363        .55549E-04   -1.4263    
  23  Prefactor     .10000E-03    21.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3200        .29345        .35704E-03   -.82970    
  25  Prefactor     .97647        .15716        .23407E-03   -.93518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16148e-11
Minuit parameter uncertainties:
  1  24.0905
  2  0.207529
  3  9.85754e-08
  4  5.39347e-06
  5  17.7322
  6  0.251051
  7  20.9172
  8  32.1061
  9  0.000123625
  10  1.79127
  11  23.6817
  12  1.94933
  13  6.09368
  14  39.2753
  15  9.04236e-06
  16  2.57932e-06
  17  184.565
  18  19.5451
  19  27.0249
  20  8.72305e-07
  21  27.8322
  22  41.3857
  23  3.18212e-05
  24  0.293819
  25  0.157235
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  4.018e+01  3.211e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.530e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.765e-01  1.572e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.320e+00  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.05
Ra Dec: 346.078 6.307
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 5.08e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.14e-05

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): 0
logL (Free Index) = 8321.82930678
delta logL = 1.51056466891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8321.7972153
delta logL = 1.54265615592

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.245       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5742       1.0000          .0000       10.000    
     3 'Normalizat'    1.3567       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96275       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8321.797     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      215 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.236        44.820       -.54217E-05   -.17888E-03
   2  Index         1.5744        .48838       -.15948E-04    .66438E-04
   3  Normalizat    1.3567        .23063        .66082E-06    .13835E-03
   4  Prefactor     .96277        .13301        .48456E-07    .17894E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.236
  Index      = 1.57441
  Normalizat = 1.35665
  Prefactor  = 0.96277
 **********
 **   18 **HESSE 
 **********

 FCN=   8321.797     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.236        43.868        .57145E-04   -1.4303    
   2  Index         1.5744        .47648        .83555E-02   -.75476    
   3  Normalizat    1.3567        .26960        .35278E-03   -.81891    
   4  Prefactor     .96277        .15573        .23538E-03   -.93981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26239e-10
Minuit parameter uncertainties:
  1  43.8964
  2  0.477849
  3  0.269882
  4  0.1558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649451': 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): 0
logL (Free Index) = 8321.79721498
delta logL = 1.54265647598

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  4.924e+01  4.390e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  1.574e+00  4.778e-01  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.628e-01  1.558e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.357e+00  2.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.13
Ra Dec: 346.078 6.307
Photon Index (Free Index): 1.57 +/- 0.48
Photon Flux (Free Index): 2.23e-08 +/- 2.30e-08
Energy Flux (Free Index): 5.48e-05 +/- 6.34e-05

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/649451/cmap_HighResolution_384480001_384739201_4FGL_J2304.3+0618_daily_bin560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.08e-08', energy_flux2='5.48e-05', photon_flux_error='4.06e-08', dlogl='1.54e+00', energy_flux='1.43e-05', photon_flux2='2.23e-08', job_status='DONE', time_completed='2021-09-29 06:13:38.679640', photon_index_error2='0.48', photon_index2='1.57', ts='4.05', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='6.34e-05', EG='1.32', time_epoch_completed='1632921218.68', return_code='0', job_id='649451', GAL2='0.96', EG2='1.36', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='2.30e-08', ts2='7.13', photon_index='2.53' WHERE bin_id='560' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:13:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 649451: <4FGL_J2304.3+0618_daily_bin560> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin560> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 06:00:55 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:00:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 06:00:56 2021
Terminated at Wed Sep 29 06:13:39 2021
Results reported at Wed Sep 29 06:13:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin560 346.078 6.3071 384480001 384739201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2304.3+0618 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   743.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

