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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1715
RA = 346.173, Dec = 37.0826
tmin = 683856001, tmax = 684115201
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='253710', job_status='RUN', time_executed='2022-09-17 00:23:37.736091', time_epoch_executed='1663399417.74' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253710/ft1_4FGL_J2304.6+3704_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253710/ft2_4FGL_J2304.6+3704_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253710/ft1_4FGL_J2304.6+3704_daily_bin1715.fits outfile=/scratch/kocevski/253710/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1715.fits ra=346.173 dec=37.0826 rad=12.0 tmin=683856001.0 tmax=684115201.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.51
user 3.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253710/ft2_4FGL_J2304.6+3704_daily_bin1715.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/253710/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/253710/ft1_filtered_4FGL_J2304.6+3704_daily_bin1715.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.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 977

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253710/ft1_filtered_4FGL_J2304.6+3704_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/253710/ft2_4FGL_J2304.6+3704_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/253710/ltcube_683856001_684115201_4FGL_J2304.6+3704_daily_bin1715.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/253710/ft2_4FGL_J2304.6+3704_daily_bin1715.fits
.....................!
real 15.05
user 14.64
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253710/ft1_filtered_4FGL_J2304.6+3704_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/253710/ft2_4FGL_J2304.6+3704_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/253710/ltcube_683856001_684115201_4FGL_J2304.6+3704_daily_bin1715.fits outfile=/scratch/kocevski/253710/expmap_683856001_684115201_4FGL_J2304.6+3704_daily_bin1715.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/253710/ltcube_683856001_684115201_4FGL_J2304.6+3704_daily_bin1715.fits
.....................!
real 193.29
user 187.16
sys 5.60

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/253710/ft1_filtered_4FGL_J2304.6+3704_daily_bin1715.fits scfile=/scratch/kocevski/253710/ft2_4FGL_J2304.6+3704_daily_bin1715.fits outfile=/scratch/kocevski/253710/cmap_683856001_684115201_4FGL_J2304.6+3704_daily_bin1715.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.65
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253710/ft1_filtered_4FGL_J2304.6+3704_daily_bin1715.fits scfile=/scratch/kocevski/253710/ft2_4FGL_J2304.6+3704_daily_bin1715.fits outfile=/scratch/kocevski/253710/cmap_HighResolution_683856001_684115201_4FGL_J2304.6+3704_daily_bin1715.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31821E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .48319       1.0000          .0000       .10000E+07
     3 'Prefactor '    .14693E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.4000       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13558E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .57176E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    52.595       1.0000          .0000       .10000E+07
     8 'Prefactor '    .61633E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    64.359       1.0000          .0000       .10000E+07
    10 'norm      '    .44013E-04   1.0000          .0000       .10000E+07
    11 'norm      '    4.8696       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.5233       1.0000          .0000       .10000E+07
    13 'norm      '    .28094       1.0000          .0000       .10000E+07
    14 'Prefactor '    51.077       1.0000          .0000       .10000E+07
    15 'Prefactor '    .97272E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    33.774       1.0000          .0000       .10000E+07
    17 'Prefactor '    .93722E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1834       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99108       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=   10266.46     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     1505 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        4.0866        .13387E-06** at limit **
   2  norm          .48204        1.8638       -.37543E-06    .11153E-03
   3  Prefactor     .22204E-09    6.5929       -.60493E-06** at limit **
   4  Prefactor     7.3834        5.1224       -.33252E-06    .66386E-03
   5  Prefactor     .12768E-08    8.1316       -.36853E-06** at limit **
   6  norm           .0000        .23846        .10572E-07** at limit **
   7  Prefactor     52.643        1.0643        .51141E-08   -.25246    
   8  Prefactor      .0000        1.9941        .18619E-06** at limit **
   9  Prefactor     64.043        33.849       -.40595E-06   -.17117    
  10  norm          .55511E-10    2.1658        .32795E-07** at limit **
  11  norm          4.8788        6.3776        .24310E-07   -.18224E-03
  12  Prefactor     6.5722        2.7413        .10929E-06   -.21956E-01
  13  norm          .28075        .91364        .74203E-07   -.56985E-03
  14  Prefactor     50.779        30.392       -.41916E-06    .18199    
  15  Prefactor     .55511E-10    13.972        .62809E-06** at limit **
  16  Prefactor     33.799        7.1829        .11578E-06    .52946E-01
  17  Prefactor     .11102E-09    4.0048       -.13751E-05** at limit **
  18  Normalizat    1.1835        .23504        .36463E-04   -.40053E-03
  19  Prefactor     .99113        .92425E-01   -.48451E-05   -.68817E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0.482042
  Prefactor  = 2.22045e-10
  Prefactor  = 7.38341
  Prefactor  = 1.27676e-09
  norm       = 0
  Prefactor  = 52.6429
  Prefactor  = 0
  Prefactor  = 64.0433
  norm       = 5.55112e-11
  norm       = 4.87877
  Prefactor  = 6.57222
  norm       = 0.280745
  Prefactor  = 50.779
  Prefactor  = 5.55112e-11
  Prefactor  = 33.7993
  Prefactor  = 1.11022e-10
  Normalizat = 1.18355
  Prefactor  = 0.991134
 **********
 **   18 **HESSE 
 **********

 FCN=   10266.46     FROM HESSE     STATUS=OK           310 CALLS     1815 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .71019        .30664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .48204        1.8857        .80418E-03   -1.5694    
   3  Prefactor     .22204E-09    6.5933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.3834        5.1304        .36845E-03   -1.5654    
   5  Prefactor     .12768E-08    8.1373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .23861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     52.643        34.405        .13790E-03   -1.5563    
   8  Prefactor      .0000        1.9958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     64.043        43.111        .12466E-03   -1.5548    
  10  norm          .55511E-10    2.1649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.8788        6.3838        .45560E-03   -1.5664    
  12  Prefactor     6.5722        18.946        .39269E-03   -1.5657    
  13  norm          .28075        .86475        .41064E-02   -1.5697    
  14  Prefactor     50.779        53.405        .13993E-03   -1.5565    
  15  Prefactor     .55511E-10    13.979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.799        40.661        .17209E-03   -1.5592    
  17  Prefactor     .11102E-09    3.9999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1835        .21498        .87188E-01   -.87113    
  19  Prefactor     .99113        .80273E-01    .46156E-01   -.93026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65537e-06
Minuit parameter uncertainties:
  1  3.64784e-06
  2  1.8857
  3  7.68104e-05
  4  5.13044
  5  0.000202277
  6  3.23669e-07
  7  34.4056
  8  9.74228e-06
  9  43.1111
  10  2.36178e-05
  11  6.38376
  12  18.946
  13  0.864748
  14  53.4056
  15  5.03358e-05
  16  40.6614
  17  4.51675e-05
  18  0.215144
  19  0.080283
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.277e-09  2.023e-04  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.911e-01  8.028e-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.184e+00  2.151e-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: 4.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253710/likelihoodResults_683856001_684115201_4FGL_J2304.6+3704_daily_bin1715.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) = 10266.5234699
delta logL = -0.0587615592467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10266.4647092
delta logL = -8.79259459907e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51421E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .44739       1.0000          .0000       10.000    
     3 'Normalizat'    1.1837       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99108       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10266.46     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      214 TOTAL
                     EDM=   .38E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.9481        .42118E-03** at limit **
   2  Index         2.2438        1.5833       -.32228E-04     .0000    
   3  Normalizat    1.1836        1.1121       -.21114E-04   -.60571E-04
   4  Prefactor     .99113        1.3307        .68376E-05   -.14168E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.24376
  Normalizat = 1.18355
  Prefactor  = 0.991133
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10266.46     FROM HESSE     STATUS=FAILED         9 CALLS      223 TOTAL
                     EDM=   .38E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.9481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .55798        1.8920       -.32228E-04   -.58386    
   3  Normalizat    1.1836        1.1121       -.21114E-04   -.87113    
   4  Prefactor     .99113        1.3307        .68376E-05   -.93026    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.83733e-12
Minuit parameter uncertainties:
  1  4.01644e-06
  2  1.62406
  3  1.13559
  4  1.37919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253710': 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): 101
logL (Free Index) = 10266.4647083
delta logL = 2.01907823794e-10

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  0.000e+00  4.016e-06  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  2.244e+00  1.624e+00  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.911e-01  1.379e+00  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.184e+00  1.136e+00  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/253710/cmap_HighResolution_683856001_684115201_4FGL_J2304.6+3704_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-03', job_status='DONE', photon_flux_upper_limit='4.09e-08', time_completed='2022-09-17 00:35:23.114764', job_id='253710', GAL2='0.99', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1663400123.11', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.02e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1715' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 17 00:35:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 253710: <4FGL_J2304.6+3704_daily_bin1715> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1715> 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) <bullet0207>, 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:35:23 2022
Results reported at Sat Sep 17 00:35:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1715 346.173 37.0826 683856001 684115201 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 :                                   707.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            895 sec.

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

