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


Performing analysis on: 4FGL_J1058.0+4305_daily_bin1759
RA = 164.518, Dec = 43.0938
tmin = 695260801, tmax = 695520001
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='555626', job_status='RUN', time_executed='2023-01-16 01:04:44.695243', time_epoch_executed='1673859884.7' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555626

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555626/ft1_4FGL_J1058.0+4305_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555626/ft2_4FGL_J1058.0+4305_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555626/ft1_4FGL_J1058.0+4305_daily_bin1759.fits outfile=/scratch/kocevski/555626/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1759.fits ra=164.518 dec=43.0938 rad=12.0 tmin=695260801.0 tmax=695520001.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.76
user 2.51
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555626/ft2_4FGL_J1058.0+4305_daily_bin1759.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/555626/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1759.fits evtable="EVENTS" outfile="/scratch/kocevski/555626/ft1_filtered_4FGL_J1058.0+4305_daily_bin1759.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.32
sys 0.16

Number of photons that the gtmktime cut: 383

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555626/ft1_filtered_4FGL_J1058.0+4305_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/555626/ft2_4FGL_J1058.0+4305_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/555626/ltcube_695260801_695520001_4FGL_J1058.0+4305_daily_bin1759.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/555626/ft2_4FGL_J1058.0+4305_daily_bin1759.fits
.....................!
real 14.85
user 14.26
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555626/ft1_filtered_4FGL_J1058.0+4305_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/555626/ft2_4FGL_J1058.0+4305_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/555626/ltcube_695260801_695520001_4FGL_J1058.0+4305_daily_bin1759.fits outfile=/scratch/kocevski/555626/expmap_695260801_695520001_4FGL_J1058.0+4305_daily_bin1759.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/555626/ltcube_695260801_695520001_4FGL_J1058.0+4305_daily_bin1759.fits
.....................!
real 192.49
user 186.25
sys 5.74

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/555626/ft1_filtered_4FGL_J1058.0+4305_daily_bin1759.fits scfile=/scratch/kocevski/555626/ft2_4FGL_J1058.0+4305_daily_bin1759.fits outfile=/scratch/kocevski/555626/cmap_695260801_695520001_4FGL_J1058.0+4305_daily_bin1759.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555626/ft1_filtered_4FGL_J1058.0+4305_daily_bin1759.fits scfile=/scratch/kocevski/555626/ft2_4FGL_J1058.0+4305_daily_bin1759.fits outfile=/scratch/kocevski/555626/cmap_HighResolution_695260801_695520001_4FGL_J1058.0+4305_daily_bin1759.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555626/ft1_filtered_4FGL_J1058.0+4305_daily_bin1759.fits', '/scratch/kocevski/555626/ft2_4FGL_J1058.0+4305_daily_bin1759.fits', expMap='/scratch/kocevski/555626/expmap_695260801_695520001_4FGL_J1058.0+4305_daily_bin1759.fits', expCube='/scratch/kocevski/555626/ltcube_695260801_695520001_4FGL_J1058.0+4305_daily_bin1759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555626/Model_4FGL_J1058.0+4305_daily_bin1759.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/555626/ft1_filtered_4FGL_J1058.0+4305_daily_bin1759.fits
Spacecraft file(s): /scratch/kocevski/555626/ft2_4FGL_J1058.0+4305_daily_bin1759.fits
Exposure map: /scratch/kocevski/555626/expmap_695260801_695520001_4FGL_J1058.0+4305_daily_bin1759.fits
Exposure cube: /scratch/kocevski/555626/ltcube_695260801_695520001_4FGL_J1058.0+4305_daily_bin1759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555626/Model_4FGL_J1058.0+4305_daily_bin1759.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) = 4213.66856814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.005       1.0000          .0000       .10000E+07
     2 'Prefactor '    .72005E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .47018E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .19879E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .11553       1.0000          .0000       .10000E+07
     6 'Prefactor '    55.930       1.0000          .0000       .10000E+07
     7 'Prefactor '    .20397E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12369       1.0000          .0000       .10000E+07
     9 'Prefactor '    55.297       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12909E-05   1.0000          .0000       .10000E+07
    11 'norm      '    3.4556       1.0000          .0000       .10000E+07
    12 'Prefactor '    .96250E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .16704E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .22909       1.0000          .0000       .10000E+07
    15 'norm      '    .54024E-02   1.0000          .0000       .10000E+07
    16 'norm      '    22.605       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22011E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .20515       1.0000          .0000       .10000E+07
    19 'norm      '    3.2868       1.0000          .0000       .10000E+07
    20 'Prefactor '    .90361E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    92.267       1.0000          .0000       .10000E+07
    22 'norm      '    .30809E-07   1.0000          .0000       .10000E+07
    23 'norm      '    3.1349       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.7893       1.0000          .0000       .10000E+07
    25 'Prefactor '    .92848       1.0000          .0000       .10000E+07
    26 'Prefactor '    .72530E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.4976       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .78676       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=   4213.532     FROM MIGRAD    STATUS=CONVERGED    290 CALLS     2699 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.214        31.585       -.55604E-06    .35055E-02
   2  Prefactor      .0000        4.8404        .23982E-06** at limit **
   3  norm          .55511E-10    11.581        .81183E-06** at limit **
   4  Prefactor      .0000        3.6768        .88422E-08** at limit **
   5  norm          .55511E-10    48.062        .38382E-06** at limit **
   6  Prefactor     51.698        64.224       -.45529E-05    .97248E-03
   7  Prefactor      .0000        5.0896       -.51461E-06** at limit **
   8  Prefactor     .11102E-09    92.993        .25891E-07** at limit **
   9  Prefactor     71.362        153.42        .15112E-06   -.23195E-03
  10  Prefactor     .49960E-09    27.425       -.29695E-06** at limit **
  11  norm          3.4544        .66596       -.13312E-06    .15312E-01
  12  Prefactor     .35652E-05    155.90       -.89686E-05** at limit **
  13  Prefactor     .11102E-09    45.767        .30756E-05** at limit **
  14  Prefactor     .47971E-05    53.917        .42082E-05** at limit **
  15  norm           .0000        66.538       -.32893E-05** at limit **
  16  norm          23.878        50.095       -.31417E-06   -.99625E-03
  17  Prefactor     .16653E-09    8.7486        .14041E-05** at limit **
  18  Prefactor     .16104E-06    151.47        .41029E-05** at limit **
  19  norm          3.2592        4.5852        .46557E-06    .13469E-02
  20  Prefactor      .0000        5.3072        .33352E-07** at limit **
  21  Prefactor     94.781        60.256       -.14282E-06    .33368E-02
  22  norm           .0000        .91206        .17210E-07** at limit **
  23  norm          3.2413        12.883        .31901E-05    .87258E-04
  24  Prefactor     1.7927        2.7267       -.94370E-07    .12724E-03
  25  Prefactor     .15599E-07    681.50        .22461E-04** at limit **
  26  Prefactor     .27867E-07    18.559       -.67020E-06** at limit **
  27  Normalizat    1.4927        .28900       -.84281E-05    .74272E-04
  28  Prefactor     .78909        .34069        .24871E-04    .40841E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 39.2143
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 51.6984
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 71.3623
  Prefactor  = 4.996e-10
  norm       = 3.45445
  Prefactor  = 3.5652e-06
  Prefactor  = 1.11022e-10
  Prefactor  = 4.79705e-06
  norm       = 0
  norm       = 23.8781
  Prefactor  = 1.66533e-10
  Prefactor  = 1.61038e-07
  norm       = 3.25922
  Prefactor  = 0
  Prefactor  = 94.7808
  norm       = 0
  norm       = 3.24129
  Prefactor  = 1.79269
  Prefactor  = 1.55986e-08
  Prefactor  = 2.78666e-08
  Normalizat = 1.49272
  Prefactor  = 0.789092
 **********
 **   18 **HESSE 
 **********

 FCN=   4213.532     FROM HESSE     STATUS=OK           583 CALLS     3282 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.214        31.726        .16013E-03   -1.5583    
   2  Prefactor      .0000        4.8484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    2.1917        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.7003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55511E-10    15.421        .92020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.698        64.433        .13372E-03   -1.5564    
   7  Prefactor      .0000        5.0537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11102E-09    91.476        .13332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     71.362        152.68        .13449E-03   -1.5539    
  10  Prefactor     .49960E-09    27.528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4544        .68008        .50639E-03   -1.5671    
  12  Prefactor     .35652E-05    16.456        .14031E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11102E-09    45.819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .47971E-05    143.05        .11279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        66.929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          23.878        50.053        .21038E-03   -1.5610    
  17  Prefactor     .16653E-09    8.6909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16104E-06    155.06        .11685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2592        4.6590        .55824E-03   -1.5672    
  20  Prefactor      .0000        5.3253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     94.781        60.521        .10411E-03   -1.5513    
  22  norm           .0000        .90355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.2413        12.919        .57232E-03   -1.5672    
  24  Prefactor     1.7927        2.7555        .78170E-03   -1.5681    
  25  Prefactor     .15599E-07    683.23        .43811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .27867E-07    19.161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4927        .24464        .54019E-01   -.77983    
  28  Prefactor     .78909        .29017        .84571E-01   -1.0013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82881e-08
Minuit parameter uncertainties:
  1  31.7259
  2  6.42406e-06
  3  2.39575e-05
  4  5.36939e-06
  5  4.54136e-05
  6  64.4342
  7  8.69831e-06
  8  0.000183783
  9  152.693
  10  0.000232511
  11  0.680081
  12  0.0153193
  13  0.000158642
  14  0.0523929
  15  1.02573e-05
  16  50.0537
  17  7.22031e-05
  18  0.00999499
  19  4.65901
  20  2.08496e-05
  21  60.5211
  22  8.76607e-07
  23  12.9192
  24  2.75546
  25  0.00652889
  26  0.00146174
  27  0.244835
  28  0.290731
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  7.136e+01  1.527e+02  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:  7.891e-01  2.907e-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.493e+00  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.29
Ra Dec: 164.518 43.094
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555626/likelihoodResults_695260801_695520001_4FGL_J1058.0+4305_daily_bin1759.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4213.21483962
delta logL = 0.316823031757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4213.16216554
delta logL = 0.369497107143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.035       1.0000          .0000       .10000E+07
     2 'Index     '    3.7079       1.0000          .0000       10.000    
     3 'Normalizat'    1.3976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86270       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4213.162     FROM MIGRAD    STATUS=FAILED        93 CALLS      330 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.134        763.58        .96957E-05   -.49364E-03
   2  Index         3.7057        6.8528        .48652E-02    .49437E-03
   3  Normalizat    1.3974        .29680        .24515E-03   -.64229E-03
   4  Prefactor     .86272        .33741        .35968E-03    .59431E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4213.162     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      418 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.134        763.58        .83052E-04   -.49364E-03
   2  Index         3.7057        6.8528        .18279E-02    .49437E-03
   3  Normalizat    1.3974        .29680        .19464E-03   -.64229E-03
   4  Prefactor     .86272        .33741        .25451E-03    .59431E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4213.162     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      450 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.135        101.06        .38783E-06    .56030E-03
   2  Index         3.7056        2.2202        .97305E-03    .24629E-04
   3  Normalizat    1.3974        .30910        .49030E-04   -.35105E-04
   4  Prefactor     .86268        .35005        .71935E-04   -.30059E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1353
  Index      = 3.70562
  Normalizat = 1.39741
  Prefactor  = 0.862677
 **********
 **   18 **HESSE 
 **********

 FCN=   4213.162     FROM HESSE     STATUS=OK            23 CALLS      473 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.135        65.260        .37253E-06   -1.5625    
   2  Index         3.7056        1.7654        .38922E-04   -.26186    
   3  Normalizat    1.3974        .30681        .98060E-05   -.80704    
   4  Prefactor     .86268        .34717        .14387E-04   -.97458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09709e-11
Minuit parameter uncertainties:
  1  65.2623
  2  1.80734
  3  0.307217
  4  0.348058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555626': 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) = 4213.16216352
delta logL = 0.369499128165

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.714e+01  6.526e+01  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  3.706e+00  1.807e+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:  8.627e-01  3.481e-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.397e+00  3.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 164.518 43.094
Photon Index (Free Index): 3.71 +/- 1.81
Photon Flux (Free Index): 1.02e-07 +/- 1.16e-07
Energy Flux (Free Index): 1.61e-05 +/- 1.72e-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/555626/cmap_HighResolution_695260801_695520001_4FGL_J1058.0+4305_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', energy_flux2='1.61e-05', dlogl='3.69e-01', photon_flux2='1.02e-07', job_status='DONE', time_completed='2023-01-16 01:15:50.233801', photon_index_error2='1.81', photon_index2='3.71', ts='0.29', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.72e-05', EG='1.49', time_epoch_completed='1673860550.23', return_code='0', job_id='555626', GAL2='0.86', EG2='1.40', return_code2='0', photon_flux_error2='1.16e-07', ts2='1.12', photon_index='2.35' WHERE bin_id='1759' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:15:50 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 555626: <4FGL_J1058.0+4305_daily_bin1759> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1759> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Jan 16 01:00:21 2023
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:01:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:01:31 2023
Terminated at Mon Jan 16 01:15:51 2023
Results reported at Mon Jan 16 01:15:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1759 164.518 43.0938 695260801 695520001 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 :                                   666.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             270.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            930 sec.

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

