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


Performing analysis on: 4FGL_J1058.6+2817_daily_bin1758
RA = 164.65, Dec = 28.2866
tmin = 695001601, tmax = 695260801
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='363653', job_status='RUN', time_executed='2023-01-13 00:37:14.494158', time_epoch_executed='1673599034.49' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363653

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363653/ft1_4FGL_J1058.6+2817_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363653/ft2_4FGL_J1058.6+2817_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363653/ft1_4FGL_J1058.6+2817_daily_bin1758.fits outfile=/scratch/kocevski/363653/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin1758.fits ra=164.65 dec=28.2866 rad=12.0 tmin=695001601.0 tmax=695260801.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.78
user 2.53
sys 0.21

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

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

Number of photons that the gtmktime cut: 515

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363653/ft1_filtered_4FGL_J1058.6+2817_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/363653/ft2_4FGL_J1058.6+2817_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/363653/ltcube_695001601_695260801_4FGL_J1058.6+2817_daily_bin1758.fits outfile=/scratch/kocevski/363653/expmap_695001601_695260801_4FGL_J1058.6+2817_daily_bin1758.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/363653/ltcube_695001601_695260801_4FGL_J1058.6+2817_daily_bin1758.fits
.....................!
real 192.20
user 186.03
sys 5.66

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/363653/ft1_filtered_4FGL_J1058.6+2817_daily_bin1758.fits scfile=/scratch/kocevski/363653/ft2_4FGL_J1058.6+2817_daily_bin1758.fits outfile=/scratch/kocevski/363653/cmap_695001601_695260801_4FGL_J1058.6+2817_daily_bin1758.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.55
user 0.37
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5712       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.2113       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.6043       1.0000          .0000       .10000E+07
     4 'Prefactor '    .19680E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .37840E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    14.169       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14685E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    16.926       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.5406       1.0000          .0000       .10000E+07
    10 'Prefactor '    .45752E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .16986E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    11.334       1.0000          .0000       .10000E+07
    13 'norm      '    3.0391       1.0000          .0000       .10000E+07
    14 'Prefactor '    .52358E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .58096E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .66179E-03   1.0000          .0000       .10000E+07
    17 'norm      '    13.982       1.0000          .0000       .10000E+07
    18 'Prefactor '    5.5645       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.4214       1.0000          .0000       .10000E+07
    20 'Prefactor '    .27106E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    52.966       1.0000          .0000       .10000E+07
    22 'Prefactor '    .11995E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    13.740       1.0000          .0000       .10000E+07
    24 'Prefactor '    14.924       1.0000          .0000       .10000E+07
    25 'Prefactor '    89.879       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1649       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0676       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=   5578.962     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     2412 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6491        1.1370        .75156E-07   -.85980E-02
   2  Prefactor     7.2836        8.6771       -.44940E-06   -.17379E-01
   3  Prefactor     4.6975        7.8756        .94760E-06    .81956E-02
   4  Prefactor     .28605E-06    81.575       -.62236E-05** at limit **
   5  Prefactor     .67168E-08    31.942        .22047E-05** at limit **
   6  Prefactor     14.063        5.5586        .17289E-06   -.75840E-01
   7  Prefactor      .0000        3.6688        .12997E-05** at limit **
   8  Prefactor     17.012        2.7766       -.93091E-08   -.64460E-01
   9  Prefactor     3.4734        32.409        .17624E-05    .52403E-02
  10  Prefactor     .34139E-07    5.8081       -.23273E-06** at limit **
  11  Prefactor     .39746E-07    7.8377       -.45673E-06** at limit **
  12  Prefactor     11.258        3.1198        .21927E-06   -.40875E-01
  13  norm          3.0392        .49489        .43896E-08   -.14842E-02
  14  Prefactor      .0000        1.1875       -.36533E-07** at limit **
  15  Prefactor     .56455E-07    5.2820       -.47896E-06** at limit **
  16  Prefactor     .22204E-09    4.6919       -.13201E-06** at limit **
  17  norm          14.147        1.7671        .11810E-06    .45082E-02
  18  Prefactor     5.5048        6.9793       -.46913E-06   -.27859E-02
  19  Prefactor     9.4236        2.3194        .22717E-06    .18732E-01
  20  Prefactor      .0000        .98540       -.67427E-06** at limit **
  21  Prefactor     53.853        7.8578        .16566E-06    .18250E-01
  22  Prefactor     .27200E-08    8.4316        .53103E-06** at limit **
  23  Prefactor     12.928        20.230        .32956E-05    .11167E-02
  24  Prefactor     14.940        7.7922       -.30869E-06   -.11965E-01
  25  Prefactor     92.104        28.433       -.11113E-06    .37845E-01
  26  Normalizat    1.1638        .27819        .14845E-04   -.25382E-04
  27  Prefactor     1.0685        .29206       -.23226E-04   -.26036E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.6491
  Prefactor  = 7.28359
  Prefactor  = 4.69754
  Prefactor  = 2.86049e-07
  Prefactor  = 6.71685e-09
  Prefactor  = 14.0625
  Prefactor  = 0
  Prefactor  = 17.0119
  Prefactor  = 3.47337
  Prefactor  = 3.41394e-08
  Prefactor  = 3.9746e-08
  Prefactor  = 11.2576
  norm       = 3.03919
  Prefactor  = 0
  Prefactor  = 5.64548e-08
  Prefactor  = 2.22045e-10
  norm       = 14.1471
  Prefactor  = 5.50476
  Prefactor  = 9.42361
  Prefactor  = 0
  Prefactor  = 53.8533
  Prefactor  = 2.72005e-09
  Prefactor  = 12.9276
  Prefactor  = 14.9398
  Prefactor  = 92.1037
  Normalizat = 1.16381
  Prefactor  = 1.06846
 **********
 **   18 **HESSE 
 **********

 FCN=   5578.962     FROM HESSE     STATUS=OK           548 CALLS     2960 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6491        12.814        .32368E-03   -1.5646    
   2  Prefactor     7.2836        8.8974        .37329E-03   -1.5654    
   3  Prefactor     4.6975        7.9549        .46884E-03   -1.5665    
   4  Prefactor     .28605E-06    85.542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .67168E-08    32.053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.063        12.672        .26583E-03   -1.5633    
   7  Prefactor      .0000        3.6367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.012        16.962        .24318E-03   -1.5625    
   9  Prefactor     3.4734        79.067        .47220E-03   -1.5671    
  10  Prefactor     .34139E-07    6.0496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .39746E-07    8.4362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.258        22.076        .29733E-03   -1.5641    
  13  norm          3.0392        .49520        .46445E-03   -1.5673    
  14  Prefactor      .0000        1.1857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .56455E-07    5.6647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22204E-09    4.6973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.147        13.368        .26761E-03   -1.5633    
  18  Prefactor     5.5048        7.1720        .42566E-03   -1.5661    
  19  Prefactor     9.4236        13.152        .32626E-03   -1.5647    
  20  Prefactor      .0000        .98364        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     53.853        41.709        .13741E-03   -1.5561    
  22  Prefactor     .27200E-08    8.7252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.928        20.331        .26996E-03   -1.5636    
  24  Prefactor     14.940        7.9232        .25900E-03   -1.5631    
  25  Prefactor     92.104        38.949        .10549E-03   -1.5516    
  26  Normalizat    1.1638        .24252        .65646E-01   -.87729    
  27  Prefactor     1.0685        .24587        .75318E-01   -.90481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97525e-07
Minuit parameter uncertainties:
  1  12.8144
  2  8.89741
  3  7.95487
  4  0.00989349
  5  0.000929345
  6  12.6716
  7  1.88296e-05
  8  16.9617
  9  33.1444
  10  0.000908712
  11  0.00115835
  12  22.076
  13  0.4952
  14  4.68942e-06
  15  0.00113084
  16  6.71055e-05
  17  13.3684
  18  7.17203
  19  13.152
  20  2.62254e-06
  21  41.7095
  22  0.000307859
  23  20.3315
  24  7.92323
  25  38.9486
  26  0.242752
  27  0.246135
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  3.975e-08  1.158e-03  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.068e+00  2.461e-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.164e+00  2.428e-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: 6.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363653/likelihoodResults_695001601_695260801_4FGL_J1058.6+2817_daily_bin1758.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) = 5579.02069807
delta logL = -0.0587428044928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5578.96195545
delta logL = -1.88828380487e-07

Fit tolerance = 1e-08

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

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

 FCN=   5578.962     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      232 TOTAL
                     EDM=   .74E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    .25748E-01    .42118E-03** at limit **
   2  Index         2.6955        6.2993        .41278        .55084E-10
   3  Normalizat    1.1638        .35360E-03    .65646E-01   -.95997E-04
   4  Prefactor     1.0685        .39264E-03    .75318E-01   -.15855E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Index      = 2.69546
  Normalizat = 1.16381
  Prefactor  = 1.06845
 **********
 **   18 **HESSE 
 **********

 FCN=   5578.962     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    .78741E-01    .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6955        5.7553        .50000       -.47902    
   3  Normalizat    1.1638        .61512E-03    .29041E-03   -.87729    
   4  Prefactor     1.0685        .68276E-03    .33331E-03   -.90481    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.54857e-13
Minuit parameter uncertainties:
  1  7.24817e-06
  2  3709.76
  3  0.000615124
  4  0.000682756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363653': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5578.96195526
delta logL = 2.29556462727e-09

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.665e-10  7.248e-06  0.000e+00  1.000e+06 ( 1.000e-13)
234        Index:  2.695e+00  3.710e+03  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.068e+00  6.828e-04  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.164e+00  6.151e-04  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/363653/cmap_HighResolution_695001601_695260801_4FGL_J1058.6+2817_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-03', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2023-01-13 00:48:28.861635', job_id='363653', GAL2='1.07', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1673599708.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.30e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1758' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:48:28 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 363653: <4FGL_J1058.6+2817_daily_bin1758> in cluster <slac> Done

Job <4FGL_J1058.6+2817_daily_bin1758> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jan 13 00:35:13 2023
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:35:34 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:35:34 2023
Terminated at Fri Jan 13 00:48:29 2023
Results reported at Fri Jan 13 00:48:29 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin1758 164.65 28.2866 695001601 695260801 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 :                                   675.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            796 sec.

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

