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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1714
RA = 346.173, Dec = 37.0826
tmin = 683596801, tmax = 683856001
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='253708', job_status='RUN', time_executed='2022-09-17 00:21:55.099406', time_epoch_executed='1663399315.1' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253708

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253708/ft1_4FGL_J2304.6+3704_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253708/ft2_4FGL_J2304.6+3704_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253708/ft1_4FGL_J2304.6+3704_daily_bin1714.fits outfile=/scratch/kocevski/253708/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1714.fits ra=346.173 dec=37.0826 rad=12.0 tmin=683596801.0 tmax=683856001.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.58
user 3.31
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/253708/ft2_4FGL_J2304.6+3704_daily_bin1714.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253708/ft2_4FGL_J2304.6+3704_daily_bin1714.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/253708/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1714.fits evtable="EVENTS" outfile="/scratch/kocevski/253708/ft1_filtered_4FGL_J2304.6+3704_daily_bin1714.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.56
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 1088

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253708/ft1_filtered_4FGL_J2304.6+3704_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/253708/ft2_4FGL_J2304.6+3704_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/253708/ltcube_683596801_683856001_4FGL_J2304.6+3704_daily_bin1714.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/253708/ft2_4FGL_J2304.6+3704_daily_bin1714.fits
.....................!
real 18.19
user 17.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253708/ft1_filtered_4FGL_J2304.6+3704_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/253708/ft2_4FGL_J2304.6+3704_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/253708/ltcube_683596801_683856001_4FGL_J2304.6+3704_daily_bin1714.fits outfile=/scratch/kocevski/253708/expmap_683596801_683856001_4FGL_J2304.6+3704_daily_bin1714.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/253708/ltcube_683596801_683856001_4FGL_J2304.6+3704_daily_bin1714.fits
.....................!
real 191.63
user 186.00
sys 5.04

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 155 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2304.6+3704 @ 346.173 37.0826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/253708/ft1_filtered_4FGL_J2304.6+3704_daily_bin1714.fits scfile=/scratch/kocevski/253708/ft2_4FGL_J2304.6+3704_daily_bin1714.fits outfile=/scratch/kocevski/253708/cmap_683596801_683856001_4FGL_J2304.6+3704_daily_bin1714.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.173 yref=37.0826 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253708/ft1_filtered_4FGL_J2304.6+3704_daily_bin1714.fits scfile=/scratch/kocevski/253708/ft2_4FGL_J2304.6+3704_daily_bin1714.fits outfile=/scratch/kocevski/253708/cmap_HighResolution_683596801_683856001_4FGL_J2304.6+3704_daily_bin1714.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.173 yref=37.0826 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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/253708/ft1_filtered_4FGL_J2304.6+3704_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/253708/ft2_4FGL_J2304.6+3704_daily_bin1714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253708/Model_4FGL_J2304.6+3704_daily_bin1714.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/253708/ft1_filtered_4FGL_J2304.6+3704_daily_bin1714.fits.....................!
real 128.68
user 127.05
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253708/ft1_filtered_4FGL_J2304.6+3704_daily_bin1714.fits', '/scratch/kocevski/253708/ft2_4FGL_J2304.6+3704_daily_bin1714.fits', expMap='/scratch/kocevski/253708/expmap_683596801_683856001_4FGL_J2304.6+3704_daily_bin1714.fits', expCube='/scratch/kocevski/253708/ltcube_683596801_683856001_4FGL_J2304.6+3704_daily_bin1714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253708/Model_4FGL_J2304.6+3704_daily_bin1714.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.6+3704'

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  4.732e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/253708/ft1_filtered_4FGL_J2304.6+3704_daily_bin1714.fits
Spacecraft file(s): /scratch/kocevski/253708/ft2_4FGL_J2304.6+3704_daily_bin1714.fits
Exposure map: /scratch/kocevski/253708/expmap_683596801_683856001_4FGL_J2304.6+3704_daily_bin1714.fits
Exposure cube: /scratch/kocevski/253708/ltcube_683596801_683856001_4FGL_J2304.6+3704_daily_bin1714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253708/Model_4FGL_J2304.6+3704_daily_bin1714.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) = 11204.7812133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2477       1.0000          .0000       .10000E+07
     2 'norm      '    .22664       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.2752       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14455E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.712       1.0000          .0000       .10000E+07
     6 'norm      '    .10014E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    21.871       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.0443       1.0000          .0000       .10000E+07
     9 'Prefactor '    176.60       1.0000          .0000       .10000E+07
    10 'norm      '    5.7195       1.0000          .0000       .10000E+07
    11 'norm      '    17.343       1.0000          .0000       .10000E+07
    12 'Prefactor '    .32002E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .15454E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.0106       1.0000          .0000       .10000E+07
    15 'Prefactor '    .79385E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11276       1.0000          .0000       .10000E+07
    17 'Prefactor '    .37513E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1966       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95457       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11203.52     FROM MIGRAD    STATUS=CONVERGED    186 CALLS      971 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2484        .85847        .68129E-07    .39575E-02
   2  norm          .22329        2.0174        .82877E-07** at limit **
   3  Prefactor     1.1928        35.169        .58329E-05   -.11406E-02
   4  Prefactor      .0000        2.1686       -.10424E-06** at limit **
   5  Prefactor     19.830        20.544       -.83325E-06    .45769E-03
   6  norm           .0000        .26184       -.39799E-07** at limit **
   7  Prefactor     21.821        24.805       -.54858E-06    .24460E-02
   8  Prefactor     3.2178        9.5923        .62593E-06   -.35110E-03
   9  Prefactor     179.62        46.900        .38354E-06   -.25750E-02
  10  norm          5.7003        4.1874       -.32031E-07   -.39714E-02
  11  norm          17.097        10.109       -.91063E-08   -.25240E-02
  12  Prefactor      .0000        11.206       -.67832E-06** at limit **
  13  norm           .0000        .57579        .22978E-08** at limit **
  14  Prefactor     .97644E-07    3021.3        .27273E-04** at limit **
  15  Prefactor     .55511E-10    9.3328       -.81415E-06** at limit **
  16  Prefactor      .0000        36.137       -.15014E-06** at limit **
  17  Prefactor     .15543E-08    10.763        .67752E-06** at limit **
  18  Normalizat    1.1948        .23409       -.15910E-04   -.54973E-03
  19  Prefactor     .95498        .90064E-01   -.62709E-06   -.10178E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.24837
  norm       = 0.223286
  Prefactor  = 1.19276
  Prefactor  = 0
  Prefactor  = 19.8298
  norm       = 0
  Prefactor  = 21.8211
  Prefactor  = 3.21775
  Prefactor  = 179.623
  norm       = 5.70028
  norm       = 17.0974
  Prefactor  = 0
  norm       = 0
  Prefactor  = 9.76441e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.55431e-09
  Normalizat = 1.1948
  Prefactor  = 0.954978
 **********
 **   18 **HESSE 
 **********

 FCN=   11203.52     FROM HESSE     STATUS=OK           308 CALLS     1279 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2484        .86676        .10015E-02   -1.5686    
   2  norm          .22329        1.9833        .11320E-02   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1928        34.390        .98381E-03   -1.5686    
   4  Prefactor      .0000        2.1726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.830        20.569        .22531E-03   -1.5619    
   6  norm           .0000        .26173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.821        24.835        .21388E-03   -1.5615    
   8  Prefactor     3.2178        9.6064        .58125E-03   -1.5672    
   9  Prefactor     179.62        47.004        .75257E-04   -1.5440    
  10  norm          5.7003        4.1972        .41976E-03   -1.5660    
  11  norm          17.097        10.115        .24023E-03   -1.5625    
  12  Prefactor      .0000        11.209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .57798        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .97644E-07    2946.8        .58469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    9.3574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        35.946        .13598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .15543E-08    10.760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1948        .20228        .86039E-01   -.86764    
  19  Prefactor     .95498        .77348E-01    .45697E-01   -.94246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72202e-07
Minuit parameter uncertainties:
  1  0.866757
  2  1.33092
  3  12.8093
  4  1.13997e-05
  5  20.5691
  6  3.8634e-06
  7  24.8347
  8  9.6064
  9  47.0038
  10  4.19718
  11  10.1153
  12  3.23127e-06
  13  5.12088e-06
  14  0.0339463
  15  3.31286e-05
  16  1.01814e-05
  17  0.00025882
  18  0.202413
  19  0.0773566
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.983e+01  2.057e+01  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.550e-01  7.736e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.195e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 346.173 37.083
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 2.11e-05

TS (Fixed Index): 1.36
Ra Dec: 346.173 37.083
Photon Flux Upper Limit: 6.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253708/likelihoodResults_683596801_683856001_4FGL_J2304.6+3704_daily_bin1714.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) = 11203.4813957
delta logL = 0.0431276503568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11203.4793133
delta logL = 0.045210100172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.326       1.0000          .0000       .10000E+07
     2 'Index     '    2.0159       1.0000          .0000       10.000    
     3 'Normalizat'    1.1912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+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=   11203.48     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      307 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.324        25.614        .10223E-04   -.10898E-03
   2  Index         2.0157        .65076        .75276E-02    .82534E-03
   3  Normalizat    1.1913        .22664        .38147E-03   -.10067E-03
   4  Prefactor     .95551        .89558E-01    .16503E-03   -.32852E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3241
  Index      = 2.01571
  Normalizat = 1.19126
  Prefactor  = 0.955508
 **********
 **   18 **HESSE 
 **********

 FCN=   11203.48     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.324        22.850        .40893E-06   -1.5630    
   2  Index         2.0157        .58139        .15055E-02   -.63958    
   3  Normalizat    1.1913        .22664        .15259E-04   -.86873    
   4  Prefactor     .95551        .89579E-01    .33006E-04   -.94228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99277e-11
Minuit parameter uncertainties:
  1  22.8505
  2  0.583449
  3  0.226825
  4  0.0895927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253708': 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) = 11203.479313
delta logL = 0.04521037019

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.532e+01  2.285e+01  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  2.016e+00  5.834e-01  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.555e-01  8.959e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.191e+00  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 346.173 37.083
Photon Index (Free Index): 2.02 +/- 0.58
Photon Flux (Free Index): 2.33e-08 +/- 2.56e-08
Energy Flux (Free Index): 1.55e-05 +/- 2.15e-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/253708/cmap_HighResolution_683596801_683856001_4FGL_J2304.6+3704_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='1.55e-05', photon_flux_error='2.04e-08', dlogl='4.52e-02', energy_flux='2.03e-05', photon_flux2='2.33e-08', job_status='DONE', time_completed='2022-09-17 00:33:39.106062', photon_index_error2='0.58', photon_index2='2.02', ts='1.36', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='6.91e-08', energy_flux_error2='2.15e-05', EG='1.19', time_epoch_completed='1663400019.11', return_code='0', job_id='253708', GAL2='0.96', EG2='1.19', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='2.56e-08', ts2='1.45', photon_index='1.85' WHERE bin_id='1714' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 17 00:33:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 253708: <4FGL_J2304.6+3704_daily_bin1714> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1714> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 17 00:20:28 2022
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 00:21:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 17 00:21:24 2022
Terminated at Sat Sep 17 00:33:39 2022
Results reported at Sat Sep 17 00:33:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1714 346.173 37.0826 683596801 683856001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2304.6+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            791 sec.

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

