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


Performing analysis on: 4FGL_J1058.6+2817_daily_bin527
RA = 164.65, Dec = 28.2866
tmin = 375926401, tmax = 376185601
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='351065', job_status='RUN', time_executed='2021-09-02 23:23:13.943993', time_epoch_executed='1630650193.94' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351065

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351065/ft1_4FGL_J1058.6+2817_daily_bin527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351065/ft2_4FGL_J1058.6+2817_daily_bin527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351065/ft1_4FGL_J1058.6+2817_daily_bin527.fits outfile=/scratch/kocevski/351065/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin527.fits ra=164.65 dec=28.2866 rad=12.0 tmin=375926401.0 tmax=376185601.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.37
user 2.63
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351065/ft1_filtered_4FGL_J1058.6+2817_daily_bin527.fits" evtable="EVENTS" scfile=/scratch/kocevski/351065/ft2_4FGL_J1058.6+2817_daily_bin527.fits sctable="SC_DATA" outfile=/scratch/kocevski/351065/ltcube_375926401_376185601_4FGL_J1058.6+2817_daily_bin527.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/351065/ft2_4FGL_J1058.6+2817_daily_bin527.fits
.....................!
real 11.89
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351065/ft1_filtered_4FGL_J1058.6+2817_daily_bin527.fits evtable="EVENTS" scfile=/scratch/kocevski/351065/ft2_4FGL_J1058.6+2817_daily_bin527.fits sctable="SC_DATA" expcube=/scratch/kocevski/351065/ltcube_375926401_376185601_4FGL_J1058.6+2817_daily_bin527.fits outfile=/scratch/kocevski/351065/expmap_375926401_376185601_4FGL_J1058.6+2817_daily_bin527.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/351065/ltcube_375926401_376185601_4FGL_J1058.6+2817_daily_bin527.fits
.....................!
real 158.91
user 153.26
sys 3.84

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/351065/ft1_filtered_4FGL_J1058.6+2817_daily_bin527.fits scfile=/scratch/kocevski/351065/ft2_4FGL_J1058.6+2817_daily_bin527.fits outfile=/scratch/kocevski/351065/cmap_375926401_376185601_4FGL_J1058.6+2817_daily_bin527.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.47
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351065/ft1_filtered_4FGL_J1058.6+2817_daily_bin527.fits scfile=/scratch/kocevski/351065/ft2_4FGL_J1058.6+2817_daily_bin527.fits outfile=/scratch/kocevski/351065/cmap_HighResolution_375926401_376185601_4FGL_J1058.6+2817_daily_bin527.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.48
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13281       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4417       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0017       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4509       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7360       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0422       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0882       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0136       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7287       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75376       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.182       1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.075       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2992       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2972       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.8979       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.7361       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14063E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .96203       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94447       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6934.125     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     4538 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2224         .0000    ** at limit **
   2  Prefactor     .10000E-03    3.5764         .0000    ** at limit **
   3  Prefactor     .12746        2.4777         .0000        .14657E-03
   4  Prefactor     .10003E-03    34.469         .0000    ** at limit **
   5  Prefactor     .10002E-03    34.911         .0000    ** at limit **
   6  Prefactor     9.4426        5.6188         .0000        .33273E-03
   7  Prefactor     4.0018        5.6282         .0000        .78909E-02
   8  Prefactor     .10000E-03    11.987         .0000    ** at limit **
   9  Prefactor     2.4511        2.6715         .0000        .67819E-03
  10  Prefactor     3.7386        9.8481         .0000        .63559E-02
  11  Prefactor     9.0442        24.444         .0000        .18876E-03
  12  Prefactor     3.0871        8.9063         .0000        .34539E-03
  13  Prefactor     2.0141        6.1293         .0000        .13257E-01
  14  Prefactor     .10000E-03    6.7758         .0000    ** at limit **
  15  norm          2.7287        .43403         .0000       -.50400E-04
  16  Prefactor     .75303        1.7629         .0000        .12337E-02
  17  Prefactor     .10000E-03    9.9619         .0000    ** at limit **
  18  Prefactor     15.181        16.254         .0000        .27684E-04
  19  norm          .10000E-03    2.9758         .0000    ** at limit **
  20  Prefactor     18.075        9.8478         .0000        .64263E-03
  21  norm          1.3010        6.5195         .0000        .24588E-01
  22  Prefactor     4.2967        13.212         .0000        .28381E-02
  23  Prefactor     3.8979        2.5881         .0000        .27904E-03
  24  Prefactor     .10000E-03    21.238         .0000    ** at limit **
  25  Prefactor     .10000E-03    4.1845         .0000    ** at limit **
  26  Prefactor     .10000E-03    3.7699         .0000    ** at limit **
  27  Prefactor     2.7361        3.7834         .0000        .32466E-03
  28  Prefactor     .10000E-03    14.843         .0000    ** at limit **
  29  Normalizat    .96182        .16976         .0000        .12203E-05
  30  Prefactor     .94469        .18149         .0000        .68938E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.127464
  Prefactor  = 0.000100026
  Prefactor  = 0.000100025
  Prefactor  = 9.44258
  Prefactor  = 4.0018
  Prefactor  = 0.0001
  Prefactor  = 2.45112
  Prefactor  = 3.73855
  Prefactor  = 9.04423
  Prefactor  = 3.08708
  Prefactor  = 2.01406
  Prefactor  = 0.0001
  norm       = 2.72871
  Prefactor  = 0.753034
  Prefactor  = 0.0001
  Prefactor  = 15.1814
  norm       = 0.0001
  Prefactor  = 18.0747
  norm       = 1.30102
  Prefactor  = 4.29671
  Prefactor  = 3.89786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.73608
  Prefactor  = 0.000100001
  Normalizat = 0.961819
  Prefactor  = 0.944686
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.125     FROM HESSE     STATUS=OK           600 CALLS     5138 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6866        .30587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12746        42.521        .24436E-02   -1.5637    
   4  Prefactor     .10003E-03    34.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    34.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4426        5.6553        .13042E-03   -1.5093    
   7  Prefactor     4.0018        5.5924        .10080E-02   -1.5308    
   8  Prefactor     .10000E-03    11.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4511        2.6418        .12861E-03   -1.5395    
  10  Prefactor     3.7386        9.6315        .10445E-02   -1.5321    
  11  Prefactor     9.0442        24.435        .13329E-03   -1.5106    
  12  Prefactor     3.0871        8.7026        .23079E-03   -1.5357    
  13  Prefactor     2.0141        6.0423        .14586E-02   -1.5424    
  14  Prefactor     .10000E-03    6.7868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7287        .43727        .20410E-04   -1.5378    
  16  Prefactor     .75303        1.5145        .15895E-02   -1.5534    
  17  Prefactor     .10000E-03    10.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.181        16.352        .10279E-03   -1.4929    
  19  norm          .10000E-03    2.9774        .14028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.075        9.7979        .47104E-03   -1.4857    
  21  norm          1.3010        6.4428        .19389E-02   -1.5480    
  22  Prefactor     4.2967        13.137        .97171E-03   -1.5293    
  23  Prefactor     3.8979        2.5794        .10343E-03   -1.5313    
  24  Prefactor     .10000E-03    21.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.1901        .16635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.7773        .15789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.7361        3.7642        .18200E-03   -1.5377    
  28  Prefactor     .10000E-03    158.91        .61360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .96182        .19559        .24820E-03   -.94321    
  30  Prefactor     .94469        .20970        .28141E-03   -.94597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18305e-08
Minuit parameter uncertainties:
  1  2.29481e-06
  2  3.72716e-07
  3  4.65766
  4  0.00189525
  5  0.0018552
  6  5.65562
  7  5.59311
  8  2.51229e-05
  9  2.64192
  10  9.63549
  11  24.4617
  12  8.70614
  13  6.0441
  14  4.63788e-07
  15  0.437273
  16  1.51456
  17  1.36903e-05
  18  16.3573
  19  9.39748e-08
  20  9.79878
  21  5.79119
  22  13.1459
  23  2.57951
  24  3.83231e-05
  25  7.94151e-07
  26  1.19393e-06
  27  3.76457
  28  0.000724294
  29  0.195738
  30  0.209879
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.014e+00  6.044e+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:  9.447e-01  2.099e-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:  9.618e-01  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/351065/likelihoodResults_375926401_376185601_4FGL_J1058.6+2817_daily_bin527.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) = 6934.10689051
delta logL = 0.0184729743514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6934.10055629
delta logL = 0.0248071916485

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8274       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8976       1.0000          .0000       10.000    
     3 'Normalizat'    .96423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94226       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=   6934.101     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      252 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8260        7.6439        .24186E-03    .13044E-03
   2  Index         1.8974        1.2922        .84796E-02    .49185E-04
   3  Normalizat    .96423        .18197        .24791E-03   -.45225E-03
   4  Prefactor     .94223        .20594        .28172E-03   -.41718E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.82603
  Index      = 1.89745
  Normalizat = 0.964228
  Prefactor  = 0.942233
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.101     FROM HESSE     STATUS=OK            23 CALLS      275 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8260        7.5749        .96746E-05   -1.5372    
   2  Index         1.8974        1.2811        .33918E-03   -.66939    
   3  Normalizat    .96423        .18209        .49582E-04   -.94239    
   4  Prefactor     .94223        .20609        .56343E-04   -.94681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11028e-10
Minuit parameter uncertainties:
  1  7.57745
  2  1.30502
  3  0.18221
  4  0.206257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351065': 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) = 6934.10055624
delta logL = 0.0248072503273

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  2.826e+00  7.577e+00  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  1.897e+00  1.305e+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.422e-01  2.063e-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:  9.642e-01  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/351065/cmap_HighResolution_375926401_376185601_4FGL_J1058.6+2817_daily_bin527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-03', job_status='DONE', photon_flux_upper_limit='5.60e-08', time_completed='2021-09-02 23:36:42.469256', job_id='351065', GAL2='0.94', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630651002.47', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.48e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='527' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 23:36:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 351065: <4FGL_J1058.6+2817_daily_bin527> in cluster <slac> Done

Job <4FGL_J1058.6+2817_daily_bin527> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 23:21:28 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 23:22:32 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:32 2021
Terminated at Thu Sep  2 23:36:43 2021
Results reported at Thu Sep  2 23:36:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin527 164.65 28.2866 375926401 376185601 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 :                                   782.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            915 sec.

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

