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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin600
RA = 346.078, Dec = 6.3071
tmin = 394848001, tmax = 395107201
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='650548', job_status='RUN', time_executed='2021-09-29 06:09:11.291351', time_epoch_executed='1632920951.29' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650548

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650548/ft1_4FGL_J2304.3+0618_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650548/ft2_4FGL_J2304.3+0618_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650548/ft1_4FGL_J2304.3+0618_daily_bin600.fits outfile=/scratch/kocevski/650548/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin600.fits ra=346.078 dec=6.3071 rad=12.0 tmin=394848001.0 tmax=395107201.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.31
user 5.08
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/650548/ft2_4FGL_J2304.3+0618_daily_bin600.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/650548/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin600.fits evtable="EVENTS" outfile="/scratch/kocevski/650548/ft1_filtered_4FGL_J2304.3+0618_daily_bin600.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.52
user 0.33
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650548/ft1_filtered_4FGL_J2304.3+0618_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/650548/ft2_4FGL_J2304.3+0618_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/650548/ltcube_394848001_395107201_4FGL_J2304.3+0618_daily_bin600.fits outfile=/scratch/kocevski/650548/expmap_394848001_395107201_4FGL_J2304.3+0618_daily_bin600.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/650548/ltcube_394848001_395107201_4FGL_J2304.3+0618_daily_bin600.fits
.....................!
real 191.03
user 185.34
sys 5.24

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/650548/ft1_filtered_4FGL_J2304.3+0618_daily_bin600.fits scfile=/scratch/kocevski/650548/ft2_4FGL_J2304.3+0618_daily_bin600.fits outfile=/scratch/kocevski/650548/cmap_394848001_395107201_4FGL_J2304.3+0618_daily_bin600.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=346.078 yref=6.3071 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650548/ft1_filtered_4FGL_J2304.3+0618_daily_bin600.fits scfile=/scratch/kocevski/650548/ft2_4FGL_J2304.3+0618_daily_bin600.fits outfile=/scratch/kocevski/650548/cmap_HighResolution_394848001_395107201_4FGL_J2304.3+0618_daily_bin600.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.9516       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9339       1.0000         .10000E-03   10000.    
     7 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    61.099       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23530E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.739       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1362       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.548       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.890       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0978       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90752       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86564       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=   6389.540     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2848 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2445        .12074E-05** at limit **
   2  Prefactor     1.9516        .31504        .18741E-08   -.56732E-04
   3  Prefactor     .10000E-03    2.8957        .52733E-07** at limit **
   4  Prefactor     .10000E-03    11.877       -.76997E-06** at limit **
   5  Prefactor     .10000E-03    6.6383        .16227E-05** at limit **
   6  Prefactor     1.9338        .26189        .15592E-07    .26210E-02
   7  norm          .10000E-03    14.314        .10238E-04** at limit **
   8  Prefactor     61.110        42.422        .85280E-05    .28689E-05
   9  Prefactor     .10006E-03    5.3948       -.18711E-05** at limit **
  10  Prefactor     21.736        16.373        .19401E-06    .11985E-03
  11  Prefactor     .10000E-03    6.2559       -.53803E-06** at limit **
  12  norm          1.1362        .92397       -.71624E-08   -.35421E-03
  13  Prefactor     20.550        11.806        .14908E-06    .14508E-04
  14  Prefactor     .10000E-03    16.648       -.15403E-05** at limit **
  15  norm          12.891        9.7588       -.71901E-06   -.11686E-02
  16  Prefactor     3.0985        7.7177       -.16269E-07   -.34057E-03
  17  Prefactor     .10000E-03    74.165       -.27455E-05** at limit **
  18  Prefactor     .10000E-03    10.920       -.52130E-05** at limit **
  19  Prefactor     .10000E-03    6.9107       -.16856E-05** at limit **
  20  norm          .10000E-03    6.8147       -.11135E-05** at limit **
  21  norm          .10000E-03    9.2107        .15913E-05** at limit **
  22  Prefactor     .10000E-03    35.059        .31525E-05** at limit **
  23  Prefactor     .10000E-03    6.6706        .10270E-05** at limit **
  24  Normalizat    .90728        .22201       -.16158E-05    .10268E-03
  25  Prefactor     .86572        .12901        .10828E-06    .12348E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.9516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.93382
  norm       = 0.0001
  Prefactor  = 61.1096
  Prefactor  = 0.000100057
  Prefactor  = 21.7358
  Prefactor  = 0.0001
  norm       = 1.13617
  Prefactor  = 20.5501
  Prefactor  = 0.0001
  norm       = 12.8911
  Prefactor  = 3.09847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.907276
  Prefactor  = 0.865721
 **********
 **   18 **HESSE 
 **********

 FCN=   6389.540     FROM HESSE     STATUS=OK           417 CALLS     3265 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9516        .31526        .17344E-04   -1.5429    
   3  Prefactor     .10000E-03    2.8997        .13284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9338        .26093        .14387E-04   -1.5430    
   7  norm          .10000E-03    14.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     61.110        42.223        .51332E-04   -1.4143    
   9  Prefactor     .10006E-03    17.081        .34978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.736        16.331        .85906E-04   -1.4775    
  11  Prefactor     .10000E-03    6.2632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1362        .90225        .66993E-04   -1.5495    
  13  Prefactor     20.550        11.820        .88359E-04   -1.4801    
  14  Prefactor     .10000E-03    16.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.891        9.8493        .55784E-03   -1.4990    
  16  Prefactor     3.0985        7.6303        .23041E-03   -1.5356    
  17  Prefactor     .10000E-03    74.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.104        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.8342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.2228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.6748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90728        .25661        .34237E-03   -.96205    
  25  Prefactor     .86572        .14950        .21052E-03   -.97349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29224e-09
Minuit parameter uncertainties:
  1  2.46138e-06
  2  0.31526
  3  3.77262e-07
  4  1.05085e-06
  5  1.07092e-06
  6  0.260931
  7  3.23775e-05
  8  42.2434
  9  0.0019761
  10  16.3343
  11  7.06269e-06
  12  0.902257
  13  11.821
  14  2.62388e-06
  15  9.85052
  16  7.63269
  17  1.13707e-05
  18  5.73884e-05
  19  3.92038e-06
  20  4.90758e-06
  21  9.50282e-06
  22  2.77485e-05
  23  2.31491e-06
  24  0.256957
  25  0.149566
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  6.111e+01  4.224e+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.657e-01  1.496e-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.073e-01  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.24
Ra Dec: 346.078 6.307
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 7.73e-08 +/- 5.34e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 1.50e-05

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) = 6389.39963162
delta logL = 0.140046428289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6389.39358131
delta logL = 0.146096739483

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.899       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1798       1.0000          .0000       10.000    
     3 'Normalizat'    .92965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85633       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=   6389.394     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      301 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.913        56.814        .45499E-04    .83456E-05
   2  Index         2.1797        .60422        .87535E-02    .14431E-03
   3  Normalizat    .92966        .25058        .33863E-03    .36359E-04
   4  Prefactor     .85636        .14993        .21149E-03   -.38113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.9126
  Index      = 2.17974
  Normalizat = 0.929659
  Prefactor  = 0.856361
 **********
 **   18 **HESSE 
 **********

 FCN=   6389.394     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.913        56.156        .90998E-05   -1.3940    
   2  Index         2.1797        .59684        .17507E-02   -.59929    
   3  Normalizat    .92966        .25067        .13545E-04   -.95426    
   4  Prefactor     .85636        .15000        .84596E-05   -.97683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56298e-11
Minuit parameter uncertainties:
  1  56.1938
  2  0.598939
  3  0.250988
  4  0.150075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650548': 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) = 6389.39358118
delta logL = 0.146096867329

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  7.791e+01  5.619e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.180e+00  5.989e-01  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.564e-01  1.501e-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.297e-01  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.47
Ra Dec: 346.078 6.307
Photon Index (Free Index): 2.18 +/- 0.60
Photon Flux (Free Index): 6.16e-08 +/- 5.34e-08
Energy Flux (Free Index): 2.87e-05 +/- 2.66e-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/650548/cmap_HighResolution_394848001_395107201_4FGL_J2304.3+0618_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.73e-08', energy_flux2='2.87e-05', photon_flux_error='5.34e-08', dlogl='1.46e-01', energy_flux='2.17e-05', photon_flux2='6.16e-08', job_status='DONE', time_completed='2021-09-29 06:20:02.546778', photon_index_error2='0.60', photon_index2='2.18', ts='4.24', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.66e-05', EG='0.91', time_epoch_completed='1632921602.55', return_code='0', job_id='650548', GAL2='0.86', EG2='0.93', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='5.34e-08', ts2='4.47', photon_index='2.53' WHERE bin_id='600' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:20:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 650548: <4FGL_J2304.3+0618_daily_bin600> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin600> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 06:05:13 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:05:15 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:05:15 2021
Terminated at Wed Sep 29 06:20:03 2021
Results reported at Wed Sep 29 06:20:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin600 346.078 6.3071 394848001 395107201 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 :                                   649.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            890 sec.

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

