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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin541
RA = 346.078, Dec = 6.3071
tmin = 379555201, tmax = 379814401
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='649422', job_status='RUN', time_executed='2021-09-29 06:03:20.858199', time_epoch_executed='1632920600.86' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649422

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649422/ft1_4FGL_J2304.3+0618_daily_bin541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649422/ft2_4FGL_J2304.3+0618_daily_bin541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649422/ft1_4FGL_J2304.3+0618_daily_bin541.fits outfile=/scratch/kocevski/649422/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin541.fits ra=346.078 dec=6.3071 rad=12.0 tmin=379555201.0 tmax=379814401.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.53
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649422/ft1_filtered_4FGL_J2304.3+0618_daily_bin541.fits" evtable="EVENTS" scfile=/scratch/kocevski/649422/ft2_4FGL_J2304.3+0618_daily_bin541.fits sctable="SC_DATA" outfile=/scratch/kocevski/649422/ltcube_379555201_379814401_4FGL_J2304.3+0618_daily_bin541.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/649422/ft2_4FGL_J2304.3+0618_daily_bin541.fits
.....................!
real 12.32
user 11.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649422/ft1_filtered_4FGL_J2304.3+0618_daily_bin541.fits evtable="EVENTS" scfile=/scratch/kocevski/649422/ft2_4FGL_J2304.3+0618_daily_bin541.fits sctable="SC_DATA" expcube=/scratch/kocevski/649422/ltcube_379555201_379814401_4FGL_J2304.3+0618_daily_bin541.fits outfile=/scratch/kocevski/649422/expmap_379555201_379814401_4FGL_J2304.3+0618_daily_bin541.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/649422/ltcube_379555201_379814401_4FGL_J2304.3+0618_daily_bin541.fits
.....................!
real 192.28
user 187.35
sys 4.58

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/649422/ft1_filtered_4FGL_J2304.3+0618_daily_bin541.fits scfile=/scratch/kocevski/649422/ft2_4FGL_J2304.3+0618_daily_bin541.fits outfile=/scratch/kocevski/649422/cmap_379555201_379814401_4FGL_J2304.3+0618_daily_bin541.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649422/ft1_filtered_4FGL_J2304.3+0618_daily_bin541.fits scfile=/scratch/kocevski/649422/ft2_4FGL_J2304.3+0618_daily_bin541.fits outfile=/scratch/kocevski/649422/cmap_HighResolution_379555201_379814401_4FGL_J2304.3+0618_daily_bin541.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5116       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0397       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3359       1.0000         .10000E-03   10000.    
     7 'norm      '    14.516       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8234       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.094       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6644       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2138       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0797       1.0000         .10000E-03   10000.    
    17 'Prefactor '    159.87       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.578       1.0000         .10000E-03   10000.    
    21 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .46236       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1260       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87655       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=   8231.600     FROM MIGRAD    STATUS=CONVERGED   1031 CALLS     2941 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.144        .18142E-02** at limit **
   2  Prefactor     2.5115        .35483        .19350E-04    .25851E-04
   3  Prefactor     .10000E-03    9.3619        .18142E-02** at limit **
   4  Prefactor     9.0384        22.475        .13331E-03    .34113E-06
   5  Prefactor     .10000E-03    6.7946        .18142E-02** at limit **
   6  Prefactor     2.3359        .28741        .16158E-04   -.36447E-03
   7  norm          14.512        13.418        .10513E-03    .43257E-06
   8  Prefactor     3.8171        39.075        .20641E-03   -.59484E-05
   9  Prefactor     .10000E-03    3.5098        .16564E-02** at limit **
  10  Prefactor     4.5178        7.9430        .94696E-03    .49295E-04
  11  Prefactor     28.092        21.722        .75584E-04   -.72197E-05
  12  norm          2.6657        1.1846        .63342E-04    .21071E-03
  13  Prefactor     2.2161        6.5375        .27643E-03   -.11228E-03
  14  Prefactor     .10000E-03    31.667        .18142E-02** at limit **
  15  norm          .10000E-03    5.6700        .18142E-02** at limit **
  16  Prefactor     3.0803        7.1634        .11556E-02    .36973E-03
  17  Prefactor     159.21        148.01        .15946E-03    .64166E-05
  18  Prefactor     .10000E-03    3.3409        .16186E-02** at limit **
  19  Prefactor     .10000E-03    21.603        .18142E-02** at limit **
  20  norm          15.576        14.275        .10148E-03   -.26663E-04
  21  norm          .10000E-03    7.6327        .18142E-02** at limit **
  22  Prefactor     .25200        33.174        .14535        .11666E-03
  23  Prefactor     .10000E-03    32.382        .18142E-02** at limit **
  24  Normalizat    1.1263        .26135        .35108E-03   -.12752E-03
  25  Prefactor     .87656        .14444        .22902E-03   -.89351E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.51145
  Prefactor  = 0.0001
  Prefactor  = 9.03841
  Prefactor  = 0.0001
  Prefactor  = 2.33587
  norm       = 14.5122
  Prefactor  = 3.81706
  Prefactor  = 0.0001
  Prefactor  = 4.51783
  Prefactor  = 28.0921
  norm       = 2.66565
  Prefactor  = 2.21613
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.08034
  Prefactor  = 159.215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.5761
  norm       = 0.0001
  Prefactor  = 0.251996
  Prefactor  = 0.0001
  Normalizat = 1.12626
  Prefactor  = 0.876559
 **********
 **   18 **HESSE 
 **********

 FCN=   8231.600     FROM HESSE     STATUS=OK           415 CALLS     3356 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.144        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5115        .35481        .77401E-06   -1.5391    
   3  Prefactor     .10000E-03    9.3685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.0384        22.478        .53322E-05   -1.5107    
   5  Prefactor     .10000E-03    6.7947        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3359        .28741        .64631E-06   -1.5402    
   7  norm          14.512        13.417        .42050E-05   -1.4946    
   8  Prefactor     3.8171        39.066        .82565E-05   -1.5317    
   9  Prefactor     .10000E-03    3.5103        .33128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5178        7.9420        .37878E-04   -1.5283    
  11  Prefactor     28.092        21.726        .30234E-05   -1.4647    
  12  norm          2.6657        1.1846        .25337E-05   -1.5381    
  13  Prefactor     2.2161        6.5364        .11057E-04   -1.5410    
  14  Prefactor     .10000E-03    31.668        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.6718        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0803        7.1564        .23112E-03   -1.5357    
  17  Prefactor     159.21        148.09        .63783E-05   -1.3178    
  18  Prefactor     .10000E-03    3.3410        .32371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.576        14.274        .40591E-05   -1.4918    
  21  norm          .10000E-03    7.6329        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .25200        32.517        .14750       -1.5608    
  23  Prefactor     .10000E-03    32.390        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1263        .26147        .14043E-04   -.88913    
  25  Prefactor     .87656        .14458        .91610E-05   -.96965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91927e-10
Minuit parameter uncertainties:
  1  4.33616e-06
  2  0.354815
  3  1.01826e-05
  4  22.4989
  5  9.85855e-07
  6  0.28741
  7  13.4199
  8  24.443
  9  2.63944e-06
  10  7.94384
  11  21.732
  12  1.18458
  13  6.53846
  14  3.19188e-05
  15  5.95652e-05
  16  7.15837
  17  148.435
  18  1.3157e-05
  19  4.84761e-05
  20  14.2768
  21  1.7147e-05
  22  5.72712
  23  1.92719e-06
  24  0.261776
  25  0.14464
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  3.817e+00  2.444e+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.766e-01  1.446e-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:  1.126e+00  2.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 346.078 6.307
Photon Flux Upper Limit: 9.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649422/likelihoodResults_379555201_379814401_4FGL_J2304.3+0618_daily_bin541.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) = 8229.8666638
delta logL = 1.73382575752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8229.83558194
delta logL = 1.76490762307

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4857       1.0000         .10000E-03   10000.    
     2 'Index     '    .93963       1.0000          .0000       10.000    
     3 'Normalizat'    1.1226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87682       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.

 FCN=   8229.836     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      215 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4911        7.1090        .39397E-02   -.19920E-02
   2  Index         .93964        .35512        .25291       -.92049E-04
   3  Normalizat    1.1224        .20938        .79342E-01    .28327E-04
   4  Prefactor     .87693        .12283        .44709E-01    .55336E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.49106
  Index      = 0.939636
  Normalizat = 1.12241
  Prefactor  = 0.876928
 **********
 **   18 **HESSE 
 **********

 FCN=   8229.836     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4911        11.913        .78795E-03   -1.5198    
   2  Index         .93964        .62800        .10561E-01   -.94770    
   3  Normalizat    1.1224        .24339        .35122E-03   -.89036    
   4  Prefactor     .87693        .14301        .22882E-03   -.96952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99488e-11
Minuit parameter uncertainties:
  1  11.9173
  2  0.632954
  3  0.243632
  4  0.143068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649422': 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) = 8229.8355813
delta logL = 1.76490826254

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  6.491e+00  1.192e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  9.396e-01  6.330e-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.769e-01  1.431e-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:  1.122e+00  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.56
Ra Dec: 346.078 6.307
Photon Index (Free Index): 0.94 +/- 0.63
Photon Flux (Free Index): 3.93e-09 +/- 4.60e-09
Energy Flux (Free Index): 6.56e-05 +/- 9.47e-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/649422/cmap_HighResolution_379555201_379814401_4FGL_J2304.3+0618_daily_bin541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.62e-03', comment='SUCCESS', energy_flux2='6.56e-05', dlogl='1.76e+00', photon_flux2='3.93e-09', job_status='DONE', time_completed='2021-09-29 06:17:11.343296', photon_index_error2='0.63', photon_index2='0.94', ts='0.03', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='9.77e-08', energy_flux_error2='9.47e-05', EG='1.13', time_epoch_completed='1632921431.34', return_code='0', job_id='649422', GAL2='0.88', EG2='1.12', return_code2='0', photon_flux_error2='4.60e-09', ts2='3.56', photon_index='2.53' WHERE bin_id='541' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:17:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 649422: <4FGL_J2304.3+0618_daily_bin541> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin541 346.078 6.3071 379555201 379814401 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 :                                   829.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            982 sec.

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

