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


Performing analysis on: 4FGL_J1058.0+4305_daily_bin1763
RA = 164.518, Dec = 43.0938
tmin = 696297601, tmax = 696556801
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='276452', job_status='RUN', time_executed='2023-01-28 00:42:35.486494', time_epoch_executed='1674895355.49' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276452

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276452/ft1_4FGL_J1058.0+4305_daily_bin1763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276452/ft2_4FGL_J1058.0+4305_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276452/ft1_4FGL_J1058.0+4305_daily_bin1763.fits outfile=/scratch/kocevski/276452/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1763.fits ra=164.518 dec=43.0938 rad=12.0 tmin=696297601.0 tmax=696556801.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.62
user 3.37
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276452/ft2_4FGL_J1058.0+4305_daily_bin1763.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/276452/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1763.fits evtable="EVENTS" outfile="/scratch/kocevski/276452/ft1_filtered_4FGL_J1058.0+4305_daily_bin1763.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.54
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 517

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276452/ft1_filtered_4FGL_J1058.0+4305_daily_bin1763.fits" evtable="EVENTS" scfile=/scratch/kocevski/276452/ft2_4FGL_J1058.0+4305_daily_bin1763.fits sctable="SC_DATA" outfile=/scratch/kocevski/276452/ltcube_696297601_696556801_4FGL_J1058.0+4305_daily_bin1763.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/276452/ft2_4FGL_J1058.0+4305_daily_bin1763.fits
.....................!
real 15.09
user 14.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276452/ft1_filtered_4FGL_J1058.0+4305_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/276452/ft2_4FGL_J1058.0+4305_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/276452/ltcube_696297601_696556801_4FGL_J1058.0+4305_daily_bin1763.fits outfile=/scratch/kocevski/276452/expmap_696297601_696556801_4FGL_J1058.0+4305_daily_bin1763.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/276452/ltcube_696297601_696556801_4FGL_J1058.0+4305_daily_bin1763.fits
.....................!
real 191.85
user 186.66
sys 5.21

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/276452/ft1_filtered_4FGL_J1058.0+4305_daily_bin1763.fits scfile=/scratch/kocevski/276452/ft2_4FGL_J1058.0+4305_daily_bin1763.fits outfile=/scratch/kocevski/276452/cmap_696297601_696556801_4FGL_J1058.0+4305_daily_bin1763.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276452/ft1_filtered_4FGL_J1058.0+4305_daily_bin1763.fits scfile=/scratch/kocevski/276452/ft2_4FGL_J1058.0+4305_daily_bin1763.fits outfile=/scratch/kocevski/276452/cmap_HighResolution_696297601_696556801_4FGL_J1058.0+4305_daily_bin1763.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.55
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/276452/ft1_filtered_4FGL_J1058.0+4305_daily_bin1763.fits', '/scratch/kocevski/276452/ft2_4FGL_J1058.0+4305_daily_bin1763.fits', expMap='/scratch/kocevski/276452/expmap_696297601_696556801_4FGL_J1058.0+4305_daily_bin1763.fits', expCube='/scratch/kocevski/276452/ltcube_696297601_696556801_4FGL_J1058.0+4305_daily_bin1763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/276452/Model_4FGL_J1058.0+4305_daily_bin1763.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/276452/ft1_filtered_4FGL_J1058.0+4305_daily_bin1763.fits
Spacecraft file(s): /scratch/kocevski/276452/ft2_4FGL_J1058.0+4305_daily_bin1763.fits
Exposure map: /scratch/kocevski/276452/expmap_696297601_696556801_4FGL_J1058.0+4305_daily_bin1763.fits
Exposure cube: /scratch/kocevski/276452/ltcube_696297601_696556801_4FGL_J1058.0+4305_daily_bin1763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/276452/Model_4FGL_J1058.0+4305_daily_bin1763.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) = 5789.14677305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43083E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .28975E-04   1.0000          .0000       .10000E+07
     3 'norm      '    4.8979       1.0000          .0000       .10000E+07
     4 'Prefactor '    .20000E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .13174E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20197E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .46815E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .10121E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    24.666       1.0000          .0000       .10000E+07
    10 'Prefactor '    .52472E-03   1.0000          .0000       .10000E+07
    11 'norm      '    1.4481       1.0000          .0000       .10000E+07
    12 'Prefactor '    21.412       1.0000          .0000       .10000E+07
    13 'Prefactor '    .27799E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .17681       1.0000          .0000       .10000E+07
    15 'norm      '    9.1194       1.0000          .0000       .10000E+07
    16 'norm      '    .55339E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .65947E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .49533E-05   1.0000          .0000       .10000E+07
    19 'norm      '    4.2750       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.8247       1.0000          .0000       .10000E+07
    21 'Prefactor '    59.273       1.0000          .0000       .10000E+07
    22 'norm      '    .29038       1.0000          .0000       .10000E+07
    23 'norm      '    16.646       1.0000          .0000       .10000E+07
    24 'Prefactor '    .75183E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .82079       1.0000          .0000       .10000E+07
    26 'Prefactor '    23.957       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0268       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86920       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=   5789.120     FROM MIGRAD    STATUS=CONVERGED    247 CALLS     2620 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33307E-09    12.986       -.81440E-07** at limit **
   2  Prefactor      .0000        2.8655       -.14976E-06** at limit **
   3  norm          4.8985        2.8182       -.76993E-08    .22691E-03
   4  Prefactor     .55511E-10    4.7431       -.92863E-07** at limit **
   5  norm          .29186E-05    44.004        .96377E-06** at limit **
   6  Prefactor     .74885E-07    74.602       -.22999E-05** at limit **
   7  Prefactor     .14433E-08    13.798       -.34001E-06** at limit **
   8  Prefactor     .11738E-04    19.855        .91941E-06** at limit **
   9  Prefactor     26.778        72.796        .52371E-06    .36938E-01
  10  Prefactor     .34972E-07    23.907       -.55904E-06** at limit **
  11  norm          1.4476        .37056        .14281E-07   -.19985E-02
  12  Prefactor     21.462        18.104       -.88151E-08   -.46292E-01
  13  Prefactor     .16653E-09    7.2199        .14626E-08** at limit **
  14  Prefactor      .0000        73.538        .40795E-06** at limit **
  15  norm          9.1297        11.445       -.11615E-06    .64960E-02
  16  norm          .69698E-05    24.881        .31732E-06** at limit **
  17  Prefactor      .0000        .94770        .14933E-07** at limit **
  18  Prefactor     .33568E-06    25.794       -.72382E-06** at limit **
  19  norm          4.2718        2.7248        .40602E-07   -.66317E-03
  20  Prefactor     4.9125        7.0340       -.13685E-06    .11786E-03
  21  Prefactor     59.038        21.206       -.15143E-06    .13684    
  22  norm          .30121        1.0613        .44840E-08    .35732E-03
  23  norm          16.635        11.493       -.11766E-07   -.26391E-02
  24  Prefactor     .55511E-10    3.6519       -.12319E-06** at limit **
  25  Prefactor     .87640E-04    633.55       -.20998E-05** at limit **
  26  Prefactor     23.546        6.8253       -.17122E-07   -.60460E-01
  27  Normalizat    1.0268        .19255       -.33161E-05    .19391E-04
  28  Prefactor     .86898        .23765        .25948E-05    .74813E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.33067e-10
  Prefactor  = 0
  norm       = 4.89848
  Prefactor  = 5.55112e-11
  norm       = 2.91861e-06
  Prefactor  = 7.48845e-08
  Prefactor  = 1.44329e-09
  Prefactor  = 1.17383e-05
  Prefactor  = 26.7776
  Prefactor  = 3.4972e-08
  norm       = 1.44759
  Prefactor  = 21.4619
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  norm       = 9.12973
  norm       = 6.96976e-06
  Prefactor  = 0
  Prefactor  = 3.35676e-07
  norm       = 4.27182
  Prefactor  = 4.91252
  Prefactor  = 59.0376
  norm       = 0.301208
  norm       = 16.6349
  Prefactor  = 5.55112e-11
  Prefactor  = 8.76401e-05
  Prefactor  = 23.5464
  Normalizat = 1.02678
  Prefactor  = 0.868982
 **********
 **   18 **HESSE 
 **********

 FCN=   5789.120     FROM HESSE     STATUS=OK           575 CALLS     3195 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33307E-09    12.974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        2.8677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.8985        2.8214        .45425E-03   -1.5664    
   4  Prefactor     .55511E-10    4.7342        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .29186E-05    52.439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .74885E-07    75.192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14433E-08    2.5141        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11738E-04    36.707        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.778        80.608        .20139E-03   -1.5604    
  10  Prefactor     .34972E-07    24.220        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4476        .37025        .48869E-03   -1.5684    
  12  Prefactor     21.462        18.807        .21617E-03   -1.5615    
  13  Prefactor     .16653E-09    7.2284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        73.448        .12204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.1297        11.509        .33165E-03   -1.5648    
  16  norm          .69698E-05    33.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        .94699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .33568E-06    26.644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.2718        2.7672        .48704E-03   -1.5667    
  20  Prefactor     4.9125        7.0539        .45776E-03   -1.5664    
  21  Prefactor     59.038        50.039        .12990E-03   -1.5554    
  22  norm          .30121        1.1532        .10348E-02   -1.5697    
  23  norm          16.635        11.563        .24521E-03   -1.5626    
  24  Prefactor     .55511E-10    3.6393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .87640E-04    679.87        .51398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     23.546        21.430        .20435E-03   -1.5611    
  27  Normalizat    1.0268        .16521        .42494E-01   -.92139    
  28  Prefactor     .86898        .20110        .67000E-01   -.97234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93594e-06
Minuit parameter uncertainties:
  1  0.000130358
  2  1.36577e-05
  3  2.82145
  4  3.45761e-05
  5  0.0247428
  6  0.00474589
  7  0.000120794
  8  0.0415156
  9  80.6113
  10  0.00184057
  11  0.370252
  12  18.8074
  13  6.88204e-05
  14  6.65485e-05
  15  11.5091
  16  0.0307024
  17  1.65976e-07
  18  0.00598124
  19  2.76716
  20  7.05393
  21  50.0393
  22  1.15316
  23  11.5633
  24  2.34002e-05
  25  0.48825
  26  21.4296
  27  0.165295
  28  0.201266
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  2.678e+01  8.061e+01  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:  8.690e-01  2.013e-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:  1.027e+00  1.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/276452/likelihoodResults_696297601_696556801_4FGL_J1058.0+4305_daily_bin1763.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) = 5789.11227105
delta logL = 0.00796410738621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5789.10956363
delta logL = 0.0106715323409

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5789.110     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      280 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.701        127.15        .87842E-05    .71182E-04
   2  Index         2.6475        2.6143        .11650E-01    .99718E-05
   3  Normalizat    1.0221        .19675        .22333E-03    .25095E-03
   4  Prefactor     .87259        .23945        .29584E-03   -.15475E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7006
  Index      = 2.64754
  Normalizat = 1.02214
  Prefactor  = 0.872592
 **********
 **   18 **HESSE 
 **********

 FCN=   5789.110     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.701        81.476        .35137E-06   -1.5617    
   2  Index         2.6475        2.1262        .46602E-03   -.48985    
   3  Normalizat    1.0221        .19566        .44666E-04   -.92292    
   4  Prefactor     .87259        .23836        .11833E-04   -.97105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97938e-10
Minuit parameter uncertainties:
  1  81.4801
  2  2.21857
  3  0.195801
  4  0.238642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276452': 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) = 5789.10956047
delta logL = 0.0106746951124

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  2.070e+01  8.148e+01  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  2.648e+00  2.219e+00  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:  8.726e-01  2.386e-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:  1.022e+00  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/276452/cmap_HighResolution_696297601_696556801_4FGL_J1058.0+4305_daily_bin1763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-03', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2023-01-28 00:55:21.126698', job_id='276452', GAL2='0.87', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1674896121.13', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.07e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1763' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 00:55:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 276452: <4FGL_J1058.0+4305_daily_bin1763> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1763> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jan 28 00:40:32 2023
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 00:42:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 28 00:42:17 2023
Terminated at Sat Jan 28 00:55:21 2023
Results reported at Sat Jan 28 00:55:21 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1763 164.518 43.0938 696297601 696556801 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 :                                   769.18 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            889 sec.

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

