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


Performing analysis on: 4FGL_J1058.6+2817_daily_bin345
RA = 164.65, Dec = 28.2866
tmin = 328752001, tmax = 329011201
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='350796', job_status='RUN', time_executed='2021-09-02 23:21:55.915784', time_epoch_executed='1630650115.92' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350796/ft1_4FGL_J1058.6+2817_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350796/ft2_4FGL_J1058.6+2817_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350796/ft1_4FGL_J1058.6+2817_daily_bin345.fits outfile=/scratch/kocevski/350796/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin345.fits ra=164.65 dec=28.2866 rad=12.0 tmin=328752001.0 tmax=329011201.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.48
user 3.27
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350796/ft1_filtered_4FGL_J1058.6+2817_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/350796/ft2_4FGL_J1058.6+2817_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/350796/ltcube_328752001_329011201_4FGL_J1058.6+2817_daily_bin345.fits outfile=/scratch/kocevski/350796/expmap_328752001_329011201_4FGL_J1058.6+2817_daily_bin345.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/350796/ltcube_328752001_329011201_4FGL_J1058.6+2817_daily_bin345.fits
.....................!
real 193.02
user 187.73
sys 4.73

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/350796/ft1_filtered_4FGL_J1058.6+2817_daily_bin345.fits scfile=/scratch/kocevski/350796/ft2_4FGL_J1058.6+2817_daily_bin345.fits outfile=/scratch/kocevski/350796/cmap_328752001_329011201_4FGL_J1058.6+2817_daily_bin345.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350796/ft1_filtered_4FGL_J1058.6+2817_daily_bin345.fits scfile=/scratch/kocevski/350796/ft2_4FGL_J1058.6+2817_daily_bin345.fits outfile=/scratch/kocevski/350796/cmap_HighResolution_328752001_329011201_4FGL_J1058.6+2817_daily_bin345.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.61
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9172       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.980       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.937       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.244       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14429E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11600E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2841       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0402       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0576       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.122       1.0000         .10000E-03   10000.    
    15 'norm      '    .80157       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4658       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.238       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .67345       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11825E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.5483       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.1046       1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.155       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93269       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1323       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=   5982.102     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3930 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3543        .33731E-08** at limit **
   2  Prefactor     1.9188        4.5764        .98183E-08   -.57172E-04
   3  Prefactor     21.982        7.5375       -.17712E-07   -.32135E-04
   4  Prefactor     15.829        58.795        .22036E-04    .24476E-04
   5  Prefactor     36.262        31.739       -.10472E-05   -.32947E-04
   6  Prefactor     .10000E-03    4.2143        .44032E-06** at limit **
   7  Prefactor     .10000E-03    8.2149        .10775E-05** at limit **
   8  Prefactor     .10000E-03    12.231       -.79185E-07** at limit **
   9  Prefactor     .10000E-03    1.7994        .35407E-06** at limit **
  10  Prefactor     2.2941        10.033        .49551E-05   -.17201E-03
  11  Prefactor     3.0367        28.485        .56532E-06   -.55672E-05
  12  Prefactor     .10000E-03    18.907        .20317E-05** at limit **
  13  Prefactor     8.0582        8.0320        .12916E-07   -.24121E-04
  14  Prefactor     11.108        17.374       -.74229E-06   -.73275E-04
  15  norm          .80165        .25238        .15915E-07   -.12447E-03
  16  Prefactor     4.4664        3.1568        .10449E-06   -.62058E-04
  17  Prefactor     .10000E-03    9.5240        .14856E-07** at limit **
  18  Prefactor     .10000E-03    12.562        .37102E-07** at limit **
  19  norm          .10000E-03    5.4822       -.10271E-06** at limit **
  20  Prefactor     .10000E-03    5.3338        .27915E-07** at limit **
  21  norm          10.240        11.490        .37914E-06   -.11824E-04
  22  Prefactor     .10000E-03    4.3941        .40805E-06** at limit **
  23  Prefactor     .66977        2.5181        .52201E-06    .21984E-04
  24  Prefactor     .10000E-03    45.643       -.86881E-06** at limit **
  25  Prefactor     6.5521        12.046        .39450E-06   -.28233E-06
  26  Prefactor     .10000E-03    10.247       -.17460E-06** at limit **
  27  Prefactor     9.1058        6.6758        .47079E-06   -.88575E-04
  28  Prefactor     19.162        22.192       -.30714E-07   -.11904E-04
  29  Normalizat    .93232        .18947       -.13336E-05   -.99357E-04
  30  Prefactor     1.1327        .20310       -.95135E-06   -.11102E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.91877
  Prefactor  = 21.9818
  Prefactor  = 15.8293
  Prefactor  = 36.2618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29412
  Prefactor  = 3.03668
  Prefactor  = 0.0001
  Prefactor  = 8.05816
  Prefactor  = 11.1082
  norm       = 0.80165
  Prefactor  = 4.46639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2404
  Prefactor  = 0.0001
  Prefactor  = 0.669772
  Prefactor  = 0.0001
  Prefactor  = 6.55205
  Prefactor  = 0.0001
  Prefactor  = 9.10575
  Prefactor  = 19.1622
  Normalizat = 0.932318
  Prefactor  = 1.13274
 **********
 **   18 **HESSE 
 **********

 FCN=   5982.102     FROM HESSE     STATUS=OK           590 CALLS     4520 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3759        .13833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9188        4.5037        .22471E-03   -1.5431    
   3  Prefactor     21.982        7.4665        .85435E-04   -1.4770    
   4  Prefactor     15.829        58.996        .10033E-03   -1.4912    
   5  Prefactor     36.262        31.455        .66569E-04   -1.4503    
   6  Prefactor     .10000E-03    4.2489        .30712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.5274        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8750        .20213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2941        10.289        .13582E-02   -1.5405    
  11  Prefactor     3.0367        28.483        .23271E-03   -1.5359    
  12  Prefactor     .10000E-03    19.242        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.0582        8.0300        .14125E-03   -1.5140    
  14  Prefactor     11.108        17.368        .12013E-03   -1.5041    
  15  norm          .80165        .25257        .21128E-04   -1.5529    
  16  Prefactor     4.4664        3.1569        .10803E-03   -1.5285    
  17  Prefactor     .10000E-03    9.6775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.4979        .17684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.3975        .17442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.240        11.499        .12523E-03   -1.5068    
  22  Prefactor     .10000E-03    4.4099        .15836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .66977        2.4566        .20778E-03   -1.5544    
  24  Prefactor     .10000E-03    45.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.5521        12.023        .15683E-03   -1.5196    
  26  Prefactor     .10000E-03    10.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.1058        6.4956        .66414E-03   -1.5104    
  28  Prefactor     19.162        22.280        .91514E-04   -1.4832    
  29  Normalizat    .93232        .22578        .25333E-03   -.95334    
  30  Prefactor     1.1327        .24184        .26985E-03   -.88427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33183e-10
Minuit parameter uncertainties:
  1  2.02614e-06
  2  4.5045
  3  7.4668
  4  59.2147
  5  31.4697
  6  3.68655e-05
  7  1.13779e-05
  8  3.61497e-06
  9  8.29557e-07
  10  9.71946
  11  18.6117
  12  6.05878e-05
  13  8.03112
  14  17.3758
  15  0.252573
  16  3.15702
  17  1.12053e-05
  18  5.61251e-06
  19  2.46939e-06
  20  6.4917e-06
  21  11.502
  22  6.26699e-06
  23  2.457
  24  8.2368e-05
  25  12.0278
  26  3.45682e-06
  27  6.49613
  28  22.2898
  29  0.226012
  30  0.242074
Done.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  8.058e+00  8.031e+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.133e+00  2.421e-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.323e-01  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.06
Ra Dec: 164.650 28.287
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.10e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 9.02e-06 +/- 8.99e-06

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) = 5981.40412237
delta logL = 0.697781942926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5981.39349712
delta logL = 0.708407197832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8398       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2994       1.0000          .0000       10.000    
     3 'Normalizat'    .94988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1231       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=   5981.393     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8398        6.9851        .38353E-02    .39386E-02
   2  Index         1.2995        .49083        .28132       -.32967E-04
   3  Normalizat    .94987        .17263        .45536E-01    .13385E-04
   4  Prefactor     1.1231        .20129        .61241E-01    .72145E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.83982
  Index      = 1.29946
  Normalizat = 0.949866
  Prefactor  = 1.12311
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.393     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8398        8.3836        .15341E-03   -1.5185    
   2  Index         1.2995        .66104        .11040E-01   -.83323    
   3  Normalizat    .94987        .20403        .25121E-03   -.94729    
   4  Prefactor     1.1231        .23801        .27085E-03   -.88731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69012e-08
Minuit parameter uncertainties:
  1  8.385
  2  0.665376
  3  0.2042
  4  0.238236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350796': 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) = 5981.39349712
delta logL = 0.708407200254

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  6.840e+00  8.385e+00  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  1.299e+00  6.654e-01  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.123e+00  2.382e-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.499e-01  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.47
Ra Dec: 164.650 28.287
Photon Index (Free Index): 1.30 +/- 0.67
Photon Flux (Free Index): 5.79e-09 +/- 7.67e-09
Energy Flux (Free Index): 3.55e-05 +/- 5.82e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/350796/cmap_HighResolution_328752001_329011201_4FGL_J1058.6+2817_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.10e-08', energy_flux2='3.55e-05', photon_flux_error='2.10e-08', dlogl='7.08e-01', energy_flux='9.02e-06', photon_flux2='5.79e-09', job_status='DONE', time_completed='2021-09-02 23:37:12.131578', photon_index_error2='0.67', photon_index2='1.30', ts='4.06', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='5.82e-05', EG='0.93', time_epoch_completed='1630651032.13', return_code='0', job_id='350796', GAL2='1.12', EG2='0.95', return_code2='0', energy_flux_error='8.99e-06', photon_flux_error2='7.67e-09', ts2='5.47', photon_index='2.23' WHERE bin_id='345' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 23:37:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 350796: <4FGL_J1058.6+2817_daily_bin345> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin345 164.65 28.2866 328752001 329011201 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 :                                   745.57 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            962 sec.

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

