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 73 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.0+4305_daily_bin1772
RA = 164.518, Dec = 43.0938
tmin = 698630401, tmax = 698889601
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='628446', job_status='RUN', time_executed='2023-02-24 01:21:44.116601', time_epoch_executed='1677230504.12' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628446

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628446/ft1_4FGL_J1058.0+4305_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628446/ft2_4FGL_J1058.0+4305_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628446/ft1_4FGL_J1058.0+4305_daily_bin1772.fits outfile=/scratch/kocevski/628446/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1772.fits ra=164.518 dec=43.0938 rad=12.0 tmin=698630401.0 tmax=698889601.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.03
user 2.80
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/628446/ft2_4FGL_J1058.0+4305_daily_bin1772.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/628446/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/628446/ft1_filtered_4FGL_J1058.0+4305_daily_bin1772.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.49
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 7

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628446/ft1_filtered_4FGL_J1058.0+4305_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/628446/ft2_4FGL_J1058.0+4305_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/628446/ltcube_698630401_698889601_4FGL_J1058.0+4305_daily_bin1772.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/628446/ft2_4FGL_J1058.0+4305_daily_bin1772.fits
.....................!
real 12.37
user 12.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628446/ft1_filtered_4FGL_J1058.0+4305_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/628446/ft2_4FGL_J1058.0+4305_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/628446/ltcube_698630401_698889601_4FGL_J1058.0+4305_daily_bin1772.fits outfile=/scratch/kocevski/628446/expmap_698630401_698889601_4FGL_J1058.0+4305_daily_bin1772.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/628446/ltcube_698630401_698889601_4FGL_J1058.0+4305_daily_bin1772.fits
.....................!
real 191.44
user 186.05
sys 5.07

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/628446/ft1_filtered_4FGL_J1058.0+4305_daily_bin1772.fits scfile=/scratch/kocevski/628446/ft2_4FGL_J1058.0+4305_daily_bin1772.fits outfile=/scratch/kocevski/628446/cmap_698630401_698889601_4FGL_J1058.0+4305_daily_bin1772.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628446/ft1_filtered_4FGL_J1058.0+4305_daily_bin1772.fits scfile=/scratch/kocevski/628446/ft2_4FGL_J1058.0+4305_daily_bin1772.fits outfile=/scratch/kocevski/628446/cmap_HighResolution_698630401_698889601_4FGL_J1058.0+4305_daily_bin1772.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.53
user 0.35
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/628446/ft1_filtered_4FGL_J1058.0+4305_daily_bin1772.fits', '/scratch/kocevski/628446/ft2_4FGL_J1058.0+4305_daily_bin1772.fits', expMap='/scratch/kocevski/628446/expmap_698630401_698889601_4FGL_J1058.0+4305_daily_bin1772.fits', expCube='/scratch/kocevski/628446/ltcube_698630401_698889601_4FGL_J1058.0+4305_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/628446/Model_4FGL_J1058.0+4305_daily_bin1772.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/628446/ft1_filtered_4FGL_J1058.0+4305_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/628446/ft2_4FGL_J1058.0+4305_daily_bin1772.fits
Exposure map: /scratch/kocevski/628446/expmap_698630401_698889601_4FGL_J1058.0+4305_daily_bin1772.fits
Exposure cube: /scratch/kocevski/628446/ltcube_698630401_698889601_4FGL_J1058.0+4305_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/628446/Model_4FGL_J1058.0+4305_daily_bin1772.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 94.7891079266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 91.1661327899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77090       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.1622       1.0000          .0000       .10000E+07
     3 'norm      '    .26861       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.7987       1.0000          .0000       .10000E+07
     5 'norm      '    9.8879       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.9053       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.5496       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.0929       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.1551       1.0000          .0000       .10000E+07
    10 'Prefactor '    10.364       1.0000          .0000       .10000E+07
    11 'norm      '    .70263E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.8214       1.0000          .0000       .10000E+07
    13 'Prefactor '    .95367       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.7084       1.0000          .0000       .10000E+07
    15 'norm      '    8.5164       1.0000          .0000       .10000E+07
    16 'norm      '    5.5100       1.0000          .0000       .10000E+07
    17 'Prefactor '    .10140E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.0978       1.0000          .0000       .10000E+07
    19 'norm      '    .14588E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .62712E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    5.6634       1.0000          .0000       .10000E+07
    22 'norm      '    .52544E-05   1.0000          .0000       .10000E+07
    23 'norm      '    42.967       1.0000          .0000       .10000E+07
    24 'Prefactor '    .73053E-06   1.0000          .0000       .10000E+07
    25 'Prefactor '    225.10       1.0000          .0000       .10000E+07
    26 'Prefactor '    150.32       1.0000          .0000       .10000E+07
    27 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .14565       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=   82.32089     FROM MIGRAD    STATUS=CONVERGED    958 CALLS     1168 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        129.70       -.91867E-07** at limit **
   2  Prefactor     1.1622        .61519E+06     .0000         .0000    
   3  norm           .0000        95.623       -.55610E-07** at limit **
   4  Prefactor     1.7987        .61508E+06     .0000         .0000    
   5  norm          .10000E+07    .58511E+06    .67180E-04** at limit **
   6  Prefactor     .10000E+07    .99653E+06    .42243E-04** at limit **
   7  Prefactor     .10000E+07    .66827E+06   -.15750E-06** at limit **
   8  Prefactor     .10000E+07    .67593E+06   -.98975E-04** at limit **
   9  Prefactor     .10000E+07    .17923E+06   -.12210E-05** at limit **
  10  Prefactor     .73497E-07    16757.        .42131E-05** at limit **
  11  norm          .29976E-08    165.24       -.42291E-06** at limit **
  12  Prefactor     .25369E-07    1817.3        .60900E-06** at limit **
  13  Prefactor     .88818E-08    66546.       -.11621E-04** at limit **
  14  Prefactor     .32740E-06    8636.1       -.34382E-05** at limit **
  15  norm          .11313E-06    13131.       -.16568E-05** at limit **
  16  norm          .10048E-07    669.52        .10027E-06** at limit **
  17  Prefactor      .0000        136.69       -.86673E-07** at limit **
  18  Prefactor     .82656E-07    647.12       -.58186E-06** at limit **
  19  norm          .18596E-07    28.253       -.79054E-06** at limit **
  20  Prefactor     .55511E-10    422.93        .10863E-05** at limit **
  21  Prefactor     .13151E-06    2002.2        .42426E-05** at limit **
  22  norm          .13323E-08    6.4815        .15209E-06** at limit **
  23  norm          31.810        40.131        .39701E-07   -.73992E-04
  24  Prefactor     .27756E-09    4.7539       -.15903E-06** at limit **
  25  Prefactor     236.74        215.25       -.63519E-08    .25034E-03
  26  Prefactor     .56066E-07    954.03       -.34356E-05** at limit **
  27  Normalizat    .10000E-01    .17043        .21482E-05** at limit **
  28  Prefactor     .34750E-12    .20718       -.20105E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 1.16222
  norm       = 0
  Prefactor  = 1.79868
  norm       = 1e+06
  Prefactor  = 1e+06
  Prefactor  = 1e+06
  Prefactor  = 1e+06
  Prefactor  = 1e+06
  Prefactor  = 7.34968e-08
  norm       = 2.9976e-09
  Prefactor  = 2.53686e-08
  Prefactor  = 8.88178e-09
  Prefactor  = 3.27405e-07
  norm       = 1.13132e-07
  norm       = 1.00475e-08
  Prefactor  = 0
  Prefactor  = 8.26561e-08
  norm       = 1.85962e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 1.31506e-07
  norm       = 1.33227e-09
  norm       = 31.8101
  Prefactor  = 2.77556e-10
  Prefactor  = 236.741
  Prefactor  = 5.60663e-08
  Normalizat = 0.01
  Prefactor  = 3.475e-13
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   82.32089     FROM HESSE     STATUS=FAILED        15 CALLS     1183 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        134.16        .55129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     63102.        63101.         .0000       -1.5686    
   3  norm           .0000        .28427       -.55610E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7987        1.0451         .0000       -1.5681    
   5  norm          .10000E+07    .25349E-01    .67180E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E+07    .31752E-01    .42243E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E+07    .71887E-01   -.15750E-06   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E+07    .32600       -.98975E-04   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E+07    .35113E-01   -.12210E-05    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .73497E-07    .24178E-01    .42131E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .29976E-08    .54831       -.42291E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .25369E-07    .14953        .60900E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .88818E-08    .44348E-01   -.11621E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .32740E-06    .95686E-01   -.34382E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .11313E-06    .29457E-01   -.16568E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10048E-07    .45752E-01    .10027E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .44347E-01   -.86673E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .82656E-07    .61944E-01   -.58186E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .18596E-07    .44347E-01   -.79054E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    .56746        .10863E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .13151E-06    .44493E-01    .42426E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .13323E-08    .44347E-01    .15209E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          31.810        .86049        .39701E-07   -1.5595    
  24  Prefactor     .27756E-09    .44347E-01   -.15903E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     236.74        1.0255       -.63519E-08   -1.5400    
  26  Prefactor     .56066E-07    .16634E-02   -.34356E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .25582        .21482E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .34750E-12    .29347       -.20105E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.33552e-10
Minuit parameter uncertainties:
  1  7.09608e-05
  2  1.15103
  3  1.88811e-06
  4  1.04507
  5  0.0019539
  6  0.00311578
  7  0.000557473
  8  0.00517222
  9  6.82411e-05
  10  8.43148e-05
  11  8.10224e-05
  12  0.000123231
  13  3.97518e-05
  14  0.00035398
  15  0.000115464
  16  4.28563e-05
  17  3.03231e-07
  18  0.000143109
  19  5.74476e-05
  20  8.14551e-06
  21  0.000152983
  22  1.5339e-05
  23  0.860491
  24  6.71168e-06
  25  1.02553
  26  1.93107e-05
  27  2.89129e-07
  28  6.41769e-07
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 82.3208892615

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.000e+06  6.824e-05  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:  3.475e-13  6.418e-07  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:  1.000e-02  2.891e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.07
Ra Dec: 164.518 43.094
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 3.41e-04 +/- 2.33e-14
Energy Flux (Fixed Index): 1.20e-01 +/- 8.22e-12

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) = 47.4759531848
delta logL = 34.8449360767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 47.4440665509
delta logL = 34.8768227105

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   47.44406     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      147 TOTAL
                     EDM=   .62E-17  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E+07    .11825E+06    .19531E-02** at limit **
   2  Index         10.000        .10167        .30332E-08** at limit **
   3  Normalizat    .10000E-01    .14050        .55704E-06** at limit **
   4  Prefactor      .0000        .14097       -.55884E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1e+06
  Index      = 10
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********

 FCN=   47.44406     FROM HESSE     STATUS=OK            25 CALLS      172 TOTAL
                     EDM=   .12E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E+07    .11825E+06    .84236E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         10.000        .10166        .68297E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .14072        .80379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        .14100        .80473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24436e-17
Minuit parameter uncertainties:
  1  0.000427593
  2  8.59354e-11
  3  6.83205e-10
  4  5.26417e-10
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628446': 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): 0
logL (Free Index) = 47.4440626813
delta logL = 34.8768265802

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.000e+06  4.276e-04  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  1.000e+01  8.594e-11  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:  0.000e+00  5.264e-10  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:  1.000e-02  6.832e-10  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 83.63
Ra Dec: 164.518 43.094
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 2.54e+04 +/- 1.18e-05
Energy Flux (Free Index): 2.84e+06 +/- 1.32e-03

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/628446/cmap_HighResolution_698630401_698889601_4FGL_J1058.0+4305_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.41e-04', energy_flux2='2.84e+06', photon_flux_error='2.33e-14', dlogl='3.49e+01', energy_flux='1.20e-01', photon_flux2='2.54e+04', job_status='DONE', time_completed='2023-02-24 01:27:13.421664', photon_index_error2='0.00', photon_index2='10.00', ts='15.07', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', energy_flux_error2='1.32e-03', EG='0.01', time_epoch_completed='1677230833.42', return_code='101', job_id='628446', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='8.22e-12', photon_flux_error2='1.18e-05', ts2='83.63', photon_index='2.35' WHERE bin_id='1772' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:27:13 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 628446: <4FGL_J1058.0+4305_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1772> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Feb 24 01:20:21 2023
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:20:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:20:22 2023
Terminated at Fri Feb 24 01:27:14 2023
Results reported at Fri Feb 24 01:27:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1772 164.518 43.0938 698630401 698889601 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 :                                   331.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             475.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   411 sec.
    Turnaround time :                            413 sec.

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

