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 103 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7294
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1058.0+4305_daily_bin1760
RA = 164.518, Dec = 43.0938
tmin = 695520001, tmax = 695779201
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='733664', job_status='RUN', time_executed='2023-01-19 00:46:19.992334', time_epoch_executed='1674117979.99' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733664

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733664/ft1_4FGL_J1058.0+4305_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733664/ft2_4FGL_J1058.0+4305_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733664/ft1_4FGL_J1058.0+4305_daily_bin1760.fits outfile=/scratch/kocevski/733664/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1760.fits ra=164.518 dec=43.0938 rad=12.0 tmin=695520001.0 tmax=695779201.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.42
user 2.20
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733664/ft2_4FGL_J1058.0+4305_daily_bin1760.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/733664/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1760.fits evtable="EVENTS" outfile="/scratch/kocevski/733664/ft1_filtered_4FGL_J1058.0+4305_daily_bin1760.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.50
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 279

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733664/ft1_filtered_4FGL_J1058.0+4305_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/733664/ft2_4FGL_J1058.0+4305_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/733664/ltcube_695520001_695779201_4FGL_J1058.0+4305_daily_bin1760.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/733664/ft2_4FGL_J1058.0+4305_daily_bin1760.fits
.....................!
real 16.88
user 16.48
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733664/ft1_filtered_4FGL_J1058.0+4305_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/733664/ft2_4FGL_J1058.0+4305_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/733664/ltcube_695520001_695779201_4FGL_J1058.0+4305_daily_bin1760.fits outfile=/scratch/kocevski/733664/expmap_695520001_695779201_4FGL_J1058.0+4305_daily_bin1760.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/733664/ltcube_695520001_695779201_4FGL_J1058.0+4305_daily_bin1760.fits
.....................!
real 192.51
user 186.95
sys 5.10

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/733664/ft1_filtered_4FGL_J1058.0+4305_daily_bin1760.fits scfile=/scratch/kocevski/733664/ft2_4FGL_J1058.0+4305_daily_bin1760.fits outfile=/scratch/kocevski/733664/cmap_695520001_695779201_4FGL_J1058.0+4305_daily_bin1760.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733664/ft1_filtered_4FGL_J1058.0+4305_daily_bin1760.fits scfile=/scratch/kocevski/733664/ft2_4FGL_J1058.0+4305_daily_bin1760.fits outfile=/scratch/kocevski/733664/cmap_HighResolution_695520001_695779201_4FGL_J1058.0+4305_daily_bin1760.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733664/ft1_filtered_4FGL_J1058.0+4305_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/733664/ft2_4FGL_J1058.0+4305_daily_bin1760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733664/Model_4FGL_J1058.0+4305_daily_bin1760.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/733664/ft1_filtered_4FGL_J1058.0+4305_daily_bin1760.fits......................!
real 34.29
user 32.86
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/733664/ft1_filtered_4FGL_J1058.0+4305_daily_bin1760.fits', '/scratch/kocevski/733664/ft2_4FGL_J1058.0+4305_daily_bin1760.fits', expMap='/scratch/kocevski/733664/expmap_695520001_695779201_4FGL_J1058.0+4305_daily_bin1760.fits', expCube='/scratch/kocevski/733664/ltcube_695520001_695779201_4FGL_J1058.0+4305_daily_bin1760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/733664/Model_4FGL_J1058.0+4305_daily_bin1760.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  0.000e+00  1.000e+06 ( 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/733664/ft1_filtered_4FGL_J1058.0+4305_daily_bin1760.fits
Spacecraft file(s): /scratch/kocevski/733664/ft2_4FGL_J1058.0+4305_daily_bin1760.fits
Exposure map: /scratch/kocevski/733664/expmap_695520001_695779201_4FGL_J1058.0+4305_daily_bin1760.fits
Exposure cube: /scratch/kocevski/733664/ltcube_695520001_695779201_4FGL_J1058.0+4305_daily_bin1760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/733664/Model_4FGL_J1058.0+4305_daily_bin1760.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) = 3194.77813746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69636E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    22.778       1.0000          .0000       .10000E+07
     3 'norm      '    9.6116       1.0000          .0000       .10000E+07
     4 'Prefactor '    .45473E-02   1.0000          .0000       .10000E+07
     5 'norm      '    3.8673       1.0000          .0000       .10000E+07
     6 'Prefactor '    21.540       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.6744       1.0000          .0000       .10000E+07
     8 'Prefactor '    .78678E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46089       1.0000          .0000       .10000E+07
    10 'Prefactor '    .50027E-01   1.0000          .0000       .10000E+07
    11 'norm      '    2.4809       1.0000          .0000       .10000E+07
    12 'Prefactor '    .26312E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .36058E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    82.464       1.0000          .0000       .10000E+07
    15 'norm      '    19.377       1.0000          .0000       .10000E+07
    16 'norm      '    .46113E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12780E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .62908E-03   1.0000          .0000       .10000E+07
    19 'norm      '    3.2942       1.0000          .0000       .10000E+07
    20 'Prefactor '    .12006E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    30.195       1.0000          .0000       .10000E+07
    22 'norm      '    2.1534       1.0000          .0000       .10000E+07
    23 'norm      '    .70332E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    4.8836       1.0000          .0000       .10000E+07
    25 'Prefactor '    .25767E-01   1.0000          .0000       .10000E+07
    26 'Prefactor '    .22622E-02   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0416       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0688       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3194.774     FROM MIGRAD    STATUS=CONVERGED    237 CALLS     2661 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        18.006       -.25741E-06** at limit **
   2  Prefactor     22.867        14.872        .45955E-07    .16841E-02
   3  norm          9.6072        6.5946        .43269E-07   -.14844E-03
   4  Prefactor     .26090E-08    14.719        .77043E-08** at limit **
   5  norm          3.9151        11.478       -.38591E-06   -.55938E-01
   6  Prefactor     20.752        68.237        .15360E-05   -.15733E-01
   7  Prefactor     4.6986        9.9620        .16521E-06    .69421E-02
   8  Prefactor     .43299E-08    18.607        .28810E-07** at limit **
   9  Prefactor     .74385E-08    165.47        .53173E-06** at limit **
  10  Prefactor     .21714E-04    189.65       -.11499E-05** at limit **
  11  norm          2.4815        .62224        .12615E-07   -.26137E-03
  12  Prefactor     .55511E-10    10.157        .72833E-07** at limit **
  13  Prefactor     .11102E-09    11.146        .11836E-06** at limit **
  14  Prefactor     85.044        231.17        .76725E-06   -.46586E-02
  15  norm          19.345        16.888       -.38543E-06    .54216E-01
  16  norm           .0000        50.004        .10346E-06** at limit **
  17  Prefactor     .11102E-09    9.2109       -.25980E-06** at limit **
  18  Prefactor     .19429E-08    33.119       -.47995E-06** at limit **
  19  norm          3.2994        3.2498       -.76930E-08   -.33237E-03
  20  Prefactor      .0000        2.7598        .42699E-07** at limit **
  21  Prefactor     29.890        13.841        .23573E-06    .54946E-01
  22  norm          2.1573        1.5243        .13322E-07   -.20648E-03
  23  norm           .0000        6.3649        .70485E-07** at limit **
  24  Prefactor     4.8827        5.6746       -.11411E-07   -.12170E-03
  25  Prefactor      .0000        44.832       -.14363E-06** at limit **
  26  Prefactor     .11274E-06    140.02       -.68992E-06** at limit **
  27  Normalizat    1.0411        .33005       -.87129E-05    .12689E-04
  28  Prefactor     1.0691        .37214        .52993E-05    .74926E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 22.867
  norm       = 9.60721
  Prefactor  = 2.60902e-09
  norm       = 3.91509
  Prefactor  = 20.7515
  Prefactor  = 4.69857
  Prefactor  = 4.32987e-09
  Prefactor  = 7.43849e-09
  Prefactor  = 2.17143e-05
  norm       = 2.48146
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 85.0435
  norm       = 19.3452
  norm       = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 1.94289e-09
  norm       = 3.29939
  Prefactor  = 0
  Prefactor  = 29.8901
  norm       = 2.15727
  norm       = 0
  Prefactor  = 4.88271
  Prefactor  = 0
  Prefactor  = 1.12743e-07
  Normalizat = 1.04113
  Prefactor  = 1.06914
 **********
 **   18 **HESSE 
 **********

 FCN=   3194.774     FROM HESSE     STATUS=OK           577 CALLS     3238 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        23.297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.867        23.043        .20958E-03   -1.5612    
   3  norm          9.6072        6.5965        .32299E-03   -1.5646    
   4  Prefactor     .26090E-08    14.735        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.9151        24.020        .51289E-03   -1.5668    
   6  Prefactor     20.752        69.360        .21553E-03   -1.5617    
   7  Prefactor     4.6986        10.114        .46523E-03   -1.5665    
   8  Prefactor     .43299E-08    22.611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .74385E-08    165.55        .82746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21714E-04    239.09        .15539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4815        .62110        .48679E-03   -1.5676    
  12  Prefactor     .55511E-10    10.151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11102E-09    11.145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     85.044        229.60        .11013E-03   -1.5524    
  15  norm          19.345        17.735        .22725E-03   -1.5620    
  16  norm           .0000        49.789        .15699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11102E-09    9.0092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .19429E-08    33.151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2994        3.2940        .55759E-03   -1.5672    
  20  Prefactor      .0000        2.7620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.890        58.538        .18201E-03   -1.5599    
  22  norm          2.1573        1.6391        .70183E-03   -1.5679    
  23  norm           .0000        6.3470        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.8827        5.6679        .45493E-03   -1.5664    
  25  Prefactor      .0000        44.615        .16683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .11274E-06    140.16        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0411        .27140        .59487E-01   -.91665    
  28  Prefactor     1.0691        .30726        .69877E-01   -.90459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93984e-07
Minuit parameter uncertainties:
  1  3.05524e-05
  2  23.0435
  3  6.59652
  4  0.000390436
  5  19.3949
  6  69.363
  7  10.114
  8  0.000625038
  9  0.00222096
  10  0.144113
  11  0.621101
  12  3.3747e-05
  13  6.47605e-05
  14  229.629
  15  17.7351
  16  1.52713e-05
  17  5.67493e-05
  18  0.000510927
  19  3.29403
  20  9.02029e-06
  21  58.5396
  22  1.63914
  23  1.21542e-05
  24  5.66787
  25  8.03163e-06
  26  0.00795052
  27  0.271763
  28  0.307772
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  7.438e-09  2.221e-03  0.000e+00  1.000e+06 ( 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.069e+00  3.078e-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:  1.041e+00  2.718e-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: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733664/likelihoodResults_695520001_695779201_4FGL_J1058.0+4305_daily_bin1760.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) = 3194.77657334
delta logL = -0.00289072578698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3194.77368346
delta logL = -8.48216131999e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71896E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.1895       1.0000          .0000       10.000    
     3 'Normalizat'    1.0408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0693       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.

 FCN=   3194.774     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      259 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34417E-08    8.1744        .42118E-03** at limit **
   2  Index         1.7432        5.1299        .50000       -.22737E-10
   3  Normalizat    1.0411        .11990E-02    .59487E-01    .31766E-04
   4  Prefactor     1.0691        .14326E-02    .69877E-01    .51756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.44169e-09
  Index      = 1.74319
  Normalizat = 1.04113
  Prefactor  = 1.06914
 **********
 **   18 **HESSE 
 **********

 FCN=   3194.774     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      292 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34417E-08    41.014        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7432        5.0117        .50000       -.70938    
   3  Normalizat    1.0411        .26825E-02    .26307E-03   -.91665    
   4  Prefactor     1.0691        .32040E-02    .30916E-03   -.90459    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91569e-12
Minuit parameter uncertainties:
  1  0.000754187
  2  33331.1
  3  0.00268255
  4  0.003204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733664': 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) = 3194.77368262
delta logL = 9.54969436862e-12

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  3.442e-09  7.542e-04  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  1.743e+00  3.333e+04  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.069e+00  3.204e-03  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:  1.041e+00  2.683e-03  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/733664/cmap_HighResolution_695520001_695779201_4FGL_J1058.0+4305_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.88e-03', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2023-01-19 00:55:47.936782', job_id='733664', GAL2='1.07', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1674118547.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='9.55e-12', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1760' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 00:55:47 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 733664: <4FGL_J1058.0+4305_daily_bin1760> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jan 19 00:40:33 2023
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 00:44:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 00:44:28 2023
Terminated at Thu Jan 19 00:55:48 2023
Results reported at Thu Jan 19 00:55:48 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1760 164.518 43.0938 695520001 695779201 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 :                                   570.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            915 sec.

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

