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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1744
RA = 346.173, Dec = 37.0826
tmin = 691372801, tmax = 691632001
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='597060', job_status='RUN', time_executed='2022-12-02 02:02:32.119940', time_epoch_executed='1669975352.12' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597060/ft1_4FGL_J2304.6+3704_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597060/ft2_4FGL_J2304.6+3704_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597060/ft1_4FGL_J2304.6+3704_daily_bin1744.fits outfile=/scratch/kocevski/597060/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1744.fits ra=346.173 dec=37.0826 rad=12.0 tmin=691372801.0 tmax=691632001.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.51
user 2.32
sys 0.17

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

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

Number of photons that the gtmktime cut: 1505

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/597060/ft2_4FGL_J2304.6+3704_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/597060/ltcube_691372801_691632001_4FGL_J2304.6+3704_daily_bin1744.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/597060/ft2_4FGL_J2304.6+3704_daily_bin1744.fits
.....................!
real 12.97
user 12.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/597060/ft2_4FGL_J2304.6+3704_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/597060/ltcube_691372801_691632001_4FGL_J2304.6+3704_daily_bin1744.fits outfile=/scratch/kocevski/597060/expmap_691372801_691632001_4FGL_J2304.6+3704_daily_bin1744.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/597060/ltcube_691372801_691632001_4FGL_J2304.6+3704_daily_bin1744.fits
.....................!
real 191.77
user 186.16
sys 5.19

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/597060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1744.fits scfile=/scratch/kocevski/597060/ft2_4FGL_J2304.6+3704_daily_bin1744.fits outfile=/scratch/kocevski/597060/cmap_691372801_691632001_4FGL_J2304.6+3704_daily_bin1744.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1744.fits scfile=/scratch/kocevski/597060/ft2_4FGL_J2304.6+3704_daily_bin1744.fits outfile=/scratch/kocevski/597060/cmap_HighResolution_691372801_691632001_4FGL_J2304.6+3704_daily_bin1744.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.56
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/597060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1744.fits', '/scratch/kocevski/597060/ft2_4FGL_J2304.6+3704_daily_bin1744.fits', expMap='/scratch/kocevski/597060/expmap_691372801_691632001_4FGL_J2304.6+3704_daily_bin1744.fits', expCube='/scratch/kocevski/597060/ltcube_691372801_691632001_4FGL_J2304.6+3704_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/597060/Model_4FGL_J2304.6+3704_daily_bin1744.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/597060/ft1_filtered_4FGL_J2304.6+3704_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/597060/ft2_4FGL_J2304.6+3704_daily_bin1744.fits
Exposure map: /scratch/kocevski/597060/expmap_691372801_691632001_4FGL_J2304.6+3704_daily_bin1744.fits
Exposure cube: /scratch/kocevski/597060/ltcube_691372801_691632001_4FGL_J2304.6+3704_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/597060/Model_4FGL_J2304.6+3704_daily_bin1744.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 15513.7904522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1017       1.0000          .0000       .10000E+07
     2 'norm      '    .49960E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    .23831E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.2679       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19996E-05   1.0000          .0000       .10000E+07
     6 'norm      '    .97797       1.0000          .0000       .10000E+07
     7 'Prefactor '    .31147E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .14664E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    246.75       1.0000          .0000       .10000E+07
    10 'norm      '    .29086E-04   1.0000          .0000       .10000E+07
    11 'norm      '    8.3888       1.0000          .0000       .10000E+07
    12 'Prefactor '    .41489E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .47807       1.0000          .0000       .10000E+07
    14 'Prefactor '    65.245       1.0000          .0000       .10000E+07
    15 'Prefactor '    61.863       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12951E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .23790       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2064       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93861       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=   15511.30     FROM MIGRAD    STATUS=CONVERGED    131 CALLS      932 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1020        .96783       -.21581E-06    .22710E-01
   2  norm          .11102E-09    .95656        .31700E-06** at limit **
   3  Prefactor     .49960E-09    3.1658        .67675E-06** at limit **
   4  Prefactor     4.2699        4.6080       -.28335E-06    .16806E-02
   5  Prefactor     .18874E-08    9.2884       -.15453E-05** at limit **
   6  norm          .97783        .76403       -.26256E-07   -.78695E-02
   7  Prefactor     .88818E-09    18.840       -.15076E-05** at limit **
   8  Prefactor     .22204E-09    3.7448        .48834E-06** at limit **
   9  Prefactor     247.34        39.579        .16110E-05    .64075E-02
  10  norm          .55511E-09    3.0733        .52424E-06** at limit **
  11  norm          8.3903        5.8868        .65857E-07   -.40790E-03
  12  Prefactor     .72164E-09    5.1857        .11829E-05** at limit **
  13  norm          .47826        1.0748       -.22255E-06    .52736E-02
  14  Prefactor     64.874        21.420       -.16904E-05    .50393E-02
  15  Prefactor     61.977        6.2182        .50996E-06   -.13469E-01
  16  Prefactor     .34861E-07    54.008        .80216E-05** at limit **
  17  Prefactor     .28267        39.490       -.20286E-04   -.80911E-03
  18  Normalizat    1.2058        .20884        .79394E-05   -.53581E-03
  19  Prefactor     .93871        .78285E-01    .51013E-05   -.12187E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.10198
  norm       = 1.11022e-10
  Prefactor  = 4.996e-10
  Prefactor  = 4.26988
  Prefactor  = 1.88738e-09
  norm       = 0.977832
  Prefactor  = 8.88178e-10
  Prefactor  = 2.22045e-10
  Prefactor  = 247.343
  norm       = 5.55112e-10
  norm       = 8.39027
  Prefactor  = 7.21645e-10
  norm       = 0.478258
  Prefactor  = 64.8744
  Prefactor  = 61.9772
  Prefactor  = 3.4861e-08
  Prefactor  = 0.282672
  Normalizat = 1.20578
  Prefactor  = 0.938708
 **********
 **   18 **HESSE 
 **********

 FCN=   15511.30     FROM HESSE     STATUS=OK           310 CALLS     1242 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1020        .96780        .57554E-03   -1.5673    
   2  norm          .11102E-09    .95203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .49960E-09    3.1652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.2699        4.6093        .48746E-03   -1.5667    
   5  Prefactor     .18874E-08    9.2770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .97783        .76466        .42984E-03   -1.5688    
   7  Prefactor     .88818E-09    18.810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22204E-09    3.7406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     247.34        45.237        .63669E-04   -1.5393    
  10  norm          .55511E-09    3.0288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.3903        5.8937        .34588E-03   -1.5650    
  12  Prefactor     .72164E-09    5.1728        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .47826        1.0993        .43928E-02   -1.5694    
  14  Prefactor     64.874        46.256        .12381E-03   -1.5547    
  15  Prefactor     61.977        45.351        .12715E-03   -1.5551    
  16  Prefactor     .34861E-07    53.768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .28267        2.7300        .11137E-01   -1.5697    
  18  Normalizat    1.2058        .18247        .89149E-01   -.86424    
  19  Prefactor     .93871        .67006E-01    .45495E-01   -.94801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12191e-08
Minuit parameter uncertainties:
  1  0.9678
  2  2.21967e-05
  3  8.05321e-05
  4  4.6093
  5  0.000266414
  6  0.764665
  7  0.000260486
  8  5.68134e-05
  9  45.2367
  10  8.29821e-05
  11  5.89371
  12  0.000119861
  13  1.09931
  14  46.2564
  15  45.3511
  16  0.00273711
  17  1.75692
  18  0.182566
  19  0.0670114
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.887e-09  2.664e-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.387e-01  6.701e-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.206e+00  1.826e-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: 3.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/597060/likelihoodResults_691372801_691632001_4FGL_J2304.6+3704_daily_bin1744.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) = 15511.3506371
delta logL = -0.0524494173605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15511.2981878
delta logL = -1.56878741109e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18991E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .85564       1.0000          .0000       10.000    
     3 'Normalizat'    1.2058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93871       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=   15511.30     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      188 TOTAL
                     EDM=   .97E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.495       -.53079E-06** at limit **
   2  Index         1.3025        2.2351       -.12295E-04     .0000    
   3  Normalizat    1.2058        .20355       -.49076E-06    .40273E-05
   4  Prefactor     .93871        .77835E-01    .80463E-07   -.45805E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.30253
  Normalizat = 1.20579
  Prefactor  = 0.938709
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15511.30     FROM HESSE     STATUS=FAILED        11 CALLS      199 TOTAL
                     EDM=   .97E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .12994        1.5317       -.12295E-04   -.83232    
   3  Normalizat    1.2058        1.1044       -.49076E-06   -.86424    
   4  Prefactor     .93871        1.2816        .80463E-07   -.94801    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.71772e-14
Minuit parameter uncertainties:
  1  5.45854e-06
  2  1.49567
  3  1.12693
  4  1.3269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597060': 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) = 15511.2981877
delta logL = 2.58296495304e-10

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  0.000e+00  5.459e-06  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.303e+00  1.496e+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.387e-01  1.327e+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.206e+00  1.127e+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/597060/cmap_HighResolution_691372801_691632001_4FGL_J2304.6+3704_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-03', job_status='DONE', photon_flux_upper_limit='3.25e-08', time_completed='2022-12-02 02:15:54.664376', job_id='597060', GAL2='0.94', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1669976154.66', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.58e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1744' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 02:15:54 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 597060: <4FGL_J2304.6+3704_daily_bin1744> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1744> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Dec  2 02:00:26 2022
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 02:00:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 02:00:27 2022
Terminated at Fri Dec  2 02:15:55 2022
Results reported at Fri Dec  2 02:15:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1744 346.173 37.0826 691372801 691632001 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 :                                   804.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

