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


Performing analysis on: 4FGL_J1058.0+4305_daily_bin1779
RA = 164.518, Dec = 43.0938
tmin = 700444801, tmax = 700704001
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='19867', job_status='RUN', time_executed='2023-03-17 01:21:05.779600', time_epoch_executed='1679041265.78' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19867/ft1_4FGL_J1058.0+4305_daily_bin1779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19867/ft2_4FGL_J1058.0+4305_daily_bin1779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19867/ft1_4FGL_J1058.0+4305_daily_bin1779.fits outfile=/scratch/kocevski/19867/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1779.fits ra=164.518 dec=43.0938 rad=12.0 tmin=700444801.0 tmax=700704001.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 5.28
user 5.02
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/19867/ft2_4FGL_J1058.0+4305_daily_bin1779.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19867/ft2_4FGL_J1058.0+4305_daily_bin1779.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/19867/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1779.fits evtable="EVENTS" outfile="/scratch/kocevski/19867/ft1_filtered_4FGL_J1058.0+4305_daily_bin1779.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.31
sys 0.17

Number of photons that the gtmktime cut: 499

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19867/ft1_filtered_4FGL_J1058.0+4305_daily_bin1779.fits" evtable="EVENTS" scfile=/scratch/kocevski/19867/ft2_4FGL_J1058.0+4305_daily_bin1779.fits sctable="SC_DATA" outfile=/scratch/kocevski/19867/ltcube_700444801_700704001_4FGL_J1058.0+4305_daily_bin1779.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/19867/ft2_4FGL_J1058.0+4305_daily_bin1779.fits
.....................!
real 11.69
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19867/ft1_filtered_4FGL_J1058.0+4305_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/19867/ft2_4FGL_J1058.0+4305_daily_bin1779.fits sctable="SC_DATA" expcube=/scratch/kocevski/19867/ltcube_700444801_700704001_4FGL_J1058.0+4305_daily_bin1779.fits outfile=/scratch/kocevski/19867/expmap_700444801_700704001_4FGL_J1058.0+4305_daily_bin1779.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/19867/ltcube_700444801_700704001_4FGL_J1058.0+4305_daily_bin1779.fits
.....................!
real 190.38
user 184.83
sys 5.22

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

Setting source of interest to:
4FGL J1058.0+4305 @ 164.518 43.0938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/19867/ft1_filtered_4FGL_J1058.0+4305_daily_bin1779.fits scfile=/scratch/kocevski/19867/ft2_4FGL_J1058.0+4305_daily_bin1779.fits outfile=/scratch/kocevski/19867/cmap_700444801_700704001_4FGL_J1058.0+4305_daily_bin1779.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=164.518 yref=43.0938 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19867/ft1_filtered_4FGL_J1058.0+4305_daily_bin1779.fits scfile=/scratch/kocevski/19867/ft2_4FGL_J1058.0+4305_daily_bin1779.fits outfile=/scratch/kocevski/19867/cmap_HighResolution_700444801_700704001_4FGL_J1058.0+4305_daily_bin1779.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=164.518 yref=43.0938 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19867/ft1_filtered_4FGL_J1058.0+4305_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/19867/ft2_4FGL_J1058.0+4305_daily_bin1779.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19867/Model_4FGL_J1058.0+4305_daily_bin1779.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/19867/ft1_filtered_4FGL_J1058.0+4305_daily_bin1779.fits.....................!
real 51.25
user 49.95
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/19867/ft1_filtered_4FGL_J1058.0+4305_daily_bin1779.fits', '/scratch/kocevski/19867/ft2_4FGL_J1058.0+4305_daily_bin1779.fits', expMap='/scratch/kocevski/19867/expmap_700444801_700704001_4FGL_J1058.0+4305_daily_bin1779.fits', expCube='/scratch/kocevski/19867/ltcube_700444801_700704001_4FGL_J1058.0+4305_daily_bin1779.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/19867/Model_4FGL_J1058.0+4305_daily_bin1779.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.0+4305'

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  7.092e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/19867/ft1_filtered_4FGL_J1058.0+4305_daily_bin1779.fits
Spacecraft file(s): /scratch/kocevski/19867/ft2_4FGL_J1058.0+4305_daily_bin1779.fits
Exposure map: /scratch/kocevski/19867/expmap_700444801_700704001_4FGL_J1058.0+4305_daily_bin1779.fits
Exposure cube: /scratch/kocevski/19867/ltcube_700444801_700704001_4FGL_J1058.0+4305_daily_bin1779.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/19867/Model_4FGL_J1058.0+4305_daily_bin1779.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) = 5500.31986916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6142       1.0000          .0000       .10000E+07
     2 'Prefactor '    .16142E-03   1.0000          .0000       .10000E+07
     3 'norm      '    1.0134       1.0000          .0000       .10000E+07
     4 'Prefactor '    .38218       1.0000          .0000       .10000E+07
     5 'norm      '    .36874E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    36.897       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.2846       1.0000          .0000       .10000E+07
     8 'Prefactor '    13.230       1.0000          .0000       .10000E+07
     9 'Prefactor '    .30144E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    51.984       1.0000          .0000       .10000E+07
    11 'norm      '    2.4911       1.0000          .0000       .10000E+07
    12 'Prefactor '    .67924E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14987E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    69.647       1.0000          .0000       .10000E+07
    15 'norm      '    .63542E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .25197E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .34905E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    5.2707       1.0000          .0000       .10000E+07
    19 'norm      '    4.7238       1.0000          .0000       .10000E+07
    20 'Prefactor '    .97036       1.0000          .0000       .10000E+07
    21 'Prefactor '    26.939       1.0000          .0000       .10000E+07
    22 'norm      '    .22445       1.0000          .0000       .10000E+07
    23 'norm      '    .20092E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .13928E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    49.502       1.0000          .0000       .10000E+07
    26 'Prefactor '    16.008       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.5811       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .33520       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5500.286     FROM MIGRAD    STATUS=CONVERGED    225 CALLS     2638 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6285        8.3619        .84496E-07    .13295E-03
   2  Prefactor     .55511E-10    3.1097       -.70658E-07** at limit **
   3  norm          1.0092        2.8613        .79802E-07    .76500E-05
   4  Prefactor     .34451        13.344       -.66862E-07   -.14944E-03
   5  norm          .55511E-10    4.8006       -.18635E-07** at limit **
   6  Prefactor     36.870        9.9532       -.10166E-07   -.67150E-01
   7  Prefactor     1.3007        4.5945        .64468E-07    .12800E-03
   8  Prefactor     13.363        20.654        .57266E-08   -.10090    
   9  Prefactor     .55511E-10    26.488       -.24149E-06** at limit **
  10  Prefactor     52.813        31.918       -.94534E-07   -.21787    
  11  norm          2.4913        .46312       -.14621E-07   -.15627E-01
  12  Prefactor     .86042E-08    19.335       -.74707E-07** at limit **
  13  Prefactor     .15874E-03    108.36        .26288E-07** at limit **
  14  Prefactor     71.493        85.161        .30507E-06   -.12293    
  15  norm          .55511E-10    8.9071        .12782E-06** at limit **
  16  norm           .0000        14.751        .49104E-06** at limit **
  17  Prefactor      .0000        4.4055        .69621E-07** at limit **
  18  Prefactor     9.7758        97.298        .15524E-06    .15827E-01
  19  norm          4.4633        4.8569       -.68954E-07   -.28191E-02
  20  Prefactor     .91858        2.1143        .33122E-07    .21328E-01
  21  Prefactor     30.552        41.737        .36540E-07    .51254E-02
  22  norm          .21247        2.0086        .39770E-06** at limit **
  23  norm          .55511E-10    5.1312       -.15210E-07** at limit **
  24  Prefactor     .55511E-10    5.6129       -.70285E-08** at limit **
  25  Prefactor     47.489        31.421       -.13021E-06   -.75361E-01
  26  Prefactor     16.406        29.361        .98659E-07    .13009E-01
  27  Normalizat    1.5780        .22150       -.92523E-06    .25965E-05
  28  Prefactor     .33690        .24654        .44963E-06    .19122E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.62853
  Prefactor  = 5.55112e-11
  norm       = 1.00919
  Prefactor  = 0.344513
  norm       = 5.55112e-11
  Prefactor  = 36.8703
  Prefactor  = 1.30067
  Prefactor  = 13.3627
  Prefactor  = 5.55112e-11
  Prefactor  = 52.8125
  norm       = 2.49126
  Prefactor  = 8.60423e-09
  Prefactor  = 0.000158738
  Prefactor  = 71.4926
  norm       = 5.55112e-11
  norm       = 0
  Prefactor  = 0
  Prefactor  = 9.77584
  norm       = 4.46329
  Prefactor  = 0.918584
  Prefactor  = 30.5522
  norm       = 0.212466
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 47.4888
  Prefactor  = 16.4061
  Normalizat = 1.57798
  Prefactor  = 0.336905
 **********
 **   18 **HESSE 
 **********

 FCN=   5500.286     FROM HESSE     STATUS=OK           593 CALLS     3231 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6285        8.3448        .46833E-03   -1.5665    
   2  Prefactor     .55511E-10    3.1098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0092        2.8788        .44237E-03   -1.5688    
   4  Prefactor     .34451        4.3664        .47143E-02   -1.5696    
   5  norm          .55511E-10    4.7770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.870        30.208        .16465E-03   -1.5587    
   7  Prefactor     1.3007        4.6108        .97804E-03   -1.5685    
   8  Prefactor     13.363        24.030        .27513E-03   -1.5635    
   9  Prefactor     .55511E-10    26.515        .16443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     52.813        59.475        .13871E-03   -1.5563    
  11  norm          2.4913        .47948        .47445E-03   -1.5676    
  12  Prefactor     .86042E-08    19.677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .15874E-03    10.861        .13067E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     71.493        104.08        .11983E-03   -1.5539    
  15  norm          .55511E-10    8.8812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        14.753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        4.3923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.7758        162.85        .43757E-03   -1.5645    
  19  norm          4.4633        5.2997        .46273E-03   -1.5666    
  20  Prefactor     .91858        19.984        .42713E-03   -1.5689    
  21  Prefactor     30.552        78.448        .19270E-03   -1.5597    
  22  norm          .21247        2.8019        .25213E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .55511E-10    5.1371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .55511E-10    5.5757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     47.489        87.350        .14214E-03   -1.5570    
  26  Prefactor     16.406        29.968        .25006E-03   -1.5627    
  27  Normalizat    1.5780        .21313        .45532E-01   -.75610    
  28  Prefactor     .33690        .24324        .10714       -1.2016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.19095e-06
Minuit parameter uncertainties:
  1  8.34482
  2  2.70208e-05
  3  2.87884
  4  2.45298
  5  3.65261e-05
  6  30.2082
  7  4.61085
  8  24.0306
  9  8.79431e-05
  10  59.4753
  11  0.479482
  12  0.000822484
  13  0.0830452
  14  104.08
  15  5.34182e-05
  16  1.19623e-05
  17  1.55234e-05
  18  79.8025
  19  5.29968
  20  8.56906
  21  78.4508
  22  1.54311
  23  4.12002e-05
  24  3.18188e-05
  25  87.3519
  26  29.968
  27  0.213251
  28  0.243984
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  5.551e-11  8.794e-05  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  3.369e-01  2.440e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.578e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.518 43.094
Photon Flux Upper Limit: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19867/likelihoodResults_700444801_700704001_4FGL_J1058.0+4305_daily_bin1779.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) = 5500.30423656
delta logL = -0.0179812942069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5500.28625548
delta logL = -2.16455191548e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39818E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.9169       1.0000          .0000       10.000    
     3 'Normalizat'    1.5781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .33690       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5500.286     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      247 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    .13383        .42118E-03** at limit **
   2  Index         2.9841        5.0580        .50000        .10004E-08
   3  Normalizat    1.5780        .50390E-03    .45532E-01    .12672E-02
   4  Prefactor     .33690        .59039E-03    .10714        .32806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  Index      = 2.98411
  Normalizat = 1.57799
  Prefactor  = 0.336898
 **********
 **   18 **HESSE 
 **********

 FCN=   5500.286     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    .69219        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9841        6.2807        .50000       -.41499    
   3  Normalizat    1.5780        .11457E-02    .20125E-03   -.75610    
   4  Prefactor     .33690        .13381E-02    .47491E-03   -1.2016    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.07482e-11
Minuit parameter uncertainties:
  1  8.72926e-05
  2  3750.4
  3  0.0011457
  4  0.00133809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19867': 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) = 5500.28625526
delta logL = -1.10958353616e-09

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  2.776e-09  8.729e-05  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.984e+00  3.750e+03  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  3.369e-01  1.338e-03  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.578e+00  1.146e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.518 43.094

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/19867/cmap_HighResolution_700444801_700704001_4FGL_J1058.0+4305_daily_bin1779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-03', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2023-03-17 01:33:25.147731', job_id='19867', GAL2='0.34', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1679042005.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.34', dlogl='-1.11e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1779' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 17 01:33:25 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 19867: <4FGL_J1058.0+4305_daily_bin1779> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1779> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Mar 17 01:20:20 2023
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 17 01:20:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 17 01:20:21 2023
Terminated at Fri Mar 17 01:33:25 2023
Results reported at Fri Mar 17 01:33:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1779 164.518 43.0938 700444801 700704001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.0+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   741.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

