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


Performing analysis on: 4FGL_J1058.4+0133_weekly_bin750
RA = 164.624, Dec = 1.5641
tmin = 692582401, tmax = 693187201
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='46360', job_status='RUN', time_executed='2022-12-20 02:55:36.252917', time_epoch_executed='1671533736.25' WHERE source_name='4FGL J1058.4+0133' and cadence='weekly' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46360

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46360/ft1_4FGL_J1058.4+0133_weekly_bin750.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46360/ft2_4FGL_J1058.4+0133_weekly_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46360/ft1_4FGL_J1058.4+0133_weekly_bin750.fits outfile=/scratch/kocevski/46360/ft1_filteredMKT_4FGL_J1058.4+0133_weekly_bin750.fits ra=164.624 dec=1.5641 rad=12.0 tmin=692582401.0 tmax=693187201.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 7.60
user 7.28
sys 0.28

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

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

Number of photons that the gtmktime cut: 1542

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46360/ft1_filtered_4FGL_J1058.4+0133_weekly_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/46360/ft2_4FGL_J1058.4+0133_weekly_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/46360/ltcube_692582401_693187201_4FGL_J1058.4+0133_weekly_bin750.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/46360/ft2_4FGL_J1058.4+0133_weekly_bin750.fits
.....................!
real 25.94
user 25.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46360/ft1_filtered_4FGL_J1058.4+0133_weekly_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/46360/ft2_4FGL_J1058.4+0133_weekly_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/46360/ltcube_692582401_693187201_4FGL_J1058.4+0133_weekly_bin750.fits outfile=/scratch/kocevski/46360/expmap_692582401_693187201_4FGL_J1058.4+0133_weekly_bin750.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/46360/ltcube_692582401_693187201_4FGL_J1058.4+0133_weekly_bin750.fits
.....................!
real 190.68
user 185.46
sys 4.87

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/46360/ft1_filtered_4FGL_J1058.4+0133_weekly_bin750.fits scfile=/scratch/kocevski/46360/ft2_4FGL_J1058.4+0133_weekly_bin750.fits outfile=/scratch/kocevski/46360/cmap_692582401_693187201_4FGL_J1058.4+0133_weekly_bin750.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46360/ft1_filtered_4FGL_J1058.4+0133_weekly_bin750.fits scfile=/scratch/kocevski/46360/ft2_4FGL_J1058.4+0133_weekly_bin750.fits outfile=/scratch/kocevski/46360/cmap_HighResolution_692582401_693187201_4FGL_J1058.4+0133_weekly_bin750.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.57
user 0.42
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/46360/ft1_filtered_4FGL_J1058.4+0133_weekly_bin750.fits', '/scratch/kocevski/46360/ft2_4FGL_J1058.4+0133_weekly_bin750.fits', expMap='/scratch/kocevski/46360/expmap_692582401_693187201_4FGL_J1058.4+0133_weekly_bin750.fits', expCube='/scratch/kocevski/46360/ltcube_692582401_693187201_4FGL_J1058.4+0133_weekly_bin750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/46360/Model_4FGL_J1058.4+0133_weekly_bin750.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/46360/ft1_filtered_4FGL_J1058.4+0133_weekly_bin750.fits
Spacecraft file(s): /scratch/kocevski/46360/ft2_4FGL_J1058.4+0133_weekly_bin750.fits
Exposure map: /scratch/kocevski/46360/expmap_692582401_693187201_4FGL_J1058.4+0133_weekly_bin750.fits
Exposure cube: /scratch/kocevski/46360/ltcube_692582401_693187201_4FGL_J1058.4+0133_weekly_bin750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/46360/Model_4FGL_J1058.4+0133_weekly_bin750.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) = 17111.5773182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51792E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    20.886       1.0000          .0000       .10000E+07
     3 'Prefactor '    .14032E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .70147E-05   1.0000          .0000       .10000E+07
     5 'norm      '    3.2218       1.0000          .0000       .10000E+07
     6 'Prefactor '    .67724E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    .38497E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.7343       1.0000          .0000       .10000E+07
     9 'norm      '    .58303       1.0000          .0000       .10000E+07
    10 'norm      '    .17542E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    9.2271       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.6473       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.6823       1.0000          .0000       .10000E+07
    14 'norm      '    .81251E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.0842       1.0000          .0000       .10000E+07
    16 'norm      '    2.1302       1.0000          .0000       .10000E+07
    17 'Prefactor '    .85695       1.0000          .0000       .10000E+07
    18 'Prefactor '    .62004E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2664       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95848       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17111.43     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1252 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77716E-09    3.0946        .65224E-06** at limit **
   2  Prefactor     21.161        28.711        .55750E-05   -.61470E-03
   3  Prefactor     .11102E-08    11.258       -.11617E-05** at limit **
   4  Prefactor     .49960E-09    2.5335       -.33488E-07** at limit **
   5  norm          3.2212        .85409        .13792E-06    .24662E-01
   6  Prefactor     .11102E-09    1.4098       -.76315E-07** at limit **
   7  Prefactor     .16653E-09    1.2050       -.52174E-06** at limit **
   8  Prefactor     3.6910        3.5831       -.24359E-06   -.64481E-02
   9  norm          .58325        .28162       -.42251E-07    .24814E-01
  10  norm          .55511E-10    .51212        .21811E-06** at limit **
  11  Prefactor     9.0996        7.5822        .17384E-05    .12374E-01
  12  Prefactor     8.4744        8.7867       -.17202E-05    .87249E-02
  13  Prefactor     2.6759        3.2696        .19269E-06   -.93952E-03
  14  norm          .22204E-09    9.0390        .97809E-06** at limit **
  15  Prefactor     1.0896        2.8740        .52457E-06   -.14600E-02
  16  norm          2.1251        5.6873        .24916E-06   -.99380E-02
  17  Prefactor     .85627        1.0873        .58243E-06   -.18439E-01
  18  Prefactor     .29976E-08    16.211        .17628E-05** at limit **
  19  Normalizat    1.2667        .13797       -.35677E-05   -.73909E-03
  20  Prefactor     .95853        .11111       -.31902E-05   -.56683E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.77156e-10
  Prefactor  = 21.161
  Prefactor  = 1.11022e-09
  Prefactor  = 4.996e-10
  norm       = 3.22121
  Prefactor  = 1.11022e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 3.69103
  norm       = 0.583252
  norm       = 5.55112e-11
  Prefactor  = 9.09963
  Prefactor  = 8.47436
  Prefactor  = 2.67586
  norm       = 2.22045e-10
  Prefactor  = 1.08957
  norm       = 2.12511
  Prefactor  = 0.856267
  Prefactor  = 2.9976e-09
  Normalizat = 1.26674
  Prefactor  = 0.958534
 **********
 **   18 **HESSE 
 **********

 FCN=   17111.43     FROM HESSE     STATUS=OK           333 CALLS     1585 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77716E-09    3.0983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.161        28.694        .21888E-03   -1.5616    
   3  Prefactor     .11102E-08    11.279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .49960E-09    2.5385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.2212        .85316        .56414E-03   -1.5672    
   6  Prefactor     .11102E-09    1.4116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .16653E-09    1.1874        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6910        3.5855        .52228E-03   -1.5670    
   9  norm          .58325        .28313        .70762E-03   -1.5693    
  10  norm          .55511E-10    .49913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.0996        8.6419        .32969E-03   -1.5648    
  12  Prefactor     8.4744        9.4107        .34064E-03   -1.5650    
  13  Prefactor     2.6759        3.4350        .62190E-03   -1.5675    
  14  norm          .22204E-09    8.9809        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0896        3.4475        .11535E-02   -1.5687    
  16  norm          2.1251        11.405        .70613E-03   -1.5679    
  17  Prefactor     .85627        1.0935        .48783E-03   -1.5689    
  18  Prefactor     .29976E-08    16.246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2667        .11865        .58568E-01   -.84565    
  20  Prefactor     .95853        .95016E-01    .45746E-01   -.94125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41359e-07
Minuit parameter uncertainties:
  1  9.92812e-05
  2  28.6939
  3  0.000223074
  4  6.97987e-05
  5  0.853163
  6  2.48066e-05
  7  2.61236e-05
  8  3.58549
  9  0.283131
  10  9.8427e-06
  11  8.64188
  12  9.41067
  13  3.43504
  14  9.05382e-05
  15  3.4475
  16  9.84636
  17  1.09348
  18  0.000440513
  19  0.118676
  20  0.0950326
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  5.833e-01  2.831e-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:  9.585e-01  9.503e-02  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.267e+00  1.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.58
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 4.23e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 8.83e-06

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) = 17110.5723373
delta logL = 0.860123968683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17110.5105514
delta logL = 0.921909819066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56583       1.0000          .0000       .10000E+07
     2 'alpha     '    1.6422       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95200       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=   17110.51     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      216 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56583        .33863        .72346E-03    .64441E-02
   2  alpha         1.6421        .30698        .40932       -.92325E-04
   3  Normalizat    1.2841        .11550        .58243E-01    .16878E-04
   4  Prefactor     .95202        .94592E-01    .45664E-01    .28935E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.565833
  alpha      = 1.64209
  Normalizat = 1.28409
  Prefactor  = 0.952016
 **********
 **   18 **HESSE 
 **********

 FCN=   17110.51     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56583        .31557        .47724E-05   -1.5693    
   2  alpha         1.6421        .37122        .13924E-01   -.35028    
   3  Normalizat    1.2841        .13532        .25757E-03   -.84043    
   4  Prefactor     .95202        .11087        .23945E-03   -.94346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43864e-09
Minuit parameter uncertainties:
  1  0.315568
  2  0.372786
  3  0.135354
  4  0.110898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46360': 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) = 17110.5105513
delta logL = 0.92190991827

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  5.658e-01  3.156e-01  0.000e+00  1.000e+06 ( 1.000e-11)
235        alpha:  1.642e+00  3.728e-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:  9.520e-01  1.109e-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.284e+00  1.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.44
Ra Dec: 164.624 1.564
Photon Index (Free Index): 1.64 +/- 0.37
Photon Flux (Free Index): 2.41e-08 +/- 1.68e-08
Energy Flux (Free Index): 3.44e-05 +/- 2.54e-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/46360/cmap_HighResolution_692582401_693187201_4FGL_J1058.4+0133_weekly_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.23e-08', energy_flux2='3.44e-05', photon_flux_error='2.05e-08', dlogl='9.22e-01', energy_flux='1.82e-05', photon_flux2='2.41e-08', job_status='DONE', time_completed='2022-12-20 03:10:13.154144', photon_index_error2='0.37', photon_index2='1.64', ts='12.58', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.54e-05', EG='1.27', time_epoch_completed='1671534613.15', return_code='0', job_id='46360', GAL2='0.95', EG2='1.28', return_code2='0', energy_flux_error='8.83e-06', photon_flux_error2='1.68e-08', ts2='14.44', photon_index='2.19' WHERE bin_id='750' AND source_name='4FGL J1058.4+0133' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 20 03:10:13 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 46360: <4FGL_J1058.4+0133_weekly_bin750> in cluster <slac> Done

Job <4FGL_J1058.4+0133_weekly_bin750> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 20 02:55:20 2022
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 02:55:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 02:55:21 2022
Terminated at Tue Dec 20 03:10:13 2022
Results reported at Tue Dec 20 03:10:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_weekly_bin750 164.624 1.5641 692582401 693187201 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 :                                   875.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             352.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

