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


Performing analysis on: 4FGL_J1058.6+2817_daily_bin750
RA = 164.65, Dec = 28.2866
tmin = 433728001, tmax = 433987201
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='353696', job_status='RUN', time_executed='2021-09-02 23:34:02.022674', time_epoch_executed='1630650842.02' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/353696

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/353696/ft1_4FGL_J1058.6+2817_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/353696/ft2_4FGL_J1058.6+2817_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/353696/ft1_4FGL_J1058.6+2817_daily_bin750.fits outfile=/scratch/kocevski/353696/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin750.fits ra=164.65 dec=28.2866 rad=12.0 tmin=433728001.0 tmax=433987201.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 6.17
user 5.87
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/353696/ft2_4FGL_J1058.6+2817_daily_bin750.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/353696/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin750.fits evtable="EVENTS" outfile="/scratch/kocevski/353696/ft1_filtered_4FGL_J1058.6+2817_daily_bin750.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/353696/ft1_filtered_4FGL_J1058.6+2817_daily_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/353696/ft2_4FGL_J1058.6+2817_daily_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/353696/ltcube_433728001_433987201_4FGL_J1058.6+2817_daily_bin750.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/353696/ft2_4FGL_J1058.6+2817_daily_bin750.fits
.....................!
real 18.04
user 17.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/353696/ft1_filtered_4FGL_J1058.6+2817_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/353696/ft2_4FGL_J1058.6+2817_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/353696/ltcube_433728001_433987201_4FGL_J1058.6+2817_daily_bin750.fits outfile=/scratch/kocevski/353696/expmap_433728001_433987201_4FGL_J1058.6+2817_daily_bin750.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/353696/ltcube_433728001_433987201_4FGL_J1058.6+2817_daily_bin750.fits
.....................!
real 193.22
user 188.14
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/353696/ft1_filtered_4FGL_J1058.6+2817_daily_bin750.fits scfile=/scratch/kocevski/353696/ft2_4FGL_J1058.6+2817_daily_bin750.fits outfile=/scratch/kocevski/353696/cmap_433728001_433987201_4FGL_J1058.6+2817_daily_bin750.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.63
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/353696/ft1_filtered_4FGL_J1058.6+2817_daily_bin750.fits scfile=/scratch/kocevski/353696/ft2_4FGL_J1058.6+2817_daily_bin750.fits outfile=/scratch/kocevski/353696/cmap_HighResolution_433728001_433987201_4FGL_J1058.6+2817_daily_bin750.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5739       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4220       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11123E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0181       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7677       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8211       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.056       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .82684       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4876       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2144       1.0000         .10000E-03   10000.    
    19 'norm      '    16.103       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    27.346       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.209       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13987       1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.181       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.328       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.4585       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.4940       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .42835       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .65119       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0505       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=   3384.264     FROM MIGRAD    STATUS=CONVERGED   1422 CALLS     4636 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.508        .36285E-03** at limit **
   2  Prefactor     2.5727        4.3174        .14000E-03   -.67239E-04
   3  Prefactor     1.4210        4.1902        .18388E-03   -.95396E-04
   4  Prefactor     .10000E-03    35.800        .18142E-02** at limit **
   5  Prefactor     .10000E-03    61.019        .18142E-02** at limit **
   6  Prefactor     2.0151        5.5199        .21427E-03    .11779E-03
   7  Prefactor     4.7660        6.2079        .15766E-03   -.37172E-04
   8  Prefactor     .10000E-03    23.023        .18142E-02** at limit **
   9  Prefactor     1.8204        2.2659        .93308E-04    .67622E-04
  10  Prefactor     11.049        10.411        .12049E-03   -.12285E-03
  11  Prefactor     .10000E-03    13.193        .18142E-02** at limit **
  12  Prefactor     .10000E-03    16.521        .18142E-02** at limit **
  13  Prefactor     .82316        29.157        .39073E-02    .32478E-03
  14  Prefactor     .10000E-03    49.149        .36285E-03** at limit **
  15  norm          2.4874        .62349        .19495E-04   -.22276E-03
  16  Prefactor     .10000E-03    1.3707        .66308E-03** at limit **
  17  Prefactor     .10000E-03    5.8058        .13685E-02** at limit **
  18  Prefactor     4.2620        52.328        .19630E-03    .54151E-05
  19  norm          16.108        14.524        .99810E-04    .47384E-04
  20  Prefactor     .10000E-03    4.8674        .12510E-02** at limit **
  21  norm          27.348        17.114        .76609E-04   -.18833E-03
  22  Prefactor     16.204        17.531        .99482E-04   -.54111E-04
  23  Prefactor     .10032        61.480        .16304E-02   -.34328E-03
  24  Prefactor     43.447        72.055        .30504E-03   -.59557E-04
  25  Prefactor     10.325        28.641        .12468E-03   -.41353E-04
  26  Prefactor     6.4614        15.739        .15793E-03   -.73247E-04
  27  Prefactor     6.5188        10.453        .15749E-03    .52480E-04
  28  Prefactor     .16530        36.980        .83425E-01   -.19513E-03
  29  Normalizat    .65189        .25924        .25899E-03   -.31655E-03
  30  Prefactor     1.0500        .27540        .24458E-03   -.17938E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.57273
  Prefactor  = 1.42104
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.0151
  Prefactor  = 4.76602
  Prefactor  = 0.0001
  Prefactor  = 1.82041
  Prefactor  = 11.0487
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.823162
  Prefactor  = 0.000100003
  norm       = 2.48741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.26197
  norm       = 16.1079
  Prefactor  = 0.0001
  norm       = 27.3482
  Prefactor  = 16.2042
  Prefactor  = 0.100319
  Prefactor  = 43.4469
  Prefactor  = 10.3247
  Prefactor  = 6.46144
  Prefactor  = 6.51883
  Prefactor  = 0.165301
  Normalizat = 0.651887
  Prefactor  = 1.05005
 **********
 **   18 **HESSE 
 **********

 FCN=   3384.264     FROM HESSE     STATUS=OK           570 CALLS     5206 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.509        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5727        4.3156        .55999E-05   -1.5387    
   3  Prefactor     1.4210        4.1884        .73554E-05   -1.5470    
   4  Prefactor     .10000E-03    35.801        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    61.021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0151        5.5170        .85709E-05   -1.5424    
   7  Prefactor     4.7660        6.2069        .63064E-05   -1.5271    
   8  Prefactor     .10000E-03    23.024        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8204        2.2656        .37323E-05   -1.5438    
  10  Prefactor     11.049        10.407        .48195E-05   -1.5043    
  11  Prefactor     .10000E-03    13.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.524        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .82316        29.090        .15629E-03   -1.5527    
  14  Prefactor     .10000E-03    49.151        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4874        .62326        .77981E-06   -1.5393    
  16  Prefactor     .10000E-03    1.3708        .13262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8058        .27370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2620        52.268        .78519E-05   -1.5295    
  19  norm          16.108        14.505        .39924E-05   -1.4905    
  20  Prefactor     .10000E-03    4.8677        .25019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          27.348        17.113        .15322E-04   -1.4662    
  22  Prefactor     16.204        17.525        .39793E-05   -1.4903    
  23  Prefactor     .10032        51.734        .65217E-04   -1.5645    
  24  Prefactor     43.447        67.252        .12201E-04   -1.4389    
  25  Prefactor     10.325        28.627        .49871E-05   -1.5065    
  26  Prefactor     6.4614        15.732        .63170E-05   -1.5200    
  27  Prefactor     6.5188        10.212        .62995E-05   -1.5197    
  28  Prefactor     .16530        32.479        .90634E-01   -1.5627    
  29  Normalizat    .65189        .25869        .51798E-04   -1.0582    
  30  Prefactor     1.0500        .27553        .48916E-04   -.91079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47838e-09
Minuit parameter uncertainties:
  1  0.00012421
  2  4.31609
  3  4.1893
  4  0.00013996
  5  0.000400159
  6  5.5184
  7  6.20772
  8  2.84162e-05
  9  2.26573
  10  10.4089
  11  4.28186e-05
  12  0.00031091
  13  9.79146
  14  0.000721478
  15  0.623258
  16  1.2026e-05
  17  1.36848e-05
  18  29.8826
  19  14.5084
  20  2.34346e-05
  21  17.1156
  22  17.531
  23  4.55793
  24  67.3694
  25  28.6654
  26  15.7425
  27  10.2151
  28  4.63532
  29  0.259178
  30  0.275899
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  8.232e-01  9.791e+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.050e+00  2.759e-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:  6.519e-01  2.592e-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: 8.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/353696/likelihoodResults_433728001_433987201_4FGL_J1058.6+2817_daily_bin750.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) = 3384.25402663
delta logL = 0.0102550019974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3384.25349229
delta logL = 0.0107893387703

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80658       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7412       1.0000          .0000       10.000    
     3 'Normalizat'    .64829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0515       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=   3384.253     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      220 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78862        41.355        .12464E-01    .39617E-03
   2  Index         2.7488        .75493        .50000       -.48697E-05
   3  Normalizat    .64828        .12256E-01    .41596E-01    .18167E-03
   4  Prefactor     1.0516        .14484E-01    .39824E-01    .17713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.788615
  Index      = 2.7488
  Normalizat = 0.64828
  Prefactor  = 1.05157
 **********
 **   18 **HESSE 
 **********

 FCN=   3384.253     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78862        16.549        .29959E-03   -1.5530    
   2  Index         2.7488        3.5151        .39548E-02   -.46703    
   3  Normalizat    .64828        .23034        .25970E-03   -1.0597    
   4  Prefactor     1.0516        .26997        .24443E-03   -.91030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01901e-10
Minuit parameter uncertainties:
  1  7.22704
  2  4.04704
  3  0.230687
  4  0.270321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/353696': 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) = 3384.25348852
delta logL = 0.0107931113293

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  7.886e-01  7.227e+00  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.749e+00  4.047e+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.052e+00  2.703e-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:  6.483e-01  2.307e-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/353696/cmap_HighResolution_433728001_433987201_4FGL_J1058.6+2817_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', job_status='DONE', photon_flux_upper_limit='8.77e-08', time_completed='2021-09-02 23:45:11.088175', job_id='353696', GAL2='1.05', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630651511.09', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.08e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='750' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 23:45:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 353696: <4FGL_J1058.6+2817_daily_bin750> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin750 164.65 28.2866 433728001 433987201 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 :                                   666.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             321.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            838 sec.

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

