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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin873
RA = 164.624, Dec = 1.5641
tmin = 465609601, tmax = 465868801
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='330386', job_status='RUN', time_executed='2021-09-02 22:25:13.457046', time_epoch_executed='1630646713.46' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='873'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330386

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330386/ft1_4FGL_J1058.4+0133_daily_bin873.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330386/ft2_4FGL_J1058.4+0133_daily_bin873.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330386/ft1_4FGL_J1058.4+0133_daily_bin873.fits outfile=/scratch/kocevski/330386/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin873.fits ra=164.624 dec=1.5641 rad=12.0 tmin=465609601.0 tmax=465868801.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.58
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330386/ft1_filtered_4FGL_J1058.4+0133_daily_bin873.fits" evtable="EVENTS" scfile=/scratch/kocevski/330386/ft2_4FGL_J1058.4+0133_daily_bin873.fits sctable="SC_DATA" outfile=/scratch/kocevski/330386/ltcube_465609601_465868801_4FGL_J1058.4+0133_daily_bin873.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/330386/ft2_4FGL_J1058.4+0133_daily_bin873.fits
.....................!
real 16.72
user 16.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330386/ft1_filtered_4FGL_J1058.4+0133_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/330386/ft2_4FGL_J1058.4+0133_daily_bin873.fits sctable="SC_DATA" expcube=/scratch/kocevski/330386/ltcube_465609601_465868801_4FGL_J1058.4+0133_daily_bin873.fits outfile=/scratch/kocevski/330386/expmap_465609601_465868801_4FGL_J1058.4+0133_daily_bin873.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/330386/ltcube_465609601_465868801_4FGL_J1058.4+0133_daily_bin873.fits
.....................!
real 194.37
user 188.13
sys 5.37

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/330386/ft1_filtered_4FGL_J1058.4+0133_daily_bin873.fits scfile=/scratch/kocevski/330386/ft2_4FGL_J1058.4+0133_daily_bin873.fits outfile=/scratch/kocevski/330386/cmap_465609601_465868801_4FGL_J1058.4+0133_daily_bin873.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.59
user 0.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7634       1.0000         .10000E-03   10000.    
     2 'Prefactor '    70.662       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8686       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7619       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5372       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65124       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3979       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15260E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34480E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.5002       1.0000         .10000E-03   10000.    
    18 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86074       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4311       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=   5635.590     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2745 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7623        8.8952        .98054E-06    .44617E-04
   2  Prefactor     70.709        67.564       -.19541E-04    .50263E-05
   3  Prefactor     .10000E-03    19.831        .82669E-06** at limit **
   4  Prefactor     .10000E-03    5.7575        .77234E-07** at limit **
   5  norm          1.8687        1.5387       -.43573E-07   -.18340E-03
   6  Prefactor     .10000E-03    4.6049       -.74669E-08** at limit **
   7  Prefactor     4.7603        3.8267        .20643E-07   -.73772E-04
   8  Prefactor     .10000E-03    7.1448       -.26494E-06** at limit **
   9  norm          1.5377        .77849        .13995E-06    .34717E-02
  10  Prefactor     .67126        11.729       -.36927E-05    .15291E-03
  11  norm          1.3964        1.5116       -.22141E-06   -.58725E-03
  12  Prefactor     .10000E-03    71.272        .63940E-06** at limit **
  13  Prefactor     .10724E-03    19.795       -.16234E-05** at limit **
  14  Prefactor     .10000E-03    12.021       -.22280E-06** at limit **
  15  Prefactor     .10000E-03    5.0287       -.15644E-06** at limit **
  16  norm          .10000E-03    14.835       -.45310E-06** at limit **
  17  Prefactor     9.5037        6.1007        .22972E-06    .72065E-04
  18  norm          .10000E-03    20.606       -.65429E-06** at limit **
  19  Prefactor     .10000E-03    2.2148       -.12519E-06** at limit **
  20  Prefactor     .10000E-03    40.365        .45453E-06** at limit **
  21  Normalizat    .86072        .22360        .22529E-05    .28505E-03
  22  Prefactor     1.4312        .18578        .17352E-06    .48904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.76231
  Prefactor  = 70.7094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.86868
  Prefactor  = 0.0001
  Prefactor  = 4.76033
  Prefactor  = 0.0001
  norm       = 1.53768
  Prefactor  = 0.671263
  norm       = 1.39643
  Prefactor  = 0.0001
  Prefactor  = 0.000107237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.50374
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.860718
  Prefactor  = 1.43119
 **********
 **   18 **HESSE 
 **********

 FCN=   5635.590     FROM HESSE     STATUS=OK           346 CALLS     3091 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7623        8.8932        .13540E-03   -1.5116    
   2  Prefactor     70.709        67.279        .47755E-04   -1.4024    
   3  Prefactor     .10000E-03    19.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.7604        .17593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8687        1.5337        .81064E-04   -1.5435    
   6  Prefactor     .10000E-03    4.6421        .15725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7603        3.8250        .12493E-03   -1.5272    
   8  Prefactor     .10000E-03    7.2488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5377        .79071        .38552E-04   -1.5460    
  10  Prefactor     .67126        41.509        .41195E-02   -1.5544    
  11  norm          1.3964        1.4948        .91712E-04   -1.5472    
  12  Prefactor     .10000E-03    72.975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10724E-03    26.626        .88494E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.1702        .32829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.5037        6.0838        .13002E-03   -1.5091    
  18  norm          .10000E-03    20.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.3152        .21792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .86072        .25929        .32590E-03   -.97855    
  22  Prefactor     1.4312        .21822        .22366E-03   -.79485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.6836e-10
Minuit parameter uncertainties:
  1  8.89458
  2  67.3514
  3  8.2218e-05
  4  2.19161e-05
  5  1.53371
  6  8.67807e-06
  7  3.82519
  8  3.79246e-06
  9  0.790715
  10  10.5641
  11  1.49481
  12  0.000165923
  13  0.0277757
  14  5.00983e-06
  15  1.71595e-05
  16  3.09138e-05
  17  6.08417
  18  1.91385e-05
  19  1.18697e-05
  20  8.40704e-05
  21  0.259667
  22  0.218357
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.538e+00  7.907e-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.431e+00  2.184e-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.607e-01  2.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.40
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 5.73e-08
Energy Flux (Fixed Index): 4.79e-05 +/- 2.47e-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) = 5635.49849447
delta logL = 0.0918190423363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5635.4920979
delta logL = 0.098215617546

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6383       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0363       1.0000          .0000       5.0000    
     3 'Normalizat'    .87193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4264       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=   5635.492     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      236 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6384        16.058        .82545E-02    .11089E-03
   2  alpha         2.0363        3.3943        .22329        .16805E-04
   3  Normalizat    .87197        .20706        .73227E-01    .18931E-04
   4  Prefactor     1.4263        .16814        .50670E-01   -.71460E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.63836
  alpha      = 2.03631
  Normalizat = 0.871972
  Prefactor  = 1.42634
 **********
 **   18 **HESSE 
 **********

 FCN=   5635.492     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6384        .73543        .40577E-04   -1.5452    
   2  alpha         2.0363        .34304        .92479E-02   -.18656    
   3  Normalizat    .87197        .25236        .32405E-03   -.97452    
   4  Prefactor     1.4263        .21723        .22400E-03   -.79624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.93239e-11
Minuit parameter uncertainties:
  1  0.735429
  2  0.344169
  3  0.252704
  4  0.217371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330386': 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) = 5635.49209783
delta logL = 0.0982156848286

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.638e+00  7.354e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.036e+00  3.442e-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.426e+00  2.174e-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.720e-01  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.58
Ra Dec: 164.624 1.564
Photon Index (Free Index): 2.04 +/- 0.34
Photon Flux (Free Index): 9.94e-08 +/- 5.15e-08
Energy Flux (Free Index): 5.57e-05 +/- 3.22e-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/330386/cmap_HighResolution_465609601_465868801_4FGL_J1058.4+0133_daily_bin873.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='5.57e-05', photon_flux_error='5.73e-08', dlogl='9.82e-02', energy_flux='4.79e-05', photon_flux2='9.94e-08', job_status='DONE', time_completed='2021-09-02 22:35:30.120801', photon_index_error2='0.34', photon_index2='2.04', ts='16.40', fit_tolerance='1e-08', GAL='1.43', photon_index_error='0.00', energy_flux_error2='3.22e-05', EG='0.86', time_epoch_completed='1630647330.12', return_code='0', job_id='330386', GAL2='1.43', EG2='0.87', return_code2='0', energy_flux_error='2.47e-05', photon_flux_error2='5.15e-08', ts2='16.58', photon_index='2.19' WHERE bin_id='873' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:35:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 330386: <4FGL_J1058.4+0133_daily_bin873> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin873 164.624 1.5641 465609601 465868801 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 :                                   611.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            794 sec.

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

