/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 15 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2304.3+0618_daily_bin73
RA = 346.078, Dec = 6.3071
tmin = 258249601, tmax = 258508801
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='647527', job_status='RUN', time_executed='2021-09-29 05:55:54.858024', time_epoch_executed='1632920154.86' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647527

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647527/ft1_4FGL_J2304.3+0618_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647527/ft2_4FGL_J2304.3+0618_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647527/ft1_4FGL_J2304.3+0618_daily_bin73.fits outfile=/scratch/kocevski/647527/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin73.fits ra=346.078 dec=6.3071 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.15
user 0.97
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647527/ft1_filtered_4FGL_J2304.3+0618_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/647527/ft2_4FGL_J2304.3+0618_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/647527/ltcube_258249601_258508801_4FGL_J2304.3+0618_daily_bin73.fits outfile=/scratch/kocevski/647527/expmap_258249601_258508801_4FGL_J2304.3+0618_daily_bin73.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/647527/ltcube_258249601_258508801_4FGL_J2304.3+0618_daily_bin73.fits
.....................!
real 189.97
user 185.06
sys 4.59

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/647527/ft1_filtered_4FGL_J2304.3+0618_daily_bin73.fits scfile=/scratch/kocevski/647527/ft2_4FGL_J2304.3+0618_daily_bin73.fits outfile=/scratch/kocevski/647527/cmap_258249601_258508801_4FGL_J2304.3+0618_daily_bin73.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647527/ft1_filtered_4FGL_J2304.3+0618_daily_bin73.fits scfile=/scratch/kocevski/647527/ft2_4FGL_J2304.3+0618_daily_bin73.fits outfile=/scratch/kocevski/647527/cmap_HighResolution_258249601_258508801_4FGL_J2304.3+0618_daily_bin73.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.52
user 0.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7375       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.881       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22129       1.0000         .10000E-03   10000.    
     7 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.801       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8649       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6061       1.0000         .10000E-03   10000.    
    12 'norm      '    6.7395       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1827       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .73904E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .66496E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9925       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.186       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84326       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2032       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8358.494     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3004 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3611         .0000    ** at limit **
   2  Prefactor     .10000E-03    .71755E-01     .0000    ** at limit **
   3  Prefactor     7.7374        6.7733         .0000        .22816E-03
   4  Prefactor     .10000E-03    47.347         .0000    ** at limit **
   5  Prefactor     14.883        18.634         .0000       -.43930E-04
   6  Prefactor     .22131        .13271         .0000        .26827E-02
   7  norm          .10000E-03    10.614         .0000    ** at limit **
   8  Prefactor     17.804        31.112         .0000        .17277E-03
   9  Prefactor     6.8649        8.6218         .0000        .42050E-02
  10  Prefactor     .10000E-03    26.468         .0000    ** at limit **
  11  Prefactor     7.6045        12.880         .0000        .26152E-03
  12  norm          6.7392        1.6040         .0000        .92694E-03
  13  Prefactor     8.1981        12.470         .0000        .10548E-02
  14  Prefactor     .10000E-03    396.56         .0000    ** at limit **
  15  norm          .10001E-03    6.7460         .0000    ** at limit **
  16  Prefactor     2.0065        7.6350         .0000        .14631E-01
  17  Prefactor     .10000E-03    125.18         .0000    ** at limit **
  18  Prefactor     .10000E-03    3.9238         .0000    ** at limit **
  19  Prefactor     34.198        30.530         .0000        .92191E-03
  20  norm          .10000E-03    3.9817         .0000    ** at limit **
  21  norm          .10000E-03    13.580         .0000    ** at limit **
  22  Prefactor     .10000E-03    62.154         .0000    ** at limit **
  23  Prefactor     .10000E-03    17.629         .0000    ** at limit **
  24  Normalizat    .84321        .20767         .0000        .21734E-03
  25  Prefactor     1.2031        .12380         .0000        .33540E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.73743
  Prefactor  = 0.000100003
  Prefactor  = 14.8829
  Prefactor  = 0.221313
  norm       = 0.0001
  Prefactor  = 17.8039
  Prefactor  = 6.86491
  Prefactor  = 0.0001
  Prefactor  = 7.60454
  norm       = 6.73922
  Prefactor  = 8.19813
  Prefactor  = 0.000100002
  norm       = 0.000100013
  Prefactor  = 2.00646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.1981
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 0.843207
  Prefactor  = 1.20313
 **********
 **   18 **HESSE 
 **********

 FCN=   8358.494     FROM HESSE     STATUS=OK           433 CALLS     3437 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .15716        .46900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.7374        6.7290        .14416E-03   -1.5152    
   4  Prefactor     .10000E-03    48.869        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.883        18.580        .10383E-03   -1.4936    
   6  Prefactor     .22131        .12830        .23854E-03   -1.5614    
   7  norm          .10000E-03    10.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.804        31.137        .94930E-04   -1.4864    
   9  Prefactor     6.8649        8.5973        .76564E-03   -1.5184    
  10  Prefactor     .10000E-03    27.257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.6045        12.872        .14541E-03   -1.5156    
  12  norm          6.7392        1.6040        .54032E-04   -1.5189    
  13  Prefactor     8.1981        12.406        .14015E-03   -1.5135    
  14  Prefactor     .10000E-03    414.99        .37222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    8.0826        .63266E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0065        7.5292        .14675E-02   -1.5425    
  17  Prefactor     .10000E-03    125.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.9329        .17684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.198        30.417        .68538E-04   -1.4538    
  20  norm          .10000E-03    3.9832        .17817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    13.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    62.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84321        .23343        .35977E-03   -.98485    
  25  Prefactor     1.2031        .14074        .19098E-03   -.86235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06594e-09
Minuit parameter uncertainties:
  1  2.20346e-06
  2  1.79651e-06
  3  6.72969
  4  0.000712293
  5  18.5869
  6  0.128301
  7  3.15819e-05
  8  31.1659
  9  8.59888
  10  5.15901e-05
  11  12.8764
  12  1.60399
  13  12.4095
  14  0.00192233
  15  0.000643416
  16  7.53278
  17  0.000457795
  18  3.04495e-05
  19  30.4308
  20  1.08313e-05
  21  5.96924e-05
  22  0.000941021
  23  0.000146316
  24  0.233707
  25  0.140783
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.780e+01  3.117e+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.203e+00  1.408e-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.432e-01  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/647527/likelihoodResults_258249601_258508801_4FGL_J2304.3+0618_daily_bin73.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) = 8358.37108589
delta logL = 0.122607418461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8358.36354591
delta logL = 0.130147401642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6795       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2571       1.0000          .0000       10.000    
     3 'Normalizat'    .82218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2112       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=   8358.364     FROM MIGRAD    STATUS=FAILED        94 CALLS      315 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6617        91.363        .12880E-03   -.44132E-04
   2  Index         3.2586        3.4481        .94758E-02    .37220E-03
   3  Normalizat    .82150        .23457        .36414E-03    .23572E-03
   4  Prefactor     1.2117        .14399        .19040E-03   -.51005E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8358.364     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      398 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6617        91.363        .27480E-03   -1.5086    
   2  Index         3.2586        3.4481        .84626E-03   -.35574    
   3  Normalizat    .82150        .23457        .25154E-03   -.99276    
   4  Prefactor     1.2117        .14399        .87551E-04   -.85973    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8358.364     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      427 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6612        28.999        .51521E-05   -.12533E-03
   2  Index         3.2586        1.8360        .18952E-02    .19364E-04
   3  Normalizat    .82149        .22901        .14566E-04    .60256E-04
   4  Prefactor     1.2117        .14029        .38079E-04   -.16707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.66123
  Index      = 3.25864
  Normalizat = 0.821491
  Prefactor  = 1.21167
 **********
 **   18 **HESSE 
 **********

 FCN=   8358.364     FROM HESSE     STATUS=OK            23 CALLS      450 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6612        26.877        .10304E-05   -1.5086    
   2  Index         3.2586        1.7076        .75806E-04   -.35573    
   3  Normalizat    .82149        .22857        .29131E-05   -.99276    
   4  Prefactor     1.2117        .14002        .76158E-05   -.85973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95311e-10
Minuit parameter uncertainties:
  1  26.9103
  2  1.74779
  3  0.228836
  4  0.140061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647527': 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) = 8358.36354058
delta logL = 0.130152724225

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  9.661e+00  2.691e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  3.259e+00  1.748e+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.212e+00  1.401e-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.215e-01  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
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/647527/cmap_HighResolution_258249601_258508801_4FGL_J2304.3+0618_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.60e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-29 06:09:41.481351', job_id='647527', GAL2='1.21', fit_tolerance='1e-08', EG2='0.82', EG='0.84', time_epoch_completed='1632920981.48', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.30e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='73' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:09:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 647527: <4FGL_J2304.3+0618_daily_bin73> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin73 346.078 6.3071 258249601 258508801 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 :                                   825.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

