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


Performing analysis on: 4FGL_J1058.0+4305_weekly_bin760
RA = 164.518, Dec = 43.0938
tmin = 698630401, tmax = 699235201
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='20000', job_status='RUN', time_executed='2023-02-28 01:03:19.735275', time_epoch_executed='1677574999.74' WHERE source_name='4FGL J1058.0+4305' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20000

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20000/ft1_4FGL_J1058.0+4305_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20000/ft2_4FGL_J1058.0+4305_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20000/ft1_4FGL_J1058.0+4305_weekly_bin760.fits outfile=/scratch/kocevski/20000/ft1_filteredMKT_4FGL_J1058.0+4305_weekly_bin760.fits ra=164.518 dec=43.0938 rad=12.0 tmin=698630401.0 tmax=699235201.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 6.23
user 5.96
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/20000/ft2_4FGL_J1058.0+4305_weekly_bin760.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/20000/ft1_filteredMKT_4FGL_J1058.0+4305_weekly_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/20000/ft1_filtered_4FGL_J1058.0+4305_weekly_bin760.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.55
user 0.39
sys 0.15

Number of photons that the gtmktime cut: 44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20000/ft1_filtered_4FGL_J1058.0+4305_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/20000/ft2_4FGL_J1058.0+4305_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/20000/ltcube_698630401_699235201_4FGL_J1058.0+4305_weekly_bin760.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/20000/ft2_4FGL_J1058.0+4305_weekly_bin760.fits
.....................!
real 34.57
user 34.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20000/ft1_filtered_4FGL_J1058.0+4305_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/20000/ft2_4FGL_J1058.0+4305_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/20000/ltcube_698630401_699235201_4FGL_J1058.0+4305_weekly_bin760.fits outfile=/scratch/kocevski/20000/expmap_698630401_699235201_4FGL_J1058.0+4305_weekly_bin760.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/20000/ltcube_698630401_699235201_4FGL_J1058.0+4305_weekly_bin760.fits
.....................!
real 191.36
user 186.62
sys 4.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/20000/ft1_filtered_4FGL_J1058.0+4305_weekly_bin760.fits scfile=/scratch/kocevski/20000/ft2_4FGL_J1058.0+4305_weekly_bin760.fits outfile=/scratch/kocevski/20000/cmap_698630401_699235201_4FGL_J1058.0+4305_weekly_bin760.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.58
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20000/ft1_filtered_4FGL_J1058.0+4305_weekly_bin760.fits scfile=/scratch/kocevski/20000/ft2_4FGL_J1058.0+4305_weekly_bin760.fits outfile=/scratch/kocevski/20000/cmap_HighResolution_698630401_699235201_4FGL_J1058.0+4305_weekly_bin760.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.60
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59083E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.4774       1.0000          .0000       .10000E+07
     3 'norm      '    .21379E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .13679E+06   1.0000          .0000       .10000E+07
     5 'norm      '    .99995E+06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .97069E+06   1.0000          .0000       .10000E+07
     7 'Prefactor '    27221.       1.0000          .0000       .10000E+07
     8 'Prefactor '    .99070E+06   1.0000          .0000       .10000E+07
     9 'Prefactor '    45.301       1.0000          .0000       .10000E+07
    10 'Prefactor '    .77723E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .18269E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .96148E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .17729E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .40006E-01   1.0000          .0000       .10000E+07
    15 'norm      '    63.268       1.0000          .0000       .10000E+07
    16 'norm      '    .13404E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .99235E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .11113       1.0000          .0000       .10000E+07
    19 'norm      '    .30254E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    17.776       1.0000          .0000       .10000E+07
    21 'Prefactor '    .75802E-02   1.0000          .0000       .10000E+07
    22 'norm      '    .11102E-08   1.0000          .0000       .10000E+07
    23 'norm      '    52.140       1.0000          .0000       .10000E+07
    24 'Prefactor '    7.0880       1.0000          .0000       .10000E+07
    25 'Prefactor '    65.781       1.0000          .0000       .10000E+07
    26 'Prefactor '    .75381E-04   1.0000          .0000       .10000E+07
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88776       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=   546.9125     FROM MIGRAD    STATUS=CONVERGED    262 CALLS     2669 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        126.87        .12969E-06** at limit **
   2  Prefactor     4.4883        1.0099        .20333E-08   -.14708E-03
   3  norm          .81046E-08    86.111       -.10036E-06** at limit **
   4  Prefactor     .13679E+06    1.2817        .14594E-09   -.28178    
   5  norm          .99995E+06    4.5668        .41427E-07   -.31056E-01
   6  Prefactor     .97069E+06    1.5465        .43756E-09   -.20352    
   7  Prefactor     27218.        15.366       -.59005E-08    2.5396    
   8  Prefactor     .99070E+06    1.8535        .10169E-08   -.15327    
   9  Prefactor     .20065E-04    524.93       -.18331E-05** at limit **
  10  Prefactor     .15932E-07    97.230        .68112E-06** at limit **
  11  norm           .0000        2.0597        .49332E-08** at limit **
  12  Prefactor     .58842E-08    121.62        .17594E-06** at limit **
  13  Prefactor      .0000        95.889       -.33871E-06** at limit **
  14  Prefactor      .0000        187.23        .20959E-06** at limit **
  15  norm          82.952        231.11       -.12754E-05   -.69044E-02
  16  norm          .16653E-09    69.015       -.34729E-06** at limit **
  17  Prefactor     .44409E-09    47.250        .56700E-06** at limit **
  18  Prefactor     .55511E-10    142.95       -.51636E-06** at limit **
  19  norm           .0000        4.1087       -.13903E-08** at limit **
  20  Prefactor     16.437        28.664       -.19336E-06    .45511E-04
  21  Prefactor      .0000        43.106       -.54355E-07** at limit **
  22  norm           .0000        1.0877        .22890E-07** at limit **
  23  norm          53.345        30.050        .83289E-07   -.37701E-03
  24  Prefactor     7.0945        5.8669        .69457E-07   -.66713E-05
  25  Prefactor     59.722        68.538       -.30840E-06   -.37958E-03
  26  Prefactor      .0000        49.785       -.51191E-06** at limit **
  27  Normalizat    .10000E-01    .89751E-01    .24609E-07** at limit **
  28  Prefactor     .88708        .30148        .28640E-05   -.48757E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 4.4883
  norm       = 8.10463e-09
  Prefactor  = 136788
  norm       = 999955
  Prefactor  = 970695
  Prefactor  = 27218.2
  Prefactor  = 990696
  Prefactor  = 2.00648e-05
  Prefactor  = 1.59317e-08
  norm       = 0
  Prefactor  = 5.88418e-09
  Prefactor  = 0
  Prefactor  = 0
  norm       = 82.9522
  norm       = 1.66533e-10
  Prefactor  = 4.44089e-10
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 16.4369
  Prefactor  = 0
  norm       = 0
  norm       = 53.345
  Prefactor  = 7.0945
  Prefactor  = 59.7215
  Prefactor  = 0
  Normalizat = 0.01
  Prefactor  = 0.887085
 **********
 **   18 **HESSE 
 **********

 FCN=   546.9125     FROM HESSE     STATUS=OK           571 CALLS     3240 TOTAL
                     EDM=   .33E+00    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        126.63        .15195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.4883        .18948E+06    .47560E-03   -1.5666    
   3  norm          .81046E-08    86.165        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13679E+06    .56106E+06    .38772E-04   -.81310    
   5  norm          .99995E+06    68321.        .14745E-03    1.5573    
   6  Prefactor     .97069E+06    .12230E+06    .59290E-04    1.2267    
   7  Prefactor     27218.        28869.        .61453E-05   -1.2393    
   8  Prefactor     .99070E+06    .11467E+06    .10416E-03    1.3776    
   9  Prefactor     .20065E-04    523.84        .14859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15932E-07    97.166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        2.0435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .58842E-08    122.22        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        94.584        .17191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        186.84        .15963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          82.952        237.78        .12573E-03   -1.5526    
  16  norm          .16653E-09    68.905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .44409E-09    27.395        .37517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    144.72        .13639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        4.0889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.437        28.904        .23728E-03   -1.5627    
  21  Prefactor      .0000        42.943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        1.0846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          53.345        29.995        .13850E-03   -1.5562    
  24  Prefactor     7.0945        5.8245        .37656E-03   -1.5655    
  25  Prefactor     59.722        68.464        .12330E-03   -1.5553    
  26  Prefactor      .0000        49.687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .85089E-01    .97916E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .88708        .30324        .44849E-01   -.96594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.329689
Minuit parameter uncertainties:
  1  2.08654e-06
  2  1908.26
  3  0.00167313
  4  343828
  5  3559.85
  6  124381
  7  29022.4
  8  66987.6
  9  0.205062
  10  0.00248989
  11  4.65673e-07
  12  0.0016986
  13  3.5417e-05
  14  3.59538e-05
  15  237.806
  16  0.000213406
  17  0.00021541
  18  0.000217841
  19  5.60552e-08
  20  28.9046
  21  2.36372e-06
  22  1.21424e-07
  23  29.9956
  24  5.82451
  25  68.4651
  26  2.3701e-06
  27  3.75916e-09
  28  0.30382
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  2.006e-05  2.051e-01  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:  8.871e-01  3.038e-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.000e-02  3.759e-09  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.08e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/20000/likelihoodResults_698630401_699235201_4FGL_J1058.0+4305_weekly_bin760.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) = 546.913362483
delta logL = -0.000907265590399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 546.9124552
delta logL = 1.64419589055e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51098E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.7334       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88707       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=   546.9125     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      249 TOTAL
                     EDM=   .14E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    39.351        .42118E-03** at limit **
   2  Index         1.2601        5.5790        .50000       -.56843E-12
   3  Normalizat    .10000E-01    .76773E-05    .97916E-01** at limit **
   4  Prefactor     .88708        .24935E-02    .44840E-01    .42326E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  Index      = 1.26012
  Normalizat = 0.01
  Prefactor  = 0.887085
 **********
 **   18 **HESSE 
 **********

 FCN=   546.9125     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      274 TOTAL
                     EDM=   .71E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    196.84        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2601        6.1814        .50000       -.84501    
   3  Normalizat    .10000E-01    .39440E-04    .42771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .88708        .55762E-02    .21394E-03   -.96594    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.09565e-14
Minuit parameter uncertainties:
  1  0.000602257
  2  407792
  3  6.53819e-10
  4  0.00557623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20000': 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) = 546.912455198
delta logL = 1.90971150005e-08

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  4.441e-10  6.023e-04  0.000e+00  1.000e+06 ( 1.000e-14)
356        Index:  1.260e+00  4.078e+05  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.871e-01  5.576e-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.000e-02  6.538e-10  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/20000/cmap_HighResolution_698630401_699235201_4FGL_J1058.0+4305_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.29e-02', job_status='DONE', photon_flux_upper_limit='1.08e-06', time_completed='2023-02-28 01:10:25.896937', job_id='20000', GAL2='0.89', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677575425.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='760' AND source_name='4FGL J1058.0+4305' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 01:10:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 20000: <4FGL_J1058.0+4305_weekly_bin760> in cluster <slac> Done

Job <4FGL_J1058.0+4305_weekly_bin760> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 28 01:00:28 2023
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 01:00:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 01:00:29 2023
Terminated at Tue Feb 28 01:10:26 2023
Results reported at Tue Feb 28 01:10:26 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_weekly_bin760 164.518 43.0938 698630401 699235201 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 :                                   427.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             227.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            598 sec.

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

