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


Performing analysis on: 4FGL_J1058.6+2817_daily_bin1718
RA = 164.65, Dec = 28.2866
tmin = 684633601, tmax = 684892801
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='97621', job_status='RUN', time_executed='2022-09-16 15:39:00.143821', time_epoch_executed='1663367940.14' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97621/ft1_4FGL_J1058.6+2817_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97621/ft2_4FGL_J1058.6+2817_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97621/ft1_4FGL_J1058.6+2817_daily_bin1718.fits outfile=/scratch/kocevski/97621/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin1718.fits ra=164.65 dec=28.2866 rad=12.0 tmin=684633601.0 tmax=684892801.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.20
user 2.97
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/97621/ft2_4FGL_J1058.6+2817_daily_bin1718.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/97621/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/97621/ft1_filtered_4FGL_J1058.6+2817_daily_bin1718.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 109

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97621/ft1_filtered_4FGL_J1058.6+2817_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/97621/ft2_4FGL_J1058.6+2817_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/97621/ltcube_684633601_684892801_4FGL_J1058.6+2817_daily_bin1718.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/97621/ft2_4FGL_J1058.6+2817_daily_bin1718.fits
.....................!
real 15.75
user 15.35
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97621/ft1_filtered_4FGL_J1058.6+2817_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/97621/ft2_4FGL_J1058.6+2817_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/97621/ltcube_684633601_684892801_4FGL_J1058.6+2817_daily_bin1718.fits outfile=/scratch/kocevski/97621/expmap_684633601_684892801_4FGL_J1058.6+2817_daily_bin1718.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/97621/ltcube_684633601_684892801_4FGL_J1058.6+2817_daily_bin1718.fits
.....................!
real 193.48
user 187.69
sys 5.42

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/97621/ft1_filtered_4FGL_J1058.6+2817_daily_bin1718.fits scfile=/scratch/kocevski/97621/ft2_4FGL_J1058.6+2817_daily_bin1718.fits outfile=/scratch/kocevski/97621/cmap_684633601_684892801_4FGL_J1058.6+2817_daily_bin1718.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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97621/ft1_filtered_4FGL_J1058.6+2817_daily_bin1718.fits scfile=/scratch/kocevski/97621/ft2_4FGL_J1058.6+2817_daily_bin1718.fits outfile=/scratch/kocevski/97621/cmap_HighResolution_684633601_684892801_4FGL_J1058.6+2817_daily_bin1718.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/97621/ft1_filtered_4FGL_J1058.6+2817_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/97621/ft2_4FGL_J1058.6+2817_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/97621/Model_4FGL_J1058.6+2817_daily_bin1718.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/97621/ft1_filtered_4FGL_J1058.6+2817_daily_bin1718.fits......................!
real 22.71
user 21.39
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/97621/ft1_filtered_4FGL_J1058.6+2817_daily_bin1718.fits', '/scratch/kocevski/97621/ft2_4FGL_J1058.6+2817_daily_bin1718.fits', expMap='/scratch/kocevski/97621/expmap_684633601_684892801_4FGL_J1058.6+2817_daily_bin1718.fits', expCube='/scratch/kocevski/97621/ltcube_684633601_684892801_4FGL_J1058.6+2817_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/97621/Model_4FGL_J1058.6+2817_daily_bin1718.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/97621/ft1_filtered_4FGL_J1058.6+2817_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/97621/ft2_4FGL_J1058.6+2817_daily_bin1718.fits
Exposure map: /scratch/kocevski/97621/expmap_684633601_684892801_4FGL_J1058.6+2817_daily_bin1718.fits
Exposure cube: /scratch/kocevski/97621/ltcube_684633601_684892801_4FGL_J1058.6+2817_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/97621/Model_4FGL_J1058.6+2817_daily_bin1718.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) = 1210.51672276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1087       1.0000          .0000       .10000E+07
     2 'Prefactor '    .48389E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .26592E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .18177E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .45573E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    30.726       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15093E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12381E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    41.196       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23273E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12834E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .65575E-02   1.0000          .0000       .10000E+07
    13 'norm      '    2.2491       1.0000          .0000       .10000E+07
    14 'Prefactor '    .92198E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    14.141       1.0000          .0000       .10000E+07
    16 'Prefactor '    .48088E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .32539E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .26227E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .43865       1.0000          .0000       .10000E+07
    20 'Prefactor '    .16653E-07   1.0000          .0000       .10000E+07
    21 'Prefactor '    .20117E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .76906E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .31123E-01   1.0000          .0000       .10000E+07
    24 'Prefactor '    .97509E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .86171E+06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0731       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=   1210.294     FROM MIGRAD    STATUS=CONVERGED    162 CALLS     2484 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3931        48.004       -.34472E-05    .72595E-03
   2  Prefactor     .55511E-10    9.0213        .10474E-05** at limit **
   3  Prefactor     .70721E-07    1.2851        .19233E-06** at limit **
   4  Prefactor     .49886E-05    29.291        .11530E-05** at limit **
   5  Prefactor     .19978E-06    5.1840       -.50122E-07** at limit **
   6  Prefactor     30.477        2.9733       -.41680E-07   -.25735E-02
   7  Prefactor      .0000        1.8242       -.88662E-07** at limit **
   8  Prefactor     .58509E-07    12.955       -.79681E-07** at limit **
   9  Prefactor     45.156        54.456       -.51188E-06   -.20327E-01
  10  Prefactor     .60907E-06    10.724        .31895E-06** at limit **
  11  Prefactor     .49405E-08    9.7943       -.91503E-07** at limit **
  12  Prefactor     .78826E-08    10.062       -.30664E-06** at limit **
  13  norm          2.2491        .77394        .64215E-08   -.79488E-03
  14  Prefactor      .0000        2.8400        .35507E-06** at limit **
  15  Prefactor     14.187        1.0937        .88107E-08   -.13055E-02
  16  Prefactor     .71604E-06    9.1962       -.35154E-06** at limit **
  17  norm          .17247E-06    6.7122       -.10957E-06** at limit **
  18  Prefactor     .16905E-05    13.841       -.79385E-07** at limit **
  19  Prefactor     .14040E-03    20.111        .15032E-06** at limit **
  20  Prefactor      .0000        3.2386       -.11045E-06** at limit **
  21  Prefactor     .17768E-04    29.580        .13068E-05** at limit **
  22  Prefactor      .0000        58.774        .34227E-06** at limit **
  23  Prefactor      .0000        64.166        .97968E-06** at limit **
  24  Prefactor     .57232E-07    3.7249        .10137E-06** at limit **
  25  Prefactor     .86171E+06    1.2505       -.17939E-10   -1.0292    
  26  Normalizat    .10000E-01    .94784E-01    .33296E-05** at limit **
  27  Prefactor     1.0692        .21935        .56256E-05    .91461E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.39305
  Prefactor  = 5.55112e-11
  Prefactor  = 7.07212e-08
  Prefactor  = 4.98862e-06
  Prefactor  = 1.99785e-07
  Prefactor  = 30.477
  Prefactor  = 0
  Prefactor  = 5.85088e-08
  Prefactor  = 45.1558
  Prefactor  = 6.09068e-07
  Prefactor  = 4.94049e-09
  Prefactor  = 7.88258e-09
  norm       = 2.24914
  Prefactor  = 0
  Prefactor  = 14.1868
  Prefactor  = 7.16038e-07
  norm       = 1.72473e-07
  Prefactor  = 1.69054e-06
  Prefactor  = 0.0001404
  Prefactor  = 0
  Prefactor  = 1.77678e-05
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.7232e-08
  Prefactor  = 861705
  Normalizat = 0.01
  Prefactor  = 1.06924
 **********
 **   18 **HESSE 
 **********

 FCN=   1210.294     FROM HESSE     STATUS=OK           530 CALLS     3014 TOTAL
                     EDM=   .18E+00    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3931        49.063        .11224E-02   -1.5684    
   2  Prefactor     .55511E-10    8.9393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .70721E-07    5.5218        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .49886E-05    57.848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .19978E-06    14.117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.477        25.089        .18043E-03   -1.5598    
   7  Prefactor      .0000        1.8345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .58509E-07    28.320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.156        55.023        .15582E-03   -1.5574    
  10  Prefactor     .60907E-06    12.930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .49405E-08    9.8100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .78826E-08    19.578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2491        .78199        .39550E-03   -1.5678    
  14  Prefactor      .0000        2.8416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.187        27.021        .26609E-03   -1.5633    
  16  Prefactor     .71604E-06    18.829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .17247E-06    14.323        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16905E-05    27.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .14040E-03    158.74        .85138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        3.2380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .17768E-04    61.654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        58.746        .14597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        64.180        .16392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .57232E-07    13.572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .86171E+06    .13874E+06    .38563E-05    .80873    
  26  Normalizat    .10000E-01    .90824E-01    .14914       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.0692        .24386        .38713E-01   -.90456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.181202
Minuit parameter uncertainties:
  1  16.5347
  2  4.25961e-05
  3  0.00124961
  4  0.0339757
  5  0.003359
  6  25.0887
  7  2.92585e-06
  8  0.00257406
  9  55.0236
  10  0.0056126
  11  0.000439395
  12  0.000786467
  13  0.781991
  14  8.39843e-06
  15  27.0215
  16  0.00734379
  17  0.00314339
  18  0.0136176
  19  0.298582
  20  3.09927e-06
  21  0.0661962
  22  4.14292e-05
  23  7.57945e-05
  24  0.00176274
  25  142779
  26  2.29235e-08
  27  0.244117
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  4.940e-09  4.394e-04  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:  1.069e+00  2.441e-01  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.292e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.05
Ra Dec: 164.650 28.287
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/97621/likelihoodResults_684633601_684892801_4FGL_J1058.6+2817_daily_bin1718.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) = 1210.29543296
delta logL = -0.00113193749985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1210.29430397
delta logL = -2.94868823403e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39296E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .44144       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0688       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. 

 FCN=   1210.294     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      291 TOTAL
                     EDM=   .47E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        11.330        .42118E-03** at limit **
   2  Index         2.1011        1.5430        .71346E-05     .0000    
   3  Normalizat    .10000E-01    .25505        .16541E-04** at limit **
   4  Prefactor     1.0692        1.1724       -.48761E-05   -.12245E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.10108
  Normalizat = 0.01
  Prefactor  = 1.06924
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1210.294     FROM HESSE     STATUS=FAILED         9 CALLS      300 TOTAL
                     EDM=   .47E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        11.330        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .48122        1.8358        .71346E-05   -.61846    
   3  Normalizat    .10000E-01    .25505        .16541E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0692        1.1724       -.48761E-05   -.90456    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.717e-12
Minuit parameter uncertainties:
  1  6.04645e-06
  2  1.58251
  3  8.9775e-07
  4  1.20252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97621': 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) = 1210.29430102
delta logL = 2.51930032391e-10

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  0.000e+00  6.046e-06  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.101e+00  1.583e+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:  1.069e+00  1.203e+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  8.977e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.05
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/97621/cmap_HighResolution_684633601_684892801_4FGL_J1058.6+2817_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2022-09-16 15:45:35.643576', job_id='97621', GAL2='1.07', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1663368335.64', return_code2='101', ts='-0.05', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.52e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1718' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:45:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 97621: <4FGL_J1058.6+2817_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1058.6+2817_daily_bin1718> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 15:35:25 2022
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:38:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:38:17 2022
Terminated at Fri Sep 16 15:45:36 2022
Results reported at Fri Sep 16 15:45:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin1718 164.65 28.2866 684633601 684892801 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 :                                   398.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             322.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   438 sec.
    Turnaround time :                            611 sec.

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

