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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin481
RA = 346.078, Dec = 6.3071
tmin = 364003201, tmax = 364262401
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='649327', job_status='RUN', time_executed='2021-09-29 06:04:21.316586', time_epoch_executed='1632920661.32' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649327

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649327/ft1_4FGL_J2304.3+0618_daily_bin481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649327/ft2_4FGL_J2304.3+0618_daily_bin481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649327/ft1_4FGL_J2304.3+0618_daily_bin481.fits outfile=/scratch/kocevski/649327/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin481.fits ra=346.078 dec=6.3071 rad=12.0 tmin=364003201.0 tmax=364262401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.23
user 3.01
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/649327/ft2_4FGL_J2304.3+0618_daily_bin481.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/649327/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin481.fits evtable="EVENTS" outfile="/scratch/kocevski/649327/ft1_filtered_4FGL_J2304.3+0618_daily_bin481.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.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649327/ft1_filtered_4FGL_J2304.3+0618_daily_bin481.fits evtable="EVENTS" scfile=/scratch/kocevski/649327/ft2_4FGL_J2304.3+0618_daily_bin481.fits sctable="SC_DATA" expcube=/scratch/kocevski/649327/ltcube_364003201_364262401_4FGL_J2304.3+0618_daily_bin481.fits outfile=/scratch/kocevski/649327/expmap_364003201_364262401_4FGL_J2304.3+0618_daily_bin481.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/649327/ltcube_364003201_364262401_4FGL_J2304.3+0618_daily_bin481.fits
.....................!
real 192.23
user 186.67
sys 5.18

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/649327/ft1_filtered_4FGL_J2304.3+0618_daily_bin481.fits scfile=/scratch/kocevski/649327/ft2_4FGL_J2304.3+0618_daily_bin481.fits outfile=/scratch/kocevski/649327/cmap_364003201_364262401_4FGL_J2304.3+0618_daily_bin481.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/649327/ft1_filtered_4FGL_J2304.3+0618_daily_bin481.fits scfile=/scratch/kocevski/649327/ft2_4FGL_J2304.3+0618_daily_bin481.fits outfile=/scratch/kocevski/649327/cmap_HighResolution_364003201_364262401_4FGL_J2304.3+0618_daily_bin481.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.781       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7608       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.847       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.523       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .65473E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    94.527       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0734       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.6210       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6097       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.931       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11734E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .31924E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85657       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82504       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=   8031.407     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2877 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.787        26.274        .34519E-05   -.30563E-04
   2  Prefactor     1.7608        .31023       -.61075E-07    .14460E-03
   3  Prefactor     17.847        9.2007        .15347E-07   -.34518E-04
   4  Prefactor     11.524        14.740        .18292E-06   -.70379E-04
   5  Prefactor     .10000E-03    48.054        .28662E-04** at limit **
   6  Prefactor     .65393E-01    .98573E-01   -.18593E-06   -.12525E-01
   7  norm          .10000E-03    10.115       -.22615E-05** at limit **
   8  Prefactor     94.531        42.292        .33522E-05   -.13062E-04
   9  Prefactor     6.0739        4.6932        .27546E-05   -.14685E-03
  10  Prefactor     .10000E-03    7.1991       -.14821E-05** at limit **
  11  Prefactor     .10000E-03    7.3956       -.44293E-07** at limit **
  12  norm          2.6212        .95123        .48927E-07    .93896E-05
  13  Prefactor     6.6056        6.4824       -.96329E-07    .40022E-04
  14  Prefactor     .10000E-03    14.566        .76997E-05** at limit **
  15  norm          12.918        8.7543        .16884E-06   -.35477E-03
  16  Prefactor     .10000E-03    8.9826        .57215E-05** at limit **
  17  Prefactor     .10000E-03    53.982       -.32231E-04** at limit **
  18  Prefactor     .10000E-03    2.4497        .36654E-07** at limit **
  19  Prefactor     .10000E-03    76.142       -.10739E-04** at limit **
  20  norm          .10000E-03    6.4009       -.15381E-05** at limit **
  21  norm          .10000E-03    5.8678        .25074E-06** at limit **
  22  Prefactor     .10000E-03    12.978       -.90534E-05** at limit **
  23  Prefactor     .10000E-03    6.1040        .11553E-05** at limit **
  24  Normalizat    .85642        .17946       -.13037E-05   -.12208E-03
  25  Prefactor     .82504        .10294       -.23101E-06   -.25161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.7868
  Prefactor  = 1.76082
  Prefactor  = 17.8474
  Prefactor  = 11.5244
  Prefactor  = 0.000100001
  Prefactor  = 0.0653932
  norm       = 0.0001
  Prefactor  = 94.5315
  Prefactor  = 6.07394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.62117
  Prefactor  = 6.60559
  Prefactor  = 0.0001
  norm       = 12.9179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.856421
  Prefactor  = 0.825039
 **********
 **   18 **HESSE 
 **********

 FCN=   8031.407     FROM HESSE     STATUS=OK           421 CALLS     3298 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.787        26.469        .58623E-04   -1.4339    
   2  Prefactor     1.7608        .31324        .18738E-04   -1.5443    
   3  Prefactor     17.847        9.2192        .94807E-04   -1.4863    
   4  Prefactor     11.524        14.707        .11801E-03   -1.5029    
   5  Prefactor     .10000E-03    49.308        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .65393E-01    .93321E-01    .32987E-03   -1.5657    
   7  norm          .10000E-03    10.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     94.531        42.398        .41338E-04   -1.3760    
   9  Prefactor     6.0739        4.6858        .16292E-03   -1.5215    
  10  Prefactor     .10000E-03    7.2510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.4203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.6212        .95189        .50803E-04   -1.5384    
  13  Prefactor     6.6056        6.4751        .15609E-03   -1.5194    
  14  Prefactor     .10000E-03    14.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.918        8.7038        .11139E-03   -1.4989    
  16  Prefactor     .10000E-03    9.1676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    53.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4529        .13697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    78.646        .42727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.4201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.8791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.1092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85642        .20712        .32047E-03   -.98009    
  25  Prefactor     .82504        .11944        .19454E-03   -.98812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87677e-09
Minuit parameter uncertainties:
  1  26.4754
  2  0.313244
  3  9.21997
  4  14.712
  5  0.000528693
  6  0.0933217
  7  3.14206e-05
  8  42.4113
  9  4.68612
  10  1.52108e-05
  11  1.47704e-06
  12  0.951897
  13  6.47579
  14  3.7289e-06
  15  8.70464
  16  4.83298e-05
  17  3.71612e-06
  18  1.5902e-06
  19  0.000433529
  20  2.62561e-06
  21  2.37893e-06
  22  1.42559e-05
  23  4.32107e-06
  24  0.207308
  25  0.119479
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  9.453e+01  4.241e+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.250e-01  1.195e-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.564e-01  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.19
Ra Dec: 346.078 6.307
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 5.36e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 1.51e-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) = 8030.84922985
delta logL = 0.558062786883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8030.84791405
delta logL = 0.559378582861

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.415       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1011       1.0000          .0000       10.000    
     3 'Normalizat'    .79687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84996       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=   8030.848     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      298 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.425        59.121        .54376E-04   -.21535E-04
   2  Index         3.1009        .74597        .43713E-02    .31222E-04
   3  Normalizat    .79706        .21102        .33076E-03    .59635E-04
   4  Prefactor     .84980        .12279        .19198E-03    .58471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.4245
  Index      = 3.10094
  Normalizat = 0.797064
  Prefactor  = 0.849801
 **********
 **   18 **HESSE 
 **********

 FCN=   8030.848     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.425        48.568        .21750E-05   -1.4231    
   2  Index         3.1009        .61247        .17485E-03   -.38959    
   3  Normalizat    .79706        .20931        .13230E-04   -1.0018    
   4  Prefactor     .84980        .12183        .38395E-04   -.97918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85591e-10
Minuit parameter uncertainties:
  1  48.6035
  2  0.614279
  3  0.209524
  4  0.121867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649327': 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) = 8030.84791312
delta logL = 0.55937951789

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  5.442e+01  4.860e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  3.101e+00  6.143e-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.498e-01  1.219e-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:  7.971e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.44
Ra Dec: 346.078 6.307
Photon Index (Free Index): 3.10 +/- 0.61
Photon Flux (Free Index): 1.64e-07 +/- 7.40e-08
Energy Flux (Free Index): 3.13e-05 +/- 1.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/649327/cmap_HighResolution_364003201_364262401_4FGL_J2304.3+0618_daily_bin481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='3.13e-05', photon_flux_error='5.36e-08', dlogl='5.59e-01', energy_flux='3.36e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-29 06:15:59.138692', photon_index_error2='0.61', photon_index2='3.10', ts='8.19', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='0.86', time_epoch_completed='1632921359.14', return_code='0', job_id='649327', GAL2='0.85', EG2='0.80', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='7.40e-08', ts2='9.44', photon_index='2.53' WHERE bin_id='481' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:15:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 649327: <4FGL_J2304.3+0618_daily_bin481> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin481 346.078 6.3071 364003201 364262401 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 :                                   697.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

