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


Performing analysis on: 4FGL_J1058.0+4305_daily_bin1718
RA = 164.518, Dec = 43.0938
tmin = 684633601, tmax = 684892801
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='97574', job_status='RUN', time_executed='2022-09-16 15:38:32.794621', time_epoch_executed='1663367912.79' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97574

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97574/ft1_4FGL_J1058.0+4305_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97574/ft2_4FGL_J1058.0+4305_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97574/ft1_4FGL_J1058.0+4305_daily_bin1718.fits outfile=/scratch/kocevski/97574/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1718.fits ra=164.518 dec=43.0938 rad=12.0 tmin=684633601.0 tmax=684892801.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.23
user 3.00
sys 0.21

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

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

Number of photons that the gtmktime cut: 175

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97574/ft1_filtered_4FGL_J1058.0+4305_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/97574/ft2_4FGL_J1058.0+4305_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/97574/ltcube_684633601_684892801_4FGL_J1058.0+4305_daily_bin1718.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/97574/ft2_4FGL_J1058.0+4305_daily_bin1718.fits
.....................!
real 15.88
user 15.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97574/ft1_filtered_4FGL_J1058.0+4305_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/97574/ft2_4FGL_J1058.0+4305_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/97574/ltcube_684633601_684892801_4FGL_J1058.0+4305_daily_bin1718.fits outfile=/scratch/kocevski/97574/expmap_684633601_684892801_4FGL_J1058.0+4305_daily_bin1718.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/97574/ltcube_684633601_684892801_4FGL_J1058.0+4305_daily_bin1718.fits
.....................!
real 191.72
user 186.14
sys 5.14

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/97574/ft1_filtered_4FGL_J1058.0+4305_daily_bin1718.fits scfile=/scratch/kocevski/97574/ft2_4FGL_J1058.0+4305_daily_bin1718.fits outfile=/scratch/kocevski/97574/cmap_684633601_684892801_4FGL_J1058.0+4305_daily_bin1718.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.57
user 0.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17000E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .44932E-04   1.0000          .0000       .10000E+07
     3 'norm      '    3.2328       1.0000          .0000       .10000E+07
     4 'Prefactor '    .15720E-04   1.0000          .0000       .10000E+07
     5 'norm      '    9.9033       1.0000          .0000       .10000E+07
     6 'Prefactor '    .60276E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .32354E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    79.258       1.0000          .0000       .10000E+07
     9 'Prefactor '    263.45       1.0000          .0000       .10000E+07
    10 'Prefactor '    .63443E-01   1.0000          .0000       .10000E+07
    11 'norm      '    2.4727       1.0000          .0000       .10000E+07
    12 'Prefactor '    83.701       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25468E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .30662E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .16439E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .80095E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .37536E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .48900E-06   1.0000          .0000       .10000E+07
    19 'norm      '    13.180       1.0000          .0000       .10000E+07
    20 'Prefactor '    .90616E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    170.95       1.0000          .0000       .10000E+07
    22 'norm      '    .16529E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .11586       1.0000          .0000       .10000E+07
    24 'Prefactor '    15.448       1.0000          .0000       .10000E+07
    25 'Prefactor '    2444.5       1.0000          .0000       .10000E+07
    26 'Prefactor '    .24850       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.1073       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .38067       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=   1943.262     FROM MIGRAD    STATUS=CONVERGED    279 CALLS     2717 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        10.126        .31341E-06** at limit **
   2  Prefactor      .0000        5.4727       -.13183E-06** at limit **
   3  norm          3.2299        2.4795        .73136E-07   -.69890E-04
   4  Prefactor     .44409E-09    36.669       -.71355E-06** at limit **
   5  norm          9.5754        10.400       -.66501E-06   -.26574E-03
   6  Prefactor      .0000        14.458        .43669E-06** at limit **
   7  Prefactor      .0000        16.595        .19865E-07** at limit **
   8  Prefactor     80.457        78.964       -.27730E-05    .81670E-03
   9  Prefactor     267.38        183.35        .30603E-05   -.20057E-01
  10  Prefactor      .0000        77.426       -.29645E-06** at limit **
  11  norm          2.4712        .85826       -.51808E-07   -.67669E-03
  12  Prefactor     84.136        55.994        .23096E-05   -.98410E-03
  13  Prefactor      .0000        25.320        .53006E-07** at limit **
  14  Prefactor      .0000        66.131       -.21632E-06** at limit **
  15  norm          .55511E-09    35.038       -.41276E-06** at limit **
  16  norm           .0000        36.786       -.20801E-05** at limit **
  17  Prefactor      .0000        8.7037        .13476E-06** at limit **
  18  Prefactor      .0000        118.66        .12204E-06** at limit **
  19  norm          14.362        22.806        .15549E-05    .25809E-03
  20  Prefactor      .0000        49.266        .32984E-06** at limit **
  21  Prefactor     124.48        629.14       -.27457E-04   -.18359E-01
  22  norm          .55511E-10    10.334       -.24594E-06** at limit **
  23  norm          .22204E-09    93.111       -.15580E-05** at limit **
  24  Prefactor     15.522        18.312       -.77660E-06    .75687E-04
  25  Prefactor     2447.1        36.898        .34507E-06   -1.2778    
  26  Prefactor      .0000        133.79        .65882E-07** at limit **
  27  Normalizat    1.1106        .28401       -.28200E-04   -.12350E-03
  28  Prefactor     .37767        .33539        .32170E-04   -.49376E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  norm       = 3.22993
  Prefactor  = 4.44089e-10
  norm       = 9.57542
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 80.4566
  Prefactor  = 267.378
  Prefactor  = 0
  norm       = 2.47117
  Prefactor  = 84.1364
  Prefactor  = 0
  Prefactor  = 0
  norm       = 5.55112e-10
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 14.3624
  Prefactor  = 0
  Prefactor  = 124.484
  norm       = 5.55112e-11
  norm       = 2.22045e-10
  Prefactor  = 15.5216
  Prefactor  = 2447.07
  Prefactor  = 0
  Normalizat = 1.11065
  Prefactor  = 0.37767
 **********
 **   18 **HESSE 
 **********

 FCN=   1943.262     FROM HESSE     STATUS=OK           567 CALLS     3284 TOTAL
                     EDM=   .10E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        10.083        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        5.4618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2299        2.4758        .56312E-03   -1.5672    
   4  Prefactor     .44409E-09    5.4394        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.5754        10.391        .31818E-03   -1.5646    
   6  Prefactor      .0000        14.444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        16.223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     80.457        79.338        .11233E-03   -1.5529    
   9  Prefactor     267.38        184.72        .61619E-04   -1.5381    
  10  Prefactor      .0000        76.874        .15040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4712        .85561        .51541E-03   -1.5677    
  12  Prefactor     84.136        56.064        .10931E-03   -1.5525    
  13  Prefactor      .0000        25.255        .16700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        66.108        .16416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55511E-09    34.937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        36.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        8.6950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        118.74        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.362        23.485        .27565E-03   -1.5632    
  20  Prefactor      .0000        49.519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     124.48        1388.9        .76490E-04   -1.5485    
  22  norm          .55511E-10    10.689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .22204E-09    93.969        .13521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.522        18.374        .25456E-03   -1.5629    
  25  Prefactor     2447.1        3903.3        .20251E-04   -1.4718    
  26  Prefactor      .0000        134.41        .10969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1106        .26149        .37709E-01   -.89411    
  28  Prefactor     .37767        .31417        .87355E-01   -1.1796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0100084
Minuit parameter uncertainties:
  1  7.35674e-06
  2  6.29887e-07
  3  2.47581
  4  9.66178e-05
  5  10.3911
  6  4.24457e-06
  7  3.05033e-05
  8  79.3394
  9  184.721
  10  3.96693e-06
  11  0.855607
  12  56.0648
  13  7.65335e-06
  14  4.44783e-06
  15  0.000278818
  16  3.65924e-05
  17  1.2841e-06
  18  2.51412e-06
  19  23.4853
  20  2.84075e-05
  21  831.868
  22  5.71231e-05
  23  0.000278687
  24  18.374
  25  3907.36
  26  3.14341e-05
  27  0.2618
  28  0.31561
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  2.674e+02  1.847e+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:  3.777e-01  3.156e-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.111e+00  2.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.63
Ra Dec: 164.518 43.094
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 9.12e-08 +/- 6.29e-08
Energy Flux (Fixed Index): 3.22e-05 +/- 2.23e-05

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) = 1942.86607853
delta logL = 0.396060773258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1942.86294977
delta logL = 0.399189528999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    108.88       1.0000          .0000       .10000E+07
     2 'Index     '    3.0135       1.0000          .0000       10.000    
     3 'Normalizat'    1.0675       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40961       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=   1942.863     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      290 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     108.89        185.23        .38336E-05   -.55277E-03
   2  Index         3.0137        .91517        .28576E-02   -.41414E-04
   3  Normalizat    1.0675        .28479        .19713E-03    .54787E-06
   4  Prefactor     .40940        .33724        .37250E-03    .11849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 108.892
  Index      = 3.01368
  Normalizat = 1.06752
  Prefactor  = 0.409395
 **********
 **   18 **HESSE 
 **********

 FCN=   1942.863     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     108.89        160.36        .76673E-06   -1.5499    
   2  Index         3.0137        .79313        .11431E-03   -.40853    
   3  Normalizat    1.0675        .28428        .78852E-05   -.90801    
   4  Prefactor     .40940        .33696        .14900E-04   -1.1633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5962e-11
Minuit parameter uncertainties:
  1  160.369
  2  0.797138
  3  0.284689
  4  0.338609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97574': 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) = 1942.86294913
delta logL = 0.399190171597

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.089e+02  1.604e+02  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  3.014e+00  7.971e-01  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:  4.094e-01  3.386e-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.068e+00  2.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.44
Ra Dec: 164.518 43.094
Photon Index (Free Index): 3.01 +/- 0.80
Photon Flux (Free Index): 1.42e-07 +/- 1.01e-07
Energy Flux (Free Index): 2.82e-05 +/- 1.75e-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/97574/cmap_HighResolution_684633601_684892801_4FGL_J1058.0+4305_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.12e-08', energy_flux2='2.82e-05', photon_flux_error='6.29e-08', dlogl='3.99e-01', energy_flux='3.22e-05', photon_flux2='1.42e-07', job_status='DONE', time_completed='2022-09-16 15:46:16.491194', photon_index_error2='0.80', photon_index2='3.01', ts='4.63', fit_tolerance='1e-08', GAL='0.38', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.11', time_epoch_completed='1663368376.49', return_code='0', job_id='97574', GAL2='0.41', EG2='1.07', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='1.01e-07', ts2='5.44', photon_index='2.35' WHERE bin_id='1718' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:46:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 97574: <4FGL_J1058.0+4305_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1718> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 15:35:22 2022
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:37:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:37:34 2022
Terminated at Fri Sep 16 15:46:17 2022
Results reported at Fri Sep 16 15:46:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1718 164.518 43.0938 684633601 684892801 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 :                                   466.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   522 sec.
    Turnaround time :                            655 sec.

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

