/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 20 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 = 7432
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1058.6+2817_daily_bin514
RA = 164.65, Dec = 28.2866
tmin = 372556801, tmax = 372816001
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='351046', job_status='RUN', time_executed='2021-09-02 23:23:32.884226', time_epoch_executed='1630650212.88' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351046

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351046/ft1_4FGL_J1058.6+2817_daily_bin514.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351046/ft2_4FGL_J1058.6+2817_daily_bin514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351046/ft1_4FGL_J1058.6+2817_daily_bin514.fits outfile=/scratch/kocevski/351046/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin514.fits ra=164.65 dec=28.2866 rad=12.0 tmin=372556801.0 tmax=372816001.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.44
user 3.17
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/351046/ft2_4FGL_J1058.6+2817_daily_bin514.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351046/ft2_4FGL_J1058.6+2817_daily_bin514.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/351046/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin514.fits evtable="EVENTS" outfile="/scratch/kocevski/351046/ft1_filtered_4FGL_J1058.6+2817_daily_bin514.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.59
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351046/ft1_filtered_4FGL_J1058.6+2817_daily_bin514.fits" evtable="EVENTS" scfile=/scratch/kocevski/351046/ft2_4FGL_J1058.6+2817_daily_bin514.fits sctable="SC_DATA" outfile=/scratch/kocevski/351046/ltcube_372556801_372816001_4FGL_J1058.6+2817_daily_bin514.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/351046/ft2_4FGL_J1058.6+2817_daily_bin514.fits
.....................!
real 16.84
user 15.66
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351046/ft1_filtered_4FGL_J1058.6+2817_daily_bin514.fits evtable="EVENTS" scfile=/scratch/kocevski/351046/ft2_4FGL_J1058.6+2817_daily_bin514.fits sctable="SC_DATA" expcube=/scratch/kocevski/351046/ltcube_372556801_372816001_4FGL_J1058.6+2817_daily_bin514.fits outfile=/scratch/kocevski/351046/expmap_372556801_372816001_4FGL_J1058.6+2817_daily_bin514.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/351046/ltcube_372556801_372816001_4FGL_J1058.6+2817_daily_bin514.fits
.....................!
real 192.61
user 186.98
sys 4.48

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1058.6+2817 @ 164.65 28.2866

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/351046/ft1_filtered_4FGL_J1058.6+2817_daily_bin514.fits scfile=/scratch/kocevski/351046/ft2_4FGL_J1058.6+2817_daily_bin514.fits outfile=/scratch/kocevski/351046/cmap_372556801_372816001_4FGL_J1058.6+2817_daily_bin514.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.65 yref=28.2866 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351046/ft1_filtered_4FGL_J1058.6+2817_daily_bin514.fits scfile=/scratch/kocevski/351046/ft2_4FGL_J1058.6+2817_daily_bin514.fits outfile=/scratch/kocevski/351046/cmap_HighResolution_372556801_372816001_4FGL_J1058.6+2817_daily_bin514.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.65 yref=28.2866 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351046/ft1_filtered_4FGL_J1058.6+2817_daily_bin514.fits evtable="EVENTS" scfile=/scratch/kocevski/351046/ft2_4FGL_J1058.6+2817_daily_bin514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351046/Model_4FGL_J1058.6+2817_daily_bin514.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/351046/ft1_filtered_4FGL_J1058.6+2817_daily_bin514.fits.....................!
real 57.59
user 56.08
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351046/ft1_filtered_4FGL_J1058.6+2817_daily_bin514.fits', '/scratch/kocevski/351046/ft2_4FGL_J1058.6+2817_daily_bin514.fits', expMap='/scratch/kocevski/351046/expmap_372556801_372816001_4FGL_J1058.6+2817_daily_bin514.fits', expCube='/scratch/kocevski/351046/ltcube_372556801_372816001_4FGL_J1058.6+2817_daily_bin514.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351046/Model_4FGL_J1058.6+2817_daily_bin514.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.6+2817'

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.847e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/351046/ft1_filtered_4FGL_J1058.6+2817_daily_bin514.fits
Spacecraft file(s): /scratch/kocevski/351046/ft2_4FGL_J1058.6+2817_daily_bin514.fits
Exposure map: /scratch/kocevski/351046/expmap_372556801_372816001_4FGL_J1058.6+2817_daily_bin514.fits
Exposure cube: /scratch/kocevski/351046/ltcube_372556801_372816001_4FGL_J1058.6+2817_daily_bin514.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351046/Model_4FGL_J1058.6+2817_daily_bin514.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) = 6195.65928207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5952       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12162E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.525       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19653E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .89645       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9409       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3134       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7720       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.194       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12591E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0356       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.738       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.429       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.4666       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .29904E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.2714       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .83974       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0380       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6195.506     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3350 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5940        6.5250       -.21789E-06   -.44443E-03
   2  Prefactor     .10000E-03    1.7225        .29659E-07** at limit **
   3  Prefactor     .10000E-03    2.1494        .39024E-07** at limit **
   4  Prefactor     .10000E-03    30.975        .22569E-04** at limit **
   5  Prefactor     .10000E-03    10.536       -.31808E-05** at limit **
   6  Prefactor     .10000E-03    2.1073        .96258E-08** at limit **
   7  Prefactor     .10008E-03    4.1009        .23085E-05** at limit **
   8  Prefactor     .10000E-03    13.821        .48207E-05** at limit **
   9  Prefactor     .10000E-03    .95617       -.13496E-06** at limit **
  10  Prefactor     14.512        11.632        .36568E-05    .66668E-03
  11  Prefactor     .10000E-03    10.552       -.28995E-05** at limit **
  12  Prefactor     .10000E-03    20.209       -.11256E-04** at limit **
  13  Prefactor     .89134        10.257       -.32846E-06   -.19108E-04
  14  Prefactor     3.9198        27.251       -.16415E-04    .62424E-04
  15  norm          1.3133        .32341        .10483E-07    .81763E-03
  16  Prefactor     5.7737        3.2150        .22637E-06    .19060E-03
  17  Prefactor     21.189        16.208       -.43242E-06    .11301E-03
  18  Prefactor     .10000E-03    15.417       -.44584E-05** at limit **
  19  norm          1.0394        2.6299        .33436E-06   -.74518E-03
  20  Prefactor     .10000E-03    4.5589       -.30871E-07** at limit **
  21  norm          12.739        10.024       -.10607E-06    .47778E-04
  22  Prefactor     14.429        12.370        .42728E-06    .36047E-04
  23  Prefactor     .10000E-03    1.5517        .80282E-08** at limit **
  24  Prefactor     .10000E-03    44.202       -.15185E-04** at limit **
  25  Prefactor     4.4952        17.893        .29468E-05    .10992E-03
  26  Prefactor     .10004E-03    9.3270       -.73216E-06** at limit **
  27  Prefactor     8.2712        6.6516        .42696E-06    .15005E-03
  28  Prefactor     .10000E-03    6.9036        .33763E-06** at limit **
  29  Normalizat    .83958        .16946       -.22838E-06    .70473E-04
  30  Prefactor     1.0383        .18144        .19180E-06    .38144E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.59396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.891342
  Prefactor  = 3.91981
  norm       = 1.31327
  Prefactor  = 5.77373
  Prefactor  = 21.1889
  Prefactor  = 0.0001
  norm       = 1.03943
  Prefactor  = 0.0001
  norm       = 12.7388
  Prefactor  = 14.4289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.49519
  Prefactor  = 0.000100043
  Prefactor  = 8.2712
  Prefactor  = 0.0001
  Normalizat = 0.839575
  Prefactor  = 1.0383
 **********
 **   18 **HESSE 
 **********

 FCN=   6195.506     FROM HESSE     STATUS=OK           592 CALLS     3942 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5940        6.7701        .12664E-02   -1.5386    
   2  Prefactor     .10000E-03    1.7344        .10084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1673        .11264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1252        .11155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10008E-03    11.569        .29996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5433        .14836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.512        11.494        .10509E-03   -1.4946    
  11  Prefactor     .10000E-03    10.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.565        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .89134        26.906        .43404E-02   -1.5519    
  14  Prefactor     3.9198        26.242        .20321E-03   -1.5312    
  15  norm          1.3133        .32466        .20831E-04   -1.5479    
  16  Prefactor     5.7737        3.1433        .91552E-04   -1.5227    
  17  Prefactor     21.189        16.517        .87002E-04   -1.4787    
  18  Prefactor     .10000E-03    15.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0394        17.611        .24768E-02   -1.5504    
  20  Prefactor     .10000E-03    4.5841        .16398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.739        10.025        .11223E-03   -1.4994    
  22  Prefactor     14.429        12.364        .10544E-03   -1.4948    
  23  Prefactor     .10000E-03    1.5911        .19089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    44.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.4952        15.538        .19052E-03   -1.5284    
  26  Prefactor     .10004E-03    42.391        .39631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.2712        6.6302        .13940E-03   -1.5133    
  28  Prefactor     .10000E-03    6.9245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .83958        .19846        .24883E-03   -.98617    
  30  Prefactor     1.0383        .21382        .25862E-03   -.91464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53499e-08
Minuit parameter uncertainties:
  1  6.77208
  2  3.30676e-07
  3  1.57952e-07
  4  6.28506e-06
  5  2.95313e-07
  6  5.50595e-07
  7  0.00189795
  8  2.366e-06
  9  2.18632e-05
  10  11.4961
  11  2.84393e-07
  12  0.000153435
  13  9.79875
  14  20.2971
  15  0.324661
  16  3.14344
  17  16.521
  18  2.47522e-05
  19  8.55964
  20  1.74715e-05
  21  10.0266
  22  12.3663
  23  3.46522e-07
  24  6.60936e-05
  25  15.5518
  26  0.00270628
  27  6.63083
  28  1.24154e-06
  29  0.198631
  30  0.213991
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  8.913e-01  9.799e+00  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.226e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.038e+00  2.140e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  8.396e-01  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 164.650 28.287
Photon Flux Upper Limit: 6.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351046/likelihoodResults_372556801_372816001_4FGL_J1058.6+2817_daily_bin514.txt

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) = 6195.44654699
delta logL = 0.0593848533954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6195.44411606
delta logL = 0.0618157791705

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73980       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1504       1.0000          .0000       10.000    
     3 'Normalizat'    .82937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0441       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+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=   6195.444     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      258 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73861        313.55        .18760E-03    .51451E-04
   2  Index         3.1511        8.4080        .10703E-01    .18061E-04
   3  Normalizat    .82933        .18497        .25018E-03   -.16150E-03
   4  Prefactor     1.0442        .21319        .25793E-03    .52803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.738611
  Index      = 3.15111
  Normalizat = 0.829326
  Prefactor  = 1.04415
 **********
 **   18 **HESSE 
 **********

 FCN=   6195.444     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73861        6.4323        .75039E-05   -1.5536    
   2  Index         3.1511        2.6288        .42811E-03   -.37877    
   3  Normalizat    .82933        .18787        .10007E-04   -.98990    
   4  Prefactor     1.0442        .21316        .10317E-04   -.91272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33796e-10
Minuit parameter uncertainties:
  1  4.35967
  2  2.79432
  3  0.188019
  4  0.213332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351046': 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) = 6195.44411598
delta logL = 0.0618158650359

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  7.386e-01  4.360e+00  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  3.151e+00  2.794e+00  0.000e+00  1.000e+01 (-1.000e+00)
235        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.044e+00  2.133e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  8.293e-01  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 164.650 28.287

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/351046/cmap_HighResolution_372556801_372816001_4FGL_J1058.6+2817_daily_bin514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-03', job_status='DONE', photon_flux_upper_limit='6.96e-08', time_completed='2021-09-02 23:37:26.109907', job_id='351046', GAL2='1.04', fit_tolerance='1e-08', EG2='0.83', EG='0.84', time_epoch_completed='1630651046.11', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='6.18e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='514' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 23:37:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 351046: <4FGL_J1058.6+2817_daily_bin514> in cluster <slac> Done

Job <4FGL_J1058.6+2817_daily_bin514> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 23:21:27 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 23:22:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 23:22:27 2021
Terminated at Thu Sep  2 23:37:26 2021
Results reported at Thu Sep  2 23:37:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin514 164.65 28.2866 372556801 372816001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.6+2817 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   817.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            959 sec.

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

