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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin1702
RA = 346.078, Dec = 6.3071
tmin = 680486401, tmax = 680745601
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='259029', job_status='RUN', time_executed='2022-07-29 01:37:01.792085', time_epoch_executed='1659083821.79' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259029

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259029/ft1_4FGL_J2304.3+0618_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259029/ft2_4FGL_J2304.3+0618_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259029/ft1_4FGL_J2304.3+0618_daily_bin1702.fits outfile=/scratch/kocevski/259029/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin1702.fits ra=346.078 dec=6.3071 rad=12.0 tmin=680486401.0 tmax=680745601.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.02
user 2.77
sys 0.21

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

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

Number of photons that the gtmktime cut: 436

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259029/ft1_filtered_4FGL_J2304.3+0618_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/259029/ft2_4FGL_J2304.3+0618_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/259029/ltcube_680486401_680745601_4FGL_J2304.3+0618_daily_bin1702.fits outfile=/scratch/kocevski/259029/expmap_680486401_680745601_4FGL_J2304.3+0618_daily_bin1702.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/259029/ltcube_680486401_680745601_4FGL_J2304.3+0618_daily_bin1702.fits
.....................!
real 193.75
user 188.51
sys 4.63

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259029/ft1_filtered_4FGL_J2304.3+0618_daily_bin1702.fits scfile=/scratch/kocevski/259029/ft2_4FGL_J2304.3+0618_daily_bin1702.fits outfile=/scratch/kocevski/259029/cmap_HighResolution_680486401_680745601_4FGL_J2304.3+0618_daily_bin1702.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/259029/ft1_filtered_4FGL_J2304.3+0618_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/259029/ft2_4FGL_J2304.3+0618_daily_bin1702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259029/Model_4FGL_J2304.3+0618_daily_bin1702.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/259029/ft1_filtered_4FGL_J2304.3+0618_daily_bin1702.fits.....................!
real 59.79
user 58.37
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.117       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .88078       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0006       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2719       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2433       1.0000         .10000E-03   10000.    
     7 'norm      '    14.557       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.191       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .95928       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.294       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8281       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8314       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    175.92       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30166E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10359E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.199       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3147       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73892       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=   4901.047     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2951 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.111        25.123        .46154E-06   -.20306E-04
   2  Prefactor     .88067        .32339        .71696E-07   -.45923E-03
   3  Prefactor     9.0003        11.517        .32621E-06    .42417E-06
   4  Prefactor     5.2654        31.752        .83384E-06   -.10691E-04
   5  Prefactor     .10000E-03    9.7916       -.14683E-07** at limit **
   6  Prefactor     1.2431        .24892        .28791E-07   -.22902E-02
   7  norm          14.555        15.468        .30565E-06   -.39429E-04
   8  Prefactor     36.156        51.819        .60574E-06   -.10844E-03
   9  Prefactor     .96097        9.5526        .46535E-05   -.10765E-04
  10  Prefactor     12.289        14.031        .24160E-06   -.85675E-04
  11  Prefactor     .10000E-03    43.716       -.22451E-06** at limit **
  12  norm          1.8304        1.5916       -.51579E-06   -.11256E-02
  13  Prefactor     2.8295        9.9467        .17602E-04   -.20328E-03
  14  Prefactor     .10000E-03    26.766        .16766E-06** at limit **
  15  norm          .10000E-03    2.5847       -.35313E-06** at limit **
  16  Prefactor     .10000E-03    3.9965       -.11163E-06** at limit **
  17  Prefactor     176.57        206.84        .37487E-06    .14891E-03
  18  Prefactor     .10058E-03    11.675        .54515E-05** at limit **
  19  Prefactor     .10000E-03    39.626       -.51653E-06** at limit **
  20  norm          .10000E-03    9.1323        .10640E-06** at limit **
  21  norm          .10000E-03    18.443        .94216E-06** at limit **
  22  Prefactor     15.220        53.616       -.31425E-05   -.83314E-04
  23  Prefactor     .10000E-03    9.1515        .27249E-06** at limit **
  24  Normalizat    1.3158        .27637       -.73702E-05   -.36208E-03
  25  Prefactor     .73857        .15271        .94168E-07   -.67530E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.1105
  Prefactor  = 0.880673
  Prefactor  = 9.00025
  Prefactor  = 5.26541
  Prefactor  = 0.0001
  Prefactor  = 1.24309
  norm       = 14.5546
  Prefactor  = 36.1564
  Prefactor  = 0.960967
  Prefactor  = 12.2886
  Prefactor  = 0.0001
  norm       = 1.83042
  Prefactor  = 2.82952
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 176.57
  Prefactor  = 0.000100578
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.2205
  Prefactor  = 0.0001
  Normalizat = 1.31579
  Prefactor  = 0.738572
 **********
 **   18 **HESSE 
 **********

 FCN=   4901.047     FROM HESSE     STATUS=OK           421 CALLS     3372 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.111        25.188        .85171E-04   -1.4767    
   2  Prefactor     .88067        .32405        .22219E-04   -1.5520    
   3  Prefactor     9.0003        11.559        .13360E-03   -1.5108    
   4  Prefactor     5.2654        31.856        .17505E-03   -1.5249    
   5  Prefactor     .10000E-03    9.8041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2431        .24902        .14439E-04   -1.5485    
   7  norm          14.555        15.469        .10498E-03   -1.4945    
   8  Prefactor     36.156        51.879        .66618E-04   -1.4505    
   9  Prefactor     .96097        9.7018        .40649E-03   -1.5512    
  10  Prefactor     12.289        14.030        .11424E-03   -1.5007    
  11  Prefactor     .10000E-03    44.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8304        1.5757        .78300E-04   -1.5437    
  13  Prefactor     2.8295        9.9236        .12084E-02   -1.5372    
  14  Prefactor     .10000E-03    26.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.5896        .10994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.0231        .13660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     176.57        205.30        .15214E-03   -1.3042    
  18  Prefactor     .10058E-03    63.511        .44051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.1645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    18.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.220        53.863        .10274E-03   -1.4927    
  23  Prefactor     .10000E-03    9.1581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3158        .32331        .31088E-03   -.83096    
  25  Prefactor     .73857        .17912        .22717E-03   -1.0203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03545e-08
Minuit parameter uncertainties:
  1  25.1996
  2  0.324054
  3  11.562
  4  25.9228
  5  3.69339e-06
  6  0.249018
  7  15.4729
  8  51.9435
  9  6.10772
  10  14.0335
  11  0.000232236
  12  1.57577
  13  9.92933
  14  3.34858e-05
  15  2.32825e-05
  16  5.26332e-06
  17  206.141
  18  0.0121331
  19  0.000138377
  20  2.70761e-05
  21  2.2569e-05
  22  54.0362
  23  1.74377e-05
  24  0.323811
  25  0.179263
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  3.616e+01  5.194e+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:  7.386e-01  1.793e-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.316e+00  3.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/259029/likelihoodResults_680486401_680745601_4FGL_J2304.3+0618_daily_bin1702.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) = 4900.73389254
delta logL = 0.31261377207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4900.73354665
delta logL = 0.312959663283

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.578       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9693       1.0000          .0000       10.000    
     3 'Normalizat'    1.3370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72444       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=   4900.734     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      264 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.384        6345.1        .12582E-02    .14024E-04
   2  Index         1.9671        5.1769        .23563        .82790E-05
   3  Normalizat    1.3368        .19846        .69783E-01    .23644E-04
   4  Prefactor     .72465        .16520        .42726E-01    .55595E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.384
  Index      = 1.96708
  Normalizat = 1.33678
  Prefactor  = 0.72465
 **********
 **   18 **HESSE 
 **********

 FCN=   4900.734     FROM HESSE     STATUS=OK            31 CALLS      295 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.384        71.766        .50327E-04   -1.4114    
   2  Index         1.9671        .60760        .84128E-02   -.65176    
   3  Normalizat    1.3368        .30527        .30874E-03   -.82475    
   4  Prefactor     .72465        .17415        .22903E-03   -1.0257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06186e-12
Minuit parameter uncertainties:
  1  71.8638
  2  0.609994
  3  0.305686
  4  0.174285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259029': 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) = 4900.7335359
delta logL = 0.312970415189

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  6.338e+01  7.186e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  1.967e+00  6.100e-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:  7.247e-01  1.743e-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.337e+00  3.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 346.078 6.307
Photon Index (Free Index): 1.97 +/- 0.61
Photon Flux (Free Index): 3.92e-08 +/- 5.04e-08
Energy Flux (Free Index): 2.94e-05 +/- 4.36e-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/259029/cmap_HighResolution_680486401_680745601_4FGL_J2304.3+0618_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', comment='SUCCESS', energy_flux2='2.94e-05', dlogl='3.13e-01', photon_flux2='3.92e-08', job_status='DONE', time_completed='2022-07-29 01:47:20.194892', photon_index_error2='0.61', photon_index2='1.97', ts='0.70', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='2.03e-07', energy_flux_error2='4.36e-05', EG='1.32', time_epoch_completed='1659084440.19', return_code='0', job_id='259029', GAL2='0.72', EG2='1.34', return_code2='0', photon_flux_error2='5.04e-08', ts2='1.33', photon_index='2.53' WHERE bin_id='1702' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 01:47:20 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 259029: <4FGL_J2304.3+0618_daily_bin1702> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin1702> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Jul 29 01:35:25 2022
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:36:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:36:27 2022
Terminated at Fri Jul 29 01:47:20 2022
Results reported at Fri Jul 29 01:47:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin1702 346.078 6.3071 680486401 680745601 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 :                                   620.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            715 sec.

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

