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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin196
RA = 164.624, Dec = 1.5641
tmin = 290131201, tmax = 290390401
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='325663', job_status='RUN', time_executed='2021-09-02 22:13:33.100946', time_epoch_executed='1630646013.1' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='196'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325663

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325663/ft1_4FGL_J1058.4+0133_daily_bin196.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325663/ft2_4FGL_J1058.4+0133_daily_bin196.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325663/ft1_4FGL_J1058.4+0133_daily_bin196.fits outfile=/scratch/kocevski/325663/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin196.fits ra=164.624 dec=1.5641 rad=12.0 tmin=290131201.0 tmax=290390401.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.52
user 3.20
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325663/ft1_filtered_4FGL_J1058.4+0133_daily_bin196.fits" evtable="EVENTS" scfile=/scratch/kocevski/325663/ft2_4FGL_J1058.4+0133_daily_bin196.fits sctable="SC_DATA" outfile=/scratch/kocevski/325663/ltcube_290131201_290390401_4FGL_J1058.4+0133_daily_bin196.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/325663/ft2_4FGL_J1058.4+0133_daily_bin196.fits
.....................!
real 14.79
user 14.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325663/ft1_filtered_4FGL_J1058.4+0133_daily_bin196.fits evtable="EVENTS" scfile=/scratch/kocevski/325663/ft2_4FGL_J1058.4+0133_daily_bin196.fits sctable="SC_DATA" expcube=/scratch/kocevski/325663/ltcube_290131201_290390401_4FGL_J1058.4+0133_daily_bin196.fits outfile=/scratch/kocevski/325663/expmap_290131201_290390401_4FGL_J1058.4+0133_daily_bin196.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/325663/ltcube_290131201_290390401_4FGL_J1058.4+0133_daily_bin196.fits
.....................!
real 191.45
user 186.45
sys 4.36

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/325663/ft1_filtered_4FGL_J1058.4+0133_daily_bin196.fits scfile=/scratch/kocevski/325663/ft2_4FGL_J1058.4+0133_daily_bin196.fits outfile=/scratch/kocevski/325663/cmap_290131201_290390401_4FGL_J1058.4+0133_daily_bin196.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325663/ft1_filtered_4FGL_J1058.4+0133_daily_bin196.fits scfile=/scratch/kocevski/325663/ft2_4FGL_J1058.4+0133_daily_bin196.fits outfile=/scratch/kocevski/325663/cmap_HighResolution_290131201_290390401_4FGL_J1058.4+0133_daily_bin196.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.63
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10885E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11209E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.758       1.0000         .10000E-03   10000.    
     5 'norm      '    .98366       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26098       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.911       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6570       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0402       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.785       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7936       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.944       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13417E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2002       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11759E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1275       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0381       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0129       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=   5644.127     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2492 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3527       -.65032E-06** at limit **
   2  Prefactor     .10001E-03    106.80       -.64574E-05** at limit **
   3  Prefactor     .10011E-03    588.02       -.15646E-05** at limit **
   4  Prefactor     17.771        20.055       -.15866E-05   -.94327E-04
   5  norm          .98319        1.1948       -.70168E-06   -.10565E-02
   6  Prefactor     .23928        59.630        .13948E-04   -.43738E-04
   7  Prefactor     .10000E-03    2.3398        .17282E-06** at limit **
   8  Prefactor     11.909        10.799       -.90352E-08    .12968E-04
   9  norm          1.6575        1.1652        .22080E-06    .25880E-03
  10  Prefactor     9.0331        18.984       -.79222E-06    .73247E-04
  11  norm          .10000E-03    .42331       -.73276E-07** at limit **
  12  Prefactor     30.782        22.367        .53329E-06   -.30278E-04
  13  Prefactor     5.7915        34.109        .64361E-06   -.59963E-05
  14  Prefactor     27.943        22.289        .51293E-06   -.12059E-04
  15  Prefactor     .10001E-03    6.6603       -.23206E-05** at limit **
  16  norm          3.2004        10.265       -.17905E-06    .81708E-04
  17  Prefactor     .10000E-03    3.3593        .13939E-06** at limit **
  18  norm          .10000E-03    89.737        .86595E-05** at limit **
  19  Prefactor     7.1272        2.9950        .28053E-07    .13873E-04
  20  Prefactor     .10000E-03    13.673        .85111E-07** at limit **
  21  Normalizat    1.0382        .22716       -.11208E-05    .39430E-04
  22  Prefactor     1.0130        .17227        .32649E-06   -.14671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100109
  Prefactor  = 17.7707
  norm       = 0.983193
  Prefactor  = 0.239275
  Prefactor  = 0.0001
  Prefactor  = 11.909
  norm       = 1.65746
  Prefactor  = 9.03308
  norm       = 0.0001
  Prefactor  = 30.7823
  Prefactor  = 5.7915
  Prefactor  = 27.9433
  Prefactor  = 0.000100007
  norm       = 3.20038
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.1272
  Prefactor  = 0.0001
  Normalizat = 1.03815
  Prefactor  = 1.01299
 **********
 **   18 **HESSE 
 **********

 FCN=   5644.127     FROM HESSE     STATUS=OK           356 CALLS     2848 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    104.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10011E-03    588.14        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.771        20.127        .95042E-04   -1.4865    
   5  norm          .98319        1.1759        .94013E-03   -1.5510    
   6  Prefactor     .23928        61.666        .29812E-02   -1.5610    
   7  Prefactor     .10000E-03    2.3976        .22437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.909        10.797        .11607E-03   -1.5018    
   9  norm          1.6575        1.2160        .45226E-04   -1.5450    
  10  Prefactor     9.0331        19.989        .13330E-03   -1.5107    
  11  norm          .10000E-03    .42905        .47710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.782        22.360        .72214E-04   -1.4598    
  13  Prefactor     5.7915        32.927        .16686E-03   -1.5227    
  14  Prefactor     27.943        21.828        .75787E-04   -1.4650    
  15  Prefactor     .10001E-03    36.863        .31955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2004        9.7752        .22649E-03   -1.5350    
  17  Prefactor     .10000E-03    3.3836        .13415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    87.193        .56973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.1272        2.9960        .81237E-04   -1.5174    
  20  Prefactor     .10000E-03    13.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0382        .26333        .28923E-03   -.91763    
  22  Prefactor     1.0130        .20067        .23536E-03   -.92298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53972e-08
Minuit parameter uncertainties:
  1  8.97702e-05
  2  0.00152686
  3  0.0161636
  4  20.135
  5  1.17594
  6  7.6889
  7  1.67546e-05
  8  10.799
  9  1.21597
  10  20.0037
  11  2.3057e-07
  12  22.3664
  13  27.6416
  14  21.8337
  15  0.00104938
  16  9.78008
  17  1.85473e-06
  18  0.000277781
  19  2.99603
  20  7.95443e-06
  21  0.26366
  22  0.20082
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.657e+00  1.216e+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

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.013e+00  2.008e-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.038e+00  2.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.85
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 8.81e-08
Energy Flux (Fixed Index): 5.17e-05 +/- 3.79e-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) = 5640.47247478
delta logL = 3.65446507078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5640.44883945
delta logL = 3.67810040079

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74152       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3832       1.0000          .0000       5.0000    
     3 'Normalizat'    .84505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1062       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=   5640.449     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74145        2.8544        .44021E-02    .54335E-03
   2  alpha         3.3833        3.7195        .14011        .60978E-04
   3  Normalizat    .84518        .97600E-01    .71115E-01    .19106E-04
   4  Prefactor     1.1061        .76251E-01    .37357E-01    .32788E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.741448
  alpha      = 3.38328
  Normalizat = 0.845184
  Prefactor  = 1.10608
 **********
 **   18 **HESSE 
 **********

 FCN=   5640.449     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74145        .56133        .19553E-04   -1.5536    
   2  alpha         3.3833        .48796        .60769E-03    .36111    
   3  Normalizat    .84518        .25745        .31468E-03   -.98414    
   4  Prefactor     1.1061        .20309        .22565E-03   -.89272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6228e-13
Minuit parameter uncertainties:
  1  0.561333
  2  0.491568
  3  0.257819
  4  0.203232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325663': 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) = 5640.4488393
delta logL = 3.6781005561

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  7.414e-01  5.613e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  3.383e+00  4.916e-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.106e+00  2.032e-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.452e-01  2.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.07
Ra Dec: 164.624 1.564
Photon Index (Free Index): 3.38 +/- 0.49
Photon Flux (Free Index): 3.12e-07 +/- 1.09e-07
Energy Flux (Free Index): 5.52e-05 +/- 1.82e-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/325663/cmap_HighResolution_290131201_290390401_4FGL_J1058.4+0133_daily_bin196.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='5.52e-05', photon_flux_error='8.81e-08', dlogl='3.68e+00', energy_flux='5.17e-05', photon_flux2='3.12e-07', job_status='DONE', time_completed='2021-09-02 22:23:17.406508', photon_index_error2='0.49', photon_index2='3.38', ts='7.85', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.82e-05', EG='1.04', time_epoch_completed='1630646597.41', return_code='0', job_id='325663', GAL2='1.11', EG2='0.85', return_code2='0', energy_flux_error='3.79e-05', photon_flux_error2='1.09e-07', ts2='16.07', photon_index='2.19' WHERE bin_id='196' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:23:17 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin196 164.624 1.5641 290131201 290390401 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 :                                   581.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            985 sec.

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

