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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin476
RA = 346.078, Dec = 6.3071
tmin = 362707201, tmax = 362966401
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='649318', job_status='RUN', time_executed='2021-09-29 06:04:40.675619', time_epoch_executed='1632920680.68' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='476'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649318

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649318/ft1_4FGL_J2304.3+0618_daily_bin476.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649318/ft2_4FGL_J2304.3+0618_daily_bin476.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649318/ft1_4FGL_J2304.3+0618_daily_bin476.fits outfile=/scratch/kocevski/649318/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin476.fits ra=346.078 dec=6.3071 rad=12.0 tmin=362707201.0 tmax=362966401.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 5.93
user 5.65
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649318/ft1_filtered_4FGL_J2304.3+0618_daily_bin476.fits" evtable="EVENTS" scfile=/scratch/kocevski/649318/ft2_4FGL_J2304.3+0618_daily_bin476.fits sctable="SC_DATA" outfile=/scratch/kocevski/649318/ltcube_362707201_362966401_4FGL_J2304.3+0618_daily_bin476.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/649318/ft2_4FGL_J2304.3+0618_daily_bin476.fits
.....................!
real 11.64
user 11.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649318/ft1_filtered_4FGL_J2304.3+0618_daily_bin476.fits evtable="EVENTS" scfile=/scratch/kocevski/649318/ft2_4FGL_J2304.3+0618_daily_bin476.fits sctable="SC_DATA" expcube=/scratch/kocevski/649318/ltcube_362707201_362966401_4FGL_J2304.3+0618_daily_bin476.fits outfile=/scratch/kocevski/649318/expmap_362707201_362966401_4FGL_J2304.3+0618_daily_bin476.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/649318/ltcube_362707201_362966401_4FGL_J2304.3+0618_daily_bin476.fits
.....................!
real 189.82
user 185.03
sys 4.38

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/649318/ft1_filtered_4FGL_J2304.3+0618_daily_bin476.fits scfile=/scratch/kocevski/649318/ft2_4FGL_J2304.3+0618_daily_bin476.fits outfile=/scratch/kocevski/649318/cmap_362707201_362966401_4FGL_J2304.3+0618_daily_bin476.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649318/ft1_filtered_4FGL_J2304.3+0618_daily_bin476.fits scfile=/scratch/kocevski/649318/ft2_4FGL_J2304.3+0618_daily_bin476.fits outfile=/scratch/kocevski/649318/cmap_HighResolution_362707201_362966401_4FGL_J2304.3+0618_daily_bin476.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .65244       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9031       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.275       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15297       1.0000         .10000E-03   10000.    
     7 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.376       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6482       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.629       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2299       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18024       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.532       1.0000         .10000E-03   10000.    
    15 'norm      '    11.797       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18092E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15373E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.215       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3082       1.0000         .10000E-03   10000.    
    21 'norm      '    10.293       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0191       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.283       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91999       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87094       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=   6126.965     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2952 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0032        .53420E-07** at limit **
   2  Prefactor     .65248        .21025        .10410E-06   -.80035E-03
   3  Prefactor     6.9021        6.7996       -.28813E-05    .34358E-03
   4  Prefactor     .10000E-03    35.955        .57584E-06** at limit **
   5  Prefactor     19.275        16.770        .29802E-05   -.11517E-03
   6  Prefactor     .15296        .11058        .13191E-07   -.11108E-02
   7  norm          .10000E-03    6.4322        .26486E-06** at limit **
   8  Prefactor     31.389        39.372        .35601E-05    .10550E-03
   9  Prefactor     .10000E-03    2.3225        .88366E-07** at limit **
  10  Prefactor     4.6446        9.8796        .33202E-05   -.13292E-05
  11  Prefactor     26.631        19.024        .15501E-05   -.59456E-05
  12  norm          2.2302        1.2355        .15938E-06   -.31893E-03
  13  Prefactor     .14297E-01    8.0676       -.80708E-05    .12434E-03
  14  Prefactor     11.528        28.619        .36677E-05   -.52884E-04
  15  norm          11.838        10.473       -.71296E-05    .47653E-03
  16  Prefactor     .10000E-03    8.2279        .24838E-06** at limit **
  17  Prefactor     .10000E-03    90.842       -.18932E-04** at limit **
  18  Prefactor     .10000E-03    18.325       -.51845E-06** at limit **
  19  Prefactor     16.235        32.153        .58713E-04    .22564E-03
  20  norm          3.3000        11.207        .50623E-05   -.19099E-03
  21  norm          10.304        22.517       -.16345E-05   -.86081E-05
  22  Prefactor     2.9724        98.550        .45756E-04   -.89562E-04
  23  Prefactor     26.290        26.601       -.15440E-04    .29221E-03
  24  Normalizat    .91978        .21836       -.91826E-05    .88289E-03
  25  Prefactor     .87115        .11990        .10279E-05    .50793E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.652482
  Prefactor  = 6.90207
  Prefactor  = 0.0001
  Prefactor  = 19.2754
  Prefactor  = 0.15296
  norm       = 0.0001
  Prefactor  = 31.3893
  Prefactor  = 0.0001
  Prefactor  = 4.64462
  Prefactor  = 26.6313
  norm       = 2.2302
  Prefactor  = 0.0142967
  Prefactor  = 11.5281
  norm       = 11.8383
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 16.2352
  norm       = 3.30005
  norm       = 10.3037
  Prefactor  = 2.97236
  Prefactor  = 26.29
  Normalizat = 0.919783
  Prefactor  = 0.871151
 **********
 **   18 **HESSE 
 **********

 FCN=   6126.965     FROM HESSE     STATUS=OK           433 CALLS     3385 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .65248        .20996        .19362E-04   -1.5546    
   3  Prefactor     6.9021        6.8012        .15270E-03   -1.5182    
   4  Prefactor     .10000E-03    36.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.275        16.735        .91229E-04   -1.4830    
   6  Prefactor     .15296        .10692        .20784E-03   -1.5630    
   7  norm          .10000E-03    6.4530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     31.389        39.561        .71532E-04   -1.4587    
   9  Prefactor     .10000E-03    2.3351        .11647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6446        9.8662        .18667E-03   -1.5277    
  11  Prefactor     26.631        19.043        .77632E-04   -1.4675    
  12  norm          2.2302        1.2355        .61766E-04   -1.5409    
  13  Prefactor     .14297E-01    16.451        .61345E-01   -1.5684    
  14  Prefactor     11.528        28.601        .11797E-03   -1.5029    
  15  norm          11.838        10.578        .58316E-03   -1.5020    
  16  Prefactor     .10000E-03    8.4152        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    90.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.235        33.262        .99463E-04   -1.4902    
  20  norm          3.3000        11.188        .22258E-03   -1.5345    
  21  norm          10.304        22.409        .12489E-03   -1.5066    
  22  Prefactor     2.9724        97.094        .23357E-03   -1.5363    
  23  Prefactor     26.290        26.604        .78140E-04   -1.4682    
  24  Normalizat    .91978        .25590        .30589E-03   -.95768    
  25  Prefactor     .87115        .14112        .18945E-03   -.97157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52826e-09
Minuit parameter uncertainties:
  1  9.08772e-06
  2  0.209959
  3  6.80201
  4  2.68979e-05
  5  16.7393
  6  0.106917
  7  3.06009e-05
  8  39.5937
  9  9.47492e-06
  10  9.86964
  11  19.0478
  12  1.23553
  13  0.966793
  14  28.6345
  15  10.5792
  16  0.000115151
  17  0.00131242
  18  2.05291e-05
  19  33.2997
  20  11.1949
  21  22.4271
  22  34.0361
  23  26.6162
  24  0.256236
  25  0.141183
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  3.139e+01  3.959e+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:  8.712e-01  1.412e-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.198e-01  2.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/649318/likelihoodResults_362707201_362966401_4FGL_J2304.3+0618_daily_bin476.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) = 6126.32963234
delta logL = 0.635845197668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6126.29937434
delta logL = 0.66610320124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1106       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8543       1.0000          .0000       10.000    
     3 'Normalizat'    .86745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89300       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6126.299     FROM MIGRAD    STATUS=FAILED        91 CALLS      298 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1034        223.17        .15043E-03   -.71794E-05
   2  Index         3.8551        6.9230        .53875E-02    .47923E-03
   3  Normalizat    .86738        .21992        .31394E-03    .40848E-04
   4  Prefactor     .89302        .13517        .18732E-03   -.77976E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6126.299     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      384 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1034        223.17        .36168E-03   -.71794E-05
   2  Index         3.8551        6.9230        .14662E-02    .47923E-03
   3  Normalizat    .86738        .21992        .14491E-03    .40848E-04
   4  Prefactor     .89302        .13517        .77602E-04   -.77976E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6126.299     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      413 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1033        24.482        .60174E-05   -.27584E-04
   2  Index         3.8551        1.8599        .10775E-02    .49484E-05
   3  Normalizat    .86738        .23663        .12558E-04    .19193E-04
   4  Prefactor     .89302        .14095        .37464E-04   -.39874E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.10333
  Index      = 3.85509
  Normalizat = 0.867381
  Prefactor  = 0.893019
 **********
 **   18 **HESSE 
 **********

 FCN=   6126.299     FROM HESSE     STATUS=OK            23 CALLS      436 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1033        20.871        .12035E-05   -1.5175    
   2  Index         3.8551        1.5958        .43100E-04   -.23103    
   3  Normalizat    .86738        .23669        .25115E-05   -.97616    
   4  Prefactor     .89302        .14084        .74928E-05   -.96385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3628e-11
Minuit parameter uncertainties:
  1  20.8924
  2  1.62583
  3  0.236969
  4  0.140893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649318': 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) = 6126.29937414
delta logL = 0.666103400742

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  7.103e+00  2.089e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  3.855e+00  1.626e+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:  8.930e-01  1.409e-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:  8.674e-01  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.22
Ra Dec: 346.078 6.307
Photon Index (Free Index): 3.86 +/- 1.63
Photon Flux (Free Index): 7.59e-08 +/- 6.22e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.03e-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/649318/cmap_HighResolution_362707201_362966401_4FGL_J2304.3+0618_daily_bin476.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='6.66e-01', photon_flux2='7.59e-08', job_status='DONE', time_completed='2021-09-29 06:16:34.919447', photon_index_error2='1.63', photon_index2='3.86', ts='0.79', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.03e-05', EG='0.92', time_epoch_completed='1632921394.92', return_code='0', job_id='649318', GAL2='0.89', EG2='0.87', return_code2='0', photon_flux_error2='6.22e-08', ts2='2.22', photon_index='2.53' WHERE bin_id='476' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:16:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 649318: <4FGL_J2304.3+0618_daily_bin476> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin476 346.078 6.3071 362707201 362966401 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

