aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 128 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 = 7530
number of fields = 31
RA_SUN column already exists. File will not be modifiedDoDone.


Performing analysis on: 4FGL_J1058.6+2817_daily_bin1674
RA = 164.65, Dec = 28.2866
tmin = 673228801, tmax = 673488001
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='669912', job_status='RUN', time_executed='2022-05-06 02:50:45.510178', time_epoch_executed='1651830645.51' WHERE source_name='4FGL J1058.6+2817' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669912

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669912/ft1_4FGL_J1058.6+2817_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669912/ft2_4FGL_J1058.6+2817_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669912/ft1_4FGL_J1058.6+2817_daily_bin1674.fits outfile=/scratch/kocevski/669912/ft1_filteredMKT_4FGL_J1058.6+2817_daily_bin1674.fits ra=164.65 dec=28.2866 rad=12.0 tmin=673228801.0 tmax=673488001.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.20
user 2.53
sys 0.20

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

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

Number of photons that the gtmktime cut: 797

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669912/ft1_filtered_4FGL_J1058.6+2817_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/669912/ft2_4FGL_J1058.6+2817_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/669912/ltcube_673228801_673488001_4FGL_J1058.6+2817_daily_bin1674.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/669912/ft2_4FGL_J1058.6+2817_daily_bin1674.fits
.....................!
real 14.47
user 14.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669912/ft1_filtered_4FGL_J1058.6+2817_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/669912/ft2_4FGL_J1058.6+2817_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/669912/ltcube_673228801_673488001_4FGL_J1058.6+2817_daily_bin1674.fits outfile=/scratch/kocevski/669912/expmap_673228801_673488001_4FGL_J1058.6+2817_daily_bin1674.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/669912/ltcube_673228801_673488001_4FGL_J1058.6+2817_daily_bin1674.fits
.....................!
real 191.37
user 185.72
sys 5.30

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/669912/ft1_filtered_4FGL_J1058.6+2817_daily_bin1674.fits scfile=/scratch/kocevski/669912/ft2_4FGL_J1058.6+2817_daily_bin1674.fits outfile=/scratch/kocevski/669912/cmap_673228801_673488001_4FGL_J1058.6+2817_daily_bin1674.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669912/ft1_filtered_4FGL_J1058.6+2817_daily_bin1674.fits scfile=/scratch/kocevski/669912/ft2_4FGL_J1058.6+2817_daily_bin1674.fits outfile=/scratch/kocevski/669912/cmap_HighResolution_673228801_673488001_4FGL_J1058.6+2817_daily_bin1674.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/669912/ft1_filtered_4FGL_J1058.6+2817_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/669912/ft2_4FGL_J1058.6+2817_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/669912/Model_4FGL_J1058.6+2817_daily_bin1674.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/669912/ft1_filtered_4FGL_J1058.6+2817_daily_bin1674.fits.....................!
real 72.28
user 70.91
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2880       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.754       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.530       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21139       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.988       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13780       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4741       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3972       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2393       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.487       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0019       1.0000         .10000E-03   10000.    
    19 'norm      '    .37307       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3792       1.0000         .10000E-03   10000.    
    21 'norm      '    12.667       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.3288       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.456       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.3577       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.994       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2149       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .75944       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=   8720.705     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     3537 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9959        .35176E-08** at limit **
   2  Prefactor     .10000E-03    3.0064       -.14609E-06** at limit **
   3  Prefactor     3.2929        4.0805        .55657E-06   -.27976E-03
   4  Prefactor     18.753        18.792        .32131E-06    .41997E-04
   5  Prefactor     32.935        36.658        .29807E-06   -.33619E-03
   6  Prefactor     .13374        3.4219        .53078E-06   -.73254E-03
   7  Prefactor     .10000E-03    4.5901        .14387E-06** at limit **
   8  Prefactor     .10000E-03    24.691        .36043E-06** at limit **
   9  Prefactor     .10000E-03    .81185        .55234E-07** at limit **
  10  Prefactor     15.064        10.042       -.29699E-06    .50684E-03
  11  Prefactor     .10000E-03    12.265        .81315E-07** at limit **
  12  Prefactor     .33017E-03    5.9293       -.82405E-06** at limit **
  13  Prefactor     .10000E-03    16.170       -.24161E-05** at limit **
  14  Prefactor     1.4965        35.335        .61107E-05    .19963E-03
  15  norm          1.3971        .30786        .38778E-07   -.17544E-02
  16  Prefactor     4.2387        2.6597        .17856E-05   -.13573E-02
  17  Prefactor     31.500        15.061       -.12003E-05   -.11544E-02
  18  Prefactor     3.9970        11.120        .85283E-06   -.26209E-04
  19  norm          .37057        5.9301        .20769E-05   -.78491E-03
  20  Prefactor     3.3790        3.4191       -.46994E-07    .25860E-05
  21  norm          12.665        9.8746       -.17363E-06   -.31713E-04
  22  Prefactor     .10000E-03    4.3825        .70317E-09** at limit **
  23  Prefactor     6.3285        2.4748       -.26830E-06   -.51636E-03
  24  Prefactor     16.440        28.500        .64561E-05    .41942E-03
  25  Prefactor     .10000E-03    6.7920       -.42756E-07** at limit **
  26  Prefactor     7.3552        9.5063        .21716E-06   -.22059E-04
  27  Prefactor     .10000E-03    2.3720        .10074E-06** at limit **
  28  Prefactor     19.990        19.505        .14440E-05    .24944E-03
  29  Normalizat    1.2149        .15886       -.62625E-06   -.32399E-03
  30  Prefactor     .75961        .16464       -.79824E-06   -.22683E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.2929
  Prefactor  = 18.7531
  Prefactor  = 32.9346
  Prefactor  = 0.133738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0644
  Prefactor  = 0.0001
  Prefactor  = 0.000330173
  Prefactor  = 0.000100003
  Prefactor  = 1.49652
  norm       = 1.39714
  Prefactor  = 4.2387
  Prefactor  = 31.4996
  Prefactor  = 3.99703
  norm       = 0.370574
  Prefactor  = 3.37898
  norm       = 12.6646
  Prefactor  = 0.0001
  Prefactor  = 6.3285
  Prefactor  = 16.4402
  Prefactor  = 0.0001
  Prefactor  = 7.35521
  Prefactor  = 0.0001
  Prefactor  = 19.9905
  Normalizat = 1.21489
  Prefactor  = 0.75961
 **********
 **   18 **HESSE 
 **********

 FCN=   8720.705     FROM HESSE     STATUS=OK           600 CALLS     4137 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0069        .12883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0623        .31358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2929        4.0765        .19450E-03   -1.5345    
   4  Prefactor     18.753        18.800        .92487E-04   -1.4842    
   5  Prefactor     32.935        69.062        .70255E-04   -1.4560    
   6  Prefactor     .13374        203.96        .25786E-02   -1.5635    
   7  Prefactor     .10000E-03    4.7146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8848        .16060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.064        10.016        .10346E-03   -1.4932    
  11  Prefactor     .10000E-03    12.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .33017E-03    10.162        .65988E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4965        33.837        .35379E-03   -1.5463    
  15  norm          1.3971        .30996        .22102E-04   -1.5472    
  16  Prefactor     4.2387        2.8104        .60053E-03   -1.5296    
  17  Prefactor     31.500        15.319        .71406E-04   -1.4585    
  18  Prefactor     3.9970        11.125        .20160E-03   -1.5308    
  19  norm          .37057        59.502        .40887E-02   -1.5586    
  20  Prefactor     3.3790        3.4230        .16927E-03   -1.5340    
  21  norm          12.665        9.8916        .11255E-03   -1.4996    
  22  Prefactor     .10000E-03    4.4008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.3285        2.4747        .82470E-04   -1.5205    
  24  Prefactor     16.440        29.612        .98730E-04   -1.4897    
  25  Prefactor     .10000E-03    6.8067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.3552        9.4864        .14786E-03   -1.5165    
  27  Prefactor     .10000E-03    4.9805        .27535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     19.990        19.592        .89575E-04   -1.4813    
  29  Normalizat    1.2149        .19111        .23487E-03   -.86144    
  30  Prefactor     .75961        .19650        .32042E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89744e-08
Minuit parameter uncertainties:
  1  1.52071e-06
  2  1.41266e-05
  3  4.07685
  4  18.8055
  5  69.2306
  6  10.4775
  7  1.3364e-05
  8  8.84504e-05
  9  6.71492e-06
  10  10.0169
  11  2.3978e-05
  12  0.0967451
  13  0.000416333
  14  14.2406
  15  0.309957
  16  2.81053
  17  15.3205
  18  11.1311
  19  9.39975
  20  3.42321
  21  9.89291
  22  2.26017e-07
  23  2.47476
  24  29.6383
  25  1.10022e-05
  26  9.48835
  27  3.15597e-05
  28  19.5981
  29  0.191221
  30  0.19667DoDone.

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

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.000e-04  4.163e-04  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:  7.596e-01  1.967e-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:  1.215e+00  1.912e-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: 5.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/669912/likelihoodResults_673228801_673488001_4FGL_J1058.6+2817_daily_bin1674.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): 102
logL (Free Index) = 8720.70502141
delta logL = -0.000279113162833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8720.70474248
delta logL = -1.82300937013e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12208E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2872       1.0000          .0000       10.000    
     3 'Normalizat'    1.2148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75970       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=   8720.705     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      233 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    .88437E-01    .90712E-01** at limit **
   2  Index         2.3598        6.3113        .50000       -.28923E-04
   3  Normalizat    1.2149        .57703E-03    .53121E-01    .18839E-04
   4  Prefactor     .75961        .64104E-03    .72402E-01    .45273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Index      = 2.35977
  Normalizat = 1.21489
  Prefactor  = 0.75961
 **********
 **   18 **HESSE 
 **********

 FCN=   8720.705     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      268 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    41.324        .35199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3598        6.3385        .50000       -.55630    
   3  Normalizat    1.2149        .47962E-02    .23487E-03   -.86144    
   4  Prefactor     .75961        .53210E-02    .32042E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.44108e-07
Minuit parameter uncertainties:
  1  0.00172198
  2  91.0454
  3  0.00479621
  4  0.00532098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669912': 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): 102
logL (Free Index) = 8720.70474133
delta logL = 9.71967892838e-07

Extracting fit parameters...

4FGL J1058.6+2817
   Spectrum: PowerLaw
233    Prefactor:  1.000e-04  1.722e-03  1.000e-04  1.000e+04 ( 1.000e-13)
234        Index:  2.360e+00  9.105e+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:  7.596e-01  5.321e-03  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:  1.215e+00  4.796e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/669912/cmap_HighResolution_673228801_673488001_4FGL_J1058.6+2817_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-03', job_status='DONE', photon_flux_upper_limit='5.44e-08', time_completed='2022-05-06 03:07:52.923845', job_id='669912', GAL2='0.76', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1651831672.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='9.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1674' AND source_name='4FGL J1058.6+2817' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:07:52 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 669883: <4FGL_J1058.6+2817_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1058.6+2817_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:07:05 2022
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:48:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:48:17 2022
Terminated at Fri May  6 03:05:32 2022
Results reported at Fri May  6 03:05:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin1674 164.65 28.2866 673228801 673488001 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 :                                   1027.13 sec.
    Max Memory :                                 617 MB
    Average Memory :                             315.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1035 sec.
    Turnaround time :                            10707 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0200>
Subject: Job 669912: <4FGL_J1058.6+2817_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1058.6+2817_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:07:07 2022
Job was executed on host(s) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:48:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:48:27 2022
Terminated at Fri May  6 03:07:53 2022
Results reported at Fri May  6 03:07:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+2817_daily_bin1674 164.65 28.2866 673228801 673488001 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 :                                   1020.78 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             285.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1166 sec.
    Turnaround time :                            10846 sec.

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

