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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin659
RA = 346.078, Dec = 6.3071
tmin = 410140801, tmax = 410400001
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='650634', job_status='RUN', time_executed='2021-09-29 06:07:31.292704', time_epoch_executed='1632920851.29' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='659'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650634/ft1_4FGL_J2304.3+0618_daily_bin659.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650634/ft2_4FGL_J2304.3+0618_daily_bin659.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650634/ft1_4FGL_J2304.3+0618_daily_bin659.fits outfile=/scratch/kocevski/650634/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin659.fits ra=346.078 dec=6.3071 rad=12.0 tmin=410140801.0 tmax=410400001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.91
user 6.61
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/650634/ft2_4FGL_J2304.3+0618_daily_bin659.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/650634/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin659.fits evtable="EVENTS" outfile="/scratch/kocevski/650634/ft1_filtered_4FGL_J2304.3+0618_daily_bin659.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650634/ft1_filtered_4FGL_J2304.3+0618_daily_bin659.fits evtable="EVENTS" scfile=/scratch/kocevski/650634/ft2_4FGL_J2304.3+0618_daily_bin659.fits sctable="SC_DATA" expcube=/scratch/kocevski/650634/ltcube_410140801_410400001_4FGL_J2304.3+0618_daily_bin659.fits outfile=/scratch/kocevski/650634/expmap_410140801_410400001_4FGL_J2304.3+0618_daily_bin659.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/650634/ltcube_410140801_410400001_4FGL_J2304.3+0618_daily_bin659.fits
.....................!
real 188.55
user 183.22
sys 5.02

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/650634/ft1_filtered_4FGL_J2304.3+0618_daily_bin659.fits scfile=/scratch/kocevski/650634/ft2_4FGL_J2304.3+0618_daily_bin659.fits outfile=/scratch/kocevski/650634/cmap_410140801_410400001_4FGL_J2304.3+0618_daily_bin659.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650634/ft1_filtered_4FGL_J2304.3+0618_daily_bin659.fits scfile=/scratch/kocevski/650634/ft2_4FGL_J2304.3+0618_daily_bin659.fits outfile=/scratch/kocevski/650634/cmap_HighResolution_410140801_410400001_4FGL_J2304.3+0618_daily_bin659.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/650634/ft1_filtered_4FGL_J2304.3+0618_daily_bin659.fits', '/scratch/kocevski/650634/ft2_4FGL_J2304.3+0618_daily_bin659.fits', expMap='/scratch/kocevski/650634/expmap_410140801_410400001_4FGL_J2304.3+0618_daily_bin659.fits', expCube='/scratch/kocevski/650634/ltcube_410140801_410400001_4FGL_J2304.3+0618_daily_bin659.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/650634/Model_4FGL_J2304.3+0618_daily_bin659.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/650634/ft1_filtered_4FGL_J2304.3+0618_daily_bin659.fits
Spacecraft file(s): /scratch/kocevski/650634/ft2_4FGL_J2304.3+0618_daily_bin659.fits
Exposure map: /scratch/kocevski/650634/expmap_410140801_410400001_4FGL_J2304.3+0618_daily_bin659.fits
Exposure cube: /scratch/kocevski/650634/ltcube_410140801_410400001_4FGL_J2304.3+0618_daily_bin659.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/650634/Model_4FGL_J2304.3+0618_daily_bin659.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) = 3382.64487893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40491E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6530       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.924       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.246       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1755       1.0000         .10000E-03   10000.    
     7 'norm      '    13.313       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.218       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.338       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0310       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8151       1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.350       1.0000         .10000E-03   10000.    
    15 'norm      '    30.954       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5292       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20949E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    18.889       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.074       1.0000         .10000E-03   10000.    
    23 'Prefactor '    56.968       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .20450       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1948       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3382.563     FROM MIGRAD    STATUS=CONVERGED   1016 CALLS     3819 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    195.46        .38958E-02** at limit **
   2  Prefactor     1.6532        .52332        .22271E-04    .24758E-03
   3  Prefactor     .10000E-03    36.112        .18142E-02** at limit **
   4  Prefactor     27.889        65.203        .75814E-04    .25492E-05
   5  Prefactor     16.245        32.662        .99367E-04   -.40044E-06
   6  Prefactor     2.1755        .47284        .16921E-04   -.49301E-03
   7  norm          13.310        16.550        .10978E-03   -.67314E-05
   8  Prefactor     30.211        48.190        .72886E-04   -.90468E-05
   9  Prefactor     20.337        15.308        .88814E-04   -.21185E-04
  10  Prefactor     .10000E-03    34.122        .36285E-03** at limit **
  11  Prefactor     .10000E-03    12.516        .18142E-02** at limit **
  12  norm          2.0306        1.5896        .60734E-04   -.49604E-04
  13  Prefactor     4.8176        21.291        .18333E-03   -.29300E-04
  14  Prefactor     52.351        79.127        .55432E-04   -.47991E-05
  15  norm          30.944        26.204        .72016E-04   -.11698E-03
  16  Prefactor     3.5344        26.901        .21518E-03   -.95629E-05
  17  Prefactor     .10000E-03    106.12        .18142E-02** at limit **
  18  Prefactor     .10000E-03    4.6193        .12206E-02** at limit **
  19  Prefactor     .10000E-03    66.669        .10816    ** at limit **
  20  norm          18.884        28.968        .92156E-04   -.12645E-04
  21  norm          .10000E-03    8.2533        .16320E-02** at limit **
  22  Prefactor     11.069        66.395        .12039E-03   -.67989E-05
  23  Prefactor     56.963        43.673        .53150E-04   -.19550E-04
  24  Normalizat    .20477        .38669        .70162E-03   -.19412E-04
  25  Prefactor     1.1947        .22744        .19123E-03   -.71166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.65325
  Prefactor  = 0.0001
  Prefactor  = 27.889
  Prefactor  = 16.2446
  Prefactor  = 2.17555
  norm       = 13.31
  Prefactor  = 30.2106
  Prefactor  = 20.3374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.03058
  Prefactor  = 4.81762
  Prefactor  = 52.3507
  norm       = 30.9438
  Prefactor  = 3.53438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.8835
  norm       = 0.0001
  Prefactor  = 11.0687
  Prefactor  = 56.9628
  Normalizat = 0.204769
  Prefactor  = 1.19471
 **********
 **   18 **HESSE 
 **********

 FCN=   3382.563     FROM HESSE     STATUS=OK           411 CALLS     4230 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    196.86        .77917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6532        .52311        .89085E-06   -1.5451    
   3  Prefactor     .10000E-03    36.127        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.889        65.239        .30326E-05   -1.4651    
   5  Prefactor     16.245        32.667        .39747E-05   -1.4902    
   6  Prefactor     2.1755        .47285        .33843E-05   -1.5413    
   7  norm          13.310        16.547        .43912E-05   -1.4978    
   8  Prefactor     30.211        48.188        .29154E-05   -1.4608    
   9  Prefactor     20.337        15.307        .35525E-05   -1.4806    
  10  Prefactor     .10000E-03    34.124        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0306        1.5892        .24294E-05   -1.5423    
  13  Prefactor     4.8176        21.267        .73334E-05   -1.5269    
  14  Prefactor     52.351        79.124        .11086E-04   -1.4260    
  15  norm          30.944        26.157        .28806E-05   -1.4595    
  16  Prefactor     3.5344        26.797        .86072E-05   -1.5332    
  17  Prefactor     .10000E-03    106.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6193        .24411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    61.991        .11320       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.884        28.969        .36862E-05   -1.4839    
  21  norm          .10000E-03    8.2533        .32640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.069        66.396        .48157E-05   -1.5042    
  23  Prefactor     56.963        43.674        .10630E-04   -1.4197    
  24  Normalizat    .20477        .38563        .28065E-04   -1.2906    
  25  Prefactor     1.1947        .22694        .38247E-04   -.86494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64746e-11
Minuit parameter uncertainties:
  1  0.000412609
  2  0.523108
  3  0.00010126
  4  65.407
  5  32.7033
  6  0.472856
  7  16.5525
  8  48.25
  9  15.3103
  10  0.000115234
  11  5.94421e-08
  12  1.58924
  13  20.2561
  14  79.2838
  15  26.1669
  16  19.4756
  17  2.57681e-05
  18  1.05972e-07
  19  0.000235322
  20  28.9908
  21  6.44954e-08
  22  54.3089
  23  43.6984
  24  0.390823
  25  0.227126
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  3.021e+01  4.825e+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:  1.195e+00  2.271e-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:  2.048e-01  3.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 346.078 6.307
Photon Flux Upper Limit: 1.93e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/650634/likelihoodResults_410140801_410400001_4FGL_J2304.3+0618_daily_bin659.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) = 3381.60384286
delta logL = 0.959000226119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3381.57364757
delta logL = 0.98919551852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2232       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8424       1.0000          .0000       10.000    
     3 'Normalizat'    .75566E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2470       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3381.574     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      303 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2224        65.724        .64124E-04   -.24821E-02
   2  Index         4.8423        7.2873        .43041E-02   -.39144E-03
   3  Normalizat    .76001E-01    .48029        .99230E-02   -.45840E-04
   4  Prefactor     1.2468        .22511        .18747E-03   -.29597E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.2224
  Index      = 4.84225
  Normalizat = 0.0760014
  Prefactor  = 1.24677
 **********
 **   18 **HESSE 
 **********

 FCN=   3381.574     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2224        9.0506        .25650E-05   -1.5410    
   2  Index         4.8423        2.1670        .17216E-03   -.31555E-01
   3  Normalizat    .76001E-01    .47919        .39692E-03   -1.4081    
   4  Prefactor     1.2468        .22332        .37493E-04   -.84904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99419e-09
Minuit parameter uncertainties:
  1  8.97189
  2  2.24141
  3  0.359825
  4  0.223487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650634': 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) = 3381.57364677
delta logL = 0.989196314809

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  2.222e+00  8.972e+00  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  4.842e+00  2.241e+00  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:  1.247e+00  2.235e-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:  7.600e-02  3.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 346.078 6.307
Photon Index (Free Index): 4.84 +/- 2.24
Photon Flux (Free Index): 1.38e-07 +/- 1.10e-07
Energy Flux (Free Index): 1.86e-05 +/- 1.47e-05

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/650634/cmap_HighResolution_410140801_410400001_4FGL_J2304.3+0618_daily_bin659.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', energy_flux2='1.86e-05', dlogl='9.89e-01', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-09-29 06:16:59.086361', photon_index_error2='2.24', photon_index2='4.84', ts='0.55', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.93e-07', energy_flux_error2='1.47e-05', EG='0.20', time_epoch_completed='1632921419.09', return_code='0', job_id='650634', GAL2='1.25', EG2='0.08', return_code2='0', photon_flux_error2='1.10e-07', ts2='2.77', photon_index='2.53' WHERE bin_id='659' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:16:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 650634: <4FGL_J2304.3+0618_daily_bin659> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin659> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 06:05:20 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:05:21 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:05:21 2021
Terminated at Wed Sep 29 06:16:59 2021
Results reported at Wed Sep 29 06:16:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin659 346.078 6.3071 410140801 410400001 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 :                                   566.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            699 sec.

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

