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


Performing analysis on: 4FGL_J0958.4+5042_daily_bin1756
RA = 149.606, Dec = 50.7
tmin = 694483201, tmax = 694742401
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='10408', job_status='RUN', time_executed='2023-01-07 00:42:58.715648', time_epoch_executed='1673080978.72' WHERE source_name='4FGL J0958.4+5042' and cadence='daily' and bin_id='1756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10408/ft1_4FGL_J0958.4+5042_daily_bin1756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10408/ft2_4FGL_J0958.4+5042_daily_bin1756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10408/ft1_4FGL_J0958.4+5042_daily_bin1756.fits outfile=/scratch/kocevski/10408/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1756.fits ra=149.606 dec=50.7 rad=12.0 tmin=694483201.0 tmax=694742401.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 2.96
user 2.74
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/10408/ft2_4FGL_J0958.4+5042_daily_bin1756.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10408/ft2_4FGL_J0958.4+5042_daily_bin1756.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/10408/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1756.fits evtable="EVENTS" outfile="/scratch/kocevski/10408/ft1_filtered_4FGL_J0958.4+5042_daily_bin1756.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.52
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 228

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10408/ft1_filtered_4FGL_J0958.4+5042_daily_bin1756.fits" evtable="EVENTS" scfile=/scratch/kocevski/10408/ft2_4FGL_J0958.4+5042_daily_bin1756.fits sctable="SC_DATA" outfile=/scratch/kocevski/10408/ltcube_694483201_694742401_4FGL_J0958.4+5042_daily_bin1756.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/10408/ft2_4FGL_J0958.4+5042_daily_bin1756.fits
.....................!
real 15.09
user 14.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10408/ft1_filtered_4FGL_J0958.4+5042_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/10408/ft2_4FGL_J0958.4+5042_daily_bin1756.fits sctable="SC_DATA" expcube=/scratch/kocevski/10408/ltcube_694483201_694742401_4FGL_J0958.4+5042_daily_bin1756.fits outfile=/scratch/kocevski/10408/expmap_694483201_694742401_4FGL_J0958.4+5042_daily_bin1756.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/10408/ltcube_694483201_694742401_4FGL_J0958.4+5042_daily_bin1756.fits
.....................!
real 192.96
user 186.71
sys 5.78

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

Setting source of interest to:
4FGL J0958.4+5042 @ 149.606 50.7

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/10408/ft1_filtered_4FGL_J0958.4+5042_daily_bin1756.fits scfile=/scratch/kocevski/10408/ft2_4FGL_J0958.4+5042_daily_bin1756.fits outfile=/scratch/kocevski/10408/cmap_694483201_694742401_4FGL_J0958.4+5042_daily_bin1756.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.606 yref=50.7 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 1.11
user 0.37
sys 0.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10408/ft1_filtered_4FGL_J0958.4+5042_daily_bin1756.fits scfile=/scratch/kocevski/10408/ft2_4FGL_J0958.4+5042_daily_bin1756.fits outfile=/scratch/kocevski/10408/cmap_HighResolution_694483201_694742401_4FGL_J0958.4+5042_daily_bin1756.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.606 yref=50.7 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.77
user 0.36
sys 0.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10408/ft1_filtered_4FGL_J0958.4+5042_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/10408/ft2_4FGL_J0958.4+5042_daily_bin1756.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10408/Model_4FGL_J0958.4+5042_daily_bin1756.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/10408/ft1_filtered_4FGL_J0958.4+5042_daily_bin1756.fits.....................!
real 31.50
user 29.48
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10408/ft1_filtered_4FGL_J0958.4+5042_daily_bin1756.fits', '/scratch/kocevski/10408/ft2_4FGL_J0958.4+5042_daily_bin1756.fits', expMap='/scratch/kocevski/10408/expmap_694483201_694742401_4FGL_J0958.4+5042_daily_bin1756.fits', expCube='/scratch/kocevski/10408/ltcube_694483201_694742401_4FGL_J0958.4+5042_daily_bin1756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10408/Model_4FGL_J0958.4+5042_daily_bin1756.xml', optimizer='MINUIT')

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

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.235e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
370        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/10408/ft1_filtered_4FGL_J0958.4+5042_daily_bin1756.fits
Spacecraft file(s): /scratch/kocevski/10408/ft2_4FGL_J0958.4+5042_daily_bin1756.fits
Exposure map: /scratch/kocevski/10408/expmap_694483201_694742401_4FGL_J0958.4+5042_daily_bin1756.fits
Exposure cube: /scratch/kocevski/10408/ltcube_694483201_694742401_4FGL_J0958.4+5042_daily_bin1756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10408/Model_4FGL_J0958.4+5042_daily_bin1756.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) = 2582.87269547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    319.06       1.0000          .0000       .10000E+07
     2 'norm      '    171.58       1.0000          .0000       .10000E+07
     3 'norm      '    .33867       1.0000          .0000       .10000E+07
     4 'Prefactor '    472.96       1.0000          .0000       .10000E+07
     5 'Prefactor '    .94402E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .63227E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .72269E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .42138E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12220E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .16388E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    6.7686       1.0000          .0000       .10000E+07
    12 'norm      '    23.352       1.0000          .0000       .10000E+07
    13 'Prefactor '    .37249E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    10.596       1.0000          .0000       .10000E+07
    15 'Prefactor '    .26039E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .16339E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .62654       1.0000          .0000       .10000E+07
    18 'Prefactor '    .68801E-02   1.0000          .0000       .10000E+07
    19 'norm      '    1.5871       1.0000          .0000       .10000E+07
    20 'norm      '    .39916E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    13.532       1.0000          .0000       .10000E+07
    22 'norm      '    4.1387       1.0000          .0000       .10000E+07
    23 'Prefactor '    .80889E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .16074E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    10.930       1.0000          .0000       .10000E+07
    26 'Prefactor '    5.2948       1.0000          .0000       .10000E+07
    27 'norm      '    5.9963       1.0000          .0000       .10000E+07
    28 'norm      '    .12257E-06   1.0000          .0000       .10000E+07
    29 'Prefactor '    .66469       1.0000          .0000       .10000E+07
    30 'norm      '    1.8867       1.0000          .0000       .10000E+07
    31 'Prefactor '    35.814       1.0000          .0000       .10000E+07
    32 'Prefactor '    12.577       1.0000          .0000       .10000E+07
    33 'Prefactor '    120.03       1.0000          .0000       .10000E+07
    34 'Normalizat'    .66139       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .90422       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2582.869     FROM MIGRAD    STATUS=CONVERGED    277 CALLS     4676 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     318.75        21.919        .56034E-09    .86043E-01
   2  norm          171.19        19.341       -.96004E-07   -.12411E-02
   3  norm          .32752E-07    137.08        .13438E-05** at limit **
   4  Prefactor     473.23        22.916       -.22962E-07   -.13746    
   5  Prefactor      .0000        68.611       -.49148E-07** at limit **
   6  norm           .0000        .53629       -.91837E-07** at limit **
   7  Prefactor      .0000        2.8378        .87464E-07** at limit **
   8  Prefactor      .0000        5.4794       -.20611E-08** at limit **
   9  Prefactor     .11898E-05    37.672        .21860E-06** at limit **
  10  Prefactor      .0000        3.5177       -.28834E-07** at limit **
  11  Prefactor     7.1294        15.787       -.22383E-06    .31419E-01
  12  norm          23.542        35.531        .63561E-06   -.92708E-02
  13  Prefactor     .20667E-06    34.600       -.41586E-06** at limit **
  14  Prefactor     10.607        9.3133        .14430E-06   -.38699E-03
  15  Prefactor      .0000        7.1701        .14587E-06** at limit **
  16  norm           .0000        6.9364        .15070E-06** at limit **
  17  Prefactor     .13911E-06    341.06        .61906E-05** at limit **
  18  Prefactor     .14433E-08    18.448       -.10427E-06** at limit **
  19  norm          1.5875        .75547        .97791E-08   -.39846E-03
  20  norm          .11102E-09    13.848       -.11375E-06** at limit **
  21  Prefactor     13.535        10.545        .13437E-07   -.21044E-02
  22  norm          4.1377        4.4960        .53654E-07   -.18056E-03
  23  Prefactor     .44409E-08    21.496       -.32470E-06** at limit **
  24  norm          .21169E-05    519.47       -.11787E-04** at limit **
  25  Prefactor     10.940        23.324       -.16458E-05    .14860E-01
  26  Prefactor     5.3100        5.6791        .68791E-07   -.28064E-02
  27  norm          5.9984        3.7102        .25510E-06   -.84827E-03
  28  norm           .0000        1.3241       -.22495E-07** at limit **
  29  Prefactor     .74774E-07    366.21       -.56047E-05** at limit **
  30  norm          1.8925        1.9392        .39075E-07    .15870E-02
  31  Prefactor     36.089        6.9140       -.24275E-06    .63739E-02
  32  Prefactor     12.570        11.919       -.80225E-06   -.40798E-01
  33  Prefactor     123.24        159.91        .97565E-06    .11967E-01
  34  Normalizat    .66068        .26642        .92356E-05   -.11845E-03
  35  Prefactor     .90406        .33238       -.13433E-04   -.90914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 318.749
  norm       = 171.192
  norm       = 3.27516e-08
  Prefactor  = 473.234
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.18977e-06
  Prefactor  = 0
  Prefactor  = 7.12936
  norm       = 23.5417
  Prefactor  = 2.06668e-07
  Prefactor  = 10.607
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.39111e-07
  Prefactor  = 1.44329e-09
  norm       = 1.58755
  norm       = 1.11022e-10
  Prefactor  = 13.5354
  norm       = 4.13765
  Prefactor  = 4.44089e-09
  norm       = 2.11692e-06
  Prefactor  = 10.9405
  Prefactor  = 5.30996
  norm       = 5.99838
  norm       = 0
  Prefactor  = 7.47735e-08
  norm       = 1.89252
  Prefactor  = 36.0892
  Prefactor  = 12.5699
  Prefactor  = 123.244
  Normalizat = 0.660681
  Prefactor  = 0.904059
 **********
 **   18 **HESSE 
 **********

 FCN=   2582.869     FROM HESSE     STATUS=OK           842 CALLS     5518 TOTAL
                     EDM=   .46E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     318.75        814.41        .55993E-04   -1.5351    
   2  norm          171.19        202.80        .76349E-04   -1.5446    
   3  norm          .32752E-07    137.39        .96966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     473.23        577.53        .45993E-04   -1.5273    
   5  Prefactor      .0000        68.705        .14082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .53484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.8386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        5.4838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11898E-05    44.723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        3.5239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.1294        35.799        .38543E-03   -1.5655    
  12  norm          23.542        35.949        .20699E-03   -1.5611    
  13  Prefactor     .20667E-06    35.980        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.607        9.3502        .30755E-03   -1.5643    
  15  Prefactor      .0000        7.1796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        6.9417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .13911E-06    344.25        .66883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .14433E-08    18.491        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5875        .75554        .66689E-03   -1.5683    
  20  norm          .11102E-09    13.877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.535        10.612        .27203E-03   -1.5634    
  22  norm          4.1377        4.5235        .49523E-03   -1.5667    
  23  Prefactor     .44409E-08    21.559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .21169E-05    21.349        .68225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.940        25.943        .30280E-03   -1.5642    
  26  Prefactor     5.3100        5.7068        .43655E-03   -1.5662    
  27  norm          5.9984        3.8454        .40981E-03   -1.5659    
  28  norm           .0000        1.2908        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .74774E-07    371.58        .63622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          1.8925        2.0504        .75737E-03   -1.5680    
  31  Prefactor     36.089        63.095        .16712E-03   -1.5588    
  32  Prefactor     12.570        25.970        .28221E-03   -1.5637    
  33  Prefactor     123.24        161.69        .91281E-04   -1.5486    
  34  Normalizat    .66068        .24315        .41773E-01   -1.0547    
  35  Prefactor     .90406        .29225        .45059E-01   -.95999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58081e-05
Minuit parameter uncertainties:
  1  814.692
  2  202.81
  3  0.00424189
  4  577.603
  5  2.62845e-06
  6  1.45151e-06
  7  5.51365e-06
  8  1.0521e-05
  9  0.0145892
  10  2.06327e-06
  11  31.9518
  12  35.9494
  13  0.0054535
  14  9.35022
  15  2.13095e-05
  16  2.13106e-05
  17  0.0138413
  18  0.000324492
  19  0.755541
  20  8.62869e-05
  21  10.6123
  22  4.52346
  23  0.000619673
  24  0.0134454
  25  25.9437
  26  5.70683
  27  3.84541
  28  3.91946e-07
  29  0.0105436
  30  2.05044
  31  63.0958
  32  25.9707
  33  161.7
  34  0.243542
  35  0.292755
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.354e+01  1.061e+01  0.000e+00  1.000e+06 ( 1.000e-12)
370        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  9.041e-01  2.928e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  6.607e-01  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.97
Ra Dec: 149.606 50.700
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 8.57e-08 +/- 6.71e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.67e-05

TS (Fixed Index): 2.97
Ra Dec: 149.606 50.700
Photon Flux Upper Limit: 2.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.85e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10408/likelihoodResults_694483201_694742401_4FGL_J0958.4+5042_daily_bin1756.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): 0
logL (Free Index) = 2582.68440347
delta logL = 0.184652359935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2582.67009937
delta logL = 0.198956464317

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1769       1.0000          .0000       .10000E+07
     2 'Index     '    3.4894       1.0000          .0000       10.000    
     3 'Normalizat'    .60886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2582.670     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      239 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1668        120.07        .37419E-03    .76029E-03
   2  Index         3.4907        6.7449        .13065        .50553E-04
   3  Normalizat    .60872        .10741        .41060E-01    .14368E-04
   4  Prefactor     .95497        .11794        .45700E-01    .67410E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.16677
  Index      = 3.49073
  Normalizat = 0.608718
  Prefactor  = 0.95497
 **********
 **   18 **HESSE 
 **********

 FCN=   2582.670     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1668        26.688        .89111E-05   -1.5654    
   2  Index         3.4907        2.9336        .51956E-02   -.30664    
   3  Normalizat    .60872        .28881        .25416E-03   -1.0761    
   4  Prefactor     .95497        .36530        .26825E-03   -.94246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78445e-11
Minuit parameter uncertainties:
  1  26.6885
  2  3.16001
  3  0.289531
  4  0.366248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10408': 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) = 2582.67009902
delta logL = 0.198956806208

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  7.167e+00  2.669e+01  0.000e+00  1.000e+06 ( 1.000e-12)
370        Index:  3.491e+00  3.160e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  9.550e-01  3.662e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  6.087e-01  2.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.47
Ra Dec: 149.606 50.700
Photon Index (Free Index): 3.49 +/- 3.16
Photon Flux (Free Index): 1.29e-07 +/- 1.19e-07
Energy Flux (Free Index): 2.15e-05 +/- 1.61e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/10408/cmap_HighResolution_694483201_694742401_4FGL_J0958.4+5042_daily_bin1756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-02', comment='SUCCESS', photon_flux='8.57e-08', energy_flux2='2.15e-05', photon_flux_error='6.71e-08', dlogl='1.99e-01', energy_flux='2.12e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2023-01-07 00:53:48.548329', photon_index_error2='3.16', photon_index2='3.49', ts='2.97', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='2.35e-07', energy_flux_error2='1.61e-05', EG='0.66', time_epoch_completed='1673081628.55', return_code='0', job_id='10408', GAL2='0.95', EG2='0.61', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='1.19e-07', ts2='3.47', photon_index='2.66' WHERE bin_id='1756' AND source_name='4FGL J0958.4+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan  7 00:53:48 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 10408: <4FGL_J0958.4+5042_daily_bin1756> in cluster <slac> Done

Job <4FGL_J0958.4+5042_daily_bin1756> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jan  7 00:40:17 2023
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan  7 00:41:59 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan  7 00:41:59 2023
Terminated at Sat Jan  7 00:53:49 2023
Results reported at Sat Jan  7 00:53:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_daily_bin1756 149.606 50.7 694483201 694742401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0958.4+5042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   649.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            812 sec.

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

