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


Performing analysis on: 4FGL_J1058.6+2817_daily_bin1778
RA = 164.65, Dec = 28.2866
tmin = 700185601, tmax = 700444801
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='958509', job_status='RUN', time_executed='2023-03-14 00:41:27.283231', time_epoch_executed='1678779687.28' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958509

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958509/ft1_4FGL_J1058.6+2817_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958509/ft2_4FGL_J1058.6+2817_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958509/ft1_4FGL_J1058.6+2817_daily_bin1778.fits outfile=/scratch/kocevski/958509/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin1778.fits ra=164.65 dec=28.2866 rad=12.0 tmin=700185601.0 tmax=700444801.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.26
user 3.05
sys 0.18

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

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

Number of photons that the gtmktime cut: 521

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958509/ft1_filtered_4FGL_J1058.6+2817_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/958509/ft2_4FGL_J1058.6+2817_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/958509/ltcube_700185601_700444801_4FGL_J1058.6+2817_daily_bin1778.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/958509/ft2_4FGL_J1058.6+2817_daily_bin1778.fits
.....................!
real 11.70
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958509/ft1_filtered_4FGL_J1058.6+2817_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/958509/ft2_4FGL_J1058.6+2817_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/958509/ltcube_700185601_700444801_4FGL_J1058.6+2817_daily_bin1778.fits outfile=/scratch/kocevski/958509/expmap_700185601_700444801_4FGL_J1058.6+2817_daily_bin1778.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/958509/ltcube_700185601_700444801_4FGL_J1058.6+2817_daily_bin1778.fits
.....................!
real 157.88
user 152.95
sys 4.33

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/958509/ft1_filtered_4FGL_J1058.6+2817_daily_bin1778.fits scfile=/scratch/kocevski/958509/ft2_4FGL_J1058.6+2817_daily_bin1778.fits outfile=/scratch/kocevski/958509/cmap_700185601_700444801_4FGL_J1058.6+2817_daily_bin1778.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958509/ft1_filtered_4FGL_J1058.6+2817_daily_bin1778.fits scfile=/scratch/kocevski/958509/ft2_4FGL_J1058.6+2817_daily_bin1778.fits outfile=/scratch/kocevski/958509/cmap_HighResolution_700185601_700444801_4FGL_J1058.6+2817_daily_bin1778.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63283E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .84416E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.3189       1.0000          .0000       .10000E+07
     4 'Prefactor '    .91661E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    52.451       1.0000          .0000       .10000E+07
     6 'Prefactor '    .71467E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.8688       1.0000          .0000       .10000E+07
     8 'Prefactor '    .35439E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .32290E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .29161E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .36715E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    31.441       1.0000          .0000       .10000E+07
    13 'norm      '    1.8363       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.0837       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13426E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18107E-02   1.0000          .0000       .10000E+07
    17 'norm      '    13.130       1.0000          .0000       .10000E+07
    18 'Prefactor '    .13249E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .96286E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    3.3569       1.0000          .0000       .10000E+07
    21 'Prefactor '    .12906E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .95368E-07   1.0000          .0000       .10000E+07
    23 'Prefactor '    2.5006       1.0000          .0000       .10000E+07
    24 'Prefactor '    2.0315       1.0000          .0000       .10000E+07
    25 'Prefactor '    14.581       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.2055       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .80070       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=   5793.813     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     1896 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        3.3537       -.84442E-07** at limit **
   2  Prefactor      .0000        1.8405        .28268E-06** at limit **
   3  Prefactor     4.3193        4.0927        .31669E-06    .14771E-02
   4  Prefactor     .15569E-05    13.758       -.63425E-06** at limit **
   5  Prefactor     53.509        7.6230       -.87456E-07    .14494E-01
   6  Prefactor     .65448E-07    6.9362        .67647E-07** at limit **
   7  Prefactor     1.8703        2.4213        .20496E-06    .45326E-04
   8  Prefactor     .37303E-07    5.3842        .62689E-06** at limit **
   9  Prefactor     .15988E-05    11.348        .59025E-06** at limit **
  10  Prefactor     .25128E-05    27.493       -.11966E-05** at limit **
  11  Prefactor     .22204E-09    4.3238       -.18072E-06** at limit **
  12  Prefactor     31.504        4.0372        .70362E-07    .25298E-01
  13  norm          1.8364        .36576        .19874E-07    .34328E-03
  14  Prefactor     2.0880        3.1990        .65623E-07    .66478E-03
  15  Prefactor     .30809E-07    4.9854       -.11800E-06** at limit **
  16  Prefactor     .62911E-06    9.6053        .14135E-06** at limit **
  17  norm          13.147        1.1144       -.12671E-08   -.36925E-03
  18  Prefactor     .33307E-08    4.7382       -.13407E-06** at limit **
  19  Prefactor     .11403E-04    48.036        .88368E-06** at limit **
  20  Prefactor     3.3512        2.6035       -.15170E-06    .11624E-03
  21  Prefactor     .10550E-04    32.281        .18176E-05** at limit **
  22  Prefactor     .17397E-06    7.8741        .37586E-06** at limit **
  23  Prefactor     2.5154        1.3698        .13248E-07    .25894E-02
  24  Prefactor     2.1366        5.0338        .14359E-06    .42071E-03
  25  Prefactor     14.826        1.3895        .36193E-07   -.12829E-02
  26  Normalizat    1.2043        .22070        .83159E-05   -.46529E-04
  27  Prefactor     .80074        .23658       -.13170E-04   -.47461E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 4.31934
  Prefactor  = 1.55687e-06
  Prefactor  = 53.5089
  Prefactor  = 6.54476e-08
  Prefactor  = 1.87029
  Prefactor  = 3.73035e-08
  Prefactor  = 1.59883e-06
  Prefactor  = 2.51282e-06
  Prefactor  = 2.22045e-10
  Prefactor  = 31.5036
  norm       = 1.8364
  Prefactor  = 2.088
  Prefactor  = 3.08087e-08
  Prefactor  = 6.29108e-07
  norm       = 13.1469
  Prefactor  = 3.33067e-09
  Prefactor  = 1.14028e-05
  Prefactor  = 3.35118
  Prefactor  = 1.05502e-05
  Prefactor  = 1.73972e-07
  Prefactor  = 2.51543
  Prefactor  = 2.13663
  Prefactor  = 14.8264
  Normalizat = 1.20433
  Prefactor  = 0.800743
 **********
 **   18 **HESSE 
 **********

 FCN=   5793.813     FROM HESSE     STATUS=OK           540 CALLS     2436 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        3.3699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.8373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.3193        4.1027        .48449E-03   -1.5666    
   4  Prefactor     .15569E-05    16.417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     53.509        30.533        .13809E-03   -1.5562    
   6  Prefactor     .65448E-07    6.9959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8703        2.4504        .76167E-03   -1.5681    
   8  Prefactor     .37303E-07    5.4256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .15988E-05    13.457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .25128E-05    30.602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22204E-09    4.3304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.504        17.901        .17837E-03   -1.5596    
  13  norm          1.8364        .36690        .45293E-03   -1.5681    
  14  Prefactor     2.0880        3.2094        .71503E-03   -1.5679    
  15  Prefactor     .30809E-07    5.0242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .62911E-06    10.422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.147        13.439        .27618E-03   -1.5635    
  18  Prefactor     .33307E-08    4.7432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11403E-04    61.707        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3512        2.6287        .55210E-03   -1.5671    
  21  Prefactor     .10550E-04    47.346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .17397E-06    8.1014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.5154        22.689        .64600E-03   -1.5676    
  24  Prefactor     2.1366        5.0925        .72548E-03   -1.5679    
  25  Prefactor     14.826        25.874        .26204E-03   -1.5631    
  26  Normalizat    1.2043        .18798        .52726E-01   -.86469    
  27  Prefactor     .80074        .19852        .69421E-01   -.99701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15867e-07
Minuit parameter uncertainties:
  1  4.52833e-06
  2  6.09668e-06
  3  4.10271
  4  0.0101111
  5  30.5335
  6  0.00135348
  7  2.45036
  8  0.000899853
  9  0.00927703
  10  0.0175381
  11  5.85176e-05
  12  17.9014
  13  0.366903
  14  3.20938
  15  0.000786911
  16  0.00512103
  17  13.439
  18  0.000251881
  19  0.0530527
  20  2.62873
  21  0.0446999
  22  0.00237433
  23  15.1092
  24  5.09255
  25  25.8737
  26  0.188088
  27  0.198696
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.220e-10  5.852e-05  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:  8.007e-01  1.987e-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.204e+00  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.650 28.287
Photon Flux Upper Limit: 5.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/958509/likelihoodResults_700185601_700444801_4FGL_J1058.6+2817_daily_bin1778.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): 0
logL (Free Index) = 5793.81439274
delta logL = -0.00135218495052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5793.81304081
delta logL = -2.50218363362e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5793.813     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      272 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.7148        .84235E-04** at limit **
   2  Index         2.6676        3.7215       -.10809E-04     .0000    
   3  Normalizat    1.2043        .10163       -.18329E-08   -.62722E-03
   4  Prefactor     .80074        .11212        .13486E-09   -.36476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.66761
  Normalizat = 1.20433
  Prefactor  = 0.800745
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5793.813     FROM HESSE     STATUS=FAILED         9 CALLS      281 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.7148        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .80538        3.7215       -.10809E-04   -.48530    
   3  Normalizat    1.2043        .10163       -.18329E-08   -.86469    
   4  Prefactor     .80074        .11212        .13486E-09   -.99701    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.72858e-10
Minuit parameter uncertainties:
  1  7.24184e-07
  2  4.42267
  3  0.101645
  4  0.112148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958509': 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) = 5793.81304056
delta logL = -1.76441972144e-10

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  0.000e+00  7.242e-07  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.668e+00  4.423e+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:  8.007e-01  1.121e-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.204e+00  1.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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/958509/cmap_HighResolution_700185601_700444801_4FGL_J1058.6+2817_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.53e-08', time_completed='2023-03-14 00:49:45.565409', job_id='958509', GAL2='0.80', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1678780185.57', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-1.76e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1778' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 00:49:45 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 958509: <4FGL_J1058.6+2817_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1058.6+2817_daily_bin1778> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 00:40:15 2023
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:40:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:40:16 2023
Terminated at Tue Mar 14 00:49:46 2023
Results reported at Tue Mar 14 00:49:46 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin1778 164.65 28.2866 700185601 700444801 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 :                                   499.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             322.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            571 sec.

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

