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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin959
RA = 164.624, Dec = 1.5641
tmin = 487900801, tmax = 488160001
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='331362', job_status='RUN', time_executed='2021-09-02 22:28:57.883602', time_epoch_executed='1630646937.88' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331362

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331362/ft1_4FGL_J1058.4+0133_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331362/ft2_4FGL_J1058.4+0133_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331362/ft1_4FGL_J1058.4+0133_daily_bin959.fits outfile=/scratch/kocevski/331362/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin959.fits ra=164.624 dec=1.5641 rad=12.0 tmin=487900801.0 tmax=488160001.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 4.99
user 4.72
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/331362/ft1_filtered_4FGL_J1058.4+0133_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/331362/ft2_4FGL_J1058.4+0133_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/331362/ltcube_487900801_488160001_4FGL_J1058.4+0133_daily_bin959.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/331362/ft2_4FGL_J1058.4+0133_daily_bin959.fits
.....................!
real 16.29
user 15.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331362/ft1_filtered_4FGL_J1058.4+0133_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/331362/ft2_4FGL_J1058.4+0133_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/331362/ltcube_487900801_488160001_4FGL_J1058.4+0133_daily_bin959.fits outfile=/scratch/kocevski/331362/expmap_487900801_488160001_4FGL_J1058.4+0133_daily_bin959.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/331362/ltcube_487900801_488160001_4FGL_J1058.4+0133_daily_bin959.fits
.....................!
real 156.50
user 150.87
sys 4.29

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/331362/ft1_filtered_4FGL_J1058.4+0133_daily_bin959.fits scfile=/scratch/kocevski/331362/ft2_4FGL_J1058.4+0133_daily_bin959.fits outfile=/scratch/kocevski/331362/cmap_487900801_488160001_4FGL_J1058.4+0133_daily_bin959.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.29
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331362/ft1_filtered_4FGL_J1058.4+0133_daily_bin959.fits scfile=/scratch/kocevski/331362/ft2_4FGL_J1058.4+0133_daily_bin959.fits outfile=/scratch/kocevski/331362/cmap_HighResolution_487900801_488160001_4FGL_J1058.4+0133_daily_bin959.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=164.624 yref=1.5641 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.34
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.808       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9241       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7664       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .60731       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.001       1.0000         .10000E-03   10000.    
     9 'norm      '    1.8502       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.554       1.0000         .10000E-03   10000.    
    11 'norm      '    .43379       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .99644E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.742       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .56102       1.0000         .10000E-03   10000.    
    16 'norm      '    11.151       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1026       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2718       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0456       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=   4570.797     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2059 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0774        .73495E-06** at limit **
   2  Prefactor     10.793        101.53       -.22816E-05   -.51214E-05
   3  Prefactor     .10000E-03    37.361       -.11238E-05** at limit **
   4  Prefactor     .10000E-03    14.710        .65070E-06** at limit **
   5  norm          1.9243        1.5520       -.72129E-08   -.51872E-04
   6  Prefactor     8.7670        9.0579        .25503E-06   -.10260E-04
   7  Prefactor     .60354        4.0402       -.10359E-05   -.15922E-03
   8  Prefactor     10.006        12.858       -.45817E-06   -.94389E-04
   9  norm          1.8504        .97435        .90647E-08    .26235E-04
  10  Prefactor     13.549        12.947        .10239E-06   -.87059E-05
  11  norm          .43387        1.5480       -.54022E-06   -.26033E-03
  12  Prefactor     .10000E-03    13.086       -.12088E-06** at limit **
  13  Prefactor     .10001E-03    163.54       -.39020E-05** at limit **
  14  Prefactor     12.753        14.126       -.37986E-06   -.69206E-04
  15  Prefactor     .63462        7.2696       -.91952E-06    .51707E-03
  16  norm          11.131        12.698       -.47532E-06   -.12056E-04
  17  Prefactor     .10000E-03    3.2788        .88593E-07** at limit **
  18  norm          .10000E-03    14.456        .40466E-06** at limit **
  19  Prefactor     7.1021        3.6605       -.15224E-07   -.27471E-04
  20  Prefactor     .10000E-03    45.027        .31131E-05** at limit **
  21  Normalizat    1.2720        .26334       -.98555E-06   -.10470E-03
  22  Prefactor     1.0453        .20087       -.32576E-09   -.11974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.7925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.92428
  Prefactor  = 8.76703
  Prefactor  = 0.603542
  Prefactor  = 10.0057
  norm       = 1.85045
  Prefactor  = 13.5486
  norm       = 0.433875
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 12.7526
  Prefactor  = 0.634622
  norm       = 11.1307
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.10214
  Prefactor  = 0.0001
  Normalizat = 1.27204
  Prefactor  = 1.04534
 **********
 **   18 **HESSE 
 **********

 FCN=   4570.797     FROM HESSE     STATUS=OK           354 CALLS     2413 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.793        101.30        .12187E-03   -1.5051    
   3  Prefactor     .10000E-03    37.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9243        1.5515        .72679E-04   -1.5431    
   6  Prefactor     8.7670        9.0762        .13538E-03   -1.5116    
   7  Prefactor     .60354        4.0503        .25416E-03   -1.5553    
   8  Prefactor     10.006        12.780        .12671E-03   -1.5075    
   9  norm          1.8504        .97901        .42459E-04   -1.5436    
  10  Prefactor     13.549        13.078        .10880E-03   -1.4972    
  11  norm          .43387        1.5401        .14992E-03   -1.5576    
  12  Prefactor     .10000E-03    13.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    160.10        .52089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.753        13.746        .11221E-03   -1.4994    
  15  Prefactor     .63462        29.060        .27487E-02   -1.5549    
  16  norm          11.131        12.982        .11997E-03   -1.5041    
  17  Prefactor     .10000E-03    3.3023        .11954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    14.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.1021        3.6633        .89464E-04   -1.5175    
  20  Prefactor     .10000E-03    45.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2720        .31482        .28692E-03   -.84405    
  22  Prefactor     1.0453        .23901        .25390E-03   -.91233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91192e-09
Minuit parameter uncertainties:
  1  5.51809e-05
  2  66.2783
  3  4.93065e-05
  4  7.44987e-05
  5  1.55157
  6  9.07762
  7  3.12703
  8  12.7835
  9  0.97902
  10  13.0812
  11  1.54022
  12  1.46192e-05
  13  0.00285712
  14  13.7489
  15  8.59261
  16  12.9856
  17  1.15673e-05
  18  1.83745e-05
  19  3.66338
  20  0.000186545
  21  0.315295
  22  0.239259
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.850e+00  9.790e-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.045e+00  2.393e-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.272e+00  3.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.93
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.34e-07 +/- 7.09e-08
Energy Flux (Fixed Index): 5.77e-05 +/- 3.05e-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) = 4570.74184559
delta logL = 0.0550249684075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4570.73801944
delta logL = 0.0588511222059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7381       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3500       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0548       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=   4570.738     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      235 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7381        14.347        .79568E-02    .23736E-03
   2  alpha         2.3500        3.6220        .23811        .33254E-04
   3  Normalizat    1.2521        .14979        .65257E-01    .60964E-05
   4  Prefactor     1.0547        .93121E-01    .57181E-01    .63218E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73808
  alpha      = 2.35002
  Normalizat = 1.25213
  Prefactor  = 1.05474
 **********
 **   18 **HESSE 
 **********

 FCN=   4570.738     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7381        .93833        .39886E-04   -1.5444    
   2  alpha         2.3500        .47795        .94294E-02   -.60028E-01
   3  Normalizat    1.2521        .29519        .28868E-03   -.85007    
   4  Prefactor     1.0547        .23664        .25285E-03   -.90926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29017e-12
Minuit parameter uncertainties:
  1  0.938338
  2  0.480925
  3  0.295586
  4  0.236873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331362': 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) = 4570.73801943
delta logL = 0.0588511378846

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.738e+00  9.383e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.350e+00  4.809e-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.055e+00  2.369e-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.252e+00  2.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.18
Ra Dec: 164.624 1.564
Photon Index (Free Index): 2.35 +/- 0.48
Photon Flux (Free Index): 1.54e-07 +/- 9.10e-08
Energy Flux (Free Index): 5.31e-05 +/- 2.77e-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/331362/cmap_HighResolution_487900801_488160001_4FGL_J1058.4+0133_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-07', energy_flux2='5.31e-05', photon_flux_error='7.09e-08', dlogl='5.89e-02', energy_flux='5.77e-05', photon_flux2='1.54e-07', job_status='DONE', time_completed='2021-09-02 22:36:18.075360', photon_index_error2='0.48', photon_index2='2.35', ts='8.93', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.77e-05', EG='1.27', time_epoch_completed='1630647378.08', return_code='0', job_id='331362', GAL2='1.05', EG2='1.25', return_code2='0', energy_flux_error='3.05e-05', photon_flux_error2='9.10e-08', ts2='9.18', photon_index='2.19' WHERE bin_id='959' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:36:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 331362: <4FGL_J1058.4+0133_daily_bin959> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin959> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Sep  2 22:26:31 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:26:56 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:26:56 2021
Terminated at Thu Sep  2 22:36:18 2021
Results reported at Thu Sep  2 22:36:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin959 164.624 1.5641 487900801 488160001 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 :                                   433.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             290.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            587 sec.

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

