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


Performing analysis on: 4FGL_J1058.0+4305_daily_bin1756
RA = 164.518, Dec = 43.0938
tmin = 694483201, tmax = 694742401
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='10510', job_status='RUN', time_executed='2023-01-07 00:44:25.611017', time_epoch_executed='1673081065.61' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10510/ft1_4FGL_J1058.0+4305_daily_bin1756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10510/ft2_4FGL_J1058.0+4305_daily_bin1756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10510/ft1_4FGL_J1058.0+4305_daily_bin1756.fits outfile=/scratch/kocevski/10510/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1756.fits ra=164.518 dec=43.0938 rad=12.0 tmin=694483201.0 tmax=694742401.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.99
user 2.77
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/10510/ft2_4FGL_J1058.0+4305_daily_bin1756.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10510/ft2_4FGL_J1058.0+4305_daily_bin1756.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/10510/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1756.fits evtable="EVENTS" outfile="/scratch/kocevski/10510/ft1_filtered_4FGL_J1058.0+4305_daily_bin1756.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: 474

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10510/ft1_filtered_4FGL_J1058.0+4305_daily_bin1756.fits" evtable="EVENTS" scfile=/scratch/kocevski/10510/ft2_4FGL_J1058.0+4305_daily_bin1756.fits sctable="SC_DATA" outfile=/scratch/kocevski/10510/ltcube_694483201_694742401_4FGL_J1058.0+4305_daily_bin1756.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/10510/ft2_4FGL_J1058.0+4305_daily_bin1756.fits
.....................!
real 17.25
user 16.60
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10510/ft1_filtered_4FGL_J1058.0+4305_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/10510/ft2_4FGL_J1058.0+4305_daily_bin1756.fits sctable="SC_DATA" expcube=/scratch/kocevski/10510/ltcube_694483201_694742401_4FGL_J1058.0+4305_daily_bin1756.fits outfile=/scratch/kocevski/10510/expmap_694483201_694742401_4FGL_J1058.0+4305_daily_bin1756.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/10510/ltcube_694483201_694742401_4FGL_J1058.0+4305_daily_bin1756.fits
.....................!
real 192.59
user 187.04
sys 4.91

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

Setting source of interest to:
4FGL J1058.0+4305 @ 164.518 43.0938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/10510/ft1_filtered_4FGL_J1058.0+4305_daily_bin1756.fits scfile=/scratch/kocevski/10510/ft2_4FGL_J1058.0+4305_daily_bin1756.fits outfile=/scratch/kocevski/10510/cmap_694483201_694742401_4FGL_J1058.0+4305_daily_bin1756.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.518 yref=43.0938 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10510/ft1_filtered_4FGL_J1058.0+4305_daily_bin1756.fits scfile=/scratch/kocevski/10510/ft2_4FGL_J1058.0+4305_daily_bin1756.fits outfile=/scratch/kocevski/10510/cmap_HighResolution_694483201_694742401_4FGL_J1058.0+4305_daily_bin1756.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.518 yref=43.0938 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10510/ft1_filtered_4FGL_J1058.0+4305_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/10510/ft2_4FGL_J1058.0+4305_daily_bin1756.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10510/Model_4FGL_J1058.0+4305_daily_bin1756.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/10510/ft1_filtered_4FGL_J1058.0+4305_daily_bin1756.fits.....................!
real 46.34
user 44.95
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10510/ft1_filtered_4FGL_J1058.0+4305_daily_bin1756.fits', '/scratch/kocevski/10510/ft2_4FGL_J1058.0+4305_daily_bin1756.fits', expMap='/scratch/kocevski/10510/expmap_694483201_694742401_4FGL_J1058.0+4305_daily_bin1756.fits', expCube='/scratch/kocevski/10510/ltcube_694483201_694742401_4FGL_J1058.0+4305_daily_bin1756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10510/Model_4FGL_J1058.0+4305_daily_bin1756.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.0+4305'

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  7.092e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/10510/ft1_filtered_4FGL_J1058.0+4305_daily_bin1756.fits
Spacecraft file(s): /scratch/kocevski/10510/ft2_4FGL_J1058.0+4305_daily_bin1756.fits
Exposure map: /scratch/kocevski/10510/expmap_694483201_694742401_4FGL_J1058.0+4305_daily_bin1756.fits
Exposure cube: /scratch/kocevski/10510/ltcube_694483201_694742401_4FGL_J1058.0+4305_daily_bin1756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10510/Model_4FGL_J1058.0+4305_daily_bin1756.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) = 5292.33203016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11489E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .27963E-01   1.0000          .0000       .10000E+07
     3 'norm      '    2.5233       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.8311       1.0000          .0000       .10000E+07
     5 'norm      '    1.3876       1.0000          .0000       .10000E+07
     6 'Prefactor '    .81334       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.4204       1.0000          .0000       .10000E+07
     8 'Prefactor '    8.6780       1.0000          .0000       .10000E+07
     9 'Prefactor '    .27456E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .72861E-03   1.0000          .0000       .10000E+07
    11 'norm      '    2.9244       1.0000          .0000       .10000E+07
    12 'Prefactor '    36.103       1.0000          .0000       .10000E+07
    13 'Prefactor '    .48587E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .36838       1.0000          .0000       .10000E+07
    15 'norm      '    4.3065       1.0000          .0000       .10000E+07
    16 'norm      '    .20768E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .95834E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    59.833       1.0000          .0000       .10000E+07
    19 'norm      '    .18256E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .45288E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .26067E-02   1.0000          .0000       .10000E+07
    22 'norm      '    2.1451       1.0000          .0000       .10000E+07
    23 'norm      '    10.960       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.0633       1.0000          .0000       .10000E+07
    25 'Prefactor '    34.130       1.0000          .0000       .10000E+07
    26 'Prefactor '    16.936       1.0000          .0000       .10000E+07
    27 'Normalizat'    .87899       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0930       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5292.328     FROM MIGRAD    STATUS=CONVERGED    245 CALLS     2703 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22204E-09    28.845       -.20664E-06** at limit **
   2  Prefactor     .33307E-09    32.057       -.16557E-05** at limit **
   3  norm          2.5176        4.2103        .31748E-07    .38156E-04
   4  Prefactor     2.5624        10.381        .32761E-06    .58806E-03
   5  norm          1.4585        41.240        .43564E-05   -.22820E-03
   6  Prefactor     .53254E-03    475.41       -.12853E-04** at limit **
   7  Prefactor     4.4147        5.1453       -.17576E-06    .62040E-03
   8  Prefactor     8.7241        2.9631       -.10743E-06   -.30929E-01
   9  Prefactor     .33307E-09    32.287        .14419E-05** at limit **
  10  Prefactor     .11430E-03    197.24       -.90874E-05** at limit **
  11  norm          2.9250        .51847        .60067E-08    .14858E-03
  12  Prefactor     36.164        19.123       -.92563E-07    .39864E-01
  13  Prefactor     .83267E-09    8.4115       -.16836E-06** at limit **
  14  Prefactor     .30476E-07    89.603        .16982E-05** at limit **
  15  norm          4.1245        7.9285        .65564E-06    .23914E-02
  16  norm          .55511E-10    14.465        .20531E-06** at limit **
  17  Prefactor     .55511E-10    1.8689        .27152E-06** at limit **
  18  Prefactor     59.882        25.079       -.92710E-07   -.29078    
  19  norm          .16653E-09    157.21       -.30709E-06** at limit **
  20  Prefactor     .11491E-07    31.672       -.53910E-06** at limit **
  21  Prefactor     .17764E-08    85.645       -.20220E-05** at limit **
  22  norm          2.1430        1.0437       -.27451E-07   -.85406E-02
  23  norm          10.947        8.2427        .25628E-06   -.35674E-02
  24  Prefactor     1.0632        2.0726       -.35053E-06    .23005E-02
  25  Prefactor     34.095        1.1423       -.15225E-07    .85623E-02
  26  Prefactor     16.913        3.9569       -.55212E-09    .71047E-01
  27  Normalizat    .88019        .20930        .61828E-05    .23098E-03
  28  Prefactor     1.0933        .25670       -.82344E-05    .22440E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22045e-10
  Prefactor  = 3.33067e-10
  norm       = 2.51755
  Prefactor  = 2.56241
  norm       = 1.45845
  Prefactor  = 0.000532536
  Prefactor  = 4.41473
  Prefactor  = 8.72409
  Prefactor  = 3.33067e-10
  Prefactor  = 0.000114297
  norm       = 2.92497
  Prefactor  = 36.1638
  Prefactor  = 8.32667e-10
  Prefactor  = 3.04756e-08
  norm       = 4.1245
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 59.8823
  norm       = 1.66533e-10
  Prefactor  = 1.14908e-08
  Prefactor  = 1.77636e-09
  norm       = 2.14303
  norm       = 10.947
  Prefactor  = 1.06319
  Prefactor  = 34.0948
  Prefactor  = 16.9132
  Normalizat = 0.880191
  Prefactor  = 1.09328
 **********
 **   18 **HESSE 
 **********

 FCN=   5292.328     FROM HESSE     STATUS=OK           593 CALLS     3296 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22204E-09    29.085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33307E-09    12.079        .11054E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5176        4.2094        .64283E-03   -1.5676    
   4  Prefactor     2.5624        16.694        .60413E-03   -1.5676    
   5  norm          1.4585        41.947        .92263E-03   -1.5684    
   6  Prefactor     .53254E-03    581.47        .51946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4147        5.1800        .47875E-03   -1.5666    
   8  Prefactor     8.7241        27.573        .34003E-03   -1.5649    
   9  Prefactor     .33307E-09    32.213        .16588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11430E-03    221.92        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9250        .51853        .47058E-03   -1.5674    
  12  Prefactor     36.164        19.354        .16645E-03   -1.5588    
  13  Prefactor     .83267E-09    8.4263        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .30476E-07    89.698        .93246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1245        7.9590        .48520E-03   -1.5667    
  16  norm          .55511E-10    14.439        .16987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    1.8813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     59.882        49.866        .12929E-03   -1.5553    
  19  norm          .16653E-09    1.2838        .64986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11491E-07    30.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .17764E-08    85.968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.1430        1.0663        .70336E-04   -1.5679    
  23  norm          10.947        8.3123        .30238E-03   -1.5642    
  24  Prefactor     1.0632        2.6160        .32708E-02   -1.5687    
  25  Prefactor     34.095        38.690        .17119E-03   -1.5591    
  26  Prefactor     16.913        26.175        .24310E-03   -1.5626    
  27  Normalizat    .88019        .18101        .44633E-01   -.97160    
  28  Prefactor     1.0933        .22147        .65151E-01   -.89682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43384e-06
Minuit parameter uncertainties:
  1  0.000152842
  2  0.000130297
  3  4.20941
  4  13.0809
  5  15.6433
  6  1.11304
  7  5.17997
  8  27.5737
  9  0.000208237
  10  0.318542
  11  0.518525
  12  19.3537
  13  0.000169715
  14  0.00330771
  15  7.95906
  16  4.75735e-05
  17  2.09468e-05
  18  49.8668
  19  2.73337e-05
  20  0.0011911
  21  0.000777075
  22  1.06628
  23  8.31231
  24  2.61602
  25  38.6898
  26  26.1752
  27  0.181137
  28  0.221652
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  3.331e-10  2.082e-04  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.093e+00  2.217e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  8.802e-01  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.518 43.094
Photon Flux Upper Limit: 5.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10510/likelihoodResults_694483201_694742401_4FGL_J1058.0+4305_daily_bin1756.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) = 5292.34311862
delta logL = -0.0148048360907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5292.32831458
delta logL = -7.98620931164e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14759E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.9702       1.0000          .0000       10.000    
     3 'Normalizat'    .87994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0935       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5292.328     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      259 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46074E-08    53.309        .42118E-03** at limit **
   2  Index         1.2639        6.9703        .25963       -.14012E-09
   3  Normalizat    .88019        .44978E-02    .44645E-01   -.10486E-02
   4  Prefactor     1.0933        .56328E-02    .65151E-01   -.69816E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60743e-09
  Index      = 1.26393
  Normalizat = 0.880185
  Prefactor  = 1.09328
 **********
 **   18 **HESSE 
 **********

 FCN=   5292.328     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      286 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46074E-08    62.837        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2639        5.4922        .50000       -.84386    
   3  Normalizat    .88019        .48801E-02    .25490E-03   -.97160    
   4  Prefactor     1.0933        .61083E-02    .28818E-03   -.89682    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58787e-10
Minuit parameter uncertainties:
  1  0.00107796
  2  58125
  3  0.00488006
  4  0.00610832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10510': 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) = 5292.32831378
delta logL = -7.58518581279e-10

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  4.607e-09  1.078e-03  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  1.264e+00  5.812e+04  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.093e+00  6.108e-03  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  8.802e-01  4.880e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.518 43.094

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/10510/cmap_HighResolution_694483201_694742401_4FGL_J1058.0+4305_daily_bin1756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.35e-08', time_completed='2023-01-07 00:56:37.545990', job_id='10510', GAL2='1.09', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1673081797.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-7.59e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1756' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan  7 00:56:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 10510: <4FGL_J1058.0+4305_daily_bin1756> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1756> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jan  7 00:40:25 2023
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan  7 00:44:10 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan  7 00:44:10 2023
Terminated at Sat Jan  7 00:56:38 2023
Results reported at Sat Jan  7 00:56:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1756 164.518 43.0938 694483201 694742401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.0+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   733.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            973 sec.

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

