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


Performing analysis on: 4FGL_J1058.6+2817_daily_bin724
RA = 164.65, Dec = 28.2866
tmin = 426988801, tmax = 427248001
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='353658', job_status='RUN', time_executed='2021-09-02 23:34:17.986759', time_epoch_executed='1630650857.99' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/353658

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/353658/ft1_4FGL_J1058.6+2817_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/353658/ft2_4FGL_J1058.6+2817_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/353658/ft1_4FGL_J1058.6+2817_daily_bin724.fits outfile=/scratch/kocevski/353658/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin724.fits ra=164.65 dec=28.2866 rad=12.0 tmin=426988801.0 tmax=427248001.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 5.84
user 5.58
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/353658/ft1_filtered_4FGL_J1058.6+2817_daily_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/353658/ft2_4FGL_J1058.6+2817_daily_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/353658/ltcube_426988801_427248001_4FGL_J1058.6+2817_daily_bin724.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/353658/ft2_4FGL_J1058.6+2817_daily_bin724.fits
.....................!
real 16.11
user 15.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/353658/ft1_filtered_4FGL_J1058.6+2817_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/353658/ft2_4FGL_J1058.6+2817_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/353658/ltcube_426988801_427248001_4FGL_J1058.6+2817_daily_bin724.fits outfile=/scratch/kocevski/353658/expmap_426988801_427248001_4FGL_J1058.6+2817_daily_bin724.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/353658/ltcube_426988801_427248001_4FGL_J1058.6+2817_daily_bin724.fits
.....................!
real 191.67
user 186.25
sys 4.97

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/353658/ft1_filtered_4FGL_J1058.6+2817_daily_bin724.fits scfile=/scratch/kocevski/353658/ft2_4FGL_J1058.6+2817_daily_bin724.fits outfile=/scratch/kocevski/353658/cmap_426988801_427248001_4FGL_J1058.6+2817_daily_bin724.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/353658/ft1_filtered_4FGL_J1058.6+2817_daily_bin724.fits scfile=/scratch/kocevski/353658/ft2_4FGL_J1058.6+2817_daily_bin724.fits outfile=/scratch/kocevski/353658/cmap_HighResolution_426988801_427248001_4FGL_J1058.6+2817_daily_bin724.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.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/353658/ft1_filtered_4FGL_J1058.6+2817_daily_bin724.fits', '/scratch/kocevski/353658/ft2_4FGL_J1058.6+2817_daily_bin724.fits', expMap='/scratch/kocevski/353658/expmap_426988801_427248001_4FGL_J1058.6+2817_daily_bin724.fits', expCube='/scratch/kocevski/353658/ltcube_426988801_427248001_4FGL_J1058.6+2817_daily_bin724.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/353658/Model_4FGL_J1058.6+2817_daily_bin724.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/353658/ft1_filtered_4FGL_J1058.6+2817_daily_bin724.fits
Spacecraft file(s): /scratch/kocevski/353658/ft2_4FGL_J1058.6+2817_daily_bin724.fits
Exposure map: /scratch/kocevski/353658/expmap_426988801_427248001_4FGL_J1058.6+2817_daily_bin724.fits
Exposure cube: /scratch/kocevski/353658/ltcube_426988801_427248001_4FGL_J1058.6+2817_daily_bin724.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/353658/Model_4FGL_J1058.6+2817_daily_bin724.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) = 5369.68084578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.614       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4809       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.357       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.902       1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.560       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12579E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.193       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11528E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.8592       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3890       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10688E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.103       1.0000         .10000E-03   10000.    
    19 'norm      '    4.3361       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .49490       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4946       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.213       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.232       1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.324       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .81127       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99951       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=   5369.676     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3926 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2365        .27680E-08** at limit **
   2  Prefactor     .10000E-03    2.0389        .75086E-07** at limit **
   3  Prefactor     32.613        9.0206       -.11887E-06    .12309E-04
   4  Prefactor     8.2987        86.951       -.17318E-04   -.52175E-05
   5  Prefactor     .10000E-03    23.392        .37731E-05** at limit **
   6  Prefactor     13.355        7.8608       -.10886E-05   -.55694E-04
   7  Prefactor     10.901        10.025       -.15630E-05   -.28622E-03
   8  Prefactor     43.543        55.672       -.50248E-05    .51669E-05
   9  Prefactor     .10000E-03    1.3833        .61059E-06** at limit **
  10  Prefactor     11.162        10.296       -.12933E-05    .17226E-03
  11  Prefactor     .10000E-03    7.8731        .10605E-06** at limit **
  12  Prefactor     .10000E-03    11.876       -.28978E-05** at limit **
  13  Prefactor     .10000E-03    11.438        .25192E-05** at limit **
  14  Prefactor     .10000E-03    46.711       -.13052E-04** at limit **
  15  norm          2.8593        .53555        .21331E-07    .20002E-02
  16  Prefactor     3.3886        3.3015       -.17474E-06   -.49114E-03
  17  Prefactor     .10000E-03    28.434       -.19750E-04** at limit **
  18  Prefactor     12.096        18.208       -.72084E-06    .89047E-04
  19  norm          4.3250        16.384        .27668E-05    .65457E-04
  20  Prefactor     .10000E-03    3.7881        .27912E-07** at limit **
  21  norm          .10000E-03    6.4359       -.13907E-06** at limit **
  22  Prefactor     .35860        8.5300        .71649E-06   -.39482E-03
  23  Prefactor     1.4942        1.6743       -.32741E-06   -.23328E-03
  24  Prefactor     .10000E-03    32.892        .23436E-04** at limit **
  25  Prefactor     .10000E-03    11.843        .82431E-06** at limit **
  26  Prefactor     16.211        14.222       -.94733E-06   -.27199E-04
  27  Prefactor     14.230        7.4310        .33760E-05   -.62797E-04
  28  Prefactor     12.319        27.181        .11646E-04   -.18067E-04
  29  Normalizat    .81154        .20836       -.91928E-06    .27006E-04
  30  Prefactor     .99946        .21280        .11797E-05   -.70439E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.6134
  Prefactor  = 8.29869
  Prefactor  = 0.0001
  Prefactor  = 13.3548
  Prefactor  = 10.9011
  Prefactor  = 43.5431
  Prefactor  = 0.000100001
  Prefactor  = 11.1617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.85927
  Prefactor  = 3.38856
  Prefactor  = 0.0001
  Prefactor  = 12.096
  norm       = 4.32497
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.3586
  Prefactor  = 1.49416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2114
  Prefactor  = 14.2299
  Prefactor  = 12.3186
  Normalizat = 0.811539
  Prefactor  = 0.999463
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.676     FROM HESSE     STATUS=OK           588 CALLS     4514 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2520        .14728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.0447        .10211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.613        9.0272        .70165E-04   -1.4565    
   4  Prefactor     8.2987        87.433        .13765E-03   -1.5132    
   5  Prefactor     .10000E-03    23.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.355        7.8710        .10960E-03   -1.4977    
   7  Prefactor     10.901        9.8745        .12134E-03   -1.5048    
   8  Prefactor     43.543        55.670        .60742E-04   -1.4387    
   9  Prefactor     .10000E-03    16.587        .15847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.162        10.237        .11975E-03   -1.5040    
  11  Prefactor     .10000E-03    7.8755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    47.604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.8593        .54044        .21423E-04   -1.5370    
  16  Prefactor     3.3886        3.3064        .12378E-03   -1.5340    
  17  Prefactor     .10000E-03    28.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.096        18.336        .11515E-03   -1.5012    
  19  norm          4.3250        16.340        .19344E-03   -1.5292    
  20  Prefactor     .10000E-03    3.7970        .13921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.4569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .35860        122.27        .40260E-02   -1.5588    
  23  Prefactor     1.4942        1.6721        .96953E-04   -1.5463    
  24  Prefactor     .10000E-03    32.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.211        14.228        .99470E-04   -1.4902    
  27  Prefactor     14.230        7.4175        .10617E-03   -1.4953    
  28  Prefactor     12.319        27.248        .11411E-03   -1.5006    
  29  Normalizat    .81154        .25009        .27943E-03   -.99642    
  30  Prefactor     .99946        .25104        .28145E-03   -.92747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.60965e-09
Minuit parameter uncertainties:
  1  3.51907e-06
  2  6.03523e-06
  3  9.02757
  4  53.9744
  5  0.000100267
  6  7.87164
  7  9.87597
  8  55.7366
  9  0.000193594
  10  10.239
  11  3.61378e-06
  12  0.000119377
  13  8.19696e-06
  14  0.000840651
  15  0.540438
  16  3.30658
  17  1.09056e-05
  18  18.3445
  19  16.3569
  20  1.14417e-06
  21  1.9327e-05
  22  13.2686
  23  1.67214
  24  8.46381e-05
  25  5.64037e-05
  26  14.2311
  27  7.41801
  28  27.2755
  29  0.250446
  30  0.251339
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.000e-04  8.197e-06  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:  9.995e-01  2.513e-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.115e-01  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/353658/likelihoodResults_426988801_427248001_4FGL_J1058.6+2817_daily_bin724.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) = 5369.676506
delta logL = -0.000412950085774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5369.67609654
delta logL = -3.48932189809e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2791       1.0000          .0000       10.000    
     3 'Normalizat'    .81094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0001       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.

 FCN=   5369.676     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      213 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    320.95        .90712E-02** at limit **
   2  Index         2.3461        8.6409        .50000       -.48969E-04
   3  Normalizat    .81154        .21971E-01    .63171E-01    .31718E-04
   4  Prefactor     .99947        .24451E-01    .45998E-01    .15865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Index      = 2.3461
  Normalizat = 0.811538
  Prefactor  = 0.999465
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.676     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    16.483        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3461        6.1730        .50000       -.55952    
   3  Normalizat    .81154        .22104        .27943E-03   -.99642    
   4  Prefactor     .99947        .24631        .28145E-03   -.92747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91114e-09
Minuit parameter uncertainties:
  1  0.00104905
  2  4.27703
  3  0.221289
  4  0.246585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/353658': 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) = 5369.67609179
delta logL = 1.25946735352e-06

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.000e-04  1.049e-03  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.346e+00  4.277e+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:  9.995e-01  2.466e-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.115e-01  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/353658/cmap_HighResolution_426988801_427248001_4FGL_J1058.6+2817_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-09-02 23:47:23.738907', job_id='353658', GAL2='1.00', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630651643.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='724' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 23:47:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 353658: <4FGL_J1058.6+2817_daily_bin724> in cluster <slac> Done

Job <4FGL_J1058.6+2817_daily_bin724> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 23:31:11 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 23:31:15 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:31:15 2021
Terminated at Thu Sep  2 23:47:24 2021
Results reported at Thu Sep  2 23:47:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin724 164.65 28.2866 426988801 427248001 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 :                                   779.31 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

