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 61 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_J2307.6+1451_daily_bin1715
RA = 346.922, Dec = 14.8644
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='253731', job_status='RUN', time_executed='2022-09-17 00:22:39.792600', time_epoch_executed='1663399359.79' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253731

Creating custom pfile directory:
/scratch/kocevski/253731/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/253731/ft1_4FGL_J2307.6+1451_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/253731/ft2_4FGL_J2307.6+1451_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253731/ft1_4FGL_J2307.6+1451_daily_bin1715.fits outfile=/scratch/kocevski/253731/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1715.fits ra=346.922 dec=14.8644 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.81
user 3.22
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/253731/ft2_4FGL_J2307.6+1451_daily_bin1715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253731/ft2_4FGL_J2307.6+1451_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/253731/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/253731/ft1_filtered_4FGL_J2307.6+1451_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.50
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 697

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253731/ft1_filtered_4FGL_J2307.6+1451_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/253731/ft2_4FGL_J2307.6+1451_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/253731/ltcube_683856001_684115201_4FGL_J2307.6+1451_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/253731/ft2_4FGL_J2307.6+1451_daily_bin1715.fits
.....................!
real 14.76
user 14.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253731/ft1_filtered_4FGL_J2307.6+1451_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/253731/ft2_4FGL_J2307.6+1451_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/253731/ltcube_683856001_684115201_4FGL_J2307.6+1451_daily_bin1715.fits outfile=/scratch/kocevski/253731/expmap_683856001_684115201_4FGL_J2307.6+1451_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/253731/ltcube_683856001_684115201_4FGL_J2307.6+1451_daily_bin1715.fits
.....................!
real 192.18
user 186.80
sys 5.01

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
Added 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2307.6+1451 @ 346.922 14.8644

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/253731/ft1_filtered_4FGL_J2307.6+1451_daily_bin1715.fits scfile=/scratch/kocevski/253731/ft2_4FGL_J2307.6+1451_daily_bin1715.fits outfile=/scratch/kocevski/253731/cmap_683856001_684115201_4FGL_J2307.6+1451_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.922 yref=14.8644 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253731/ft1_filtered_4FGL_J2307.6+1451_daily_bin1715.fits scfile=/scratch/kocevski/253731/ft2_4FGL_J2307.6+1451_daily_bin1715.fits outfile=/scratch/kocevski/253731/cmap_HighResolution_683856001_684115201_4FGL_J2307.6+1451_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.922 yref=14.8644 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/253731/ft1_filtered_4FGL_J2307.6+1451_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/253731/ft2_4FGL_J2307.6+1451_daily_bin1715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253731/Model_4FGL_J2307.6+1451_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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/253731/ft1_filtered_4FGL_J2307.6+1451_daily_bin1715.fits.....................!
real 84.04
user 82.64
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253731/ft1_filtered_4FGL_J2307.6+1451_daily_bin1715.fits', '/scratch/kocevski/253731/ft2_4FGL_J2307.6+1451_daily_bin1715.fits', expMap='/scratch/kocevski/253731/expmap_683856001_684115201_4FGL_J2307.6+1451_daily_bin1715.fits', expCube='/scratch/kocevski/253731/ltcube_683856001_684115201_4FGL_J2307.6+1451_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253731/Model_4FGL_J2307.6+1451_daily_bin1715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2307.6+1451'

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.115e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
344        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/253731/ft1_filtered_4FGL_J2307.6+1451_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/253731/ft2_4FGL_J2307.6+1451_daily_bin1715.fits
Exposure map: /scratch/kocevski/253731/expmap_683856001_684115201_4FGL_J2307.6+1451_daily_bin1715.fits
Exposure cube: /scratch/kocevski/253731/ltcube_683856001_684115201_4FGL_J2307.6+1451_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253731/Model_4FGL_J2307.6+1451_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) = 7548.54437852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14747E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .19536E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .28548       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4210       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2605       1.0000          .0000       .10000E+07
     6 'Prefactor '    .36716E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.9767       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.8872       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42194       1.0000          .0000       .10000E+07
    10 'Prefactor '    .26310E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    79.392       1.0000          .0000       .10000E+07
    12 'Prefactor '    .26281       1.0000          .0000       .10000E+07
    13 'Prefactor '    .37589E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    28.228       1.0000          .0000       .10000E+07
    15 'norm      '    3.7255       1.0000          .0000       .10000E+07
    16 'Prefactor '    10.942       1.0000          .0000       .10000E+07
    17 'Prefactor '    .37953       1.0000          .0000       .10000E+07
    18 'norm      '    23.340       1.0000          .0000       .10000E+07
    19 'Prefactor '    .21283       1.0000          .0000       .10000E+07
    20 'Normalizat'    .89148       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0472       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7548.513     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1631 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19929E-07    6.8381        .70454E-07** at limit **
   2  Prefactor     .12834E-06    7.2263       -.16864E-06** at limit **
   3  Prefactor     .28526        .17499        .62377E-07    .41796E-03
   4  Prefactor     3.3591        6.8849       -.54471E-07   -.32802E-04
   5  norm          3.2588        1.9898        .41327E-07    .25304E-02
   6  Prefactor     .53735E-07    7.9495       -.65384E-08** at limit **
   7  Prefactor     6.9684        8.7904       -.33951E-08   -.23499E-02
   8  Prefactor     1.8866        .25709        .19102E-08    .18665E-03
   9  Prefactor     .81595E-05    165.70       -.34844E-06** at limit **
  10  Prefactor      .0000        3.5492       -.86847E-08** at limit **
  11  Prefactor     78.111        25.800        .29929E-06   -.18479    
  12  Prefactor     .18521E-02    44.988        .13601E-05** at limit **
  13  Prefactor     .12768E-08    5.9369       -.62970E-07** at limit **
  14  Prefactor     28.935        22.365        .26979E-07    .23308E-01
  15  norm          3.6992        5.1710        .84190E-07    .40444E-02
  16  Prefactor     10.965        5.8197        .22048E-07   -.79815E-02
  17  Prefactor     .16815E-03    258.13        .34371E-05** at limit **
  18  norm          23.301        5.0977        .31419E-07   -.39694E-01
  19  Prefactor     .21394        39.343        .47627E-06** at limit **
  20  Normalizat    .89340        .26677       -.10652E-05    .52549E-04
  21  Prefactor     1.0475        .14733        .56037E-06    .10378E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99285e-08
  Prefactor  = 1.28342e-07
  Prefactor  = 0.285257
  Prefactor  = 3.3591
  norm       = 3.25884
  Prefactor  = 5.37348e-08
  Prefactor  = 6.96838
  Prefactor  = 1.88657
  Prefactor  = 8.15947e-06
  Prefactor  = 0
  Prefactor  = 78.1105
  Prefactor  = 0.00185209
  Prefactor  = 1.27676e-09
  Prefactor  = 28.9354
  norm       = 3.69919
  Prefactor  = 10.9649
  Prefactor  = 0.00016815
  norm       = 23.3009
  Prefactor  = 0.213936
  Normalizat = 0.893398
  Prefactor  = 1.04747
 **********
 **   18 **HESSE 
 **********

 FCN=   7548.513     FROM HESSE     STATUS=OK           379 CALLS     2010 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19929E-07    6.8921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12834E-06    7.7605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .28526        .17978        .61339E-02   -1.5601    
   4  Prefactor     3.3591        6.9101        .54676E-02   -1.5341    
   5  norm          3.2588        1.9910        .56061E-03   -1.5672    
   6  Prefactor     .53735E-07    8.1033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9684        8.8167        .37958E-03   -1.5655    
   8  Prefactor     1.8866        .25688        .34704E-02   -1.5433    
   9  Prefactor     .81595E-05    170.18        .86988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        3.5373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     78.111        36.943        .11224E-03   -1.5531    
  12  Prefactor     .18521E-02    7.0032        .65070E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12768E-08    5.9659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.935        24.025        .18825E-03   -1.5600    
  15  norm          3.6992        10.841        .52291E-03   -1.5669    
  16  Prefactor     10.965        9.7410        .30262E-03   -1.5642    
  17  Prefactor     .16815E-03    26.927        .12382E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          23.301        16.859        .20704E-03   -1.5611    
  19  Prefactor     .21394        5.2636        .63333E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .89340        .23792        .85183E-01   -.96693    
  21  Prefactor     1.0475        .12817        .40077E-01   -.91163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66466e-07
Minuit parameter uncertainties:
  1  0.000741128
  2  0.00199598
  3  0.179779
  4  6.91169
  5  1.99102
  6  0.00131997
  7  8.81674
  8  0.256884
  9  0.0745289
  10  1.41982e-05
  11  36.9428
  12  0.227777
  13  0.000173029
  14  24.0253
  15  10.8409
  16  9.74098
  17  0.134577
  18  16.8586
  19  2.12233
  20  0.238201
  21  0.128203
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  0.000e+00  1.420e-05  0.000e+00  1.000e+06 ( 1.000e-13)
344        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.047e+00  1.282e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  8.934e-01  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 346.922 14.864
Photon Flux Upper Limit: 7.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253731/likelihoodResults_683856001_684115201_4FGL_J2307.6+1451_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): 102
logL (Free Index) = 7548.6513897
delta logL = -0.138750226723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7548.51220553
delta logL = 0.000433940351286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19552       1.0000          .0000       .10000E+07
     2 'Index     '    1.2161       1.0000          .0000       10.000    
     3 'Normalizat'    .89367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7548.512     FROM MIGRAD    STATUS=FAILED       111 CALLS      279 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17098        143.43        .38950E-03** at limit **
   2  Index         1.1896        5.9889        .65347E-01   -.15593E-03
   3  Normalizat    .89368        .25149        .37713E-03   -.44012E-05
   4  Prefactor     1.0472        .14743        .20238E-03   -.56737E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7548.512     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      368 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17098        143.43        .12076E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1896        5.9889        .56801E-02   -.86652    
   3  Normalizat    .89368        .25149        .10129E-03   -.96683    
   4  Prefactor     1.0472        .14743        .26453E-04   -.91174    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7548.512     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      400 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17099        46.129        .77900E-04** at limit **
   2  Index         1.1896        5.4324        .13069E-01   -.62704E-05
   3  Normalizat    .89368        .25103        .15085E-04   -.39189E-05
   4  Prefactor     1.0472        .14617        .80952E-05   -.58984E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.17099
  Index      = 1.18959
  Normalizat = 0.893681
  Prefactor  = 1.04715
 **********
 **   18 **HESSE 
 **********

 FCN=   7548.512     FROM HESSE     STATUS=OK            27 CALLS      427 TOTAL
                     EDM=   .32E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17099        46.232        .31160E-05   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1896        5.4315        .26139E-02   -.86652    
   3  Normalizat    .89368        .25046        .30170E-05   -.96683    
   4  Prefactor     1.0472        .14579        .16190E-05   -.91174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20314e-14
Minuit parameter uncertainties:
  1  5.62328
  2  3.45656
  3  0.250791
  4  0.145849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253731': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7548.51216561
delta logL = 0.000473858503938

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.710e-01  5.623e+00  0.000e+00  1.000e+06 ( 1.000e-13)
344        Index:  1.190e+00  3.457e+00  0.000e+00  1.000e+01 (-1.000e+00)
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.047e+00  1.458e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  8.937e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 346.922 14.864

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/253731/cmap_HighResolution_683856001_684115201_4FGL_J2307.6+1451_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-03', job_status='DONE', photon_flux_upper_limit='7.36e-08', time_completed='2022-09-17 00:33:07.171638', job_id='253731', GAL2='1.05', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1663399987.17', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='4.74e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1715' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 17 00:33:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 253731: <4FGL_J2307.6+1451_daily_bin1715> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 17 00:20:29 2022
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 00:21:29 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:29 2022
Terminated at Sat Sep 17 00:33:08 2022
Results reported at Sat Sep 17 00:33:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1715 346.922 14.8644 683856001 684115201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2307.6+1451 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   629.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            759 sec.

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

