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 93 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 modified.
Done.


Performing analysis on: 4FGL_J1058.0+4305_daily_bin1674
RA = 164.518, Dec = 43.0938
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='669875', job_status='RUN', time_executed='2022-05-06 02:49:59.380488', time_epoch_executed='1651830599.38' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669875

Creating custom pfile directory:
/scratch/kocevski/669875/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/669875/ft1_4FGL_J1058.0+4305_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/669875/ft2_4FGL_J1058.0+4305_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669875/ft1_4FGL_J1058.0+4305_daily_bin1674.fits outfile=/scratch/kocevski/669875/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1674.fits ra=164.518 dec=43.0938 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 2.75
user 2.53
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/669875/ft2_4FGL_J1058.0+4305_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/669875/ft2_4FGL_J1058.0+4305_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/669875/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/669875/ft1_filtered_4FGL_J1058.0+4305_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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 924

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669875/ft1_filtered_4FGL_J1058.0+4305_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/669875/ft2_4FGL_J1058.0+4305_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/669875/ltcube_673228801_673488001_4FGL_J1058.0+4305_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/669875/ft2_4FGL_J1058.0+4305_daily_bin1674.fits
.....................!
real 13.99
user 13.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669875/ft1_filtered_4FGL_J1058.0+4305_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/669875/ft2_4FGL_J1058.0+4305_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/669875/ltcube_673228801_673488001_4FGL_J1058.0+4305_daily_bin1674.fits outfile=/scratch/kocevski/669875/expmap_673228801_673488001_4FGL_J1058.0+4305_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/669875/ltcube_673228801_673488001_4FGL_J1058.0+4305_daily_bin1674.fits
.....................!
real 192.24
user 185.90
sys 5.93

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 226 point sources and 0 extended sources

Setting source of interest to:
4FGL J1058.0+4305 @ 164.518 43.0938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/669875/ft1_filtered_4FGL_J1058.0+4305_daily_bin1674.fits scfile=/scratch/kocevski/669875/ft2_4FGL_J1058.0+4305_daily_bin1674.fits outfile=/scratch/kocevski/669875/cmap_673228801_673488001_4FGL_J1058.0+4305_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.518 yref=43.0938 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/669875/ft1_filtered_4FGL_J1058.0+4305_daily_bin1674.fits scfile=/scratch/kocevski/669875/ft2_4FGL_J1058.0+4305_daily_bin1674.fits outfile=/scratch/kocevski/669875/cmap_HighResolution_673228801_673488001_4FGL_J1058.0+4305_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.518 yref=43.0938 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/669875/ft1_filtered_4FGL_J1058.0+4305_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/669875/ft2_4FGL_J1058.0+4305_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/669875/Model_4FGL_J1058.0+4305_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/669875/ft1_filtered_4FGL_J1058.0+4305_daily_bin1674.fits.....................!
real 79.93
user 78.49
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/669875/ft1_filtered_4FGL_J1058.0+4305_daily_bin1674.fits', '/scratch/kocevski/669875/ft2_4FGL_J1058.0+4305_daily_bin1674.fits', expMap='/scratch/kocevski/669875/expmap_673228801_673488001_4FGL_J1058.0+4305_daily_bin1674.fits', expCube='/scratch/kocevski/669875/ltcube_673228801_673488001_4FGL_J1058.0+4305_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/669875/Model_4FGL_J1058.0+4305_daily_bin1674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.0+4305'

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  7.092e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/669875/ft1_filtered_4FGL_J1058.0+4305_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/669875/ft2_4FGL_J1058.0+4305_daily_bin1674.fits
Exposure map: /scratch/kocevski/669875/expmap_673228801_673488001_4FGL_J1058.0+4305_daily_bin1674.fits
Exposure cube: /scratch/kocevski/669875/ltcube_673228801_673488001_4FGL_J1058.0+4305_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/669875/Model_4FGL_J1058.0+4305_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) = 10075.468339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.809       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19186E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.470       1.0000         .10000E-03   10000.    
     4 'norm      '    6.2366       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3438       1.0000         .10000E-03   10000.    
     6 'norm      '    .62373E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.255       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.378       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .66602       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.185       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27940E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20849       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .35883E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4709       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.810       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6359       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.749       1.0000         .10000E-03   10000.    
    19 'norm      '    .32971       1.0000         .10000E-03   10000.    
    20 'norm      '    .11748E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3628       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.440       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .96115E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .25991       1.0000         .10000E-03   10000.    
    26 'norm      '    1.4123       1.0000         .10000E-03   10000.    
    27 'norm      '    14.687       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .57158E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    31.430       1.0000         .10000E-03   10000.    
    30 'Prefactor '    26.360       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .86725       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1031       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10075.37     FROM MIGRAD    STATUS=CONVERGED    981 CALLS     3966 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.897        10.129       -.24468E-06   -.65291E-05
   2  Prefactor     .13227        5.8224        .11531E-05   -.25233E-03
   3  Prefactor     14.357        21.203        .84673E-06    .81375E-04
   4  norm          6.2372        2.4220       -.17811E-07    .21766E-04
   5  Prefactor     4.2610        4.5226       -.14041E-05   -.46572E-03
   6  norm          .10004E-03    7.5980       -.19382E-05** at limit **
   7  Prefactor     41.246        51.422        .15976E-05    .24207E-03
   8  Prefactor     10.428        5.0633        .34056E-06    .54755E-03
   9  Prefactor     .59160        20.506        .18319E-05    .47149E-03
  10  Prefactor     16.225        38.052        .28337E-05    .11287E-03
  11  Prefactor     .10000E-03    23.540        .66982E-06** at limit **
  12  Prefactor     .10000E-03    18.099        .28432E-06** at limit **
  13  Prefactor     .10000E-03    407.53        .99392E-05** at limit **
  14  Prefactor     .10000E-03    22.101       -.23715E-07** at limit **
  15  norm          1.4695        .31991       -.15255E-07    .11218E-02
  16  Prefactor     34.784        16.134        .32935E-06    .26430E-03
  17  Prefactor     3.8394        11.596       -.22670E-06   -.35618E-05
  18  Prefactor     15.586        36.652       -.38484E-06   -.15203E-05
  19  norm          .60573        7.7934       -.78792E-06   -.12077E-03
  20  norm          .10000E-03    9.6411        .42445E-07** at limit **
  21  Prefactor     6.3505        2.4804        .11235E-06    .67032E-03
  22  Prefactor     13.820        28.224       -.30018E-05    .22812E-04
  23  norm          .10000E-03    .84454        .36943E-08** at limit **
  24  Prefactor     .69428E-01    4.1293       -.12619E-05    .50350E-03
  25  Prefactor     .10273E-03    60.007       -.63867E-05** at limit **
  26  norm          1.3912        1.1922       -.36863E-06    .11667E-02
  27  norm          14.678        9.9065       -.20318E-06    .13143E-03
  28  Prefactor     .10032E-03    1.0158        .39524E-06** at limit **
  29  Prefactor     33.892        63.372        .42378E-05    .78569E-04
  30  Prefactor     26.576        18.234       -.14010E-06    .65394E-04
  31  Normalizat    .86720        .13924        .12228E-05    .50184E-03
  32  Prefactor     1.1024        .16729       -.92556E-06    .54828E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.8972
  Prefactor  = 0.132273
  Prefactor  = 14.3566
  norm       = 6.23717
  Prefactor  = 4.26097
  norm       = 0.000100043
  Prefactor  = 41.2462
  Prefactor  = 10.4279
  Prefactor  = 0.5916
  Prefactor  = 16.2253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.46953
  Prefactor  = 34.7843
  Prefactor  = 3.83935
  Prefactor  = 15.5861
  norm       = 0.605733
  norm       = 0.0001
  Prefactor  = 6.35054
  Prefactor  = 13.8197
  norm       = 0.0001
  Prefactor  = 0.0694283
  Prefactor  = 0.000102726
  norm       = 1.39117
  norm       = 14.6776
  Prefactor  = 0.000100316
  Prefactor  = 33.8918
  Prefactor  = 26.5756
  Normalizat = 0.867203
  Prefactor  = 1.10244
 **********
 **   18 **HESSE 
 **********

 FCN=   10075.37     FROM HESSE     STATUS=OK           699 CALLS     4665 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.897        10.132        .94908E-04   -1.4862    
   2  Prefactor     .13227        187.77        .34444E-02   -1.5635    
   3  Prefactor     14.357        20.999        .10529E-03   -1.4950    
   4  norm          6.2372        2.4234        .93912E-04   -1.5208    
   5  Prefactor     4.2610        8.8099        .89960E-03   -1.5295    
   6  norm          .10004E-03    43.533        .39264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.246        63.297        .63177E-04   -1.4423    
   8  Prefactor     10.428        5.0239        .12437E-03   -1.5062    
   9  Prefactor     .59160        37.500        .27103E-02   -1.5554    
  10  Prefactor     16.225        37.892        .96615E-04   -1.4902    
  11  Prefactor     .10000E-03    23.543        .21252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.251        .19904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    409.69        .20033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.188        .21313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4695        .32225        .23845E-04   -1.5466    
  16  Prefactor     34.784        16.159        .67922E-04   -1.4528    
  17  Prefactor     3.8394        11.591        .21187E-03   -1.5316    
  18  Prefactor     15.586        36.671        .10093E-03   -1.4918    
  19  norm          .60573        43.142        .46160E-02   -1.5552    
  20  norm          .10000E-03    9.6423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.3505        2.4825        .86260E-04   -1.5204    
  22  Prefactor     13.820        28.232        .10926E-03   -1.4964    
  23  norm          .10000E-03    .87389        .17947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .69428E-01    3.8136        .55234E-01   -1.5655    
  25  Prefactor     .10273E-03    28.329        .12683       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.3912        1.1783        .73806E-04   -1.5472    
  27  norm          14.678        9.9152        .10451E-03   -1.4942    
  28  Prefactor     .10032E-03    1.7069        .34342E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     33.892        63.329        .71471E-04   -1.4543    
  30  Prefactor     26.576        18.359        .78027E-04   -1.4676    
  31  Normalizat    .86720        .16283        .25271E-03   -.97622    
  32  Prefactor     1.1024        .19749        .28701E-03   -.89389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74861e-08
Minuit parameter uncertainties:
  1  10.1331
  2  9.99494
  3  21.0101
  4  2.42348
  5  8.81263
  6  0.00273824
  7  63.4003
  8  5.0241
  9  9.42562
  10  37.9484
  11  1.19057e-06
  12  3.08474e-05
  13  0.00194371
  14  3.65429e-05
  15  0.322251
  16  16.1612
  17  11.5975
  18  36.7245
  19  10.2308
  20  3.197e-07
  21  2.48251
  22  28.2592
  23  1.43008e-05
  24  1.02845
  25  0.0175826
  26  1.17829
  27  9.91631
  28  0.00146829
  29  63.4551
  30  18.3631
  31  0.162918
  32  0.19762
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  1.944e-03  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.102e+00  1.976e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  8.672e-01  1.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.518 43.094
Photon Flux Upper Limit: 5.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/669875/likelihoodResults_673228801_673488001_4FGL_J1058.0+4305_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) = 10075.366863
delta logL = -1.14779177238e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10075.3668518
delta logL = -2.56583007285e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25179E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3266       1.0000          .0000       10.000    
     3 'Normalizat'    .86720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1024       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+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=   10075.37     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      269 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9265.5        .21462E-02** at limit **
   2  Index         2.3236        7.3867        .50000       -.62124E-05
   3  Normalizat    .86720        .45965E-01    .25271E-03    .13946E-04
   4  Prefactor     1.1024        .58379E-01    .28701E-03   -.37155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.32356
  Normalizat = 0.867204
  Prefactor  = 1.10244
 **********
 **   18 **HESSE 
 **********

 FCN=   10075.37     FROM HESSE     STATUS=OK            29 CALLS      298 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    416.79        .42924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3236        6.1096        .50000       -.56485    
   3  Normalizat    .86720        .15163        .10109E-04   -.97622    
   4  Prefactor     1.1024        .19263        .11480E-04   -.89389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16356e-11
Minuit parameter uncertainties:
  1  0.00409478
  2  5.11305
  3  0.151709
  4  0.192751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669875': 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) = 10075.3668516
delta logL = -3.29655449605e-08

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  4.095e-03  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.324e+00  5.113e+00  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.102e+00  1.928e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  8.672e-01  1.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.518 43.094

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/669875/cmap_HighResolution_673228801_673488001_4FGL_J1058.0+4305_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2022-05-06 03:15:03.020813', job_id='669875', GAL2='1.10', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1651832103.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-3.30e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1674' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:15:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 669905: <4FGL_J1058.0+4305_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:07:06 2022
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:48:23 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:23 2022
Terminated at Fri May  6 03:14:49 2022
Results reported at Fri May  6 03:14:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1674 164.518 43.0938 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.0+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1502.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             293.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1586 sec.
    Turnaround time :                            11263 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 669875: <4FGL_J1058.0+4305_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:07:04 2022
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:48:16 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:16 2022
Terminated at Fri May  6 03:15:03 2022
Results reported at Fri May  6 03:15:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1674 164.518 43.0938 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.0+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1505.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             307.98 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1607 sec.
    Turnaround time :                            11279 sec.

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

