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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin189
RA = 164.624, Dec = 1.5641
tmin = 288316801, tmax = 288576001
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='325651', job_status='RUN', time_executed='2021-09-02 22:09:56.040427', time_epoch_executed='1630645796.04' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325651/ft1_4FGL_J1058.4+0133_daily_bin189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325651/ft2_4FGL_J1058.4+0133_daily_bin189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325651/ft1_4FGL_J1058.4+0133_daily_bin189.fits outfile=/scratch/kocevski/325651/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin189.fits ra=164.624 dec=1.5641 rad=12.0 tmin=288316801.0 tmax=288576001.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.68
user 3.42
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325651/ft1_filtered_4FGL_J1058.4+0133_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/325651/ft2_4FGL_J1058.4+0133_daily_bin189.fits sctable="SC_DATA" expcube=/scratch/kocevski/325651/ltcube_288316801_288576001_4FGL_J1058.4+0133_daily_bin189.fits outfile=/scratch/kocevski/325651/expmap_288316801_288576001_4FGL_J1058.4+0133_daily_bin189.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/325651/ltcube_288316801_288576001_4FGL_J1058.4+0133_daily_bin189.fits
.....................!
real 196.43
user 189.66
sys 4.31

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/325651/ft1_filtered_4FGL_J1058.4+0133_daily_bin189.fits scfile=/scratch/kocevski/325651/ft2_4FGL_J1058.4+0133_daily_bin189.fits outfile=/scratch/kocevski/325651/cmap_288316801_288576001_4FGL_J1058.4+0133_daily_bin189.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/325651/ft1_filtered_4FGL_J1058.4+0133_daily_bin189.fits scfile=/scratch/kocevski/325651/ft2_4FGL_J1058.4+0133_daily_bin189.fits outfile=/scratch/kocevski/325651/cmap_HighResolution_288316801_288576001_4FGL_J1058.4+0133_daily_bin189.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.643       1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.429       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .62298       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3298       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9095       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2135       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10346E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0081       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10646       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5532       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7407       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0024       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .43223       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0548       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0504       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=   6906.212     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2474 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0936        .75053E-06** at limit **
   2  Prefactor     41.702        78.540        .18919E-06   -.12869E-04
   3  Prefactor     51.407        55.380       -.27672E-07   -.16706E-05
   4  Prefactor     .10000E-03    12.468        .79806E-06** at limit **
   5  norm          .62295        .96274        .19401E-07    .28405E-05
   6  Prefactor     .10000E-03    2.2958        .62095E-07** at limit **
   7  Prefactor     1.3282        4.4434       -.18713E-05   -.10162E-03
   8  Prefactor     1.9144        9.1303        .28419E-05    .47511E-04
   9  norm          1.2134        .54291       -.52293E-07   -.14884E-03
  10  Prefactor     .10000E-03    9.4076        .23313E-06** at limit **
  11  norm          .10000E-03    .69832       -.62646E-07** at limit **
  12  Prefactor     .10000E-03    6.5668        .48283E-07** at limit **
  13  Prefactor     3.0235        10.473       -.20188E-05   -.46850E-04
  14  Prefactor     .58449E-01    5.2505        .21547E-06    .83867E-04
  15  Prefactor     7.5560        4.7351       -.22865E-06   -.69184E-04
  16  norm          1.7425        6.0076        .23944E-06   -.12561E-03
  17  Prefactor     3.0026        2.8936       -.87650E-07    .15912E-04
  18  norm          .10000E-03    5.2997        .19945E-07** at limit **
  19  Prefactor     .43409        1.6862       -.32813E-07    .24244E-04
  20  Prefactor     .10000E-03    25.449        .60508E-07** at limit **
  21  Normalizat    1.0545        .21170        .19528E-05   -.85869E-04
  22  Prefactor     1.0506        .16012       -.14714E-05    .17799E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 41.702
  Prefactor  = 51.4075
  Prefactor  = 0.0001
  norm       = 0.622947
  Prefactor  = 0.0001
  Prefactor  = 1.32816
  Prefactor  = 1.91441
  norm       = 1.21343
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.02349
  Prefactor  = 0.0584489
  Prefactor  = 7.55596
  norm       = 1.74249
  Prefactor  = 3.00265
  norm       = 0.0001
  Prefactor  = 0.43409
  Prefactor  = 0.0001
  Normalizat = 1.05453
  Prefactor  = 1.05061
 **********
 **   18 **HESSE 
 **********

 FCN=   6906.212     FROM HESSE     STATUS=OK           354 CALLS     2828 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.702        78.472        .62119E-04   -1.4416    
   3  Prefactor     51.407        55.227        .55924E-04   -1.4273    
   4  Prefactor     .10000E-03    12.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .62295        .96198        .47052E-04   -1.5550    
   6  Prefactor     .10000E-03    2.3123        .12290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3282        4.4217        .27196E-03   -1.5477    
   8  Prefactor     1.9144        9.2803        .15043E-02   -1.5431    
   9  norm          1.2134        .53608        .38714E-04   -1.5488    
  10  Prefactor     .10000E-03    9.5738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5583        .13433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0235        10.758        .23402E-03   -1.5360    
  14  Prefactor     .58449E-01    9.8768        .59313E-01   -1.5660    
  15  Prefactor     7.5560        4.7185        .13010E-03   -1.5158    
  16  norm          1.7425        6.1185        .15899E-02   -1.5444    
  17  Prefactor     3.0026        2.8842        .13214E-03   -1.5361    
  18  norm          .10000E-03    5.3013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .43409        2.7666        .19466E-02   -1.5576    
  20  Prefactor     .10000E-03    25.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0545        .22973        .27102E-03   -.91225    
  22  Prefactor     1.0506        .17701        .22328E-03   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.28209e-10
Minuit parameter uncertainties:
  1  6.64988e-07
  2  78.667
  3  55.2816
  4  1.09373e-06
  5  0.962007
  6  2.93312e-06
  7  4.42274
  8  8.43189
  9  0.536085
  10  7.01535e-06
  11  8.35587e-06
  12  4.41629e-06
  13  10.7651
  14  1.51855
  15  4.71871
  16  6.12072
  17  2.88429
  18  1.84904e-06
  19  2.19165
  20  6.72731e-06
  21  0.229949
  22  0.177113
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.213e+00  5.361e-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.051e+00  1.771e-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.055e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.53
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 8.79e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 3.78e-05 +/- 1.67e-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) = 6905.81777821
delta logL = 0.39379386576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6905.79545697
delta logL = 0.416115104096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1638       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7881       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0367       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=   6905.795     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1636        .70376        .94287E-02    .13199E-03
   2  alpha         1.7880        .43286        .30074       -.31748E-04
   3  Normalizat    1.0898        .18057        .60442E-01    .12313E-04
   4  Prefactor     1.0367        .14796        .40762E-01    .79275E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16361
  alpha      = 1.78796
  Normalizat = 1.08984
  Prefactor  = 1.03666
 **********
 **   18 **HESSE 
 **********

 FCN=   6905.795     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1636        .61810        .41796E-04   -1.5492    
   2  alpha         1.7880        .43758        .11527E-01   -.28881    
   3  Normalizat    1.0898        .21190        .26732E-03   -.90079    
   4  Prefactor     1.0367        .17341        .22469E-03   -.91517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44068e-10
Minuit parameter uncertainties:
  1  0.618107
  2  0.440048
  3  0.212066
  4  0.173503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325651': 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) = 6905.79545686
delta logL = 0.416115210703

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.164e+00  6.181e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  1.788e+00  4.400e-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.037e+00  1.735e-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.090e+00  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.36
Ra Dec: 164.624 1.564
Photon Index (Free Index): 1.79 +/- 0.44
Photon Flux (Free Index): 5.53e-08 +/- 4.24e-08
Energy Flux (Free Index): 5.37e-05 +/- 3.72e-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/325651/cmap_HighResolution_288316801_288576001_4FGL_J1058.4+0133_daily_bin189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.79e-08', energy_flux2='5.37e-05', photon_flux_error='3.88e-08', dlogl='4.16e-01', energy_flux='3.78e-05', photon_flux2='5.53e-08', job_status='DONE', time_completed='2021-09-02 22:21:02.981911', photon_index_error2='0.44', photon_index2='1.79', ts='13.53', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.72e-05', EG='1.05', time_epoch_completed='1630646462.98', return_code='0', job_id='325651', GAL2='1.04', EG2='1.09', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='4.24e-08', ts2='14.36', photon_index='2.19' WHERE bin_id='189' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:21:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 325651: <4FGL_J1058.4+0133_daily_bin189> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin189> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 22:06:52 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:09:43 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:09:43 2021
Terminated at Thu Sep  2 22:21:03 2021
Results reported at Thu Sep  2 22:21:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin189 164.624 1.5641 288316801 288576001 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 :                                   655.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            851 sec.

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

