/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 216 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 = 7367
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1058.4+0133_daily_bin897
RA = 164.624, Dec = 1.5641
tmin = 471830401, tmax = 472089601
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='330423', job_status='RUN', time_executed='2021-09-02 22:26:54.163169', time_epoch_executed='1630646814.16' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330423

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330423/ft1_4FGL_J1058.4+0133_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330423/ft2_4FGL_J1058.4+0133_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330423/ft1_4FGL_J1058.4+0133_daily_bin897.fits outfile=/scratch/kocevski/330423/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin897.fits ra=164.624 dec=1.5641 rad=12.0 tmin=471830401.0 tmax=472089601.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.64
user 3.37
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330423/ft1_filtered_4FGL_J1058.4+0133_daily_bin897.fits" evtable="EVENTS" scfile=/scratch/kocevski/330423/ft2_4FGL_J1058.4+0133_daily_bin897.fits sctable="SC_DATA" outfile=/scratch/kocevski/330423/ltcube_471830401_472089601_4FGL_J1058.4+0133_daily_bin897.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/330423/ft2_4FGL_J1058.4+0133_daily_bin897.fits
.....................!
real 15.96
user 15.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330423/ft1_filtered_4FGL_J1058.4+0133_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/330423/ft2_4FGL_J1058.4+0133_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/330423/ltcube_471830401_472089601_4FGL_J1058.4+0133_daily_bin897.fits outfile=/scratch/kocevski/330423/expmap_471830401_472089601_4FGL_J1058.4+0133_daily_bin897.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/330423/ltcube_471830401_472089601_4FGL_J1058.4+0133_daily_bin897.fits
.....................!
real 191.73
user 185.55
sys 5.54

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/330423/ft1_filtered_4FGL_J1058.4+0133_daily_bin897.fits scfile=/scratch/kocevski/330423/ft2_4FGL_J1058.4+0133_daily_bin897.fits outfile=/scratch/kocevski/330423/cmap_471830401_472089601_4FGL_J1058.4+0133_daily_bin897.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 1.23
user 0.37
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330423/ft1_filtered_4FGL_J1058.4+0133_daily_bin897.fits scfile=/scratch/kocevski/330423/ft2_4FGL_J1058.4+0133_daily_bin897.fits outfile=/scratch/kocevski/330423/cmap_HighResolution_471830401_472089601_4FGL_J1058.4+0133_daily_bin897.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 1.12
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9043       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4461       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6239       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .94785       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.6806       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.959       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.448       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4155       1.0000         .10000E-03   10000.    
    16 'norm      '    23.976       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13203E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.224       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53516       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18021E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98419       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84132       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=   6914.659     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     2410 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2631        .14653E-02** at limit **
   2  Prefactor     .10000E-03    22.582        .18142E-02** at limit **
   3  Prefactor     .10000E-03    22.580        .18142E-02** at limit **
   4  Prefactor     6.9046        9.2496        .15269E-03    .46908E-05
   5  norm          4.4465        1.5328        .58091E-04    .34444E-04
   6  Prefactor     .10000E-03    3.8642        .15849E-02** at limit **
   7  Prefactor     2.6245        2.1026        .10433E-03    .22993E-04
   8  Prefactor     .10000E-03    4.9933        .17948E-02** at limit **
   9  norm          .94796        .45386        .37058E-04    .98783E-04
  10  Prefactor     .10000E-03    2.8398        .13655E-02** at limit **
  11  norm          3.6809        1.3909        .58195E-04    .15824E-04
  12  Prefactor     24.963        16.035        .80182E-04    .14037E-04
  13  Prefactor     22.450        15.822        .84542E-04    .44107E-04
  14  Prefactor     .10000E-03    5.1630        .18142E-02** at limit **
  15  Prefactor     2.4102        4.9969        .23151E-03    .27352E-04
  16  norm          23.968        10.987        .81807E-04    .20192E-03
  17  Prefactor     .10000E-03    4.3749        .33215E-02** at limit **
  18  norm          15.164        16.010        .51326E-03   -.44743E-05
  19  Prefactor     .53421        1.1515        .14371E-02    .44772E-03
  20  Prefactor     .10000E-03    136.08        .63671E-02** at limit **
  21  Normalizat    .98408        .19985        .26200E-03    .13512E-03
  22  Prefactor     .84126        .15846        .22917E-03    .21332E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.90465
  norm       = 4.44654
  Prefactor  = 0.0001
  Prefactor  = 2.62447
  Prefactor  = 0.0001
  norm       = 0.947959
  Prefactor  = 0.0001
  norm       = 3.68089
  Prefactor  = 24.963
  Prefactor  = 22.4497
  Prefactor  = 0.0001
  Prefactor  = 2.41024
  norm       = 23.9676
  Prefactor  = 0.0001
  norm       = 15.1636
  Prefactor  = 0.534206
  Prefactor  = 0.0001
  Normalizat = 0.984076
  Prefactor  = 0.841259
 **********
 **   18 **HESSE 
 **********

 FCN=   6914.659     FROM HESSE     STATUS=OK           322 CALLS     2732 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2633        .29306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9046        9.2493        .61075E-05   -1.5182    
   5  norm          4.4465        1.5328        .23236E-05   -1.5286    
   6  Prefactor     .10000E-03    3.8657        .31697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6245        2.1025        .41731E-05   -1.5384    
   8  Prefactor     .10000E-03    4.9973        .35896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .94796        .45384        .14823E-05   -1.5513    
  10  Prefactor     .10000E-03    2.8400        .27311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6809        1.3909        .23278E-05   -1.5324    
  12  Prefactor     24.963        16.033        .32073E-05   -1.4708    
  13  Prefactor     22.450        15.820        .33817E-05   -1.4760    
  14  Prefactor     .10000E-03    5.1634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4102        4.9932        .92604E-05   -1.5397    
  16  norm          23.968        10.980        .32723E-05   -1.4728    
  17  Prefactor     .10000E-03    4.3973        .66430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.164        15.986        .20530E-04   -1.4929    
  19  Prefactor     .53421        1.1499        .57483E-04   -1.5562    
  20  Prefactor     .10000E-03    139.96        .25468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98408        .19997        .10480E-04   -.93566    
  22  Prefactor     .84126        .15860        .91668E-05   -.98225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.48276e-11
Minuit parameter uncertainties:
  1  1.99907e-06
  2  1.87596e-07
  3  1.18879e-05
  4  9.25117
  5  1.5328
  6  5.81432e-06
  7  2.10258
  8  5.85768e-06
  9  0.453842
  10  5.56847e-07
  11  1.39091
  12  16.0362
  13  15.8229
  14  1.15694e-05
  15  4.99404
  16  10.9804
  17  1.90874e-05
  18  15.9902
  19  1.14993
  20  4.18088e-05
  21  0.200119
  22  0.158691
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  9.480e-01  4.538e-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:  8.413e-01  1.587e-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:  9.841e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.09
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 6.87e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 1.41e-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) = 6914.31278968
delta logL = 0.346273403747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6914.3050983
delta logL = 0.353964777787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92332       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8063       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0083       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83281       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=   6914.305     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      201 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92330        .70166        .90688E-02   -.51452E-04
   2  alpha         1.8063        .54503        .32213       -.22965E-04
   3  Normalizat    1.0083        .16991        .46271E-01    .13007E-04
   4  Prefactor     .83281        .13809        .44143E-01    .12882E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.923305
  alpha      = 1.80629
  Normalizat = 1.00831
  Prefactor  = 0.832808
 **********
 **   18 **HESSE 
 **********

 FCN=   6914.305     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92330        .50904        .39640E-04   -1.5516    
   2  alpha         1.8063        .45036        .12315E-01   -.28117    
   3  Normalizat    1.0083        .19416        .25929E-03   -.92753    
   4  Prefactor     .83281        .15806        .23030E-03   -.98530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0045e-10
Minuit parameter uncertainties:
  1  0.50904
  2  0.453041
  3  0.194296
  4  0.158147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330423': 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) = 6914.3050983
delta logL = 0.353964780541

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  9.233e-01  5.090e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  1.806e+00  4.530e-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:  8.328e-01  1.581e-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.008e+00  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.76
Ra Dec: 164.624 1.564
Photon Index (Free Index): 1.81 +/- 0.45
Photon Flux (Free Index): 4.46e-08 +/- 3.47e-08
Energy Flux (Free Index): 4.13e-05 +/- 3.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/330423/cmap_HighResolution_471830401_472089601_4FGL_J1058.4+0133_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.87e-08', energy_flux2='4.13e-05', photon_flux_error='3.29e-08', dlogl='3.54e-01', energy_flux='2.96e-05', photon_flux2='4.46e-08', job_status='DONE', time_completed='2021-09-02 22:37:43.741974', photon_index_error2='0.45', photon_index2='1.81', ts='15.09', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='3.06e-05', EG='0.98', time_epoch_completed='1630647463.74', return_code='0', job_id='330423', GAL2='0.83', EG2='1.01', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='3.47e-08', ts2='15.76', photon_index='2.19' WHERE bin_id='897' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:37:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 330423: <4FGL_J1058.4+0133_daily_bin897> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin897> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 22:22:19 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:23:05 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:23:05 2021
Terminated at Thu Sep  2 22:37:44 2021
Results reported at Thu Sep  2 22:37:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin897 164.624 1.5641 471830401 472089601 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 :                                   637.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            925 sec.

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

