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


Performing analysis on: 4FGL_J1058.6+2817_daily_bin1773
RA = 164.65, Dec = 28.2866
tmin = 698889601, tmax = 699148801
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='786510', job_status='RUN', time_executed='2023-02-27 09:34:45.222744', time_epoch_executed='1677519285.22' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/786510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/786510/ft1_4FGL_J1058.6+2817_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/786510/ft2_4FGL_J1058.6+2817_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/786510/ft1_4FGL_J1058.6+2817_daily_bin1773.fits outfile=/scratch/kocevski/786510/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin1773.fits ra=164.65 dec=28.2866 rad=12.0 tmin=698889601.0 tmax=699148801.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.90
user 2.70
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/786510/ft2_4FGL_J1058.6+2817_daily_bin1773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/786510/ft2_4FGL_J1058.6+2817_daily_bin1773.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/786510/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/786510/ft1_filtered_4FGL_J1058.6+2817_daily_bin1773.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.48
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 6

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/786510/ft1_filtered_4FGL_J1058.6+2817_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/786510/ft2_4FGL_J1058.6+2817_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/786510/ltcube_698889601_699148801_4FGL_J1058.6+2817_daily_bin1773.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/786510/ft2_4FGL_J1058.6+2817_daily_bin1773.fits
.....................!
real 13.95
user 13.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/786510/ft1_filtered_4FGL_J1058.6+2817_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/786510/ft2_4FGL_J1058.6+2817_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/786510/ltcube_698889601_699148801_4FGL_J1058.6+2817_daily_bin1773.fits outfile=/scratch/kocevski/786510/expmap_698889601_699148801_4FGL_J1058.6+2817_daily_bin1773.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/786510/ltcube_698889601_699148801_4FGL_J1058.6+2817_daily_bin1773.fits
.....................!
real 190.20
user 185.26
sys 4.61

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

Setting source of interest to:
4FGL J1058.6+2817 @ 164.65 28.2866

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/786510/ft1_filtered_4FGL_J1058.6+2817_daily_bin1773.fits scfile=/scratch/kocevski/786510/ft2_4FGL_J1058.6+2817_daily_bin1773.fits outfile=/scratch/kocevski/786510/cmap_698889601_699148801_4FGL_J1058.6+2817_daily_bin1773.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.65 yref=28.2866 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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/786510/ft1_filtered_4FGL_J1058.6+2817_daily_bin1773.fits scfile=/scratch/kocevski/786510/ft2_4FGL_J1058.6+2817_daily_bin1773.fits outfile=/scratch/kocevski/786510/cmap_HighResolution_698889601_699148801_4FGL_J1058.6+2817_daily_bin1773.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.65 yref=28.2866 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/786510/ft1_filtered_4FGL_J1058.6+2817_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/786510/ft2_4FGL_J1058.6+2817_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/786510/Model_4FGL_J1058.6+2817_daily_bin1773.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/786510/ft1_filtered_4FGL_J1058.6+2817_daily_bin1773.fits......!
real 13.98
user 12.66
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/786510/ft1_filtered_4FGL_J1058.6+2817_daily_bin1773.fits', '/scratch/kocevski/786510/ft2_4FGL_J1058.6+2817_daily_bin1773.fits', expMap='/scratch/kocevski/786510/expmap_698889601_699148801_4FGL_J1058.6+2817_daily_bin1773.fits', expCube='/scratch/kocevski/786510/ltcube_698889601_699148801_4FGL_J1058.6+2817_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/786510/Model_4FGL_J1058.6+2817_daily_bin1773.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.6+2817'

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.847e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/786510/ft1_filtered_4FGL_J1058.6+2817_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/786510/ft2_4FGL_J1058.6+2817_daily_bin1773.fits
Exposure map: /scratch/kocevski/786510/expmap_698889601_699148801_4FGL_J1058.6+2817_daily_bin1773.fits
Exposure cube: /scratch/kocevski/786510/ltcube_698889601_699148801_4FGL_J1058.6+2817_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/786510/Model_4FGL_J1058.6+2817_daily_bin1773.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 80.9414712926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 80.1286919153

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6848       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.1622       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.7987       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.5719       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.9052       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.4595       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.0793       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.5940       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.0915       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.9314       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.8474       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.4351       1.0000          .0000       .10000E+07
    13 'norm      '    .70222E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .40786       1.0000          .0000       .10000E+07
    15 'Prefactor '    .14363       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14959       1.0000          .0000       .10000E+07
    17 'norm      '    17.397       1.0000          .0000       .10000E+07
    18 'Prefactor '    .61084       1.0000          .0000       .10000E+07
    19 'Prefactor '    .25159       1.0000          .0000       .10000E+07
    20 'Prefactor '    15.311       1.0000          .0000       .10000E+07
    21 'Prefactor '    4.2683       1.0000          .0000       .10000E+07
    22 'Prefactor '    .63281       1.0000          .0000       .10000E+07
    23 'Prefactor '    .67894E-01   1.0000          .0000       .10000E+07
    24 'Prefactor '    17.722       1.0000          .0000       .10000E+07
    25 'Prefactor '    .48503E-01   1.0000          .0000       .10000E+07
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88037       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   79.97063     FROM MIGRAD    STATUS=CONVERGED    186 CALLS      315 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6848        1.0017         .0000         .0000    
   2  Prefactor     1.1622        1.1510         .0000         .0000    
   3  Prefactor     1.7987        1.0451         .0000         .0000    
   4  Prefactor     4.5719        1.0061         .0000         .0000    
   5  Prefactor     7.9052        1.0020         .0000         .0000    
   6  Prefactor     2.4595        1.0223         .0000         .0000    
   7  Prefactor     1.0793        1.2055         .0000         .0000    
   8  Prefactor     1.5940        1.0604         .0000         .0000    
   9  Prefactor     1.0915        1.1949         .0000         .0000    
  10  Prefactor     5.9314        1.0036         .0000         .0000    
  11  Prefactor     2.8474        1.0163         .0000         .0000    
  12  Prefactor     2.4351        1.0228         .0000         .0000    
  13  norm          .44409E-09    4.6791       -.77501E-06** at limit **
  14  Prefactor     .11810E-04    129.56       -.14968E-06** at limit **
  15  Prefactor     .30872E-03    46.367       -.21608E-06** at limit **
  16  Prefactor     .10220E-04    181.24        .11391E-05** at limit **
  17  norm          193.87        391.54        .16584E-05   -.13190E-02
  18  Prefactor     .11563E-06    353.42       -.21505E-05** at limit **
  19  Prefactor     .59102E-05    148.86        .21583E-05** at limit **
  20  Prefactor     11.805        21.146       -.12307E-06   -.19904E-01
  21  Prefactor     .15488E-07    449.29       -.22183E-05** at limit **
  22  Prefactor     .17923E-05    75.591        .12043E-06** at limit **
  23  Prefactor     .10880E-07    46.054        .28846E-05** at limit **
  24  Prefactor     16.945        32.150        .69577E-08   -.34267E-01
  25  Prefactor     .48683E-07    263.42        .24369E-05** at limit **
  26  Normalizat    .10000E-01    .66545        .15737E-04** at limit **
  27  Prefactor     .75910        .74363        .12310E-04    .14788E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.68484
  Prefactor  = 1.16222
  Prefactor  = 1.79868
  Prefactor  = 4.57191
  Prefactor  = 7.9052
  Prefactor  = 2.45949
  Prefactor  = 1.07935
  Prefactor  = 1.59403
  Prefactor  = 1.09146
  Prefactor  = 5.93142
  Prefactor  = 2.84744
  Prefactor  = 2.43507
  norm       = 4.44089e-10
  Prefactor  = 1.18104e-05
  Prefactor  = 0.000308718
  Prefactor  = 1.022e-05
  norm       = 193.874
  Prefactor  = 1.1563e-07
  Prefactor  = 5.91016e-06
  Prefactor  = 11.8045
  Prefactor  = 1.54876e-08
  Prefactor  = 1.79229e-06
  Prefactor  = 1.08802e-08
  Prefactor  = 16.9448
  Prefactor  = 4.86833e-08
  Normalizat = 0.01
  Prefactor  = 0.759098
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   79.97063     FROM HESSE     STATUS=FAILED        11 CALLS      326 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27631.        27622.         .0000       -1.5649    
   2  Prefactor     1.1622        1.1510         .0000       -1.5686    
   3  Prefactor     1.7987        1.0451         .0000       -1.5681    
   4  Prefactor     4.5719        1.0061         .0000       -1.5665    
   5  Prefactor     7.9052        1.0020         .0000       -1.5652    
   6  Prefactor     2.4595        1.0223         .0000       -1.5677    
   7  Prefactor     1.0793        1.2055         .0000       -1.5687    
   8  Prefactor     1.5940        1.0604         .0000       -1.5683    
   9  Prefactor     1.0915        1.1949         .0000       -1.5687    
  10  Prefactor     5.9314        1.0036         .0000       -1.5659    
  11  Prefactor     2.8474        1.0163         .0000       -1.5674    
  12  Prefactor     2.4351        1.0228         .0000       -1.5677    
  13  norm          .44409E-09    .44347E-01   -.77501E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11810E-04    .19617       -.14968E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .30872E-03    .41474       -.21608E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10220E-04    .40654        .11391E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          193.87        3.3393        .16584E-05   -1.5429    
  18  Prefactor     .11563E-06    .11649       -.21505E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .59102E-05    .29819        .21583E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.805        .87852       -.12307E-06   -1.5639    
  21  Prefactor     .15488E-07    .59398E-01   -.22183E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .17923E-05    .11002        .12043E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10880E-07    .55415        .28846E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.945        .97820        .69577E-08   -1.5626    
  25  Prefactor     .48683E-07    .60845        .24369E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .25765        .15737E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .75910        1.1462        .12310E-04   -1.0125    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.55058e-09
Minuit parameter uncertainties:
  1  1.00167
  2  1.15103
  3  1.04507
  4  1.00611
  5  1.00201
  6  1.02232
  7  1.20546
  8  1.06037
  9  1.19492
  10  1.0036
  11  1.01631
  12  1.02281
  13  8.64526e-06
  14  0.00304422
  15  0.0226308
  16  0.00407671
  17  3.33934
  18  0.000232148
  19  0.00265507
  20  0.878521
  21  6.06619e-05
  22  0.000888132
  23  0.000155292
  24  0.978205
  25  0.000344183
  26  2.14956e-07
  27  1.18533
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 79.9706305118

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.847e+00  1.016e+00  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  7.591e-01  1.185e+00  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.000e-02  2.150e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 1000000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.00
Ra Dec: 164.650 28.287
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.63e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/786510/likelihoodResults_698889601_699148801_4FGL_J1058.6+2817_daily_bin1773.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): 101
logL (Free Index) = 79.9990064015
delta logL = -0.0283758896922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 79.9990064015
delta logL = -0.0283758896922

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.2259       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   79.99901     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.2259        1.0144        .24633         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.22588
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   79.99901     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .54816        1.7615        .24633       -.58815    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.02469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/786510': 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) = 79.9990064015
delta logL = -0.0283758896922

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.847e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13) fixed
234        Index:  2.226e+00  1.025e+00  0.000e+00  1.000e+01 (-1.000e+00)
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  7.547e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.00
Ra Dec: 164.650 28.287

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/786510/cmap_HighResolution_698889601_699148801_4FGL_J1058.6+2817_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.63e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2023-02-27 09:42:03.679153', job_id='786510', GAL2='0.75', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677519723.68', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.76', dlogl='-2.84e-02', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1773' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 09:42:03 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 786510: <4FGL_J1058.6+2817_daily_bin1773> in cluster <slac> Done

Job <4FGL_J1058.6+2817_daily_bin1773> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Feb 27 09:30:11 2023
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 09:30:12 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 09:30:12 2023
Terminated at Mon Feb 27 09:42:29 2023
Results reported at Mon Feb 27 09:42:29 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin1773 164.65 28.2866 698889601 699148801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.6+2817 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   318.05 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             145.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            837 sec.

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

