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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1745
RA = 224.673, Dec = 37.3726
tmin = 691632001, tmax = 691891201
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='649127', job_status='RUN', time_executed='2022-12-05 00:51:24.799471', time_epoch_executed='1670230284.8' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649127

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649127/ft1_4FGL_J1458.6+3722_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649127/ft2_4FGL_J1458.6+3722_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649127/ft1_4FGL_J1458.6+3722_daily_bin1745.fits outfile=/scratch/kocevski/649127/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1745.fits ra=224.673 dec=37.3726 rad=12.0 tmin=691632001.0 tmax=691891201.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.37
user 2.18
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/649127/ft2_4FGL_J1458.6+3722_daily_bin1745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/649127/ft2_4FGL_J1458.6+3722_daily_bin1745.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/649127/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/649127/ft1_filtered_4FGL_J1458.6+3722_daily_bin1745.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.49
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 1020

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649127/ft1_filtered_4FGL_J1458.6+3722_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/649127/ft2_4FGL_J1458.6+3722_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/649127/ltcube_691632001_691891201_4FGL_J1458.6+3722_daily_bin1745.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/649127/ft2_4FGL_J1458.6+3722_daily_bin1745.fits
.....................!
real 12.43
user 12.03
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649127/ft1_filtered_4FGL_J1458.6+3722_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/649127/ft2_4FGL_J1458.6+3722_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/649127/ltcube_691632001_691891201_4FGL_J1458.6+3722_daily_bin1745.fits outfile=/scratch/kocevski/649127/expmap_691632001_691891201_4FGL_J1458.6+3722_daily_bin1745.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/649127/ltcube_691632001_691891201_4FGL_J1458.6+3722_daily_bin1745.fits
.....................!
real 191.94
user 187.20
sys 4.40

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

Setting source of interest to:
4FGL J1458.6+3722 @ 224.673 37.3726

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/649127/ft1_filtered_4FGL_J1458.6+3722_daily_bin1745.fits scfile=/scratch/kocevski/649127/ft2_4FGL_J1458.6+3722_daily_bin1745.fits outfile=/scratch/kocevski/649127/cmap_691632001_691891201_4FGL_J1458.6+3722_daily_bin1745.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=224.673 yref=37.3726 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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649127/ft1_filtered_4FGL_J1458.6+3722_daily_bin1745.fits scfile=/scratch/kocevski/649127/ft2_4FGL_J1458.6+3722_daily_bin1745.fits outfile=/scratch/kocevski/649127/cmap_HighResolution_691632001_691891201_4FGL_J1458.6+3722_daily_bin1745.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=224.673 yref=37.3726 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/649127/ft1_filtered_4FGL_J1458.6+3722_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/649127/ft2_4FGL_J1458.6+3722_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649127/Model_4FGL_J1458.6+3722_daily_bin1745.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/649127/ft1_filtered_4FGL_J1458.6+3722_daily_bin1745.fits....................!
real 75.55
user 74.18
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/649127/ft1_filtered_4FGL_J1458.6+3722_daily_bin1745.fits', '/scratch/kocevski/649127/ft2_4FGL_J1458.6+3722_daily_bin1745.fits', expMap='/scratch/kocevski/649127/expmap_691632001_691891201_4FGL_J1458.6+3722_daily_bin1745.fits', expCube='/scratch/kocevski/649127/ltcube_691632001_691891201_4FGL_J1458.6+3722_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/649127/Model_4FGL_J1458.6+3722_daily_bin1745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1458.6+3722'

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.413e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.185e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/649127/ft1_filtered_4FGL_J1458.6+3722_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/649127/ft2_4FGL_J1458.6+3722_daily_bin1745.fits
Exposure map: /scratch/kocevski/649127/expmap_691632001_691891201_4FGL_J1458.6+3722_daily_bin1745.fits
Exposure cube: /scratch/kocevski/649127/ltcube_691632001_691891201_4FGL_J1458.6+3722_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/649127/Model_4FGL_J1458.6+3722_daily_bin1745.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) = 10813.3213546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77371E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .70775E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .23317E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .40107E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    38.210       1.0000          .0000       .10000E+07
     6 'Prefactor '    70.270       1.0000          .0000       .10000E+07
     7 'norm      '    .33372E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .11733E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    50.631       1.0000          .0000       .10000E+07
    10 'norm      '    5.4823       1.0000          .0000       .10000E+07
    11 'Prefactor '    .32253E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .28083E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.9998       1.0000          .0000       .10000E+07
    14 'norm      '    .61390       1.0000          .0000       .10000E+07
    15 'norm      '    .79151E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    1.0917       1.0000          .0000       .10000E+07
    17 'Prefactor '    .14214E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .42117E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.5029       1.0000          .0000       .10000E+07
    20 'norm      '    .57510E-07   1.0000          .0000       .10000E+07
    21 'Prefactor '    .25073E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    12.009       1.0000          .0000       .10000E+07
    23 'norm      '    .12870E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    .41744E-07   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0663       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99608       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10809.81     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1370 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10547E-08    4.5398        .97014E-07** at limit **
   2  Prefactor     .93725E-06    6.8579        .73526E-07** at limit **
   3  norm          .21272E-06    .82966        .62514E-07** at limit **
   4  Prefactor     .73619E-06    11.171        .22121E-06** at limit **
   5  Prefactor     37.987        7.3312       -.27551E-07   -.60235E-01
   6  Prefactor     70.184        7.0409       -.57526E-08    .29208E-02
   7  norm          .65503E-08    2.8869       -.14519E-08** at limit **
   8  norm          .95679E-06    199.92       -.59389E-06** at limit **
   9  Prefactor     50.607        3.3436       -.32411E-08   -.13558    
  10  norm          5.4857        4.5540        .44164E-07    .39492E-02
  11  Prefactor     .25430E-06    7.5483       -.67653E-07** at limit **
  12  Prefactor     .33862E-08    1.3372       -.59134E-08** at limit **
  13  Prefactor     1.9987        2.2177       -.10791E-07   -.69036E-03
  14  norm          .61398        .76313        .41680E-08    .43617E-02
  15  norm           .0000        1.1864        .42741E-07** at limit **
  16  Prefactor     1.0496        3.6808        .12111E-07    .56941E-03
  17  Prefactor     .15850E-05    6.1461        .15547E-06** at limit **
  18  Prefactor     .33917E-07    6.6080       -.29223E-07** at limit **
  19  Prefactor     2.4633        5.5304       -.10239E-06   -.20446E-02
  20  norm           .0000        .94344       -.13977E-07** at limit **
  21  Prefactor     .55511E-10    2.6894        .10867E-07** at limit **
  22  Prefactor     12.047        1.0652       -.24555E-08   -.13827E-02
  23  norm          .22204E-08    2.9885       -.16848E-07** at limit **
  24  Prefactor     .18430E-07    2.1500       -.59998E-08** at limit **
  25  Normalizat    1.0673        .16696        .21677E-05    .71630E-03
  26  Prefactor     .99572        .17046       -.61682E-06    .55683E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05471e-09
  Prefactor  = 9.3725e-07
  norm       = 2.12719e-07
  Prefactor  = 7.36189e-07
  Prefactor  = 37.9868
  Prefactor  = 70.1838
  norm       = 6.55032e-09
  norm       = 9.5679e-07
  Prefactor  = 50.6067
  norm       = 5.48574
  Prefactor  = 2.54297e-07
  Prefactor  = 3.38618e-09
  Prefactor  = 1.9987
  norm       = 0.613976
  norm       = 0
  Prefactor  = 1.04956
  Prefactor  = 1.58501e-06
  Prefactor  = 3.39173e-08
  Prefactor  = 2.46327
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 12.0468
  norm       = 2.22045e-09
  Prefactor  = 1.84297e-08
  Normalizat = 1.06733
  Prefactor  = 0.995723
 **********
 **   18 **HESSE 
 **********

 FCN=   10809.81     FROM HESSE     STATUS=OK           524 CALLS     1894 TOTAL
                     EDM=   .89E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10547E-08    4.5705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .93725E-06    10.912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .21272E-06    1.8222        .51790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .73619E-06    14.814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.987        16.245        .16179E-03   -1.5585    
   6  Prefactor     70.184        7.0993        .11930E-03   -1.5540    
   7  norm          .65503E-08    2.9599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .95679E-06    3.6248        .58428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.607        30.322        .14055E-03   -1.5566    
  10  norm          5.4857        4.5586        .42889E-03   -1.5661    
  11  Prefactor     .25430E-06    8.2647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .33862E-08    3.2660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9987        2.2225        .73209E-03   -1.5680    
  14  norm          .61398        .77635        .67992E-03   -1.5692    
  15  norm           .0000        1.1810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0496        3.7970        .11434E-02   -1.5687    
  17  Prefactor     .15850E-05    12.642        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .33917E-07    6.7497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4633        5.6237        .64567E-03   -1.5677    
  20  norm           .0000        .32233        .19449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-10    2.6942        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.047        16.097        .28881E-03   -1.5639    
  23  norm          .22204E-08    3.3215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .18430E-07    3.0640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0673        .14226        .56982E-01   -.90808    
  26  Prefactor     .99572        .14186        .46218E-01   -.92872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92534e-07
Minuit parameter uncertainties:
  1  0.000137666
  2  0.00639612
  3  0.00124525
  4  0.0066048
  5  16.2449
  6  7.09927
  7  0.000278059
  8  0.00372455
  9  30.3223
  10  4.55859
  11  0.00289938
  12  0.000209573
  13  2.2225
  14  0.776351
  15  1.10023e-05
  16  3.79704
  17  0.00895265
  18  0.000957184
  19  5.62368
  20  2.47019e-06
  21  2.00614e-05
  22  16.0969
  23  0.00017095
  24  0.000475547
  25  0.142311
  26  0.141914
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  3.386e-09  2.096e-04  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.185e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.957e-01  1.419e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.067e+00  1.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 224.673 37.373
Photon Flux Upper Limit: 4.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649127/likelihoodResults_691632001_691891201_4FGL_J1458.6+3722_daily_bin1745.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) = 10809.8125253
delta logL = -0.000561417287827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10809.8119639
delta logL = -1.14050635602e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83267E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.1834       1.0000          .0000       10.000    
     3 'Normalizat'    1.0673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10809.81     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      255 TOTAL
                     EDM=   .98E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .21264        .30594E-02** at limit **
   2  Index         3.4070        1.6267       -.43537E-04     .0000    
   3  Normalizat    1.0673        1.1832        .20988E-05   -.42657E-04
   4  Prefactor     .99572        1.3350       -.26056E-05   -.23972E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.407
  Normalizat = 1.06732
  Prefactor  = 0.995724
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10809.81     FROM HESSE     STATUS=FAILED         9 CALLS      264 TOTAL
                     EDM=   .98E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .21264        .30594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2960        2.2077       -.43537E-04   -.32425    
   3  Normalizat    1.0673        1.1832        .20988E-05   -.90808    
   4  Prefactor     .99572        1.3350       -.26056E-05   -.92872    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.78394e-13
Minuit parameter uncertainties:
  1  7.20503e-07
  2  1.66046
  3  1.21457
  4  1.38377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649127': 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) = 10809.8119639
delta logL = 6.76664058119e-10

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  0.000e+00  7.205e-07  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  3.407e+00  1.660e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.957e-01  1.384e+00  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.067e+00  1.215e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 224.673 37.373

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/649127/cmap_HighResolution_691632001_691891201_4FGL_J1458.6+3722_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-03', job_status='DONE', photon_flux_upper_limit='4.13e-08', time_completed='2022-12-05 01:04:40.856611', job_id='649127', GAL2='1.00', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1670231080.86', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='6.77e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1745' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:04:40 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 649127: <4FGL_J1458.6+3722_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin1745> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Dec  5 00:50:26 2022
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:50:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:50:28 2022
Terminated at Mon Dec  5 01:04:41 2022
Results reported at Mon Dec  5 01:04:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1745 224.673 37.3726 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1458.6+3722 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   798.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

