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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin414
RA = 346.078, Dec = 6.3071
tmin = 346636801, tmax = 346896001
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='649224', job_status='RUN', time_executed='2021-09-29 06:03:41.922600', time_epoch_executed='1632920621.92' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649224

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649224/ft1_4FGL_J2304.3+0618_daily_bin414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649224/ft2_4FGL_J2304.3+0618_daily_bin414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649224/ft1_4FGL_J2304.3+0618_daily_bin414.fits outfile=/scratch/kocevski/649224/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin414.fits ra=346.078 dec=6.3071 rad=12.0 tmin=346636801.0 tmax=346896001.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.55
user 3.18
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649224/ft1_filtered_4FGL_J2304.3+0618_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/649224/ft2_4FGL_J2304.3+0618_daily_bin414.fits sctable="SC_DATA" expcube=/scratch/kocevski/649224/ltcube_346636801_346896001_4FGL_J2304.3+0618_daily_bin414.fits outfile=/scratch/kocevski/649224/expmap_346636801_346896001_4FGL_J2304.3+0618_daily_bin414.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/649224/ltcube_346636801_346896001_4FGL_J2304.3+0618_daily_bin414.fits
.....................!
real 191.00
user 185.43
sys 5.17

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/649224/ft1_filtered_4FGL_J2304.3+0618_daily_bin414.fits scfile=/scratch/kocevski/649224/ft2_4FGL_J2304.3+0618_daily_bin414.fits outfile=/scratch/kocevski/649224/cmap_346636801_346896001_4FGL_J2304.3+0618_daily_bin414.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649224/ft1_filtered_4FGL_J2304.3+0618_daily_bin414.fits scfile=/scratch/kocevski/649224/ft2_4FGL_J2304.3+0618_daily_bin414.fits outfile=/scratch/kocevski/649224/cmap_HighResolution_346636801_346896001_4FGL_J2304.3+0618_daily_bin414.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/649224/ft1_filtered_4FGL_J2304.3+0618_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/649224/ft2_4FGL_J2304.3+0618_daily_bin414.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649224/Model_4FGL_J2304.3+0618_daily_bin414.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/649224/ft1_filtered_4FGL_J2304.3+0618_daily_bin414.fits.....................!
real 80.24
user 78.79
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10218       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.690       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50647       1.0000         .10000E-03   10000.    
     7 'norm      '    14.617       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3276       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9007       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5632       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.7988       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10401E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0878       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.991       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    20.565       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.4531       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0441       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99534       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=   7765.587     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2906 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.679        .40648E-06** at limit **
   2  Prefactor     .10220        .15309        .88301E-09   -.54087E-03
   3  Prefactor     .10000E-03    5.9248       -.13569E-07** at limit **
   4  Prefactor     24.690        31.578        .13624E-06   -.29132E-06
   5  Prefactor     .10000E-03    5.4835       -.39498E-08** at limit **
   6  Prefactor     .50642        .18468       -.32489E-08   -.77857E-04
   7  norm          14.616        12.531       -.26837E-06   -.60980E-05
   8  Prefactor     9.3234        29.599       -.19247E-05   -.39715E-05
   9  Prefactor     7.9007        6.0464        .23527E-07   -.25051E-05
  10  Prefactor     3.5631        8.0261       -.15509E-06   -.22380E-04
  11  Prefactor     .10000E-03    4.0489        .89223E-08** at limit **
  12  norm          4.7988        1.2649       -.94577E-10    .21447E-04
  13  Prefactor     .10000E-03    3.8266       -.82794E-08** at limit **
  14  Prefactor     .10000E-03    16.826       -.34661E-05** at limit **
  15  norm          .10000E-03    5.6334       -.53843E-07** at limit **
  16  Prefactor     6.0865        4.3358        .60343E-07   -.68025E-03
  17  Prefactor     .10000E-03    127.32       -.44340E-06** at limit **
  18  Prefactor     14.991        14.679       -.84997E-07    .23341E-05
  19  Prefactor     .10000E-03    21.562       -.93254E-06** at limit **
  20  norm          .10000E-03    17.791        .37457E-05** at limit **
  21  norm          20.566        25.501        .14326E-06    .19309E-05
  22  Prefactor     .10000E-03    53.101        .21487E-06** at limit **
  23  Prefactor     4.4479        25.142        .40817E-06   -.99526E-04
  24  Normalizat    1.0442        .20254        .29258E-06   -.18490E-04
  25  Prefactor     .99523        .11680       -.67487E-07    .34684E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.102204
  Prefactor  = 0.0001
  Prefactor  = 24.6903
  Prefactor  = 0.0001
  Prefactor  = 0.506423
  norm       = 14.6156
  Prefactor  = 9.32339
  Prefactor  = 7.90071
  Prefactor  = 3.56308
  Prefactor  = 0.0001
  norm       = 4.79877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.08648
  Prefactor  = 0.0001
  Prefactor  = 14.9906
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.5665
  Prefactor  = 0.0001
  Prefactor  = 4.44793
  Normalizat = 1.04423
  Prefactor  = 0.995227
 **********
 **   18 **HESSE 
 **********

 FCN=   7765.587     FROM HESSE     STATUS=OK           431 CALLS     3337 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10220        .14015        .40307E-03   -1.5644    
   3  Prefactor     .10000E-03    6.0070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.690        31.688        .80617E-04   -1.4714    
   5  Prefactor     .10000E-03    5.4848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .50642        .18406        .21038E-04   -1.5566    
   7  norm          14.616        12.607        .10476E-03   -1.4943    
   8  Prefactor     9.3234        29.745        .13122E-03   -1.5097    
   9  Prefactor     7.9007        6.0442        .14265E-03   -1.5146    
  10  Prefactor     3.5631        8.0097        .21411E-03   -1.5330    
  11  Prefactor     .10000E-03    4.0508        .17318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.7988        1.2665        .48765E-04   -1.5270    
  13  Prefactor     .10000E-03    3.8382        .16833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.6888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0865        7.4583        .81361E-03   -1.5215    
  17  Prefactor     .10000E-03    127.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.991        14.764        .10345E-03   -1.4933    
  19  Prefactor     .10000E-03    21.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    17.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          20.566        25.586        .88322E-04   -1.4801    
  22  Prefactor     .10000E-03    53.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.4479        31.924        .95409E-03   -1.5286    
  24  Normalizat    1.0442        .24382        .32249E-03   -.91563    
  25  Prefactor     .99523        .13800        .19760E-03   -.92889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93314e-09
Minuit parameter uncertainties:
  1  4.36255e-07
  2  0.140154
  3  5.38708e-07
  4  31.71
  5  1.81064e-07
  6  0.184057
  7  12.6095
  8  29.7928
  9  6.04462
  10  8.01209
  11  5.5369e-07
  12  1.26656
  13  2.6558e-07
  14  2.35165e-05
  15  1.53492e-07
  16  7.45948
  17  7.9295e-06
  18  14.7675
  19  7.89001e-06
  20  9.85873e-06
  21  25.6001
  22  1.0928e-05
  23  23.8501
  24  0.244086
  25  0.138052
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  9.323e+00  2.979e+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.952e-01  1.381e-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.044e+00  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 346.078 6.307
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649224/likelihoodResults_346636801_346896001_4FGL_J2304.3+0618_daily_bin414.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): 0
logL (Free Index) = 7764.86701856
delta logL = 0.719947901497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7764.80656195
delta logL = 0.780404508051

Fit tolerance = 1e-08

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

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

 FCN=   7764.807     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      268 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1279        36.570        .70586E-02    .71254E-03
   2  Index         4.5491        3.4364        .12650        .17630E-03
   3  Normalizat    .95921        .60674E-01    .75709E-01    .20689E-04
   4  Prefactor     1.0263        .35843E-01    .41560E-01   -.20159E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.12788
  Index      = 4.54914
  Normalizat = 0.959209
  Prefactor  = 1.02626
 **********
 **   18 **HESSE 
 **********

 FCN=   7764.807     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1279        73.314        .10350E-03   -1.5416    
   2  Index         4.5491        7.2402        .65065E-02   -.90295E-01
   3  Normalizat    .95921        .20694        .33504E-03   -.94410    
   4  Prefactor     1.0263        .12255        .19490E-03   -.91859    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.05417e-07
Minuit parameter uncertainties:
  1  25.013
  2  6.5452
  3  0.207112
  4  0.122584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649224': 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) = 7764.80655807
delta logL = 0.780408386151

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  2.128e+00  2.501e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  4.549e+00  6.545e+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.026e+00  1.226e-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.592e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 346.078 6.307
Photon Index (Free Index): 4.55 +/- 6.55
Photon Flux (Free Index): 7.77e-08 +/- 6.54e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.16e-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/649224/cmap_HighResolution_346636801_346896001_4FGL_J2304.3+0618_daily_bin414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.13e-03', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='7.80e-01', photon_flux2='7.77e-08', job_status='DONE', time_completed='2021-09-29 06:16:55.550650', photon_index_error2='6.55', photon_index2='4.55', ts='0.12', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.16e-05', EG='1.04', time_epoch_completed='1632921415.55', return_code='0', job_id='649224', GAL2='1.03', EG2='0.96', return_code2='102', photon_flux_error2='6.54e-08', ts2='1.82', photon_index='2.53' WHERE bin_id='414' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:16:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 649224: <4FGL_J2304.3+0618_daily_bin414> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin414 346.078 6.3071 346636801 346896001 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 :                                   791.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             323.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            980 sec.

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

