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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin28
RA = 164.624, Dec = 1.5641
tmin = 246585601, tmax = 246844801
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='325396', job_status='RUN', time_executed='2021-09-02 22:09:26.795845', time_epoch_executed='1630645766.8' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='28'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325396

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325396/ft1_4FGL_J1058.4+0133_daily_bin28.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325396/ft2_4FGL_J1058.4+0133_daily_bin28.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325396/ft1_4FGL_J1058.4+0133_daily_bin28.fits outfile=/scratch/kocevski/325396/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin28.fits ra=164.624 dec=1.5641 rad=12.0 tmin=246585601.0 tmax=246844801.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 1.44
user 1.26
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/325396/ft2_4FGL_J1058.4+0133_daily_bin28.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/325396/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin28.fits evtable="EVENTS" outfile="/scratch/kocevski/325396/ft1_filtered_4FGL_J1058.4+0133_daily_bin28.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325396/ft1_filtered_4FGL_J1058.4+0133_daily_bin28.fits evtable="EVENTS" scfile=/scratch/kocevski/325396/ft2_4FGL_J1058.4+0133_daily_bin28.fits sctable="SC_DATA" expcube=/scratch/kocevski/325396/ltcube_246585601_246844801_4FGL_J1058.4+0133_daily_bin28.fits outfile=/scratch/kocevski/325396/expmap_246585601_246844801_4FGL_J1058.4+0133_daily_bin28.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/325396/ltcube_246585601_246844801_4FGL_J1058.4+0133_daily_bin28.fits
.....................!
real 195.46
user 191.02
sys 3.82

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/325396/ft1_filtered_4FGL_J1058.4+0133_daily_bin28.fits scfile=/scratch/kocevski/325396/ft2_4FGL_J1058.4+0133_daily_bin28.fits outfile=/scratch/kocevski/325396/cmap_246585601_246844801_4FGL_J1058.4+0133_daily_bin28.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325396/ft1_filtered_4FGL_J1058.4+0133_daily_bin28.fits scfile=/scratch/kocevski/325396/ft2_4FGL_J1058.4+0133_daily_bin28.fits outfile=/scratch/kocevski/325396/cmap_HighResolution_246585601_246844801_4FGL_J1058.4+0133_daily_bin28.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.325       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.091       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .65886       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23495E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1559       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .78888       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .19231       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.114       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6858       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8206       1.0000         .10000E-03   10000.    
    16 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5662       1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8963       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.502       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3537       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88016       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=   9850.330     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2099 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.325        12.788       -.20412E-07   -.15905E-03
   2  Prefactor     25.055        48.251        .33163E-05   -.39225E-03
   3  Prefactor     .10000E-03    19.767       -.61490E-06** at limit **
   4  Prefactor     .10000E-03    6.5608       -.16495E-06** at limit **
   5  norm          .65911        .93852        .10923E-06   -.48295E-03
   6  Prefactor     .10000E-03    2.1253        .28695E-06** at limit **
   7  Prefactor     3.1560        1.9781        .57090E-07   -.32089E-03
   8  Prefactor     .10000E-03    2.6794        .12308E-06** at limit **
   9  norm          .78886        .40427        .92526E-08   -.13534E-02
  10  Prefactor     .10000E-03    4.8431        .21435E-06** at limit **
  11  norm          .19210        .49887        .33840E-06    .49661E-03
  12  Prefactor     12.113        9.7964        .18914E-06   -.73910E-04
  13  Prefactor     5.6834        9.9412        .60357E-06   -.41554E-04
  14  Prefactor     .10000E-03    2.8393       -.71310E-07** at limit **
  15  Prefactor     1.8192        3.8637        .80607E-05   -.23063E-04
  16  norm          .10000E-03    5.2336       -.25554E-06** at limit **
  17  Prefactor     3.5688        4.5135        .20132E-05   -.47912E-03
  18  norm          .10000E-03    5.9285       -.31820E-06** at limit **
  19  Prefactor     7.8958        2.9778       -.60294E-08   -.25876E-03
  20  Prefactor     23.481        22.647       -.12467E-05   -.62272E-03
  21  Normalizat    1.3536        .16461       -.59593E-06   -.20866E-03
  22  Prefactor     .88037        .12841       -.22707E-05   -.63349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.3255
  Prefactor  = 25.0549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.659111
  Prefactor  = 0.000100001
  Prefactor  = 3.15599
  Prefactor  = 0.0001
  norm       = 0.788858
  Prefactor  = 0.0001
  norm       = 0.1921
  Prefactor  = 12.1129
  Prefactor  = 5.68343
  Prefactor  = 0.0001
  Prefactor  = 1.81922
  norm       = 0.0001
  Prefactor  = 3.56876
  norm       = 0.0001
  Prefactor  = 7.89579
  Prefactor  = 23.4806
  Normalizat = 1.35357
  Prefactor  = 0.880372
 **********
 **   18 **HESSE 
 **********

 FCN=   9850.330     FROM HESSE     STATUS=OK           342 CALLS     2441 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.325        12.783        .63917E-04   -1.4453    
   2  Prefactor     25.055        48.684        .79971E-04   -1.4706    
   3  Prefactor     .10000E-03    19.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .65911        .80895        .10914E-02   -1.5546    
   6  Prefactor     .10000E-03    14.382        .27604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1560        1.9776        .10664E-03   -1.5353    
   8  Prefactor     .10000E-03    2.7005        .15858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .78886        .40130        .43101E-04   -1.5530    
  10  Prefactor     .10000E-03    4.9029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .19210        .50329        .10900E-03   -1.5620    
  12  Prefactor     12.113        9.7951        .11510E-03   -1.5012    
  13  Prefactor     5.6834        9.9142        .84229E-03   -1.5231    
  14  Prefactor     .10000E-03    2.8439        .16328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8192        3.8548        .13048E-02   -1.5438    
  16  norm          .10000E-03    5.3058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.5688        4.4235        .10388E-02   -1.5330    
  18  norm          .10000E-03    5.9333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.8958        2.9773        .98800E-04   -1.5146    
  20  Prefactor     23.481        22.751        .82627E-04   -1.4738    
  21  Normalizat    1.3536        .19097        .26049E-03   -.81981    
  22  Prefactor     .88037        .14930        .25480E-03   -.96830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48411e-09
Minuit parameter uncertainties:
  1  12.7836
  2  48.7616
  3  8.68325e-05
  4  9.2769e-05
  5  0.808966
  6  0.000182662
  7  1.97762
  8  6.14246e-06
  9  0.4013
  10  1.9498e-05
  11  0.503298
  12  9.79637
  13  9.91707
  14  4.62743e-06
  15  3.85536
  16  2.86027e-05
  17  4.42387
  18  1.08801e-05
  19  2.97739
  20  22.7594
  21  0.191066
  22  0.149369
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  7.889e-01  4.013e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.190e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  4.785e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  8.028e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  8.804e-01  1.494e-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.354e+00  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.99
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 5.72e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.25e-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) = 9850.30768274
delta logL = 0.0223679030023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9850.30634028
delta logL = 0.0237103644085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77159       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2855       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88268       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=   9850.306     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77183        5.5731        .93850E-02    .28964E-02
   2  alpha         2.2854        3.6423        .35977        .70921E-04
   3  Normalizat    1.3476        .62122E-01    .59006E-01    .21858E-03
   4  Prefactor     .88262        .44285E-01    .44784E-01   -.26083E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.771825
  alpha      = 2.28539
  Normalizat = 1.34763
  Prefactor  = 0.882617
 **********
 **   18 **HESSE 
 **********

 FCN=   9850.306     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77183        .40294        .41643E-04   -1.5532    
   2  alpha         2.2854        .44054        .12843E-01   -.85949E-01
   3  Normalizat    1.3476        .18551        .26095E-03   -.82156    
   4  Prefactor     .88262        .14908        .25450E-03   -.96751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28715e-10
Minuit parameter uncertainties:
  1  0.402941
  2  0.442865
  3  0.185606
  4  0.149145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325396': 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) = 9850.30633995
delta logL = 0.0237106921813

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  7.718e-01  4.029e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.285e+00  4.429e-01  0.000e+00  5.000e+00 ( 1.000e+00)
236         beta:  4.785e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  8.028e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  8.826e-01  1.491e-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.348e+00  1.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.00
Ra Dec: 164.624 1.564
Photon Index (Free Index): 2.29 +/- 0.44
Photon Flux (Free Index): 6.30e-08 +/- 4.02e-08
Energy Flux (Free Index): 2.36e-05 +/- 1.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/325396/cmap_HighResolution_246585601_246844801_4FGL_J1058.4+0133_daily_bin28.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.72e-08', energy_flux2='2.36e-05', photon_flux_error='2.91e-08', dlogl='2.37e-02', energy_flux='2.46e-05', photon_flux2='6.30e-08', job_status='DONE', time_completed='2021-09-02 22:21:44.762344', photon_index_error2='0.44', photon_index2='2.29', ts='9.99', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='1.35', time_epoch_completed='1630646504.76', return_code='0', job_id='325396', GAL2='0.88', EG2='1.35', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.02e-08', ts2='10.00', photon_index='2.19' WHERE bin_id='28' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:21:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 325396: <4FGL_J1058.4+0133_daily_bin28> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin28> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 22:06:32 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:08:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 22:08:05 2021
Terminated at Thu Sep  2 22:21:45 2021
Results reported at Thu Sep  2 22:21:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin28 164.624 1.5641 246585601 246844801 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 :                                   732.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            913 sec.

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

