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


Performing analysis on: 4FGL_J1058.6+2817_weekly_bin759
RA = 164.65, Dec = 28.2866
tmin = 698025601, tmax = 698630401
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='587352', job_status='RUN', time_executed='2023-02-21 03:21:10.763612', time_epoch_executed='1676978470.76' WHERE source_name='4FGL J1058.6+2817' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587352

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587352/ft1_4FGL_J1058.6+2817_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587352/ft2_4FGL_J1058.6+2817_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587352/ft1_4FGL_J1058.6+2817_weekly_bin759.fits outfile=/scratch/kocevski/587352/ft1_filteredMKT_4FGL_J1058.6+2817_weekly_bin759.fits ra=164.65 dec=28.2866 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.51
user 8.19
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/587352/ft2_4FGL_J1058.6+2817_weekly_bin759.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/587352/ft1_filteredMKT_4FGL_J1058.6+2817_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/587352/ft1_filtered_4FGL_J1058.6+2817_weekly_bin759.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.55
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 565

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587352/ft1_filtered_4FGL_J1058.6+2817_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/587352/ft2_4FGL_J1058.6+2817_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/587352/ltcube_698025601_698630401_4FGL_J1058.6+2817_weekly_bin759.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/587352/ft2_4FGL_J1058.6+2817_weekly_bin759.fits
.....................!
real 26.69
user 26.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587352/ft1_filtered_4FGL_J1058.6+2817_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/587352/ft2_4FGL_J1058.6+2817_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/587352/ltcube_698025601_698630401_4FGL_J1058.6+2817_weekly_bin759.fits outfile=/scratch/kocevski/587352/expmap_698025601_698630401_4FGL_J1058.6+2817_weekly_bin759.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/587352/ltcube_698025601_698630401_4FGL_J1058.6+2817_weekly_bin759.fits
.....................!
real 191.94
user 186.42
sys 5.10

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/587352/ft1_filtered_4FGL_J1058.6+2817_weekly_bin759.fits scfile=/scratch/kocevski/587352/ft2_4FGL_J1058.6+2817_weekly_bin759.fits outfile=/scratch/kocevski/587352/cmap_698025601_698630401_4FGL_J1058.6+2817_weekly_bin759.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.59
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587352/ft1_filtered_4FGL_J1058.6+2817_weekly_bin759.fits scfile=/scratch/kocevski/587352/ft2_4FGL_J1058.6+2817_weekly_bin759.fits outfile=/scratch/kocevski/587352/cmap_HighResolution_698025601_698630401_4FGL_J1058.6+2817_weekly_bin759.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.87
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.364       1.0000          .0000       .10000E+07
     2 'Prefactor '    .19340E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .35255E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .85438E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    26.068       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.3955       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44964E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    11.312       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10393E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    12.985       1.0000          .0000       .10000E+07
    11 'Prefactor '    .90770E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .31243E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.9985       1.0000          .0000       .10000E+07
    14 'Prefactor '    .15206E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .13771E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .75191E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .20818E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    10.760       1.0000          .0000       .10000E+07
    19 'Prefactor '    6.7915       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.0492       1.0000          .0000       .10000E+07
    21 'Prefactor '    .26527E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    11.577       1.0000          .0000       .10000E+07
    23 'Prefactor '    12.552       1.0000          .0000       .10000E+07
    24 'Prefactor '    11.963       1.0000          .0000       .10000E+07
    25 'Prefactor '    6.7087       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.2329       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83194       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=   5966.166     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1859 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.366        5.4079       -.70694E-09    .94325E-01
   2  Prefactor      .0000        2.3213       -.74667E-07** at limit **
   3  Prefactor     .45519E-08    4.2786       -.13267E-06** at limit **
   4  Prefactor     .42905E-06    14.686       -.14510E-06** at limit **
   5  Prefactor     25.461        3.3742       -.13953E-07   -.49007E-01
   6  Prefactor     1.3418        9.1218        .82418E-07    .41508E-02
   7  Prefactor     .55511E-10    1.0176       -.84457E-07** at limit **
   8  Prefactor     11.529        6.2298        .16773E-07   -.40777E-01
   9  Prefactor     .30093E-06    11.141       -.49781E-08** at limit **
  10  Prefactor     12.832        4.1965        .73909E-08   -.29705E-01
  11  Prefactor     .11102E-09    7.4057       -.61791E-07** at limit **
  12  Prefactor     .12436E-05    5.9025       -.96298E-07** at limit **
  13  norm          1.9986        .38373        .81989E-08    .18305E-01
  14  Prefactor      .0000        1.0248       -.31929E-07** at limit **
  15  Prefactor     .12601E-07    2.5368       -.18748E-06** at limit **
  16  Prefactor     .14988E-08    4.1975       -.14152E-06** at limit **
  17  norm          .37748E-08    3.8701       -.20689E-06** at limit **
  18  Prefactor     10.753        6.9936        .12716E-07    .54916E-03
  19  Prefactor     6.7924        2.4322       -.19084E-08    .84554E-02
  20  Prefactor     2.0442        2.4876       -.22341E-07   -.15393E-02
  21  Prefactor     .70222E-07    36.637       -.31340E-06** at limit **
  22  Prefactor     11.549        1.1859       -.36234E-08   -.27494E-02
  23  Prefactor     12.600        1.2715       -.26814E-08   -.35188E-02
  24  Prefactor     11.959        6.0325       -.63122E-08    .26865E-03
  25  Prefactor     6.6339        2.0335       -.94125E-08   -.15282E-01
  26  Normalizat    1.2329        .21414       -.89581E-06   -.55973E-04
  27  Prefactor     .83211        .24026        .63470E-06   -.23253E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.366
  Prefactor  = 0
  Prefactor  = 4.55191e-09
  Prefactor  = 4.29046e-07
  Prefactor  = 25.4612
  Prefactor  = 1.34176
  Prefactor  = 5.55112e-11
  Prefactor  = 11.5286
  Prefactor  = 3.00926e-07
  Prefactor  = 12.8317
  Prefactor  = 1.11022e-10
  Prefactor  = 1.24356e-06
  norm       = 1.99859
  Prefactor  = 0
  Prefactor  = 1.2601e-08
  Prefactor  = 1.4988e-09
  norm       = 3.77476e-09
  Prefactor  = 10.7527
  Prefactor  = 6.79236
  Prefactor  = 2.04416
  Prefactor  = 7.02216e-08
  Prefactor  = 11.5486
  Prefactor  = 12.5999
  Prefactor  = 11.9587
  Prefactor  = 6.63391
  Normalizat = 1.23292
  Prefactor  = 0.832105
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.166     FROM HESSE     STATUS=OK           544 CALLS     2403 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.366        7.7343        .29693E-03   -1.5641    
   2  Prefactor      .0000        2.3114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .45519E-08    5.5012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .42905E-06    18.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.461        26.165        .19590E-03   -1.5607    
   6  Prefactor     1.3418        9.6736        .91887E-03   -1.5685    
   7  Prefactor     .55511E-10    1.0133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.529        12.273        .29762E-03   -1.5640    
   9  Prefactor     .30093E-06    13.466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.832        15.086        .27772E-03   -1.5636    
  11  Prefactor     .11102E-09    7.5720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .12436E-05    15.694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9986        .38348        .45958E-03   -1.5680    
  14  Prefactor      .0000        1.0261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12601E-07    5.3966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14988E-08    4.3982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .37748E-08    5.8171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.753        7.1738        .30518E-03   -1.5642    
  19  Prefactor     6.7924        9.8797        .38478E-03   -1.5656    
  20  Prefactor     2.0442        2.5087        .72190E-03   -1.5679    
  21  Prefactor     .70222E-07    37.087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.549        12.187        .29418E-03   -1.5640    
  23  Prefactor     12.600        11.692        .28248E-03   -1.5637    
  24  Prefactor     11.959        6.0699        .28937E-03   -1.5639    
  25  Prefactor     6.6339        24.707        .38717E-03   -1.5656    
  26  Normalizat    1.2329        .18391        .52732E-01   -.85591    
  27  Prefactor     .83211        .20394        .71787E-01   -.98556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90536e-07
Minuit parameter uncertainties:
  1  7.73429
  2  2.24364e-06
  3  0.000317367
  4  0.00558845
  5  26.1652
  6  7.20549
  7  1.40086e-05
  8  12.273
  9  0.00402611
  10  15.0856
  11  5.73563e-05
  12  0.00883548
  13  0.383479
  14  3.84854e-06
  15  0.000521654
  16  0.00016193
  17  0.000296451
  18  7.17378
  19  9.87969
  20  2.50867
  21  0.00322733
  22  12.1869
  23  11.6923
  24  6.06993
  25  24.7079
  26  0.184006
  27  0.204128
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.110e-10  5.736e-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.321e-01  2.041e-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.233e+00  1.840e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/587352/likelihoodResults_698025601_698630401_4FGL_J1058.6+2817_weekly_bin759.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) = 5966.23243136
delta logL = -0.0665937597123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5966.16583761
delta logL = -7.97899701865e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18541E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.1328       1.0000          .0000       10.000    
     3 'Normalizat'    1.2329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83209       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=   5966.166     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      203 TOTAL
                     EDM=   .44E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.2071       -.73725E-06** at limit **
   2  Index         2.5722        3.0650        .47611E-04     .0000    
   3  Normalizat    1.2329        .20669        .27650E-05   -.17977E-05
   4  Prefactor     .83211        .23690        .16949E-05    .90303E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.57225
  Normalizat = 1.23292
  Prefactor  = 0.832105
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5966.166     FROM HESSE     STATUS=FAILED        11 CALLS      214 TOTAL
                     EDM=   .44E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.1725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .74735        1.9844        .47611E-04   -.50699    
   3  Normalizat    1.2329        1.0959        .27650E-05   -.85591    
   4  Prefactor     .83211        1.1798        .16949E-05   -.98556    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.38937e-13
Minuit parameter uncertainties:
  1  6.49545e-07
  2  1.59346
  3  1.11751
  4  1.21897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587352': 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) = 5966.1658376
delta logL = 9.09494701773e-12

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  0.000e+00  6.495e-07  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.572e+00  1.593e+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.321e-01  1.219e+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.233e+00  1.118e+00  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/587352/cmap_HighResolution_698025601_698630401_4FGL_J1058.6+2817_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2023-02-21 03:32:34.712827', job_id='587352', GAL2='0.83', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1676979154.71', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.09e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='759' AND source_name='4FGL J1058.6+2817' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:32:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 587352: <4FGL_J1058.6+2817_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1058.6+2817_weekly_bin759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 03:20:37 2023
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:20:38 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:20:38 2023
Terminated at Tue Feb 21 03:32:35 2023
Results reported at Tue Feb 21 03:32:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_weekly_bin759 164.65 28.2866 698025601 698630401 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 :                                   660.00 sec.
    Max Memory :                                 1011 MB
    Average Memory :                             325.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            718 sec.

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

