aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 39 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7488
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2304.3+0618_daily_bin1746
RA = 346.078, Dec = 6.3071
tmin = 691891201, tmax = 692150401
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='742545', job_status='RUN', time_executed='2022-12-08 01:51:10.308753', time_epoch_executed='1670493070.31' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742545

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742545/ft1_4FGL_J2304.3+0618_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742545/ft2_4FGL_J2304.3+0618_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742545/ft1_4FGL_J2304.3+0618_daily_bin1746.fits outfile=/scratch/kocevski/742545/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin1746.fits ra=346.078 dec=6.3071 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.75
user 4.51
sys 0.22

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

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

Number of photons that the gtmktime cut: 779

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/742545/ft1_filtered_4FGL_J2304.3+0618_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/742545/ft2_4FGL_J2304.3+0618_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/742545/ltcube_691891201_692150401_4FGL_J2304.3+0618_daily_bin1746.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/742545/ft2_4FGL_J2304.3+0618_daily_bin1746.fits
.....................!
real 12.11
user 11.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742545/ft1_filtered_4FGL_J2304.3+0618_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/742545/ft2_4FGL_J2304.3+0618_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/742545/ltcube_691891201_692150401_4FGL_J2304.3+0618_daily_bin1746.fits outfile=/scratch/kocevski/742545/expmap_691891201_692150401_4FGL_J2304.3+0618_daily_bin1746.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/742545/ltcube_691891201_692150401_4FGL_J2304.3+0618_daily_bin1746.fits
.....................!
real 190.01
user 185.07
sys 4.57

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/742545/ft1_filtered_4FGL_J2304.3+0618_daily_bin1746.fits scfile=/scratch/kocevski/742545/ft2_4FGL_J2304.3+0618_daily_bin1746.fits outfile=/scratch/kocevski/742545/cmap_691891201_692150401_4FGL_J2304.3+0618_daily_bin1746.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742545/ft1_filtered_4FGL_J2304.3+0618_daily_bin1746.fits scfile=/scratch/kocevski/742545/ft2_4FGL_J2304.3+0618_daily_bin1746.fits outfile=/scratch/kocevski/742545/cmap_HighResolution_691891201_692150401_4FGL_J2304.3+0618_daily_bin1746.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.57
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/742545/ft1_filtered_4FGL_J2304.3+0618_daily_bin1746.fits', '/scratch/kocevski/742545/ft2_4FGL_J2304.3+0618_daily_bin1746.fits', expMap='/scratch/kocevski/742545/expmap_691891201_692150401_4FGL_J2304.3+0618_daily_bin1746.fits', expCube='/scratch/kocevski/742545/ltcube_691891201_692150401_4FGL_J2304.3+0618_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/742545/Model_4FGL_J2304.3+0618_daily_bin1746.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  0.000e+00  1.000e+06 ( 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/742545/ft1_filtered_4FGL_J2304.3+0618_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/742545/ft2_4FGL_J2304.3+0618_daily_bin1746.fits
Exposure map: /scratch/kocevski/742545/expmap_691891201_692150401_4FGL_J2304.3+0618_daily_bin1746.fits
Exposure cube: /scratch/kocevski/742545/ltcube_691891201_692150401_4FGL_J2304.3+0618_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/742545/Model_4FGL_J2304.3+0618_daily_bin1746.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) = 8038.22729416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29166E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.7864       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.926       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.0428       1.0000         .10000E-03   10000.    
     6 'norm      '    .40256E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    29.724       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.1950       1.0000          .0000       .10000E+07
     9 'Prefactor '    .38042E-06   1.0000          .0000       .10000E+07
    10 'norm      '    .39501       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19903E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    70.526       1.0000          .0000       .10000E+07
    13 'norm      '    .80338E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    11.452       1.0000          .0000       .10000E+07
    15 'Prefactor '    6.3190       1.0000          .0000       .10000E+07
    16 'norm      '    .29451       1.0000          .0000       .10000E+07
    17 'norm      '    15.184       1.0000          .0000       .10000E+07
    18 'Prefactor '    .12270E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    6.8172       1.0000          .0000       .10000E+07
    20 'Normalizat'    .83072       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0319       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8038.217     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     1615 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50515E-08    5.4666        .10995E-06** at limit **
   2  Prefactor     1.7863        .27281        .12744E-06    .17692E-02
   3  Prefactor     .10000E-03    1.8657        .17378E-05** at limit **
   4  Prefactor     26.936        1.0327       -.11278E-08    .19175E-02
   5  Prefactor     2.0423        .24209       -.34189E-08   -.86124E-03
   6  norm          .22204E-09    4.8041       -.57815E-07** at limit **
   7  Prefactor     29.770        1.3947       -.49196E-08    .13466E-01
   8  Prefactor     4.2429        6.7965       -.47065E-07   -.99198E-03
   9  Prefactor     .39191E-07    8.5905        .27450E-07** at limit **
  10  norm          .39422        .87433       -.12013E-07   -.13886E-02
  11  Prefactor     .10547E-07    6.2409        .17369E-06** at limit **
  12  Prefactor     70.395        8.2871       -.25229E-07    .26428    
  13  norm          .11327E-01    6.8190       -.10750E-06** at limit **
  14  Prefactor     11.474        7.1236       -.10514E-07    .75720E-03
  15  Prefactor     6.5614        19.018       -.17014E-06   -.33269E-01
  16  norm          .61110E-05    4.5262        .44810E-07** at limit **
  17  norm          15.148        6.6138        .35519E-07    .34571E-01
  18  Prefactor     .58897E-07    38.318        .15353E-06** at limit **
  19  Prefactor     6.5653        10.624        .10646E-06   -.25995E-01
  20  Normalizat    .83111        .24118        .21622E-05   -.17094E-03
  21  Prefactor     1.0319        .14616       -.38303E-05   -.40389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.05151e-09
  Prefactor  = 1.78632
  Prefactor  = 0.0001
  Prefactor  = 26.936
  Prefactor  = 2.04235
  norm       = 2.22045e-10
  Prefactor  = 29.77
  Prefactor  = 4.24286
  Prefactor  = 3.91909e-08
  norm       = 0.39422
  Prefactor  = 1.05471e-08
  Prefactor  = 70.3951
  norm       = 0.0113274
  Prefactor  = 11.4737
  Prefactor  = 6.56135
  norm       = 6.111e-06
  norm       = 15.1478
  Prefactor  = 5.88973e-08
  Prefactor  = 6.56529
  Normalizat = 0.831115
  Prefactor  = 1.0319
 **********
 **   18 **HESSE 
 **********

 FCN=   8038.217     FROM HESSE     STATUS=OK           371 CALLS     1986 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50515E-08    5.4790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7863        .27369        .39752E-02   -1.5441    
   3  Prefactor     .10000E-03    1.8660        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.936        23.906        .19275E-03   -1.5604    
   5  Prefactor     2.0423        .24446        .32783E-02   -1.5422    
   6  norm          .22204E-09    4.8187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.770        35.952        .18345E-03   -1.5599    
   8  Prefactor     4.2429        6.8370        .49180E-03   -1.5667    
   9  Prefactor     .39191E-07    8.9279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .39422        .89401        .90067E-03   -1.5695    
  11  Prefactor     .10547E-07    6.2413        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     70.395        57.234        .11908E-03   -1.5540    
  13  norm          .11327E-01    3.8397        .10661E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.474        7.6324        .29579E-03   -1.5640    
  15  Prefactor     6.5614        23.466        .39907E-03   -1.5657    
  16  norm          .61110E-05    7.9251        .10290E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.148        21.442        .25677E-03   -1.5630    
  18  Prefactor     .58897E-07    38.360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5653        24.346        .38404E-03   -1.5657    
  20  Normalizat    .83111        .21749        .83680E-01   -.98925    
  21  Prefactor     1.0319        .12664        .41112E-01   -.91674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48237e-06
Minuit parameter uncertainties:
  1  0.000332899
  2  0.273689
  3  1.89502e-05
  4  23.9057
  5  0.244463
  6  6.32044e-05
  7  35.9519
  8  6.83702
  9  0.00118324
  10  0.894008
  11  0.000512873
  12  57.2345
  13  0.417105
  14  7.63243
  15  23.4662
  16  0.0139184
  17  21.4424
  18  0.0030064
  19  24.3464
  20  0.21772
  21  0.126675
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  2.977e+01  3.595e+01  0.000e+00  1.000e+06 ( 1.000e-13)
363        Index:  2.530e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.032e+00  1.267e-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.311e-01  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.82
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/742545/likelihoodResults_691891201_692150401_4FGL_J2304.3+0618_daily_bin1746.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) = 8037.87679903
delta logL = 0.340479032619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8037.87464769
delta logL = 0.342630375009

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.706       1.0000          .0000       .10000E+07
     2 'Index     '    2.0089       1.0000          .0000       10.000    
     3 'Normalizat'    .85170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0182       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=   8037.875     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      269 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.706        1810.5        .13646E-03   -.87891E-04
   2  Index         2.0089        5.8867        .25170        .27317E-04
   3  Normalizat    .85167        .99651E-01    .82739E-01   -.21661E-03
   4  Prefactor     1.0182        .66496E-01    .42329E-01   -.13721E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.7061
  Index      = 2.0089
  Normalizat = 0.851666
  Prefactor  = 1.01818
 **********
 **   18 **HESSE 
 **********

 FCN=   8037.875     FROM HESSE     STATUS=OK            29 CALLS      298 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.706        50.926        .54586E-05   -1.5561    
   2  Index         2.0089        .51987        .85629E-02   -.64128    
   3  Normalizat    .85167        .23634        .36634E-03   -.98180    
   4  Prefactor     1.0182        .14622        .20728E-03   -.92126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59178e-10
Minuit parameter uncertainties:
  1  50.9265
  2  0.521336
  3  0.236627
  4  0.146276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742545': 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) = 8037.87464768
delta logL = 0.342630384979

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  5.371e+01  5.093e+01  0.000e+00  1.000e+06 ( 1.000e-13)
363        Index:  2.009e+00  5.213e-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:  1.018e+00  1.463e-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.517e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 346.078 6.307
Photon Index (Free Index): 2.01 +/- 0.52
Photon Flux (Free Index): 3.48e-08 +/- 3.56e-08
Energy Flux (Free Index): 2.35e-05 +/- 2.97e-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/742545/cmap_HighResolution_691891201_692150401_4FGL_J2304.3+0618_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='2.35e-05', dlogl='3.43e-01', photon_flux2='3.48e-08', job_status='DONE', time_completed='2022-12-08 02:02:28.742589', photon_index_error2='0.52', photon_index2='2.01', ts='0.82', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='2.97e-05', EG='0.83', time_epoch_completed='1670493748.74', return_code='0', job_id='742545', GAL2='1.02', EG2='0.85', return_code2='0', photon_flux_error2='3.56e-08', ts2='1.50', photon_index='2.53' WHERE bin_id='1746' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 02:02:28 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 742545: <4FGL_J2304.3+0618_daily_bin1746> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin1746> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec  8 01:50:21 2022
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:50:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:50:22 2022
Terminated at Thu Dec  8 02:02:29 2022
Results reported at Thu Dec  8 02:02:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin1746 346.078 6.3071 691891201 692150401 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 :                                   680.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            728 sec.

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

