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 184 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0958.7+6534_daily_bin1692
RA = 149.69, Dec = 65.5678
tmin = 677894401, tmax = 678153601
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='404870', job_status='RUN', time_executed='2022-06-29 04:24:59.077732', time_epoch_executed='1656501899.08' WHERE source_name='4FGL J0958.7+6534' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404870

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404870/ft1_4FGL_J0958.7+6534_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404870/ft2_4FGL_J0958.7+6534_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404870/ft1_4FGL_J0958.7+6534_daily_bin1692.fits outfile=/scratch/kocevski/404870/ft1_filteredMKT_4FGL_J0958.7+6534_daily_bin1692.fits ra=149.69 dec=65.5678 rad=12.0 tmin=677894401.0 tmax=678153601.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.52
user 4.24
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/404870/ft2_4FGL_J0958.7+6534_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404870/ft2_4FGL_J0958.7+6534_daily_bin1692.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/404870/ft1_filteredMKT_4FGL_J0958.7+6534_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/404870/ft1_filtered_4FGL_J0958.7+6534_daily_bin1692.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.37
sys 0.14

Number of photons that the gtmktime cut: 767

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404870/ft1_filtered_4FGL_J0958.7+6534_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/404870/ft2_4FGL_J0958.7+6534_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/404870/ltcube_677894401_678153601_4FGL_J0958.7+6534_daily_bin1692.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/404870/ft2_4FGL_J0958.7+6534_daily_bin1692.fits
.....................!
real 14.80
user 14.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404870/ft1_filtered_4FGL_J0958.7+6534_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/404870/ft2_4FGL_J0958.7+6534_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/404870/ltcube_677894401_678153601_4FGL_J0958.7+6534_daily_bin1692.fits outfile=/scratch/kocevski/404870/expmap_677894401_678153601_4FGL_J0958.7+6534_daily_bin1692.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/404870/ltcube_677894401_678153601_4FGL_J0958.7+6534_daily_bin1692.fits
.....................!
real 193.35
user 187.17
sys 5.79

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

Setting source of interest to:
4FGL J0958.7+6534 @ 149.69 65.5678

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/404870/ft1_filtered_4FGL_J0958.7+6534_daily_bin1692.fits scfile=/scratch/kocevski/404870/ft2_4FGL_J0958.7+6534_daily_bin1692.fits outfile=/scratch/kocevski/404870/cmap_677894401_678153601_4FGL_J0958.7+6534_daily_bin1692.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=149.69 yref=65.5678 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.62
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404870/ft1_filtered_4FGL_J0958.7+6534_daily_bin1692.fits scfile=/scratch/kocevski/404870/ft2_4FGL_J0958.7+6534_daily_bin1692.fits outfile=/scratch/kocevski/404870/cmap_HighResolution_677894401_678153601_4FGL_J0958.7+6534_daily_bin1692.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=149.69 yref=65.5678 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404870/ft1_filtered_4FGL_J0958.7+6534_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/404870/ft2_4FGL_J0958.7+6534_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404870/Model_4FGL_J0958.7+6534_daily_bin1692.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/404870/ft1_filtered_4FGL_J0958.7+6534_daily_bin1692.fits.....................!
real 90.90
user 89.47
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/404870/ft1_filtered_4FGL_J0958.7+6534_daily_bin1692.fits', '/scratch/kocevski/404870/ft2_4FGL_J0958.7+6534_daily_bin1692.fits', expMap='/scratch/kocevski/404870/expmap_677894401_678153601_4FGL_J0958.7+6534_daily_bin1692.fits', expCube='/scratch/kocevski/404870/ltcube_677894401_678153601_4FGL_J0958.7+6534_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/404870/Model_4FGL_J0958.7+6534_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0958.7+6534'

4FGL J0958.7+6534
   Spectrum: LogParabola
387         norm:  1.125e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
388        alpha:  2.162e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  3.710e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  6.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/404870/ft1_filtered_4FGL_J0958.7+6534_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/404870/ft2_4FGL_J0958.7+6534_daily_bin1692.fits
Exposure map: /scratch/kocevski/404870/expmap_677894401_678153601_4FGL_J0958.7+6534_daily_bin1692.fits
Exposure cube: /scratch/kocevski/404870/ltcube_677894401_678153601_4FGL_J0958.7+6534_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/404870/Model_4FGL_J0958.7+6534_daily_bin1692.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) = 8189.06000992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.1212       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.112       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.330       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.797       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1404       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4352       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5229       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .98485       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.083       1.0000         .10000E-03   10000.    
    19 'norm      '    .38586       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3678       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    75.009       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5912       1.0000         .10000E-03   10000.    
    24 'norm      '    .36953       1.0000         .10000E-03   10000.    
    25 'norm      '    2.8309       1.0000         .10000E-03   10000.    
    26 'norm      '    3.0786       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.8391       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    49.938       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .18914E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .95847       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2019       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8188.994     FROM MIGRAD    STATUS=CONVERGED    897 CALLS     4623 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .80277        .17176E-06** at limit **
   2  norm          4.1209        2.6159        .37611E-07   -.26393E-04
   3  Prefactor     15.112        51.002       -.46090E-07   -.12287E-04
   4  Prefactor     22.331        20.908       -.39389E-07   -.73583E-05
   5  Prefactor     .10000E-03    9.3980        .16897E-06** at limit **
   6  norm          .10000E-03    .32468        .79927E-07** at limit **
   7  Prefactor     12.797        12.826        .43776E-06    .14121E-04
   8  Prefactor     4.1416        8.6272        .23627E-05    .11489E-03
   9  Prefactor     .10000E-03    13.639       -.16421E-07** at limit **
  10  norm          .10000E-03    2.6200        .42450E-08** at limit **
  11  Prefactor     .10000E-03    21.287        .38622E-06** at limit **
  12  norm          1.4352        .52733       -.28994E-08   -.74900E-04
  13  norm          3.5229        .93912       -.91680E-08   -.13377E-03
  14  Prefactor     .10000E-03    8.0990       -.88754E-07** at limit **
  15  norm          .10000E-03    5.8916        .67690E-08** at limit **
  16  Prefactor     .98265        7.7202        .66299E-07   -.33244E-05
  17  Prefactor     .10000E-03    10.566       -.73933E-07** at limit **
  18  Prefactor     13.129        18.255        .12914E-05    .22839E-04
  19  norm          .38046        3.5710       -.46018E-06   -.15265E-04
  20  norm          2.3677        1.3136        .20323E-08   -.94341E-05
  21  Prefactor     .10000E-03    52.423       -.19649E-07** at limit **
  22  Prefactor     74.688        160.74        .68435E-05   -.32988E-05
  23  Prefactor     2.5916        5.4199        .27391E-06    .21618E-04
  24  norm          .36941        .80949       -.86955E-07   -.11092E-03
  25  norm          2.8317        4.0873       -.25311E-06    .86857E-04
  26  norm          3.0785        2.1082        .24788E-07    .11198E-04
  27  Prefactor     2.8352        8.9970        .42384E-06    .72830E-04
  28  Prefactor     .10000E-03    31.089       -.27491E-06** at limit **
  29  Prefactor     49.936        35.236        .12158E-06    .44856E-05
  30  Prefactor     .10000E-03    5.4976       -.18571E-07** at limit **
  31  Prefactor     .10001E-03    3.1430       -.64243E-06** at limit **
  32  Normalizat    .95855        .17028        .21605E-06   -.20269E-04
  33  Prefactor     1.2019        .15522       -.55840E-06    .45217E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.1209
  Prefactor  = 15.1124
  Prefactor  = 22.3313
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.7968
  Prefactor  = 4.14163
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.43521
  norm       = 3.52286
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.982647
  Prefactor  = 0.0001
  Prefactor  = 13.1288
  norm       = 0.380464
  norm       = 2.36772
  Prefactor  = 0.0001
  Prefactor  = 74.6882
  Prefactor  = 2.59156
  norm       = 0.369409
  norm       = 2.83166
  norm       = 3.07846
  Prefactor  = 2.83523
  Prefactor  = 0.0001
  Prefactor  = 49.9359
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 0.958545
  Prefactor  = 1.20186
 **********
 **   18 **HESSE 
 **********

 FCN=   8188.994     FROM HESSE     STATUS=OK           709 CALLS     5332 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2144        .15614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1209        2.6124        .10210E-03   -1.5302    
   3  Prefactor     15.112        50.879        .10303E-03   -1.4930    
   4  Prefactor     22.331        20.918        .84765E-04   -1.4762    
   5  Prefactor     .10000E-03    9.5325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .45244        .98057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.797        12.829        .55987E-03   -1.4992    
   8  Prefactor     4.1416        8.6206        .99047E-03   -1.5301    
   9  Prefactor     .10000E-03    14.013        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.6217        .14305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4352        .52819        .38638E-04   -1.5468    
  13  norm          3.5229        .93818        .43020E-04   -1.5333    
  14  Prefactor     .10000E-03    8.1014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.8949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .98265        23.330        .45635E-02   -1.5510    
  17  Prefactor     .10000E-03    10.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.129        18.367        .11074E-03   -1.4983    
  19  norm          .38046        3.6409        .23161E-03   -1.5585    
  20  norm          2.3677        1.3167        .75147E-04   -1.5400    
  21  Prefactor     .10000E-03    52.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     74.688        158.17        .23180E-03   -1.3977    
  23  Prefactor     2.5916        5.2353        .19895E-03   -1.5386    
  24  norm          .36941        .73219        .76295E-03   -1.5586    
  25  norm          2.8317        4.0796        .10725E-03   -1.5371    
  26  norm          3.0785        2.1076        .10581E-03   -1.5357    
  27  Prefactor     2.8352        8.9757        .23668E-03   -1.5371    
  28  Prefactor     .10000E-03    31.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     49.936        35.274        .56749E-04   -1.4293    
  30  Prefactor     .10000E-03    5.4998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10001E-03    9.0079        .29539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .95855        .19133        .28400E-03   -.94432    
  33  Prefactor     1.2019        .17614        .24574E-03   -.86274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86893e-08
Minuit parameter uncertainties:
  1  5.16449e-06
  2  2.61252
  3  51.0253
  4  20.9253
  5  5.28389e-07
  6  7.13351e-06
  7  12.8315
  8  8.62314
  9  0.000149705
  10  2.74758e-08
  11  1.05284e-05
  12  0.528195
  13  0.938184
  14  1.04655e-08
  15  9.23186e-07
  16  9.57979
  17  1.07241e-06
  18  18.375
  19  2.35379
  20  1.31667
  21  3.05068e-05
  22  159.078
  23  5.2362
  24  0.732211
  25  4.07996
  26  2.10769
  27  8.97995
  28  1.10817e-05
  29  35.2887
  30  7.99334e-07
  31  0.000425521
  32  0.191464
  33  0.176227
Done.

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

Extracting fit parameters...

4FGL J0958.7+6534
   Spectrum: LogParabola
387         norm:  3.523e+00  9.382e-01  1.000e-04  1.000e+04 ( 1.000e-11)
388        alpha:  2.162e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  3.710e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  6.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
759    Prefactor:  1.202e+00  1.762e-01  0.000e+00  1.000e+01 ( 1.000e+00)
760        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
761        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
758   Normalization:  9.585e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.39
Ra Dec: 149.690 65.568
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.63e-07 +/- 4.35e-08
Energy Flux (Fixed Index): 7.25e-05 +/- 1.93e-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) = 8188.94493555
delta logL = 0.0491594104296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8188.9438513
delta logL = 0.0502436573834

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4420       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2425       1.0000          .0000       5.0000    
     3 'Normalizat'    .94829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2069       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8188.944     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      230 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4419        12.499        .54502E-02    .12138E-03
   2  alpha         2.2425        3.6032        .18829        .35869E-04
   3  Normalizat    .94838        .27135        .45516E-01    .20908E-04
   4  Prefactor     1.2069        .21892        .55471E-01    .53750E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.44185
  alpha      = 2.24254
  Normalizat = 0.94838
  Prefactor  = 1.20686
 **********
 **   18 **HESSE 
 **********

 FCN=   8188.944     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .35E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4419        .95867        .41863E-04   -1.5337    
   2  alpha         2.2425        .25849        .79251E-02   -.10317    
   3  Normalizat    .94838        .18214        .28525E-03   -.94780    
   4  Prefactor     1.2069        .17257        .24527E-03   -.86121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52686e-13
Minuit parameter uncertainties:
  1  0.95867
  2  0.258956
  3  0.182259
  4  0.172646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404870': 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) = 8188.94385116
delta logL = 0.0502437967079

Extracting fit parameters...

4FGL J0958.7+6534
   Spectrum: LogParabola
387         norm:  3.442e+00  9.587e-01  1.000e-04  1.000e+04 ( 1.000e-11)
388        alpha:  2.243e+00  2.590e-01  0.000e+00  5.000e+00 ( 1.000e+00)
389         beta:  3.710e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  6.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
759    Prefactor:  1.207e+00  1.726e-01  0.000e+00  1.000e+01 ( 1.000e+00)
760        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
761        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
758   Normalization:  9.484e-01  1.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.22
Ra Dec: 149.690 65.568
Photon Index (Free Index): 2.24 +/- 0.26
Photon Flux (Free Index): 1.74e-07 +/- 5.46e-08
Energy Flux (Free Index): 6.79e-05 +/- 2.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/404870/cmap_HighResolution_677894401_678153601_4FGL_J0958.7+6534_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.63e-07', energy_flux2='6.79e-05', photon_flux_error='4.35e-08', dlogl='5.02e-02', energy_flux='7.25e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2022-06-29 04:46:09.798723', photon_index_error2='0.26', photon_index2='2.24', ts='37.39', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='0.96', time_epoch_completed='1656503169.8', return_code='0', job_id='404870', GAL2='1.21', EG2='0.95', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='5.46e-08', ts2='37.22', photon_index='2.16' WHERE bin_id='1692' AND source_name='4FGL J0958.7+6534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:46:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 404871: <4FGL_J0958.7+6534_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0958.7+6534_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:18 2022
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:21:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:21:46 2022
Terminated at Wed Jun 29 04:44:11 2022
Results reported at Wed Jun 29 04:44:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.7+6534_daily_bin1692 149.69 65.5678 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0958.7+6534 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1259.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             323.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1345 sec.
    Turnaround time :                            16673 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 404870: <4FGL_J0958.7+6534_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0958.7+6534_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:18 2022
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:21:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:21:46 2022
Terminated at Wed Jun 29 04:46:10 2022
Results reported at Wed Jun 29 04:46:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.7+6534_daily_bin1692 149.69 65.5678 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0958.7+6534 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1270.85 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             295.02 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1464 sec.
    Turnaround time :                            16792 sec.

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

