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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1753
RA = 346.173, Dec = 37.0826
tmin = 693705601, tmax = 693964801
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='469060', job_status='RUN', time_executed='2022-12-29 01:46:21.001958', time_epoch_executed='1672307181.0' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469060

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469060/ft1_4FGL_J2304.6+3704_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469060/ft2_4FGL_J2304.6+3704_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469060/ft1_4FGL_J2304.6+3704_daily_bin1753.fits outfile=/scratch/kocevski/469060/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1753.fits ra=346.173 dec=37.0826 rad=12.0 tmin=693705601.0 tmax=693964801.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.71
user 4.45
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/469060/ft2_4FGL_J2304.6+3704_daily_bin1753.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/469060/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/469060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1753.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.54
user 0.35
sys 0.17

Number of photons that the gtmktime cut: 885

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/469060/ft2_4FGL_J2304.6+3704_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/469060/ltcube_693705601_693964801_4FGL_J2304.6+3704_daily_bin1753.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/469060/ft2_4FGL_J2304.6+3704_daily_bin1753.fits
.....................!
real 15.26
user 14.85
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/469060/ft2_4FGL_J2304.6+3704_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/469060/ltcube_693705601_693964801_4FGL_J2304.6+3704_daily_bin1753.fits outfile=/scratch/kocevski/469060/expmap_693705601_693964801_4FGL_J2304.6+3704_daily_bin1753.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/469060/ltcube_693705601_693964801_4FGL_J2304.6+3704_daily_bin1753.fits
.....................!
real 193.74
user 188.59
sys 4.68

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/469060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1753.fits scfile=/scratch/kocevski/469060/ft2_4FGL_J2304.6+3704_daily_bin1753.fits outfile=/scratch/kocevski/469060/cmap_693705601_693964801_4FGL_J2304.6+3704_daily_bin1753.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1753.fits scfile=/scratch/kocevski/469060/ft2_4FGL_J2304.6+3704_daily_bin1753.fits outfile=/scratch/kocevski/469060/cmap_HighResolution_693705601_693964801_4FGL_J2304.6+3704_daily_bin1753.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/469060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/469060/ft2_4FGL_J2304.6+3704_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469060/Model_4FGL_J2304.6+3704_daily_bin1753.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/469060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1753.fits.....................!
real 111.70
user 110.14
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/469060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1753.fits', '/scratch/kocevski/469060/ft2_4FGL_J2304.6+3704_daily_bin1753.fits', expMap='/scratch/kocevski/469060/expmap_693705601_693964801_4FGL_J2304.6+3704_daily_bin1753.fits', expCube='/scratch/kocevski/469060/ltcube_693705601_693964801_4FGL_J2304.6+3704_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/469060/Model_4FGL_J2304.6+3704_daily_bin1753.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/469060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/469060/ft2_4FGL_J2304.6+3704_daily_bin1753.fits
Exposure map: /scratch/kocevski/469060/expmap_693705601_693964801_4FGL_J2304.6+3704_daily_bin1753.fits
Exposure cube: /scratch/kocevski/469060/ltcube_693705601_693964801_4FGL_J2304.6+3704_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/469060/Model_4FGL_J2304.6+3704_daily_bin1753.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) = 9517.38963743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1426       1.0000          .0000       .10000E+07
     2 'norm      '    7.8363       1.0000          .0000       .10000E+07
     3 'Prefactor '    .91732E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .73042E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .24275E-03   1.0000          .0000       .10000E+07
     6 'norm      '    2.4411       1.0000          .0000       .10000E+07
     7 'Prefactor '    .40340E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .18183E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    21.507       1.0000          .0000       .10000E+07
    10 'norm      '    4.1971       1.0000          .0000       .10000E+07
    11 'norm      '    .17091E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10755E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .67457E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .25404E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .70382       1.0000          .0000       .10000E+07
    16 'Prefactor '    .31688E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .49710E-06   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1414       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96987       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=   9517.381     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1405 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1423        1.3229        .10313E-07    .24613E-02
   2  norm          7.8350        4.0606       -.11573E-07   -.79225E-03
   3  Prefactor     .55511E-10    4.7139        .88287E-07** at limit **
   4  Prefactor      .0000        1.7325        .40968E-07** at limit **
   5  Prefactor     .83485E-05    8.5131        .61191E-08** at limit **
   6  norm          2.4437        1.6979        .73276E-07    .99939E-02
   7  Prefactor     .33021E-05    17.967        .17177E-06** at limit **
   8  Prefactor     .64948E-08    12.672        .12818E-06** at limit **
   9  Prefactor     21.345        3.2217       -.10988E-07   -.68115E-01
  10  norm          4.1645        6.7599       -.28596E-07    .78618E-03
  11  norm          .11102E-09    5.2242        .81018E-07** at limit **
  12  Prefactor     .94369E-09    10.311        .13599E-06** at limit **
  13  norm           .0000        1.2823        .43234E-08** at limit **
  14  Prefactor     .99581E-06    18.150       -.38708E-06** at limit **
  15  Prefactor     .35776        382.87       -.16347E-05    .35376E-02
  16  Prefactor      .0000        37.636       -.35311E-07** at limit **
  17  Prefactor     .33307E-09    5.2349       -.79271E-07** at limit **
  18  Normalizat    1.1415        .26040        .37241E-06    .54843E-04
  19  Prefactor     .96997        .96989E-01   -.10448E-06    .73432E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.14233
  norm       = 7.83502
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 8.34854e-06
  norm       = 2.44372
  Prefactor  = 3.30208e-06
  Prefactor  = 6.4948e-09
  Prefactor  = 21.3447
  norm       = 4.16454
  norm       = 1.11022e-10
  Prefactor  = 9.4369e-10
  norm       = 0
  Prefactor  = 9.95815e-07
  Prefactor  = 0.35776
  Prefactor  = 0
  Prefactor  = 3.33067e-10
  Normalizat = 1.14155
  Prefactor  = 0.969965
 **********
 **   18 **HESSE 
 **********

 FCN=   9517.381     FROM HESSE     STATUS=OK           306 CALLS     1711 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1423        1.3265        .70382E-03   -1.5679    
   2  norm          7.8350        4.0553        .35796E-03   -1.5652    
   3  Prefactor     .55511E-10    4.7207        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.7332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .83485E-05    23.422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.4437        1.7099        .65456E-03   -1.5677    
   7  Prefactor     .33021E-05    24.934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .64948E-08    12.688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.345        29.464        .21569E-03   -1.5616    
  10  norm          4.1645        6.8135        .49167E-03   -1.5667    
  11  norm          .11102E-09    5.2306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94369E-09    10.335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.2795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .99581E-06    20.044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .35776        25.412        .14808E-01   -1.5696    
  16  Prefactor      .0000        37.388        .16363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .33307E-09    5.2345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1415        .22528        .89993E-01   -.88429    
  19  Prefactor     .96997        .82971E-01    .45889E-01   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29696e-07
Minuit parameter uncertainties:
  1  1.32654
  2  4.0553
  3  3.231e-05
  4  7.30057e-06
  5  0.0279674
  6  1.70993
  7  0.0181476
  8  0.000574327
  9  29.4639
  10  6.81351
  11  4.34353e-05
  12  0.000194835
  13  7.73721e-07
  14  0.00893531
  15  6.03039
  16  2.63615e-05
  17  8.25451e-05
  18  0.225472
  19  0.0829816
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  8.349e-06  2.797e-02  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.700e-01  8.298e-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.142e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/469060/likelihoodResults_693705601_693964801_4FGL_J2304.6+3704_daily_bin1753.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) = 9517.40189944
delta logL = -0.0211980030181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9517.3807014
delta logL = 3.906643542e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13566E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .68887       1.0000          .0000       10.000    
     3 'Normalizat'    1.1416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96995       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.

 FCN=   9517.381     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      242 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    166.68        .42118E-03** at limit **
   2  Index         2.3893        8.6581        .42253        .53813E-10
   3  Normalizat    1.1415        .22923E-01    .89993E-01    .66147E-04
   4  Prefactor     .96997        .87008E-02    .45890E-01    .14732E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 2.38934
  Normalizat = 1.14155
  Prefactor  = 0.969965
 **********
 **   18 **HESSE 
 **********

 FCN=   9517.381     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      273 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    894.02        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3893        6.1638        .50000       -.54935    
   3  Normalizat    1.1415        .57303E-01    .39857E-03   -.88429    
   4  Prefactor     .96997        .21797E-01    .16173E-03   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.52319e-10
Minuit parameter uncertainties:
  1  0.000431245
  2  37.6063
  3  0.0573059
  4  0.0217973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469060': 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): 102
logL (Free Index) = 9517.38070126
delta logL = 1.77849869942e-07

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  5.551e-11  4.312e-04  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  2.389e+00  3.761e+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.700e-01  2.180e-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.142e+00  5.731e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 346.173 37.083

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/469060/cmap_HighResolution_693705601_693964801_4FGL_J2304.6+3704_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-03', job_status='DONE', photon_flux_upper_limit='5.22e-08', time_completed='2022-12-29 01:57:27.691837', job_id='469060', GAL2='0.97', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1672307847.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1753' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:57:27 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 469060: <4FGL_J2304.6+3704_daily_bin1753> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1753> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec 29 01:45:18 2022
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 01:46:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 01:46:02 2022
Terminated at Thu Dec 29 01:57:28 2022
Results reported at Thu Dec 29 01:57:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1753 346.173 37.0826 693705601 693964801 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 :                                   668.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             358.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            730 sec.

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

