/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 132 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1058.4+0133_daily_bin315
RA = 164.624, Dec = 1.5641
tmin = 320976001, tmax = 321235201
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='326896', job_status='RUN', time_executed='2021-09-02 22:15:50.555891', time_epoch_executed='1630646150.56' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/326896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/326896/ft1_4FGL_J1058.4+0133_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/326896/ft2_4FGL_J1058.4+0133_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/326896/ft1_4FGL_J1058.4+0133_daily_bin315.fits outfile=/scratch/kocevski/326896/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin315.fits ra=164.624 dec=1.5641 rad=12.0 tmin=320976001.0 tmax=321235201.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.51
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/326896/ft2_4FGL_J1058.4+0133_daily_bin315.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/326896/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin315.fits evtable="EVENTS" outfile="/scratch/kocevski/326896/ft1_filtered_4FGL_J1058.4+0133_daily_bin315.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/326896/ft1_filtered_4FGL_J1058.4+0133_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/326896/ft2_4FGL_J1058.4+0133_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/326896/ltcube_320976001_321235201_4FGL_J1058.4+0133_daily_bin315.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/326896/ft2_4FGL_J1058.4+0133_daily_bin315.fits
.....................!
real 14.73
user 14.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/326896/ft1_filtered_4FGL_J1058.4+0133_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/326896/ft2_4FGL_J1058.4+0133_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/326896/ltcube_320976001_321235201_4FGL_J1058.4+0133_daily_bin315.fits outfile=/scratch/kocevski/326896/expmap_320976001_321235201_4FGL_J1058.4+0133_daily_bin315.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/326896/ltcube_320976001_321235201_4FGL_J1058.4+0133_daily_bin315.fits
.....................!
real 190.59
user 185.25
sys 4.91

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/326896/ft1_filtered_4FGL_J1058.4+0133_daily_bin315.fits scfile=/scratch/kocevski/326896/ft2_4FGL_J1058.4+0133_daily_bin315.fits outfile=/scratch/kocevski/326896/cmap_320976001_321235201_4FGL_J1058.4+0133_daily_bin315.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/326896/ft1_filtered_4FGL_J1058.4+0133_daily_bin315.fits scfile=/scratch/kocevski/326896/ft2_4FGL_J1058.4+0133_daily_bin315.fits outfile=/scratch/kocevski/326896/cmap_HighResolution_320976001_321235201_4FGL_J1058.4+0133_daily_bin315.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/326896/ft1_filtered_4FGL_J1058.4+0133_daily_bin315.fits', '/scratch/kocevski/326896/ft2_4FGL_J1058.4+0133_daily_bin315.fits', expMap='/scratch/kocevski/326896/expmap_320976001_321235201_4FGL_J1058.4+0133_daily_bin315.fits', expCube='/scratch/kocevski/326896/ltcube_320976001_321235201_4FGL_J1058.4+0133_daily_bin315.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/326896/Model_4FGL_J1058.4+0133_daily_bin315.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  1.000e-04  1.000e+04 ( 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  0.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/326896/ft1_filtered_4FGL_J1058.4+0133_daily_bin315.fits
Spacecraft file(s): /scratch/kocevski/326896/ft2_4FGL_J1058.4+0133_daily_bin315.fits
Exposure map: /scratch/kocevski/326896/expmap_320976001_321235201_4FGL_J1058.4+0133_daily_bin315.fits
Exposure cube: /scratch/kocevski/326896/ltcube_320976001_321235201_4FGL_J1058.4+0133_daily_bin315.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/326896/Model_4FGL_J1058.4+0133_daily_bin315.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) = 7543.42824298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9579       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .19713       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7574       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.072       1.0000         .10000E-03   10000.    
     9 'norm      '    3.4612       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.020       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6268       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7138       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3999       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1798       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .69606       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3503       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=   7543.411     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2386 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9576        5.2509        .75893E-06   -.11699E-02
   2  Prefactor     .10000E-03    19.649       -.12779E-04** at limit **
   3  Prefactor     .10000E-03    32.132       -.14726E-04** at limit **
   4  Prefactor     .10000E-03    7.4273        .19384E-06** at limit **
   5  norm          .19684        .61715       -.23903E-06   -.17321E-03
   6  Prefactor     1.7563        3.2512        .20171E-06   -.22806E-02
   7  Prefactor     .10000E-03    2.2865       -.18561E-07** at limit **
   8  Prefactor     20.076        9.1621        .64238E-06    .61068E-04
   9  norm          3.4611        .76353       -.36290E-08    .25951E-03
  10  Prefactor     .10000E-03    3.7847       -.38226E-06** at limit **
  11  norm          .10000E-03    .71709        .14893E-06** at limit **
  12  Prefactor     47.007        29.930       -.10889E-04   -.55845E-04
  13  Prefactor     .10000E-03    4.1014        .12576E-05** at limit **
  14  Prefactor     6.6238        8.6795       -.60849E-06   -.47063E-04
  15  Prefactor     9.7136        4.8488       -.11655E-06   -.48424E-03
  16  norm          .10000E-03    4.4033       -.99597E-06** at limit **
  17  Prefactor     2.3984        3.0314       -.34424E-06   -.69574E-03
  18  norm          .10000E-03    24.895        .17595E-04** at limit **
  19  Prefactor     3.1799        2.1478       -.11644E-06   -.71067E-04
  20  Prefactor     .10000E-03    21.933        .75943E-05** at limit **
  21  Normalizat    .69580        .19478        .36969E-05   -.37271E-04
  22  Prefactor     1.3506        .15752       -.48144E-06    .66736E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.9576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.196845
  Prefactor  = 1.75626
  Prefactor  = 0.0001
  Prefactor  = 20.0756
  norm       = 3.46106
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.0068
  Prefactor  = 0.0001
  Prefactor  = 6.62376
  Prefactor  = 9.71361
  norm       = 0.0001
  Prefactor  = 2.39841
  norm       = 0.0001
  Prefactor  = 3.17988
  Prefactor  = 0.0001
  Normalizat = 0.695795
  Prefactor  = 1.35063
 **********
 **   18 **HESSE 
 **********

 FCN=   7543.411     FROM HESSE     STATUS=OK           344 CALLS     2730 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9576        6.0889        .14824E-02   -1.5428    
   2  Prefactor     .10000E-03    19.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .19684        .74454        .11536E-02   -1.5619    
   6  Prefactor     1.7563        5.4357        .15807E-02   -1.5443    
   7  Prefactor     .10000E-03    2.3277        .12802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.076        9.1727        .89400E-04   -1.4812    
   9  norm          3.4611        .76308        .33861E-04   -1.5336    
  10  Prefactor     .10000E-03    3.7957        .16487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .74654        .14350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     47.007        30.106        .58474E-04   -1.4336    
  13  Prefactor     .10000E-03    4.1111        .17170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.6238        8.6714        .15588E-03   -1.5193    
  15  Prefactor     9.7136        4.8569        .63289E-03   -1.5085    
  16  norm          .10000E-03    4.4411        .17776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3984        3.0139        .16234E-03   -1.5398    
  18  norm          .10000E-03    25.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.1799        2.1487        .10011E-03   -1.5351    
  20  Prefactor     .10000E-03    22.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .69580        .22533        .34585E-03   -1.0406    
  22  Prefactor     1.3506        .18362        .21771E-03   -.81814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89253e-08
Minuit parameter uncertainties:
  1  6.09079
  2  6.66116e-05
  3  0.000119929
  4  7.6881e-06
  5  0.744576
  6  5.43724
  7  1.38202e-06
  8  9.17334
  9  0.763081
  10  4.42752e-06
  11  1.09725e-05
  12  30.1153
  13  1.83903e-06
  14  8.67305
  15  4.85714
  16  1.50752e-06
  17  3.01409
  18  5.49176e-06
  19  2.14877
  20  4.24949e-05
  21  0.225634
  22  0.183712
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  3.461e+00  7.631e-01  1.000e-04  1.000e+04 ( 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  0.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:  1.351e+00  1.837e-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:  6.958e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 72.35
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.51e-07 +/- 5.53e-08
Energy Flux (Fixed Index): 1.08e-04 +/- 2.38e-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) = 7542.46188273
delta logL = 0.949599619196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7542.46123556
delta logL = 0.950246788855

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7356       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9160       1.0000          .0000       5.0000    
     3 'Normalizat'    .74456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3293       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=   7542.461     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      211 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7356        .99922        .52228E-02    .16260E-02
   2  alpha         1.9160        .22108        .15119        .53088E-04
   3  Normalizat    .74456        .18577        .75886E-01    .41165E-04
   4  Prefactor     1.3293        .15605        .49635E-01    .10675E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.73563
  alpha      = 1.91595
  Normalizat = 0.744559
  Prefactor  = 1.32928
 **********
 **   18 **HESSE 
 **********

 FCN=   7542.461     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7356        .86134        .37155E-04   -1.5321    
   2  alpha         1.9160        .19653        .64572E-02   -.23580    
   3  Normalizat    .74456        .21549        .33591E-03   -1.0216    
   4  Prefactor     1.3293        .18159        .21942E-03   -.82441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15035e-11
Minuit parameter uncertainties:
  1  0.861347
  2  0.196748
  3  0.215739
  4  0.181676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/326896': 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) = 7542.46123556
delta logL = 0.950246788911

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  3.736e+00  8.613e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  1.916e+00  1.967e-01  0.000e+00  5.000e+00 ( 1.000e+00)
236         beta:  4.785e-02  0.000e+00  0.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:  1.329e+00  1.817e-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:  7.446e-01  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 74.25
Ra Dec: 164.624 1.564
Photon Index (Free Index): 1.92 +/- 0.20
Photon Flux (Free Index): 2.00e-07 +/- 5.93e-08
Energy Flux (Free Index): 1.44e-04 +/- 4.83e-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/326896/cmap_HighResolution_320976001_321235201_4FGL_J1058.4+0133_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.51e-07', energy_flux2='1.44e-04', photon_flux_error='5.53e-08', dlogl='9.50e-01', energy_flux='1.08e-04', photon_flux2='2.00e-07', job_status='DONE', time_completed='2021-09-02 22:26:59.120760', photon_index_error2='0.20', photon_index2='1.92', ts='72.35', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', energy_flux_error2='4.83e-05', EG='0.70', time_epoch_completed='1630646819.12', return_code='0', job_id='326896', GAL2='1.33', EG2='0.74', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='5.93e-08', ts2='74.25', photon_index='2.19' WHERE bin_id='315' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:26:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 326896: <4FGL_J1058.4+0133_daily_bin315> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin315> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 22:11:30 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:13:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 22:13:27 2021
Terminated at Thu Sep  2 22:27:00 2021
Results reported at Thu Sep  2 22:27:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin315 164.624 1.5641 320976001 321235201 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 :                                   665.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            930 sec.

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

