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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin1760
RA = 164.624, Dec = 1.5641
tmin = 695520001, tmax = 695779201
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='733665', job_status='RUN', time_executed='2023-01-19 00:46:16.544669', time_epoch_executed='1674117976.54' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733665

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733665/ft1_4FGL_J1058.4+0133_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733665/ft2_4FGL_J1058.4+0133_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733665/ft1_4FGL_J1058.4+0133_daily_bin1760.fits outfile=/scratch/kocevski/733665/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin1760.fits ra=164.624 dec=1.5641 rad=12.0 tmin=695520001.0 tmax=695779201.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.43
user 2.22
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/733665/ft2_4FGL_J1058.4+0133_daily_bin1760.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733665/ft2_4FGL_J1058.4+0133_daily_bin1760.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/733665/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin1760.fits evtable="EVENTS" outfile="/scratch/kocevski/733665/ft1_filtered_4FGL_J1058.4+0133_daily_bin1760.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.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 725

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733665/ft1_filtered_4FGL_J1058.4+0133_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/733665/ft2_4FGL_J1058.4+0133_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/733665/ltcube_695520001_695779201_4FGL_J1058.4+0133_daily_bin1760.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/733665/ft2_4FGL_J1058.4+0133_daily_bin1760.fits
.....................!
real 15.75
user 15.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733665/ft1_filtered_4FGL_J1058.4+0133_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/733665/ft2_4FGL_J1058.4+0133_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/733665/ltcube_695520001_695779201_4FGL_J1058.4+0133_daily_bin1760.fits outfile=/scratch/kocevski/733665/expmap_695520001_695779201_4FGL_J1058.4+0133_daily_bin1760.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/733665/ltcube_695520001_695779201_4FGL_J1058.4+0133_daily_bin1760.fits
.....................!
real 193.25
user 187.17
sys 5.56

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

Setting source of interest to:
4FGL J1058.4+0133 @ 164.624 1.5641

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/733665/ft1_filtered_4FGL_J1058.4+0133_daily_bin1760.fits scfile=/scratch/kocevski/733665/ft2_4FGL_J1058.4+0133_daily_bin1760.fits outfile=/scratch/kocevski/733665/cmap_695520001_695779201_4FGL_J1058.4+0133_daily_bin1760.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.624 yref=1.5641 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/733665/ft1_filtered_4FGL_J1058.4+0133_daily_bin1760.fits scfile=/scratch/kocevski/733665/ft2_4FGL_J1058.4+0133_daily_bin1760.fits outfile=/scratch/kocevski/733665/cmap_HighResolution_695520001_695779201_4FGL_J1058.4+0133_daily_bin1760.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.624 yref=1.5641 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733665/ft1_filtered_4FGL_J1058.4+0133_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/733665/ft2_4FGL_J1058.4+0133_daily_bin1760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733665/Model_4FGL_J1058.4+0133_daily_bin1760.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/733665/ft1_filtered_4FGL_J1058.4+0133_daily_bin1760.fits.....................!
real 73.60
user 72.19
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/733665/ft1_filtered_4FGL_J1058.4+0133_daily_bin1760.fits', '/scratch/kocevski/733665/ft2_4FGL_J1058.4+0133_daily_bin1760.fits', expMap='/scratch/kocevski/733665/expmap_695520001_695779201_4FGL_J1058.4+0133_daily_bin1760.fits', expCube='/scratch/kocevski/733665/ltcube_695520001_695779201_4FGL_J1058.4+0133_daily_bin1760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/733665/Model_4FGL_J1058.4+0133_daily_bin1760.xml', optimizer='MINUIT')

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

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.247e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
235        alpha:  2.190e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  4.785e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  8.028e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/733665/ft1_filtered_4FGL_J1058.4+0133_daily_bin1760.fits
Spacecraft file(s): /scratch/kocevski/733665/ft2_4FGL_J1058.4+0133_daily_bin1760.fits
Exposure map: /scratch/kocevski/733665/expmap_695520001_695779201_4FGL_J1058.4+0133_daily_bin1760.fits
Exposure cube: /scratch/kocevski/733665/ltcube_695520001_695779201_4FGL_J1058.4+0133_daily_bin1760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/733665/Model_4FGL_J1058.4+0133_daily_bin1760.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) = 8084.94855367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5253       1.0000          .0000       .10000E+07
     2 'Prefactor '    106.70       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16900       1.0000          .0000       .10000E+07
     4 'Prefactor '    .21779E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .13660       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.3184       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.9118       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.4835       1.0000          .0000       .10000E+07
     9 'norm      '    .65366       1.0000          .0000       .10000E+07
    10 'norm      '    .85099E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    24.340       1.0000          .0000       .10000E+07
    12 'Prefactor '    .79321E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.7339       1.0000          .0000       .10000E+07
    14 'norm      '    .10810E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.0102       1.0000          .0000       .10000E+07
    16 'norm      '    .53419       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.5040       1.0000          .0000       .10000E+07
    18 'Prefactor '    .81755       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2872       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .78254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8084.940     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2052 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5355        5.6181        .33925E-07   -.54391E-02
   2  Prefactor     106.90        90.225        .15959E-05    .78258E-03
   3  Prefactor     .76439E-07    32.603       -.59060E-06** at limit **
   4  Prefactor      .0000        7.3432       -.22516E-08** at limit **
   5  norm          .13447        .72317        .23052E-09** at limit **
   6  Prefactor     3.3073        3.5478        .10615E-07   -.19956E-01
   7  Prefactor     1.9310        4.1287       -.30518E-07   -.13125E-02
   8  Prefactor     3.4889        9.8348       -.29355E-07   -.26313E-03
   9  norm          .65332        .41011        .24383E-08   -.53359E-03
  10  norm           .0000        .46483       -.14900E-08** at limit **
  11  Prefactor     24.070        24.012        .39678E-06   -.58918E-03
  12  Prefactor      .0000        9.1253        .11480E-07** at limit **
  13  Prefactor     4.6699        3.6374        .63055E-08   -.13593E-02
  14  norm           .0000        11.049        .11519E-07** at limit **
  15  Prefactor     3.1644        4.2323        .39260E-08   -.25513E-02
  16  norm          .24092E-07    10.165       -.24155E-07** at limit **
  17  Prefactor     3.5069        2.2372        .13334E-07   -.16482E-02
  18  Prefactor     .26474E-01    32.590        .90508E-07** at limit **
  19  Normalizat    1.2871        .18002       -.14312E-05    .15821E-03
  20  Prefactor     .78340        .13180        .55234E-07   -.33167E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.53554
  Prefactor  = 106.899
  Prefactor  = 7.64389e-08
  Prefactor  = 0
  norm       = 0.134472
  Prefactor  = 3.3073
  Prefactor  = 1.93103
  Prefactor  = 3.48893
  norm       = 0.653322
  norm       = 0
  Prefactor  = 24.0702
  Prefactor  = 0
  Prefactor  = 4.6699
  norm       = 0
  Prefactor  = 3.16438
  norm       = 2.40918e-08
  Prefactor  = 3.50686
  Prefactor  = 0.0264742
  Normalizat = 1.28709
  Prefactor  = 0.783395
 **********
 **   18 **HESSE 
 **********

 FCN=   8084.940     FROM HESSE     STATUS=OK           319 CALLS     2371 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5355        6.9487        .12851E-03   -1.5676    
   2  Prefactor     106.90        91.158        .38727E-05   -1.5501    
   3  Prefactor     .76439E-07    221.79        .91475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        7.3451        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .13447        1.7769        .14931E-03   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3073        4.6994        .11099E-03   -1.5672    
   7  Prefactor     1.9310        4.0404        .23274E-04   -1.5680    
   8  Prefactor     3.4889        9.6201        .21661E-04   -1.5671    
   9  norm          .65332        .40714        .43165E-05   -1.5692    
  10  norm           .0000        .46723        .59862E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.070        23.884        .81096E-05   -1.5610    
  12  Prefactor      .0000        9.1506        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6699        3.6219        .13900E-04   -1.5665    
  14  norm           .0000        11.221        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.1644        4.1291        .17044E-04   -1.5672    
  16  norm          .24092E-07    11.195        .92245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.5069        2.2393        .10117E-04   -1.5671    
  18  Prefactor     .26474E-01    21.128        .10462E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2871        .21470        .24946E-03   -.83953    
  20  Prefactor     .78340        .15685        .24361E-03   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6389e-08
Minuit parameter uncertainties:
  1  6.94868
  2  91.1597
  3  0.00823371
  4  9.49679e-06
  5  0.97764
  6  4.69937
  7  4.04036
  8  9.62011
  9  0.407136
  10  3.3414e-07
  11  23.8844
  12  7.94823e-06
  13  3.62194
  14  1.17715e-05
  15  4.12915
  16  0.00103871
  17  2.23934
  18  1.49578
  19  0.21485
  20  0.156936
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  6.533e-01  4.071e-01  0.000e+00  1.000e+06 ( 1.000e-11)
235        alpha:  2.190e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  4.785e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  8.028e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  7.834e-01  1.569e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.287e+00  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.70
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 4.73e-08 +/- 2.95e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.27e-05

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) = 8084.82651728
delta logL = 0.113568379338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8084.81300612
delta logL = 0.127079539701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55971       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8444       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77882       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8084.813     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      231 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55934        15.152        .72917E-03    .27203E-02
   2  alpha         1.8442        2.5273        .43100       -.32239E-04
   3  Normalizat    1.3047        .26423        .56111E-01    .77451E-05
   4  Prefactor     .77885        .18346        .43441E-01    .21848E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.559343
  alpha      = 1.84425
  Normalizat = 1.3047
  Prefactor  = 0.778845
 **********
 **   18 **HESSE 
 **********

 FCN=   8084.813     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55934        .52659        .46068E-05   -1.5693    
   2  alpha         1.8442        .72986        .15458E-01   -.26541    
   3  Normalizat    1.3047        .19866        .24813E-03   -.83426    
   4  Prefactor     .77885        .15457        .24440E-03   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58815e-09
Minuit parameter uncertainties:
  1  0.526594
  2  0.741476
  3  0.198775
  4  0.154653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733665': 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) = 8084.81300584
delta logL = 0.127079817945

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  5.593e-01  5.266e-01  0.000e+00  1.000e+06 ( 1.000e-11)
235        alpha:  1.844e+00  7.415e-01  0.000e+00  5.000e+00 ( 1.000e+00)
236         beta:  4.785e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  8.028e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  7.788e-01  1.547e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.305e+00  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.94
Ra Dec: 164.624 1.564
Photon Index (Free Index): 1.84 +/- 0.74
Photon Flux (Free Index): 2.79e-08 +/- 4.12e-08
Energy Flux (Free Index): 2.36e-05 +/- 2.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/733665/cmap_HighResolution_695520001_695779201_4FGL_J1058.4+0133_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.73e-08', energy_flux2='2.36e-05', photon_flux_error='2.95e-08', dlogl='1.27e-01', energy_flux='2.04e-05', photon_flux2='2.79e-08', job_status='DONE', time_completed='2023-01-19 00:57:01.905130', photon_index_error2='0.74', photon_index2='1.84', ts='7.70', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.00e-05', EG='1.29', time_epoch_completed='1674118621.91', return_code='0', job_id='733665', GAL2='0.78', EG2='1.30', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='4.12e-08', ts2='7.94', photon_index='2.19' WHERE bin_id='1760' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 00:57:01 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 733665: <4FGL_J1058.4+0133_daily_bin1760> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin1760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jan 19 00:40:33 2023
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 00:44:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 00:44:29 2023
Terminated at Thu Jan 19 00:57:02 2023
Results reported at Thu Jan 19 00:57:02 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin1760 164.624 1.5641 695520001 695779201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.4+0133 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   647.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            989 sec.

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

