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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin294
RA = 164.624, Dec = 1.5641
tmin = 315532801, tmax = 315792001
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='326857', job_status='RUN', time_executed='2021-09-02 22:13:28.631044', time_epoch_executed='1630646008.63' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/326857

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/326857/ft1_4FGL_J1058.4+0133_daily_bin294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/326857/ft2_4FGL_J1058.4+0133_daily_bin294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/326857/ft1_4FGL_J1058.4+0133_daily_bin294.fits outfile=/scratch/kocevski/326857/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin294.fits ra=164.624 dec=1.5641 rad=12.0 tmin=315532801.0 tmax=315792001.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.83
user 3.57
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/326857/ft2_4FGL_J1058.4+0133_daily_bin294.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/326857/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin294.fits evtable="EVENTS" outfile="/scratch/kocevski/326857/ft1_filtered_4FGL_J1058.4+0133_daily_bin294.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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/326857/ft1_filtered_4FGL_J1058.4+0133_daily_bin294.fits evtable="EVENTS" scfile=/scratch/kocevski/326857/ft2_4FGL_J1058.4+0133_daily_bin294.fits sctable="SC_DATA" expcube=/scratch/kocevski/326857/ltcube_315532801_315792001_4FGL_J1058.4+0133_daily_bin294.fits outfile=/scratch/kocevski/326857/expmap_315532801_315792001_4FGL_J1058.4+0133_daily_bin294.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/326857/ltcube_315532801_315792001_4FGL_J1058.4+0133_daily_bin294.fits
.....................!
real 191.54
user 186.10
sys 4.18

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/326857/ft1_filtered_4FGL_J1058.4+0133_daily_bin294.fits scfile=/scratch/kocevski/326857/ft2_4FGL_J1058.4+0133_daily_bin294.fits outfile=/scratch/kocevski/326857/cmap_315532801_315792001_4FGL_J1058.4+0133_daily_bin294.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.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.414       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16906E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .54349E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2926       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14661E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0857       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1862       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3721       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2928       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .86126       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.598       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36598E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .44113E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9615       1.0000         .10000E-03   10000.    
    18 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9947       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.671       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84507       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0213       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=   6556.443     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2487 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8951        .71405E-06** at limit **
   2  Prefactor     51.418        66.721        .43538E-05    .14834E-04
   3  Prefactor     .10000E-03    101.44       -.23263E-05** at limit **
   4  Prefactor     .10000E-03    10.924       -.12859E-06** at limit **
   5  norm          .55010E-01    .52975       -.27848E-07    .44143E-05
   6  Prefactor     6.2909        5.0139       -.73366E-07    .31750E-05
   7  Prefactor     .10000E-03    1.7754       -.34257E-06** at limit **
   8  Prefactor     6.0854        7.9905        .25743E-06   -.21055E-03
   9  norm          2.1860        .70112        .87678E-08    .12000E-05
  10  Prefactor     3.3723        4.7652       -.25303E-06   -.38729E-03
  11  norm          1.2916        1.5877       -.21770E-07   -.11218E-03
  12  Prefactor     .76510        20.021        .60060E-06   -.85154E-04
  13  Prefactor     .10000E-03    2.1298        .61474E-08** at limit **
  14  Prefactor     10.597        7.2033       -.98160E-08    .35410E-04
  15  Prefactor     .10000E-03    2.1247        .21523E-07** at limit **
  16  norm          .10000E-03    7.1293       -.31371E-06** at limit **
  17  Prefactor     2.9517        5.0878        .10951E-05    .12218E-03
  18  norm          .10000E-03    9.3195        .16959E-06** at limit **
  19  Prefactor     1.9940        2.0622        .59863E-07   -.10578E-04
  20  Prefactor     18.668        27.927       -.46269E-05   -.10675E-04
  21  Normalizat    .84562        .19118       -.58072E-07    .56463E-04
  22  Prefactor     1.0210        .14490        .57811E-07    .56938E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 51.4182
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0550102
  Prefactor  = 6.29092
  Prefactor  = 0.000100001
  Prefactor  = 6.08535
  norm       = 2.18599
  Prefactor  = 3.37232
  norm       = 1.29158
  Prefactor  = 0.765103
  Prefactor  = 0.0001
  Prefactor  = 10.5968
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.95166
  norm       = 0.0001
  Prefactor  = 1.99398
  Prefactor  = 18.6679
  Normalizat = 0.845619
  Prefactor  = 1.02098
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.443     FROM HESSE     STATUS=OK           354 CALLS     2841 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.418        66.506        .55932E-04   -1.4273    
   3  Prefactor     .10000E-03    102.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55010E-01    3.0836        .11350E-02   -1.5661    
   6  Prefactor     6.2909        5.0111        .15533E-03   -1.5206    
   7  Prefactor     .10000E-03    7.9714        .20072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.0854        8.3251        .81375E-03   -1.5215    
   9  norm          2.1860        .79892        .35645E-04   -1.5412    
  10  Prefactor     3.3723        9.9838        .11018E-02   -1.5341    
  11  norm          1.2916        1.5613        .10625E-03   -1.5481    
  12  Prefactor     .76510        214.02        .65088E-02   -1.5533    
  13  Prefactor     .10000E-03    2.1305        .11540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.597        7.1363        .12308E-03   -1.5057    
  15  Prefactor     .10000E-03    7.1195        .21479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    28.495        .37981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9517        4.8220        .18845E-03   -1.5364    
  18  norm          .10000E-03    9.3275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9940        2.0524        .11214E-03   -1.5426    
  20  Prefactor     18.668        27.944        .92692E-04   -1.4844    
  21  Normalizat    .84562        .22396        .28570E-03   -.98398    
  22  Prefactor     1.0210        .17053        .21344E-03   -.92033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18739e-10
Minuit parameter uncertainties:
  1  2.75166e-05
  2  66.6024
  3  0.000465862
  4  2.90238e-05
  5  0.823011
  6  5.01141
  7  0.000172721
  8  8.32669
  9  0.798923
  10  9.98868
  11  1.56138
  12  25.6845
  13  9.45865e-08
  14  7.13684
  15  1.87919e-06
  16  0.000180868
  17  4.82259
  18  8.42161e-06
  19  2.05247
  20  27.964
  21  0.224202
  22  0.170617
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  2.186e+00  7.989e-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.021e+00  1.706e-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:  8.456e-01  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.69
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 5.79e-08
Energy Flux (Fixed Index): 6.81e-05 +/- 2.49e-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) = 6556.40033639
delta logL = 0.0428689848604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6556.39215203
delta logL = 0.0510533435963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2705       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0954       1.0000          .0000       5.0000    
     3 'Normalizat'    .85885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0141       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6556.392     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      236 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2705        .75617        .37017E-04   -.97850E-03
   2  alpha         2.0954        .29522        .81081E-02   -.48270E-04
   3  Normalizat    .85888        .21117        .28381E-03    .12430E-03
   4  Prefactor     1.0141        .17045        .21411E-03   -.20534E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.27049
  alpha      = 2.09541
  Normalizat = 0.858878
  Prefactor  = 1.01406
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.392     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2705        .75078        .14807E-05   -1.5407    
   2  alpha         2.0954        .29294        .32432E-03   -.16255    
   3  Normalizat    .85888        .21127        .11352E-04   -.97921    
   4  Prefactor     1.0141        .17053        .42823E-04   -.92262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96663e-10
Minuit parameter uncertainties:
  1  0.750784
  2  0.293637
  3  0.211469
  4  0.170625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/326857': 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) = 6556.39215202
delta logL = 0.051053351247

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  2.270e+00  7.508e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.095e+00  2.936e-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.014e+00  1.706e-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:  8.589e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.84
Ra Dec: 164.624 1.564
Photon Index (Free Index): 2.10 +/- 0.29
Photon Flux (Free Index): 1.47e-07 +/- 5.89e-08
Energy Flux (Free Index): 7.41e-05 +/- 3.11e-05

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/326857/cmap_HighResolution_315532801_315792001_4FGL_J1058.4+0133_daily_bin294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='7.41e-05', photon_flux_error='5.79e-08', dlogl='5.11e-02', energy_flux='6.81e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-02 22:23:56.198716', photon_index_error2='0.29', photon_index2='2.10', ts='28.69', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.11e-05', EG='0.85', time_epoch_completed='1630646636.2', return_code='0', job_id='326857', GAL2='1.01', EG2='0.86', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='5.89e-08', ts2='28.84', photon_index='2.19' WHERE bin_id='294' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:23:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 326857: <4FGL_J1058.4+0133_daily_bin294> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin294> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 22:11:27 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:13:04 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:04 2021
Terminated at Thu Sep  2 22:23:57 2021
Results reported at Thu Sep  2 22:23:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin294 164.624 1.5641 315532801 315792001 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 :                                   618.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            750 sec.

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

