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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin547
RA = 346.078, Dec = 6.3071
tmin = 381110401, tmax = 381369601
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='649431', job_status='RUN', time_executed='2021-09-29 06:04:28.062559', time_epoch_executed='1632920668.06' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649431

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649431/ft1_4FGL_J2304.3+0618_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649431/ft2_4FGL_J2304.3+0618_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649431/ft1_4FGL_J2304.3+0618_daily_bin547.fits outfile=/scratch/kocevski/649431/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin547.fits ra=346.078 dec=6.3071 rad=12.0 tmin=381110401.0 tmax=381369601.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 4.68
user 4.42
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649431/ft1_filtered_4FGL_J2304.3+0618_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/649431/ft2_4FGL_J2304.3+0618_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/649431/ltcube_381110401_381369601_4FGL_J2304.3+0618_daily_bin547.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/649431/ft2_4FGL_J2304.3+0618_daily_bin547.fits
.....................!
real 11.80
user 11.48
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649431/ft1_filtered_4FGL_J2304.3+0618_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/649431/ft2_4FGL_J2304.3+0618_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/649431/ltcube_381110401_381369601_4FGL_J2304.3+0618_daily_bin547.fits outfile=/scratch/kocevski/649431/expmap_381110401_381369601_4FGL_J2304.3+0618_daily_bin547.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/649431/ltcube_381110401_381369601_4FGL_J2304.3+0618_daily_bin547.fits
.....................!
real 191.75
user 186.08
sys 5.32

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/649431/ft1_filtered_4FGL_J2304.3+0618_daily_bin547.fits scfile=/scratch/kocevski/649431/ft2_4FGL_J2304.3+0618_daily_bin547.fits outfile=/scratch/kocevski/649431/cmap_381110401_381369601_4FGL_J2304.3+0618_daily_bin547.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649431/ft1_filtered_4FGL_J2304.3+0618_daily_bin547.fits scfile=/scratch/kocevski/649431/ft2_4FGL_J2304.3+0618_daily_bin547.fits outfile=/scratch/kocevski/649431/cmap_HighResolution_381110401_381369601_4FGL_J2304.3+0618_daily_bin547.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/649431/ft1_filtered_4FGL_J2304.3+0618_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/649431/ft2_4FGL_J2304.3+0618_daily_bin547.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649431/Model_4FGL_J2304.3+0618_daily_bin547.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/649431/ft1_filtered_4FGL_J2304.3+0618_daily_bin547.fits.....................!
real 78.31
user 76.96
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6227       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4000       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9496       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0374       1.0000         .10000E-03   10000.    
     7 'norm      '    .11496E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.837       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9828       1.0000         .10000E-03   10000.    
    12 'norm      '    .57250       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.500       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12285E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18440E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.3206       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10340E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11732E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90319       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97572       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=   7126.707     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2484 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.647        .57114E-05** at limit **
   2  Prefactor     1.6227        .32028        .22428E-08   -.74338E-05
   3  Prefactor     9.4015        8.5389       -.14093E-06   -.20651E-04
   4  Prefactor     .10000E-03    14.390       -.33772E-05** at limit **
   5  Prefactor     5.8613        36.555       -.79459E-04    .82364E-05
   6  Prefactor     4.0373        .36338        .30593E-06   -.24096E-02
   7  norm          .10000E-03    11.521        .11808E-05** at limit **
   8  Prefactor     .10000E-03    10.036        .18106E-05** at limit **
   9  Prefactor     .10000E-03    3.4158        .17220E-07** at limit **
  10  Prefactor     24.825        15.295        .36195E-06    .77267E-04
  11  Prefactor     7.9681        15.642       -.30236E-05   -.86805E-03
  12  norm          .57191        .97057       -.20168E-06   -.13893E-02
  13  Prefactor     10.506        9.3985       -.36930E-06    .65854E-04
  14  Prefactor     .10000E-03    46.364       -.20378E-04** at limit **
  15  norm          .10000E-03    12.169       -.46994E-05** at limit **
  16  Prefactor     .10000E-03    4.3159       -.49374E-07** at limit **
  17  Prefactor     .10000E-03    72.086        .48094E-04** at limit **
  18  Prefactor     9.3079        10.926       -.91939E-06    .52501E-04
  19  Prefactor     .10000E-03    17.485        .73608E-05** at limit **
  20  norm          .10000E-03    4.2933       -.22463E-07** at limit **
  21  norm          .10000E-03    9.6417       -.50833E-05** at limit **
  22  Prefactor     .10000E-03    19.768       -.19479E-05** at limit **
  23  Prefactor     .10000E-03    8.4509        .60726E-06** at limit **
  24  Normalizat    .90354        .23109        .69897E-06    .21270E-03
  25  Prefactor     .97555        .13735        .17457E-05    .19934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.62269
  Prefactor  = 9.40151
  Prefactor  = 0.0001
  Prefactor  = 5.86126
  Prefactor  = 4.03735
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8251
  Prefactor  = 7.96814
  norm       = 0.571908
  Prefactor  = 10.5058
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.30794
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.90354
  Prefactor  = 0.975552
 **********
 **   18 **HESSE 
 **********

 FCN=   7126.707     FROM HESSE     STATUS=OK           421 CALLS     2905 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6227        .32047        .20084E-04   -1.5453    
   3  Prefactor     9.4015        8.5504        .13071E-03   -1.5095    
   4  Prefactor     .10000E-03    14.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.8613        36.582        .16463E-03   -1.5224    
   6  Prefactor     4.0373        .36371        .14115E-04   -1.5306    
   7  norm          .10000E-03    11.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4328        .15235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.825        15.303        .80379E-04   -1.4711    
  11  Prefactor     7.9681        15.758        .70955E-03   -1.5143    
  12  norm          .57191        .80219        .10354E-02   -1.5557    
  13  Prefactor     10.506        9.3863        .12365E-03   -1.5060    
  14  Prefactor     .10000E-03    46.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.527        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3635        .17115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    72.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.3079        10.898        .13127E-03   -1.5098    
  19  Prefactor     .10000E-03    17.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.2945        .17084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.6399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.4625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90354        .26868        .37756E-03   -.96336    
  25  Prefactor     .97555        .16063        .22243E-03   -.93549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9225e-09
Minuit parameter uncertainties:
  1  9.90007e-06
  2  0.320465
  3  8.55147
  4  2.8863e-05
  5  29.3122
  6  0.363712
  7  2.39924e-05
  8  3.16097e-06
  9  7.1309e-06
  10  15.3056
  11  15.7665
  12  0.802207
  13  9.3876
  14  5.27313e-06
  15  1.53501e-06
  16  4.24501e-06
  17  8.21614e-06
  18  10.9007
  19  4.66022e-05
  20  2.11097e-06
  21  1.30141e-05
  22  1.05847e-05
  23  7.27536e-06
  24  0.26908
  25  0.160705
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  3.161e-06  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.756e-01  1.607e-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:  9.035e-01  2.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 346.078 6.307
Photon Flux Upper Limit: 6.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649431/likelihoodResults_381110401_381369601_4FGL_J2304.3+0618_daily_bin547.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) = 7126.70761659
delta logL = -0.00047401167285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7126.70714302
delta logL = -4.423854989e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5099       1.0000          .0000       10.000    
     3 'Normalizat'    .90366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97549       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=   7126.707     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    72.894        .18142E-01** at limit **
   2  Index         1.8463        6.4898        .50000        .30873E-06
   3  Normalizat    .90354        .13272E-01    .37756E-03    .14595E-03
   4  Prefactor     .97555        .81551E-02    .22243E-03    .25302E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.84627
  Normalizat = 0.903538
  Prefactor  = 0.975553
 **********
 **   18 **HESSE 
 **********

 FCN=   7126.707     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    476.72        .31058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8463        7.3933        .50000       -.68251    
   3  Normalizat    .90354        .35254E-01    .15102E-04   -.96336    
   4  Prefactor     .97555        .21662E-01    .44486E-04   -.93549    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.80943e-09
Minuit parameter uncertainties:
  1  0.000923623
  2  1278.51
  3  0.0352547
  4  0.0216623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649431': 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) = 7126.70714112
delta logL = 1.46042111737e-06

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  9.236e-04  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  1.846e+00  1.279e+03  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.756e-01  2.166e-02  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:  9.035e-01  3.525e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 346.078 6.307

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/649431/cmap_HighResolution_381110401_381369601_4FGL_J2304.3+0618_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2021-09-29 06:16:59.253061', job_id='649431', GAL2='0.98', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632921419.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='547' 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@bullet0209>
Subject: Job 649431: <4FGL_J2304.3+0618_daily_bin547> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin547> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 06:00:53 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:00:55 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:55 2021
Terminated at Wed Sep 29 06:17:00 2021
Results reported at Wed Sep 29 06:17:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin547 346.078 6.3071 381110401 381369601 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 :                                   748.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            967 sec.

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

