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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin165
RA = 164.624, Dec = 1.5641
tmin = 282096001, tmax = 282355201
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='325614', job_status='RUN', time_executed='2021-09-02 22:13:23.946342', time_epoch_executed='1630646003.95' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325614/ft1_4FGL_J1058.4+0133_daily_bin165.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325614/ft2_4FGL_J1058.4+0133_daily_bin165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325614/ft1_4FGL_J1058.4+0133_daily_bin165.fits outfile=/scratch/kocevski/325614/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin165.fits ra=164.624 dec=1.5641 rad=12.0 tmin=282096001.0 tmax=282355201.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.49
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/325614/ft2_4FGL_J1058.4+0133_daily_bin165.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/325614/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin165.fits evtable="EVENTS" outfile="/scratch/kocevski/325614/ft1_filtered_4FGL_J1058.4+0133_daily_bin165.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.51
user 0.36
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325614/ft1_filtered_4FGL_J1058.4+0133_daily_bin165.fits evtable="EVENTS" scfile=/scratch/kocevski/325614/ft2_4FGL_J1058.4+0133_daily_bin165.fits sctable="SC_DATA" expcube=/scratch/kocevski/325614/ltcube_282096001_282355201_4FGL_J1058.4+0133_daily_bin165.fits outfile=/scratch/kocevski/325614/expmap_282096001_282355201_4FGL_J1058.4+0133_daily_bin165.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/325614/ltcube_282096001_282355201_4FGL_J1058.4+0133_daily_bin165.fits
.....................!
real 193.75
user 189.43
sys 3.68

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/325614/ft1_filtered_4FGL_J1058.4+0133_daily_bin165.fits scfile=/scratch/kocevski/325614/ft2_4FGL_J1058.4+0133_daily_bin165.fits outfile=/scratch/kocevski/325614/cmap_282096001_282355201_4FGL_J1058.4+0133_daily_bin165.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.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0544       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6079       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2289       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9924       1.0000         .10000E-03   10000.    
     9 'norm      '    .57443       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7536       1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.361       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .79413       1.0000         .10000E-03   10000.    
    18 'norm      '    .10730E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2361       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14065E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3284       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99067       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5362.023     FROM MIGRAD    STATUS=CONVERGED    860 CALLS     2768 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0765        41.333        .20025E-03    .18105E-03
   2  Prefactor     .10000E-03    23.205        .18142E-02** at limit **
   3  Prefactor     3.4568        1162.8        .21272E-03    .73271E-04
   4  Prefactor     .10083E-03    119.44        .46713E-02** at limit **
   5  norm          1.2285        1.5204        .97603E-04    .27873E-03
   6  Prefactor     .10000E-03    5.3964        .16539E-02** at limit **
   7  Prefactor     .10000E-03    .69810        .59675E-03** at limit **
   8  Prefactor     2.9922        5.8241        .11733E-02    .34181E-03
   9  norm          .57444        .48032        .42299E-03    .61494E-04
  10  Prefactor     3.7536        5.5768        .99928E-03    .15078E-03
  11  norm          .10000E-03    .87240        .97678E-03** at limit **
  12  Prefactor     .10000E-03    6.3994        .18083E-02** at limit **
  13  Prefactor     .10000E-03    12.683        .18142E-02** at limit **
  14  Prefactor     .10000E-03    11.163        .18142E-02** at limit **
  15  Prefactor     .10000E-03    3.9090        .14012E-02** at limit **
  16  norm          11.369        10.752        .11886E-03   -.11382E-04
  17  Prefactor     .79584        11.800        .25795E-02    .70843E-04
  18  norm          .10000E-03    16.417        .18142E-02** at limit **
  19  Prefactor     2.2366        2.6786        .12571E-03    .51548E-05
  20  Prefactor     .10000E-03    62.782        .18142E-02** at limit **
  21  Normalizat    1.3284        .24321        .25674E-03    .11368E-03
  22  Prefactor     .99067        .19754        .24028E-03    .94157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.07653
  Prefactor  = 0.0001
  Prefactor  = 3.45683
  Prefactor  = 0.000100835
  norm       = 1.22851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99224
  norm       = 0.574442
  Prefactor  = 3.7536
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3688
  Prefactor  = 0.79584
  norm       = 0.0001
  Prefactor  = 2.23662
  Prefactor  = 0.0001
  Normalizat = 1.32837
  Prefactor  = 0.990671
 **********
 **   18 **HESSE 
 **********

 FCN=   5362.023     FROM HESSE     STATUS=OK           324 CALLS     3092 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0765        40.330        .80100E-05   -1.5304    
   2  Prefactor     .10000E-03    23.205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4568        1128.4        .85089E-05   -1.5336    
   4  Prefactor     .10083E-03    119.79        .93427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2285        1.5203        .39041E-05   -1.5486    
   6  Prefactor     .10000E-03    5.3978        .33077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .69810        .11935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9922        5.8211        .46934E-04   -1.5362    
   9  norm          .57444        .48008        .16920E-04   -1.5556    
  10  Prefactor     3.7536        5.5738        .39971E-04   -1.5320    
  11  norm          .10000E-03    .87401        .19536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.3997        .36165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.170        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9104        .28024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.369        10.680        .47542E-05   -1.5033    
  17  Prefactor     .79584        11.610        .10318E-03   -1.5530    
  18  norm          .10000E-03    16.417        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2366        2.6784        .50284E-05   -1.5409    
  20  Prefactor     .10000E-03    62.809        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3284        .24319        .51349E-04   -.82723    
  22  Prefactor     .99067        .19770        .96111E-05   -.93041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83842e-09
Minuit parameter uncertainties:
  1  25.6663
  2  1.97824e-05
  3  127.411
  4  0.0200373
  5  1.52032
  6  1.05367e-05
  7  1.48174e-08
  8  5.82217
  9  0.480082
  10  5.57453
  11  3.23294e-07
  12  3.23773e-06
  13  1.45935e-05
  14  7.85118e-06
  15  4.81227e-06
  16  10.6818
  17  6.08036
  18  1.10156e-05
  19  2.6785
  20  0.000110781
  21  0.243398
  22  0.197848
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  5.744e-01  4.801e-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:  9.907e-01  1.978e-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.328e+00  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.26
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 4.16e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.50e-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) = 5361.74036742
delta logL = 0.28249457096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5361.73194285
delta logL = 0.290919135985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25858       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3371       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98693       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=   5361.732     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      213 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25858        .25011        .81291E-02   -.13398E-02
   2  alpha         1.3371        .49775        .38604       -.67657E-04
   3  Normalizat    1.3534        .20452        .57642E-01    .30934E-05
   4  Prefactor     .98688        .16907        .46103E-01    .87350E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.258584
  alpha      = 1.3371
  Normalizat = 1.35345
  Prefactor  = 0.986882
 **********
 **   18 **HESSE 
 **********

 FCN=   5361.732     FROM HESSE     STATUS=OK            35 CALLS      248 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25858        .44331        .32290E-03   -1.5606    
   2  alpha         1.3371        .89111        .14892E-01   -.48381    
   3  Normalizat    1.3534        .23815        .25491E-03   -.81985    
   4  Prefactor     .98688        .19693        .24088E-03   -.93168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98428e-10
Minuit parameter uncertainties:
  1  0.443312
  2  0.917135
  3  0.238347
  4  0.197076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325614': 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) = 5361.73194283
delta logL = 0.290919161283

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  2.586e-01  4.433e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  1.337e+00  9.171e-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:  9.869e-01  1.971e-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.353e+00  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.85
Ra Dec: 164.624 1.564
Photon Index (Free Index): 1.34 +/- 0.92
Photon Flux (Free Index): 9.84e-09 +/- 1.72e-08
Energy Flux (Free Index): 3.42e-05 +/- 5.58e-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/325614/cmap_HighResolution_282096001_282355201_4FGL_J1058.4+0133_daily_bin165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.16e-08', energy_flux2='3.42e-05', photon_flux_error='3.48e-08', dlogl='2.91e-01', energy_flux='1.79e-05', photon_flux2='9.84e-09', job_status='DONE', time_completed='2021-09-02 22:23:25.215422', photon_index_error2='0.92', photon_index2='1.34', ts='7.26', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='5.58e-05', EG='1.33', time_epoch_completed='1630646605.22', return_code='0', job_id='325614', GAL2='0.99', EG2='1.35', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='1.72e-08', ts2='7.85', photon_index='2.19' WHERE bin_id='165' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:23:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 325614: <4FGL_J1058.4+0133_daily_bin165> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin165 164.624 1.5641 282096001 282355201 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 :                                   596.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            996 sec.

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

