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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin1703
RA = 346.078, Dec = 6.3071
tmin = 680745601, tmax = 681004801
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='324216', job_status='RUN', time_executed='2022-08-01 01:24:23.588607', time_epoch_executed='1659342263.59' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324216/ft1_4FGL_J2304.3+0618_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324216/ft2_4FGL_J2304.3+0618_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324216/ft1_4FGL_J2304.3+0618_daily_bin1703.fits outfile=/scratch/kocevski/324216/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin1703.fits ra=346.078 dec=6.3071 rad=12.0 tmin=680745601.0 tmax=681004801.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 2.95
user 2.72
sys 0.22

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

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

Number of photons that the gtmktime cut: 456

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324216/ft1_filtered_4FGL_J2304.3+0618_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/324216/ft2_4FGL_J2304.3+0618_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/324216/ltcube_680745601_681004801_4FGL_J2304.3+0618_daily_bin1703.fits outfile=/scratch/kocevski/324216/expmap_680745601_681004801_4FGL_J2304.3+0618_daily_bin1703.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/324216/ltcube_680745601_681004801_4FGL_J2304.3+0618_daily_bin1703.fits
.....................!
real 192.59
user 186.76
sys 5.20

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/324216/ft1_filtered_4FGL_J2304.3+0618_daily_bin1703.fits scfile=/scratch/kocevski/324216/ft2_4FGL_J2304.3+0618_daily_bin1703.fits outfile=/scratch/kocevski/324216/cmap_680745601_681004801_4FGL_J2304.3+0618_daily_bin1703.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324216/ft1_filtered_4FGL_J2304.3+0618_daily_bin1703.fits scfile=/scratch/kocevski/324216/ft2_4FGL_J2304.3+0618_daily_bin1703.fits outfile=/scratch/kocevski/324216/cmap_HighResolution_680745601_681004801_4FGL_J2304.3+0618_daily_bin1703.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .79606       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .75564       1.0000         .10000E-03   10000.    
     7 'norm      '    14.646       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.466       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0228       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15811       1.0000         .10000E-03   10000.    
    12 'norm      '    .63396       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7253       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7792       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.959       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21503E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.696       1.0000         .10000E-03   10000.    
    21 'norm      '    36.651       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12962E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11172E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90054       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0502       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=   5262.173     FROM MIGRAD    STATUS=CONVERGED   1060 CALLS     3848 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4703        .18142E-02** at limit **
   2  Prefactor     .79594        .31220        .12070E-03    .20362E-02
   3  Prefactor     .10000E-03    9.9436        .18142E-02** at limit **
   4  Prefactor     .10000E-03    10.270        .18142E-02** at limit **
   5  Prefactor     .10000E-03    15.955        .18142E-02** at limit **
   6  Prefactor     .75559        .20773        .16238E-04    .15578E-02
   7  norm          14.651        19.636        .10466E-03    .84946E-04
   8  Prefactor     28.461        47.167        .75090E-04   -.83149E-04
   9  Prefactor     6.0178        8.0567        .16361E-03    .24453E-03
  10  Prefactor     .10000E-03    39.822        .36285E-03** at limit **
  11  Prefactor     .10630E-01    36.829        .10339        .35435E-04
  12  norm          .63252        1.6616        .13467E-03   -.78012E-03
  13  Prefactor     .10000E-03    3.1445        .12538E-02** at limit **
  14  Prefactor     1.8781        561.79        .31972E-02    .18241E-04
  15  norm          .10000E-03    2.2007        .10498E-02** at limit **
  16  Prefactor     4.7752        7.7398        .18404E-03    .11014E-03
  17  Prefactor     41.858        751.17        .30943E-03   -.84504E-05
  18  Prefactor     .10000E-03    83.649        .36285E-02** at limit **
  19  Prefactor     .10000E-03    11.339        .18142E-02** at limit **
  20  norm          10.694        10.354        .12251E-03    .34522E-04
  21  norm          36.659        36.254        .66200E-04   -.13357E-03
  22  Prefactor     .10000E-03    53.276        .18142E-02** at limit **
  23  Prefactor     .10000E-03    40.260        .18142E-02** at limit **
  24  Normalizat    .90082        .31132        .36329E-03    .15556E-03
  25  Prefactor     1.0502        .17865        .20040E-03    .20069E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.795936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.755588
  norm       = 14.651
  Prefactor  = 28.4611
  Prefactor  = 6.01777
  Prefactor  = 0.000100001
  Prefactor  = 0.0106303
  norm       = 0.632518
  Prefactor  = 0.0001
  Prefactor  = 1.87805
  norm       = 0.0001
  Prefactor  = 4.77519
  Prefactor  = 41.8584
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6938
  norm       = 36.6589
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Normalizat = 0.900818
  Prefactor  = 1.05019
 **********
 **   18 **HESSE 
 **********

 FCN=   5262.173     FROM HESSE     STATUS=OK           413 CALLS     4261 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4705        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .79594        .31215        .48280E-05   -1.5530    
   3  Prefactor     .10000E-03    9.9455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .75559        .20770        .64952E-06   -1.5534    
   7  norm          14.651        19.634        .41863E-05   -1.4942    
   8  Prefactor     28.461        47.162        .15018E-04   -1.4640    
   9  Prefactor     6.0178        8.0549        .65443E-05   -1.5217    
  10  Prefactor     .10000E-03    39.824        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10630E-01    33.831        .10888       -1.5687    
  12  norm          .63252        1.6603        .53867E-05   -1.5549    
  13  Prefactor     .10000E-03    3.1448        .25075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8781        559.26        .12789E-03   -1.5434    
  15  norm          .10000E-03    2.2007        .20996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.7752        7.7377        .73615E-05   -1.5271    
  17  Prefactor     41.858        749.85        .12377E-04   -1.4413    
  18  Prefactor     .10000E-03    83.847        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.694        10.354        .49002E-05   -1.5054    
  21  norm          36.659        36.193        .13240E-04   -1.4496    
  22  Prefactor     .10000E-03    53.284        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    40.275        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90082        .31140        .14532E-04   -.96431    
  25  Prefactor     1.0502        .17872        .40080E-04   -.91075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36497e-10
Minuit parameter uncertainties:
  1  2.04701e-05
  2  0.312152
  3  6.20521e-05
  4  4.93188e-06
  5  5.96589e-05
  6  0.207699
  7  19.6425
  8  47.224
  9  8.05639
  10  0.000358405
  11  1.19442
  12  1.66045
  13  6.31678e-06
  14  65.4421
  15  3.00847e-06
  16  7.73933
  17  359.712
  18  0.00019352
  19  3.83859e-05
  20  10.3554
  21  36.2146
  22  0.000604207
  23  0.000397676
  24  0.312027
  25  0.17882
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  2.846e+01  4.722e+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:  1.050e+00  1.788e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  9.008e-01  3.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/324216/likelihoodResults_680745601_681004801_4FGL_J2304.3+0618_daily_bin1703.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) = 5262.10194475
delta logL = 0.071281856598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5262.09781437
delta logL = 0.0754122381632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.800       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1668       1.0000          .0000       10.000    
     3 'Normalizat'    .91034       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0440       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=   5262.098     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      260 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.800        6093.8        .15501E-02   -.96380E-04
   2  Index         2.1667        5.3417        .24910        .17124E-04
   3  Normalizat    .91052        .10578        .81654E-01    .14519E-04
   4  Prefactor     1.0439        .69894E-01    .40275E-01    .32594E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.8002
  Index      = 2.16671
  Normalizat = 0.910515
  Prefactor  = 1.04388
 **********
 **   18 **HESSE 
 **********

 FCN=   5262.098     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.800        63.424        .62003E-04   -1.4414    
   2  Index         2.1667        .84079        .10296E-01   -.60244    
   3  Normalizat    .91052        .29731        .36149E-03   -.96092    
   4  Prefactor     1.0439        .17742        .20091E-03   -.91281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73873e-10
Minuit parameter uncertainties:
  1  63.527
  2  0.846738
  3  0.297853
  4  0.177523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324216': 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) = 5262.09781418
delta logL = 0.0754124266605

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  4.180e+01  6.353e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.167e+00  8.467e-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.044e+00  1.775e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  9.105e-01  2.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
Ra Dec: 346.078 6.307

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/324216/cmap_HighResolution_680745601_681004801_4FGL_J2304.3+0618_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', job_status='DONE', photon_flux_upper_limit='1.75e-07', time_completed='2022-08-01 01:35:51.734058', job_id='324216', GAL2='1.04', fit_tolerance='1e-08', EG2='0.91', EG='0.90', time_epoch_completed='1659342951.73', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='7.54e-02', ts2='0.60', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1703' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 01:35:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 324216: <4FGL_J2304.3+0618_daily_bin1703> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin1703> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug  1 01:20:26 2022
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 01:22:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 01:22:44 2022
Terminated at Mon Aug  1 01:35:52 2022
Results reported at Mon Aug  1 01:35:52 2022

Your job looked like:

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

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

