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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin378
RA = 346.078, Dec = 6.3071
tmin = 337305601, tmax = 337564801
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='649167', job_status='RUN', time_executed='2021-09-29 06:03:33.034462', time_epoch_executed='1632920613.03' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='378'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649167

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649167/ft1_4FGL_J2304.3+0618_daily_bin378.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649167/ft2_4FGL_J2304.3+0618_daily_bin378.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649167/ft1_4FGL_J2304.3+0618_daily_bin378.fits outfile=/scratch/kocevski/649167/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin378.fits ra=346.078 dec=6.3071 rad=12.0 tmin=337305601.0 tmax=337564801.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 7.47
user 7.16
sys 0.29

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649167/ft1_filtered_4FGL_J2304.3+0618_daily_bin378.fits" evtable="EVENTS" scfile=/scratch/kocevski/649167/ft2_4FGL_J2304.3+0618_daily_bin378.fits sctable="SC_DATA" outfile=/scratch/kocevski/649167/ltcube_337305601_337564801_4FGL_J2304.3+0618_daily_bin378.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/649167/ft2_4FGL_J2304.3+0618_daily_bin378.fits
.....................!
real 12.55
user 11.90
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649167/ft1_filtered_4FGL_J2304.3+0618_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/649167/ft2_4FGL_J2304.3+0618_daily_bin378.fits sctable="SC_DATA" expcube=/scratch/kocevski/649167/ltcube_337305601_337564801_4FGL_J2304.3+0618_daily_bin378.fits outfile=/scratch/kocevski/649167/expmap_337305601_337564801_4FGL_J2304.3+0618_daily_bin378.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/649167/ltcube_337305601_337564801_4FGL_J2304.3+0618_daily_bin378.fits
.....................!
real 190.51
user 184.94
sys 5.25

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/649167/ft1_filtered_4FGL_J2304.3+0618_daily_bin378.fits scfile=/scratch/kocevski/649167/ft2_4FGL_J2304.3+0618_daily_bin378.fits outfile=/scratch/kocevski/649167/cmap_337305601_337564801_4FGL_J2304.3+0618_daily_bin378.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649167/ft1_filtered_4FGL_J2304.3+0618_daily_bin378.fits scfile=/scratch/kocevski/649167/ft2_4FGL_J2304.3+0618_daily_bin378.fits outfile=/scratch/kocevski/649167/cmap_HighResolution_337305601_337564801_4FGL_J2304.3+0618_daily_bin378.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/649167/ft1_filtered_4FGL_J2304.3+0618_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/649167/ft2_4FGL_J2304.3+0618_daily_bin378.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649167/Model_4FGL_J2304.3+0618_daily_bin378.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/649167/ft1_filtered_4FGL_J2304.3+0618_daily_bin378.fits.....................!
real 61.57
user 60.34
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2960       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .73840       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.675       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    24.797       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3491       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9353       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.349       1.0000         .10000E-03   10000.    
    12 'norm      '    .91370       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    143.85       1.0000         .10000E-03   10000.    
    15 'norm      '    .19253E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.330       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .62857       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    30.527       1.0000         .10000E-03   10000.    
    22 'Prefactor '    76.440       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1113       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99509       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96098       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=   5454.698     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2962 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2973        22.272       -.78916E-07    .44539E-06
   2  Prefactor     .73837        .26791        .13340E-08    .83052E-04
   3  Prefactor     10.675        9.3828       -.37376E-07    .16564E-05
   4  Prefactor     .10000E-03    8.7382       -.16954E-07** at limit **
   5  Prefactor     .10000E-03    6.8049       -.23349E-07** at limit **
   6  Prefactor     .10000E-03    .32906E-01   -.14029E-07** at limit **
   7  norm          24.795        19.239        .21069E-06    .27952E-04
   8  Prefactor     8.3381        33.214        .14823E-06    .79947E-06
   9  Prefactor     5.9355        6.4070       -.24817E-07    .31476E-05
  10  Prefactor     .10000E-03    4.2857       -.28688E-07** at limit **
  11  Prefactor     19.333        28.815        .50974E-06    .10089E-04
  12  norm          .91421        .82848        .28172E-07    .26873E-03
  13  Prefactor     .10000E-03    10.712       -.37704E-07** at limit **
  14  Prefactor     143.94        92.874       -.45095E-05   -.70325E-04
  15  norm          .10134E-03    10.760        .10738E-05** at limit **
  16  Prefactor     19.308        12.225        .17020E-06   -.15405E-03
  17  Prefactor     .10000E-03    110.13        .22560E-06** at limit **
  18  Prefactor     .48855        20.850       -.22304E-05    .32601E-03
  19  Prefactor     .10000E-03    16.121        .13456E-07** at limit **
  20  norm          .10000E-03    8.9455       -.31002E-07** at limit **
  21  norm          30.673        30.168       -.14895E-06    .52723E-04
  22  Prefactor     76.430        51.854        .54974E-06    .25632E-04
  23  Prefactor     2.1107        47.516        .64172E-05    .10288E-03
  24  Normalizat    .99522        .25628       -.58418E-06   -.25070E-05
  25  Prefactor     .96093        .13895        .48372E-06    .34795E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.2973
  Prefactor  = 0.738369
  Prefactor  = 10.6751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.7955
  Prefactor  = 8.33806
  Prefactor  = 5.93552
  Prefactor  = 0.0001
  Prefactor  = 19.3334
  norm       = 0.914211
  Prefactor  = 0.0001
  Prefactor  = 143.94
  norm       = 0.000101336
  Prefactor  = 19.3083
  Prefactor  = 0.0001
  Prefactor  = 0.488553
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 30.6735
  Prefactor  = 76.4303
  Prefactor  = 2.11069
  Normalizat = 0.995219
  Prefactor  = 0.96093
 **********
 **   18 **HESSE 
 **********

 FCN=   5454.698     FROM HESSE     STATUS=OK           439 CALLS     3401 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2973        22.281        .15997E-03   -1.5206    
   2  Prefactor     .73837        .26811        .21064E-04   -1.5536    
   3  Prefactor     10.675        9.3912        .12263E-03   -1.5054    
   4  Prefactor     .10000E-03    8.7392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .34098E-01    .26131E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          24.795        19.379        .80444E-04   -1.4712    
   8  Prefactor     8.3381        33.257        .13874E-03   -1.5130    
   9  Prefactor     5.9355        6.4028        .16483E-03   -1.5221    
  10  Prefactor     .10000E-03    4.2894        .14932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.333        28.879        .91053E-04   -1.4828    
  12  norm          .91421        .83094        .61303E-04   -1.5517    
  13  Prefactor     .10000E-03    10.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     143.94        94.795        .16796E-03   -1.3303    
  15  norm          .10134E-03    18.212        .60218E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.308        12.392        .91098E-04   -1.4829    
  17  Prefactor     .10000E-03    110.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .48855        146.99        .46500E-02   -1.5568    
  19  Prefactor     .10000E-03    16.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.9690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          30.673        34.654        .72517E-04   -1.4600    
  22  Prefactor     76.430        51.954        .45928E-04   -1.3957    
  23  Prefactor     2.1107        48.149        .14196E-02   -1.5417    
  24  Normalizat    .99522        .30130        .32860E-03   -.93191    
  25  Prefactor     .96093        .16303        .19910E-03   -.94043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31284e-09
Minuit parameter uncertainties:
  1  22.3105
  2  0.268114
  3  9.39245
  4  1.72196e-06
  5  2.44e-06
  6  9.32698e-08
  7  19.3842
  8  33.3311
  9  6.40353
  10  2.94712e-06
  11  28.8994
  12  0.830949
  13  1.5828e-05
  14  94.8958
  15  0.00986688
  16  12.3938
  17  4.98714e-05
  18  16.9887
  19  8.23407e-06
  20  4.59906e-06
  21  34.6768
  22  51.9851
  23  20.1799
  24  0.301818
  25  0.163112
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  8.338e+00  3.333e+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.609e-01  1.631e-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.952e-01  3.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/649167/likelihoodResults_337305601_337564801_4FGL_J2304.3+0618_daily_bin378.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) = 5454.69227239
delta logL = 0.00587509496108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5454.69110217
delta logL = 0.0070453127064

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9898       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8624       1.0000          .0000       10.000    
     3 'Normalizat'    .99009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96276       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=   5454.691     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      324 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9916        40.032        .15174E-03    .57990E-04
   2  Index         2.8619        2.9046        .68172E-02    .71957E-04
   3  Normalizat    .99005        .27223        .32941E-03    .44659E-03
   4  Prefactor     .96276        .16044        .19893E-03    .36494E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.99158
  Index      = 2.86188
  Normalizat = 0.990047
  Prefactor  = 0.962765
 **********
 **   18 **HESSE 
 **********

 FCN=   5454.691     FROM HESSE     STATUS=OK            23 CALLS      347 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9916        35.870        .60696E-05   -1.5179    
   2  Index         2.8619        2.7701        .27269E-03   -.44186    
   3  Normalizat    .99005        .27219        .65881E-04   -.93365    
   4  Prefactor     .96276        .16041        .39787E-04   -.93981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13579e-09
Minuit parameter uncertainties:
  1  31.7026
  2  2.98169
  3  0.272577
  4  0.16049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649167': 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) = 5454.69110209
delta logL = 0.00704539901017

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  6.992e+00  3.170e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.862e+00  2.982e+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:  9.628e-01  1.605e-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.900e-01  2.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 346.078 6.307

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/649167/cmap_HighResolution_337305601_337564801_4FGL_J2304.3+0618_daily_bin378.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-09-29 06:14:51.826145', job_id='649167', GAL2='0.96', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1632921291.83', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='7.05e-03', ts2='0.09', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='378' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:14:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 649167: <4FGL_J2304.3+0618_daily_bin378> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin378 346.078 6.3071 337305601 337564801 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 :                                   676.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

