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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1762
RA = 346.173, Dec = 37.0826
tmin = 696038401, tmax = 696297601
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='123325', job_status='RUN', time_executed='2023-01-25 01:49:42.803347', time_epoch_executed='1674640182.8' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/123325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/123325/ft1_4FGL_J2304.6+3704_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/123325/ft2_4FGL_J2304.6+3704_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/123325/ft1_4FGL_J2304.6+3704_daily_bin1762.fits outfile=/scratch/kocevski/123325/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1762.fits ra=346.173 dec=37.0826 rad=12.0 tmin=696038401.0 tmax=696297601.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.72
user 3.45
sys 0.23

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

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

Number of photons that the gtmktime cut: 1032

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/123325/ft1_filtered_4FGL_J2304.6+3704_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/123325/ft2_4FGL_J2304.6+3704_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/123325/ltcube_696038401_696297601_4FGL_J2304.6+3704_daily_bin1762.fits outfile=/scratch/kocevski/123325/expmap_696038401_696297601_4FGL_J2304.6+3704_daily_bin1762.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/123325/ltcube_696038401_696297601_4FGL_J2304.6+3704_daily_bin1762.fits
.....................!
real 193.53
user 186.23
sys 5.89

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/123325/ft1_filtered_4FGL_J2304.6+3704_daily_bin1762.fits scfile=/scratch/kocevski/123325/ft2_4FGL_J2304.6+3704_daily_bin1762.fits outfile=/scratch/kocevski/123325/cmap_696038401_696297601_4FGL_J2304.6+3704_daily_bin1762.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.59
user 0.39
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2653       1.0000          .0000       .10000E+07
     2 'norm      '    4.7572       1.0000          .0000       .10000E+07
     3 'Prefactor '    23.468       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33575E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .29989       1.0000          .0000       .10000E+07
     6 'norm      '    .52851       1.0000          .0000       .10000E+07
     7 'Prefactor '    .43826E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    5.2864       1.0000          .0000       .10000E+07
     9 'Prefactor '    .82858E-02   1.0000          .0000       .10000E+07
    10 'norm      '    15.213       1.0000          .0000       .10000E+07
    11 'norm      '    1.1260       1.0000          .0000       .10000E+07
    12 'Prefactor '    31.078       1.0000          .0000       .10000E+07
    13 'norm      '    2.0578       1.0000          .0000       .10000E+07
    14 'Prefactor '    .87164       1.0000          .0000       .10000E+07
    15 'Prefactor '    .88522E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .23194E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.2612       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1661       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91084       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=   10603.69     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1409 TOTAL
                     EDM=   .70E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2651        1.0027       -.26185E-07    .57093E-03
   2  norm          4.7574        3.4005       -.33475E-07    .20639E-04
   3  Prefactor     23.548        17.639        .10395E-06   -.27754E-03
   4  Prefactor      .0000        13.121       -.30870E-06** at limit **
   5  Prefactor     .34950E-06    5.9772        .58367E-07** at limit **
   6  norm          .52859        .90473       -.49801E-07    .18197E-03
   7  Prefactor      .0000        51.031        .26641E-06** at limit **
   8  Prefactor     5.2678        10.579        .45776E-07    .49675E-04
   9  Prefactor     .29976E-08    15.567        .12099E-06** at limit **
  10  norm          15.167        6.7501        .50320E-07   -.13503E-03
  11  norm          .97957        13.562        .24994E-06   -.94601E-04
  12  Prefactor     31.379        20.296        .19306E-07    .10804E-02
  13  norm          2.0608        2.3616        .24590E-07   -.29250E-03
  14  Prefactor     .10547E-08    696.54       -.31034E-05** at limit **
  15  Prefactor      .0000        39.500        .40348E-06** at limit **
  16  Prefactor      .0000        18.174        .53896E-06** at limit **
  17  Prefactor     1.2658        4.8084        .16989E-07    .43716E-04
  18  Normalizat    1.1655        .23237       -.15823E-05    .18938E-04
  19  Prefactor     .91126        .88016E-01   -.15215E-06    .26413E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.26511
  norm       = 4.75735
  Prefactor  = 23.5484
  Prefactor  = 0
  Prefactor  = 3.49498e-07
  norm       = 0.528586
  Prefactor  = 0
  Prefactor  = 5.26778
  Prefactor  = 2.9976e-09
  norm       = 15.1675
  norm       = 0.979569
  Prefactor  = 31.3787
  norm       = 2.0608
  Prefactor  = 1.05471e-09
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.26576
  Normalizat = 1.16546
  Prefactor  = 0.911256
 **********
 **   18 **HESSE 
 **********

 FCN=   10603.69     FROM HESSE     STATUS=OK           322 CALLS     1731 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2651        1.0037        .68215E-03   -1.5678    
   2  norm          4.7574        3.4627        .46107E-03   -1.5664    
   3  Prefactor     23.548        17.708        .20648E-03   -1.5611    
   4  Prefactor      .0000        2.5637        .90951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .34950E-06    9.3485        .17831E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .52859        .93342        .75892E-03   -1.5693    
   7  Prefactor      .0000        50.646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2678        10.642        .43691E-03   -1.5662    
   9  Prefactor     .29976E-08    16.368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.167        6.7532        .25653E-03   -1.5630    
  11  norm          .97957        13.443        .11031E-02   -1.5688    
  12  Prefactor     31.379        20.253        .17941E-03   -1.5596    
  13  norm          2.0608        2.3822        .72016E-03   -1.5679    
  14  Prefactor     .10547E-08    691.82        .47741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        39.494        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        18.165        .16835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.2658        4.8225        .99267E-03   -1.5685    
  18  Normalizat    1.1655        .20051        .83345E-01   -.87677    
  19  Prefactor     .91126        .75606E-01    .45143E-01   -.95749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82452e-06
Minuit parameter uncertainties:
  1  1.0037
  2  3.46273
  3  17.7077
  4  2.2754e-06
  5  0.00361498
  6  0.933418
  7  1.033e-05
  8  10.6416
  9  0.000442883
  10  6.75322
  11  7.25762
  12  20.2534
  13  2.38219
  14  0.00172813
  15  5.54545e-05
  16  1.64637e-05
  17  4.82255
  18  0.200641
  19  0.0756144
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  3.495e-07  3.615e-03  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.113e-01  7.561e-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.165e+00  2.006e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/123325/likelihoodResults_696038401_696297601_4FGL_J2304.6+3704_daily_bin1762.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) = 10603.6931188
delta logL = -0.00607752206088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10603.5478216
delta logL = 0.139219716724

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33700E-01   1.0000          .0000       .10000E+07
     2 'Index     '    4.0577       1.0000          .0000       10.000    
     3 'Normalizat'    1.1310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91783       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=   10603.55     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      307 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33628E-01    .56478        .77364E-03** at limit **
   2  Index         4.0590        2.0539        .73279E-01    .42102E-03
   3  Normalizat    1.1309        .27275E-01    .84439E-01    .26406E-04
   4  Prefactor     .91789        .10717E-01    .45232E-01   -.58167E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0336279
  Index      = 4.05897
  Normalizat = 1.13086
  Prefactor  = 0.91789
 **********
 **   18 **HESSE 
 **********

 FCN=   10603.55     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      340 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33628E-01    5.4140        .29851E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.0590        6.9970        .85703E-02   -.18934    
   3  Normalizat    1.1309        .12796        .37387E-03   -.88767    
   4  Prefactor     .91789        .49507E-01    .16043E-03   -.95519    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03878e-06
Minuit parameter uncertainties:
  1  0.853377
  2  7.57688
  3  0.128
  4  0.0495096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/123325': 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) = 10603.5478208
delta logL = 0.139220522711

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  3.363e-02  8.534e-01  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  4.059e+00  7.577e+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.179e-01  4.951e-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.131e+00  1.280e-01  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/123325/cmap_HighResolution_696038401_696297601_4FGL_J2304.6+3704_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='5.13e-08', time_completed='2023-01-25 02:01:47.886881', job_id='123325', GAL2='0.92', fit_tolerance='1e-08', EG2='1.13', EG='1.17', time_epoch_completed='1674640907.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.39e-01', ts2='0.31', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1762' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 02:01:47 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 123325: <4FGL_J2304.6+3704_daily_bin1762> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1762> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Jan 25 01:45:17 2023
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:45:47 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:45:47 2023
Terminated at Wed Jan 25 02:01:48 2023
Results reported at Wed Jan 25 02:01:48 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1762 346.173 37.0826 696038401 696297601 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 :                                   726.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            991 sec.

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

