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


Performing analysis on: 4FGL_J1058.6+5627_daily_bin1770
RA = 164.665, Dec = 56.4634
tmin = 698112001, tmax = 698371201
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='482933', job_status='RUN', time_executed='2023-02-18 00:39:10.605128', time_epoch_executed='1676709550.61' WHERE source_name='4FGL J1058.6+5627' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482933

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482933/ft1_4FGL_J1058.6+5627_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482933/ft2_4FGL_J1058.6+5627_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482933/ft1_4FGL_J1058.6+5627_daily_bin1770.fits outfile=/scratch/kocevski/482933/ft1_filteredMKT_4FGL_J1058.6+5627_daily_bin1770.fits ra=164.665 dec=56.4634 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.30
user 4.09
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/482933/ft2_4FGL_J1058.6+5627_daily_bin1770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/482933/ft2_4FGL_J1058.6+5627_daily_bin1770.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/482933/ft1_filteredMKT_4FGL_J1058.6+5627_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/482933/ft1_filtered_4FGL_J1058.6+5627_daily_bin1770.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.49
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 344

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482933/ft1_filtered_4FGL_J1058.6+5627_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/482933/ft2_4FGL_J1058.6+5627_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/482933/ltcube_698112001_698371201_4FGL_J1058.6+5627_daily_bin1770.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/482933/ft2_4FGL_J1058.6+5627_daily_bin1770.fits
.....................!
real 12.03
user 11.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482933/ft1_filtered_4FGL_J1058.6+5627_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/482933/ft2_4FGL_J1058.6+5627_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/482933/ltcube_698112001_698371201_4FGL_J1058.6+5627_daily_bin1770.fits outfile=/scratch/kocevski/482933/expmap_698112001_698371201_4FGL_J1058.6+5627_daily_bin1770.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/482933/ltcube_698112001_698371201_4FGL_J1058.6+5627_daily_bin1770.fits
.....................!
real 190.41
user 186.19
sys 3.88

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 237 point sources and 0 extended sources

Setting source of interest to:
4FGL J1058.6+5627 @ 164.665 56.4634

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/482933/ft1_filtered_4FGL_J1058.6+5627_daily_bin1770.fits scfile=/scratch/kocevski/482933/ft2_4FGL_J1058.6+5627_daily_bin1770.fits outfile=/scratch/kocevski/482933/cmap_698112001_698371201_4FGL_J1058.6+5627_daily_bin1770.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.665 yref=56.4634 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482933/ft1_filtered_4FGL_J1058.6+5627_daily_bin1770.fits scfile=/scratch/kocevski/482933/ft2_4FGL_J1058.6+5627_daily_bin1770.fits outfile=/scratch/kocevski/482933/cmap_HighResolution_698112001_698371201_4FGL_J1058.6+5627_daily_bin1770.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.665 yref=56.4634 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482933/ft1_filtered_4FGL_J1058.6+5627_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/482933/ft2_4FGL_J1058.6+5627_daily_bin1770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482933/Model_4FGL_J1058.6+5627_daily_bin1770.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/482933/ft1_filtered_4FGL_J1058.6+5627_daily_bin1770.fits.....................!
real 40.88
user 39.68
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/482933/ft1_filtered_4FGL_J1058.6+5627_daily_bin1770.fits', '/scratch/kocevski/482933/ft2_4FGL_J1058.6+5627_daily_bin1770.fits', expMap='/scratch/kocevski/482933/expmap_698112001_698371201_4FGL_J1058.6+5627_daily_bin1770.fits', expCube='/scratch/kocevski/482933/ltcube_698112001_698371201_4FGL_J1058.6+5627_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/482933/Model_4FGL_J1058.6+5627_daily_bin1770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.6+5627'

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  2.525e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
400        alpha:  1.858e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
401         beta:  4.581e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
402           Eb:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/482933/ft1_filtered_4FGL_J1058.6+5627_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/482933/ft2_4FGL_J1058.6+5627_daily_bin1770.fits
Exposure map: /scratch/kocevski/482933/expmap_698112001_698371201_4FGL_J1058.6+5627_daily_bin1770.fits
Exposure cube: /scratch/kocevski/482933/ltcube_698112001_698371201_4FGL_J1058.6+5627_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/482933/Model_4FGL_J1058.6+5627_daily_bin1770.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) = 3708.9868389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36362E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .15021E-01   1.0000          .0000       .10000E+07
     3 'norm      '    .37629E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .58868E-02   1.0000          .0000       .10000E+07
     5 'norm      '    1.3259       1.0000          .0000       .10000E+07
     6 'Prefactor '    .84078E-05   1.0000          .0000       .10000E+07
     7 'norm      '    1.3101       1.0000          .0000       .10000E+07
     8 'norm      '    4.9205       1.0000          .0000       .10000E+07
     9 'Prefactor '    14.465       1.0000          .0000       .10000E+07
    10 'norm      '    .61134E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    54.889       1.0000          .0000       .10000E+07
    12 'norm      '    .48839E-06   1.0000          .0000       .10000E+07
    13 'norm      '    4.6962       1.0000          .0000       .10000E+07
    14 'Prefactor '    .59414E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .29859E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .46905E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .17879E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    18.566       1.0000          .0000       .10000E+07
    19 'Prefactor '    .63567E-01   1.0000          .0000       .10000E+07
    20 'norm      '    .20420E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .38877E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .10836E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .57628E-04   1.0000          .0000       .10000E+07
    24 'norm      '    .95091E-07   1.0000          .0000       .10000E+07
    25 'Prefactor '    .59822E-03   1.0000          .0000       .10000E+07
    26 'norm      '    .80153E-06   1.0000          .0000       .10000E+07
    27 'Prefactor '    .98139       1.0000          .0000       .10000E+07
    28 'Prefactor '    13.582       1.0000          .0000       .10000E+07
    29 'norm      '    .29809E-07   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1108       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .61420       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3708.932     FROM MIGRAD    STATUS=CONVERGED    245 CALLS     3049 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33022E-05    59.505       -.18648E-04** at limit **
   2  Prefactor     .55511E-10    11.673        .10058E-06** at limit **
   3  norm          .55511E-10    7.1673       -.13962E-05** at limit **
   4  Prefactor     .64460E-06    34.535        .17297E-05** at limit **
   5  norm          1.3260        .62798        .17600E-08    .82579E-02
   6  Prefactor      .0000        2.1359        .62448E-07** at limit **
   7  norm          1.3101        .87528        .89528E-08   -.93170E-03
   8  norm          4.9237        3.0085       -.30431E-07    .71884E-03
   9  Prefactor     14.456        1.5366        .21478E-06    .55596E-02
  10  norm          .44409E-09    7.8653        .48341E-06** at limit **
  11  Prefactor     54.973        3.1905        .38066E-06    .18192E-01
  12  norm           .0000        1.4566       -.20985E-08** at limit **
  13  norm          4.6954        2.4297        .12049E-07    .20584E-02
  14  Prefactor     .15937E-06    210.26       -.15478E-04** at limit **
  15  Prefactor     .89551E-06    45.710        .10749E-04** at limit **
  16  norm          .50951E-01    18.520       -.11334E-06** at limit **
  17  Prefactor     .46302E-06    24.966       -.29178E-05** at limit **
  18  Prefactor     18.343        3.7830        .32080E-06    .23854E-01
  19  Prefactor     .30531E-08    49.393       -.12629E-05** at limit **
  20  norm          .18688E-05    15.076        .81958E-05** at limit **
  21  Prefactor      .0000        3.3581        .12407E-06** at limit **
  22  Prefactor     .88263E-08    33.461        .50807E-05** at limit **
  23  Prefactor     .38117E-05    11.147       -.14476E-05** at limit **
  24  norm           .0000        5.0007       -.25518E-06** at limit **
  25  Prefactor     .66613E-09    12.149       -.16465E-05** at limit **
  26  norm          .27756E-09    6.8033        .15749E-05** at limit **
  27  Prefactor     .98435        8.4729        .29812E-05    .91699E-02
  28  Prefactor     13.574        11.487        .29940E-06    .49366E-02
  29  norm           .0000        .98380        .84399E-08** at limit **
  30  Normalizat    1.1110        .21667        .30485E-05   -.49927E-04
  31  Prefactor     .61403        .27187        .58012E-06   -.21508E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30225e-06
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 6.44595e-07
  norm       = 1.326
  Prefactor  = 0
  norm       = 1.31006
  norm       = 4.92374
  Prefactor  = 14.456
  norm       = 4.44089e-10
  Prefactor  = 54.9734
  norm       = 0
  norm       = 4.69544
  Prefactor  = 1.59373e-07
  Prefactor  = 8.95506e-07
  norm       = 0.0509514
  Prefactor  = 4.63019e-07
  Prefactor  = 18.3432
  Prefactor  = 3.05311e-09
  norm       = 1.86884e-06
  Prefactor  = 0
  Prefactor  = 8.82627e-09
  Prefactor  = 3.81167e-06
  norm       = 0
  Prefactor  = 6.66134e-10
  norm       = 2.77556e-10
  Prefactor  = 0.984346
  Prefactor  = 13.5738
  norm       = 0
  Normalizat = 1.11101
  Prefactor  = 0.614029
 **********
 **   18 **HESSE 
 **********

 FCN=   3708.932     FROM HESSE     STATUS=OK           688 CALLS     3737 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33022E-05    68.095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    5.9356        .54693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    7.1671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .64460E-06    35.999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3260        .63360        .72823E-03   -1.5685    
   6  Prefactor      .0000        2.1385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3101        .88512        .96303E-03   -1.5685    
   8  norm          4.9237        3.0098        .45319E-03   -1.5664    
   9  Prefactor     14.456        24.431        .26309E-03   -1.5632    
  10  norm          .44409E-09    7.9121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.973        23.311        .13499E-03   -1.5560    
  12  norm           .0000        1.4516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.6954        2.4305        .46412E-03   -1.5665    
  14  Prefactor     .15937E-06    211.05        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .89551E-06    78.770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .50951E-01    1.6231        .43087E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .46302E-06    26.775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.343        18.503        .23217E-03   -1.5622    
  19  Prefactor     .30531E-08    49.710        .15036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .18688E-05    20.927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        3.3626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .88263E-08    77.926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .38117E-05    21.698        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        5.0097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .66613E-09    11.961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .27756E-09    6.8050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .98435        30.201        .43106E-03   -1.5688    
  28  Prefactor     13.574        27.708        .27153E-03   -1.5634    
  29  norm           .0000        .98118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1110        .19212        .37575E-01   -.89399    
  31  Prefactor     .61403        .23648        .72124E-01   -1.0700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82852e-07
Minuit parameter uncertainties:
  1  0.0299914
  2  2.85783e-05
  3  3.53017e-05
  4  0.00963445
  5  0.633601
  6  1.94094e-06
  7  0.885116
  8  3.00983
  9  24.4312
  10  0.000121078
  11  23.3112
  12  6.34707e-06
  13  2.43054
  14  0.0115988
  15  0.0167976
  16  0.575156
  17  0.00704214
  18  18.5032
  19  0.000777024
  20  0.0125074
  21  6.5326e-06
  22  0.001657
  23  0.0181883
  24  1.74606e-05
  25  0.000177442
  26  8.65553e-05
  27  10.9047
  28  27.708
  29  2.09467e-06
  30  0.192243
  31  0.236867
Done.

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

Extracting fit parameters...

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  5.095e-02  5.752e-01  0.000e+00  1.000e+06 ( 1.000e-12)
400        alpha:  1.858e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
401         beta:  4.581e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
402           Eb:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
753    Prefactor:  6.140e-01  2.369e-01  0.000e+00  1.000e+01 ( 1.000e+00)
754        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
755        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
752   Normalization:  1.111e+00  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 164.665 56.463
Photon Flux Upper Limit: 5.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/482933/likelihoodResults_698112001_698371201_4FGL_J1058.6+5627_daily_bin1770.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) = 3708.93206224
delta logL = 0.000345574500898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3708.93204891
delta logL = 0.000358908292583

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51108E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    1.9852       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61422       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3708.932     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      231 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72482E-01    31.743        .41233E-02** at limit **
   2  alpha         1.9841        2.6079        .42312        .90327E-05
   3  Normalizat    1.1109        .21706E-01    .37576E-01    .97714E-05
   4  Prefactor     .61383        .27152E-01    .72133E-01    .12802E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0724816
  alpha      = 1.98407
  Normalizat = 1.11095
  Prefactor  = 0.613834
 **********
 **   18 **HESSE 
 **********

 FCN=   3708.932     FROM HESSE     STATUS=OK            35 CALLS      266 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72482E-01    58.552        .14592E-03   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9841        3.5675        .80232E-01   -.20787    
   3  Normalizat    1.1109        .21596        .19604E-03   -.89401    
   4  Prefactor     .61383        .27331        .31930E-03   -1.0701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2332e-11
Minuit parameter uncertainties:
  1  4.12021
  2  8.89975
  3  0.216137
  4  0.273904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482933': 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) = 3708.93198183
delta logL = 0.000425983220339

Extracting fit parameters...

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  7.248e-02  4.120e+00  0.000e+00  1.000e+06 ( 1.000e-12)
400        alpha:  1.984e+00  8.900e+00  0.000e+00  5.000e+00 ( 1.000e+00)
401         beta:  4.581e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
402           Eb:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
753    Prefactor:  6.138e-01  2.739e-01  0.000e+00  1.000e+01 ( 1.000e+00)
754        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
755        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
752   Normalization:  1.111e+00  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 164.665 56.463

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/482933/cmap_HighResolution_698112001_698371201_4FGL_J1058.6+5627_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.02e-05', job_status='DONE', photon_flux_upper_limit='5.68e-08', time_completed='2023-02-18 00:50:29.766065', job_id='482933', GAL2='0.61', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1676710229.77', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='4.26e-04', ts2='0.00', photon_index_error='0.00', photon_index='1.86' WHERE bin_id='1770' AND source_name='4FGL J1058.6+5627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 00:50:29 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 482933: <4FGL_J1058.6+5627_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1058.6+5627_daily_bin1770> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Feb 18 00:35:17 2023
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:35:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:35:19 2023
Terminated at Sat Feb 18 00:50:30 2023
Results reported at Sat Feb 18 00:50:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+5627_daily_bin1770 164.665 56.4634 698112001 698371201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.6+5627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   681.10 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             260.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

