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


Performing analysis on: 4FGL_J1058.0+4305_daily_bin1762
RA = 164.518, Dec = 43.0938
tmin = 696038401, tmax = 696297601
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='107716', job_status='RUN', time_executed='2023-01-25 00:50:56.612324', time_epoch_executed='1674636656.61' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107716

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107716/ft1_4FGL_J1058.0+4305_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107716/ft2_4FGL_J1058.0+4305_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107716/ft1_4FGL_J1058.0+4305_daily_bin1762.fits outfile=/scratch/kocevski/107716/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1762.fits ra=164.518 dec=43.0938 rad=12.0 tmin=696038401.0 tmax=696297601.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.73
user 3.50
sys 0.19

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

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

Number of photons that the gtmktime cut: 528

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107716/ft1_filtered_4FGL_J1058.0+4305_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/107716/ft2_4FGL_J1058.0+4305_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/107716/ltcube_696038401_696297601_4FGL_J1058.0+4305_daily_bin1762.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/107716/ft2_4FGL_J1058.0+4305_daily_bin1762.fits
.....................!
real 14.15
user 13.61
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107716/ft1_filtered_4FGL_J1058.0+4305_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/107716/ft2_4FGL_J1058.0+4305_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/107716/ltcube_696038401_696297601_4FGL_J1058.0+4305_daily_bin1762.fits outfile=/scratch/kocevski/107716/expmap_696038401_696297601_4FGL_J1058.0+4305_daily_bin1762.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/107716/ltcube_696038401_696297601_4FGL_J1058.0+4305_daily_bin1762.fits
.....................!
real 191.99
user 185.90
sys 5.06

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/107716/ft1_filtered_4FGL_J1058.0+4305_daily_bin1762.fits scfile=/scratch/kocevski/107716/ft2_4FGL_J1058.0+4305_daily_bin1762.fits outfile=/scratch/kocevski/107716/cmap_696038401_696297601_4FGL_J1058.0+4305_daily_bin1762.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107716/ft1_filtered_4FGL_J1058.0+4305_daily_bin1762.fits scfile=/scratch/kocevski/107716/ft2_4FGL_J1058.0+4305_daily_bin1762.fits outfile=/scratch/kocevski/107716/cmap_HighResolution_696038401_696297601_4FGL_J1058.0+4305_daily_bin1762.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1367       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11598E-03   1.0000          .0000       .10000E+07
     3 'norm      '    5.6571       1.0000          .0000       .10000E+07
     4 'Prefactor '    .22764E-05   1.0000          .0000       .10000E+07
     5 'norm      '    15.294       1.0000          .0000       .10000E+07
     6 'Prefactor '    .82557E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .58284       1.0000          .0000       .10000E+07
     8 'Prefactor '    .49565E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33954E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    28.809       1.0000          .0000       .10000E+07
    11 'norm      '    1.4909       1.0000          .0000       .10000E+07
    12 'Prefactor '    .94329E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    8.2899       1.0000          .0000       .10000E+07
    14 'Prefactor '    25.381       1.0000          .0000       .10000E+07
    15 'norm      '    8.2648       1.0000          .0000       .10000E+07
    16 'norm      '    .14034E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .11540E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .17894E-04   1.0000          .0000       .10000E+07
    19 'norm      '    3.1046       1.0000          .0000       .10000E+07
    20 'Prefactor '    1.3745       1.0000          .0000       .10000E+07
    21 'Prefactor '    .16348E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .20445E-06   1.0000          .0000       .10000E+07
    23 'norm      '    8.2215       1.0000          .0000       .10000E+07
    24 'Prefactor '    6.0751       1.0000          .0000       .10000E+07
    25 'Prefactor '    93.500       1.0000          .0000       .10000E+07
    26 'Prefactor '    .38155E-01   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.4905       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .37764       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=   5868.108     FROM MIGRAD    STATUS=CONVERGED    199 CALLS     2516 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1356        6.3674       -.14461E-06   -.56764E-04
   2  Prefactor     .33307E-09    2.2253       -.66837E-07** at limit **
   3  norm          5.6576        3.0656        .97203E-07   -.42809E-02
   4  Prefactor      .0000        1.5042       -.38156E-06** at limit **
   5  norm          15.292        10.640       -.21878E-05   -.32340E-01
   6  Prefactor     .65026E-06    9.2142       -.33432E-05** at limit **
   7  Prefactor     .59412        4.6346       -.61703E-06    .19987E-02
   8  Prefactor     .71027E-06    7.6027        .40009E-06** at limit **
   9  Prefactor     .22204E-09    19.462       -.13092E-06** at limit **
  10  Prefactor     29.428        43.559        .60867E-05    .14320E-01
  11  norm          1.4907        .35519        .18427E-07   -.82625E-02
  12  Prefactor     .10469E-06    8.7059        .25978E-06** at limit **
  13  Prefactor     8.3054        3.7660       -.10384E-05   -.17688E-01
  14  Prefactor     25.558        6.2401        .49677E-06    .27448E-01
  15  norm          8.2746        10.280       -.30997E-05   -.62515E-01
  16  norm          .14982E-06    13.470        .23388E-05** at limit **
  17  Prefactor      .0000        4.1934        .93362E-07** at limit **
  18  Prefactor     .37137E-07    36.098        .51478E-05** at limit **
  19  norm          3.0943        2.6145        .45005E-07    .15688E-02
  20  Prefactor     1.5034        12.334       -.49933E-06    .15748E-02
  21  Prefactor     .56954E-07    30.291       -.43686E-05** at limit **
  22  norm           .0000        .45023        .51097E-07** at limit **
  23  norm          8.2289        8.4815       -.23004E-06   -.10137E-02
  24  Prefactor     6.0537        4.4595       -.25623E-06    .12133E-03
  25  Prefactor     93.693        23.925        .21458E-05   -.89215E-01
  26  Prefactor     .16653E-09    20.065       -.30995E-06** at limit **
  27  Normalizat    1.4900        .19929        .41862E-05   -.12514E-03
  28  Prefactor     .37760        .22769        .55057E-05   -.68494E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.13562
  Prefactor  = 3.33067e-10
  norm       = 5.65759
  Prefactor  = 0
  norm       = 15.2922
  Prefactor  = 6.50258e-07
  Prefactor  = 0.594116
  Prefactor  = 7.10265e-07
  Prefactor  = 2.22045e-10
  Prefactor  = 29.4277
  norm       = 1.49069
  Prefactor  = 1.04694e-07
  Prefactor  = 8.30544
  Prefactor  = 25.5582
  norm       = 8.27462
  norm       = 1.49825e-07
  Prefactor  = 0
  Prefactor  = 3.7137e-08
  norm       = 3.09432
  Prefactor  = 1.50341
  Prefactor  = 5.69544e-08
  norm       = 0
  norm       = 8.22886
  Prefactor  = 6.0537
  Prefactor  = 93.6928
  Prefactor  = 1.66533e-10
  Normalizat = 1.48997
  Prefactor  = 0.377599
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.108     FROM HESSE     STATUS=OK           577 CALLS     3093 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1356        6.3783        .49536E-03   -1.5667    
   2  Prefactor     .33307E-09    2.2326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.6576        3.0637        .42210E-03   -1.5660    
   4  Prefactor      .0000        1.5042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.292        10.871        .25584E-03   -1.5630    
   6  Prefactor     .65026E-06    11.877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .59412        4.6882        .70779E-03   -1.5693    
   8  Prefactor     .71027E-06    10.372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .22204E-09    19.456        .16249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.428        48.700        .18634E-03   -1.5599    
  11  norm          1.4907        .36711        .48334E-03   -1.5684    
  12  Prefactor     .10469E-06    9.0991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3054        14.300        .34795E-03   -1.5650    
  14  Prefactor     25.558        38.195        .19853E-03   -1.5607    
  15  norm          8.2746        13.472        .34848E-03   -1.5650    
  16  norm          .14982E-06    14.071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        4.1139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .37137E-07    36.750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0943        2.6370        .57526E-03   -1.5673    
  20  Prefactor     1.5034        12.461        .92896E-03   -1.5683    
  21  Prefactor     .56954E-07    30.803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        .44834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.2289        8.5805        .34941E-03   -1.5651    
  24  Prefactor     6.0537        4.4608        .40711E-03   -1.5659    
  25  Prefactor     93.693        58.217        .10342E-03   -1.5514    
  26  Prefactor     .16653E-09    19.958        .16048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4900        .18443        .45079E-01   -.78061    
  28  Prefactor     .37760        .21612        .98393E-01   -1.1797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06107e-07
Minuit parameter uncertainties:
  1  6.37832
  2  5.57466e-05
  3  3.06366
  4  7.24076e-06
  5  10.8714
  6  0.00555801
  7  3.33787
  8  0.00542853
  9  0.000134386
  10  48.7008
  11  0.367112
  12  0.00195205
  13  14.3002
  14  38.1955
  15  13.4722
  16  0.0029039
  17  6.59608e-06
  18  0.00233728
  19  2.637
  20  8.65646
  21  0.00264904
  22  6.06465e-06
  23  8.58056
  24  4.46078
  25  58.2176
  26  0.000120553
  27  0.18451
  28  0.216584
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  2.220e-10  1.344e-04  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.776e-01  2.166e-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.490e+00  1.845e-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: 3.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107716/likelihoodResults_696038401_696297601_4FGL_J1058.0+4305_daily_bin1762.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) = 5868.13208629
delta logL = -0.0244960968948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5868.10759043
delta logL = -2.32975253311e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12018E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.1138       1.0000          .0000       10.000    
     3 'Normalizat'    1.4900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37762       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5868.108     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      213 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        21.884        .42118E-03** at limit **
   2  Index         .69767        .92321       -.70168E-04     .0000    
   3  Normalizat    1.4900        1.0507       -.25642E-04    .67958E-04
   4  Prefactor     .37760        .70577        .53248E-04    .44073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.697673
  Normalizat = 1.48997
  Prefactor  = 0.3776
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5868.108     FROM HESSE     STATUS=FAILED         9 CALLS      222 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        21.884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .15145E-02    .98860       -.70168E-04   -1.0362    
   3  Normalizat    1.4900        1.0507       -.25642E-04   -.78061    
   4  Prefactor     .37760        .70577        .53248E-04   -1.1797    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.27981e-12
Minuit parameter uncertainties:
  1  3.70721e-05
  2  0.944711
  3  1.06674
  4  0.722976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107716': 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): 101
logL (Free Index) = 5868.1075902
delta logL = 1.00044417195e-11

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  0.000e+00  3.707e-05  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  6.977e-01  9.447e-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:  3.776e-01  7.230e-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.490e+00  1.067e+00  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/107716/cmap_HighResolution_696038401_696297601_4FGL_J1058.0+4305_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-03', job_status='DONE', photon_flux_upper_limit='3.75e-08', time_completed='2023-01-25 01:03:30.998903', job_id='107716', GAL2='0.38', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1674637411.0', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.38', dlogl='1.00e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1762' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:03:31 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 107716: <4FGL_J1058.0+4305_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan 25 00:50:13 2023
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 00:50:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 00:50:27 2023
Terminated at Wed Jan 25 01:03:31 2023
Results reported at Wed Jan 25 01:03:31 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1762 164.518 43.0938 696038401 696297601 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 :                                   754.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            798 sec.

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

