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


Performing analysis on: 4FGL_J0958.0+4728_daily_bin1715
RA = 149.509, Dec = 47.4675
tmin = 683856001, tmax = 684115201
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='90373', job_status='RUN', time_executed='2022-09-16 15:11:53.412841', time_epoch_executed='1663366313.41' WHERE source_name='4FGL J0958.0+4728' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90373

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90373/ft1_4FGL_J0958.0+4728_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90373/ft2_4FGL_J0958.0+4728_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90373/ft1_4FGL_J0958.0+4728_daily_bin1715.fits outfile=/scratch/kocevski/90373/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1715.fits ra=149.509 dec=47.4675 rad=12.0 tmin=683856001.0 tmax=684115201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.46
user 3.25
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/90373/ft2_4FGL_J0958.0+4728_daily_bin1715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90373/ft2_4FGL_J0958.0+4728_daily_bin1715.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/90373/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/90373/ft1_filtered_4FGL_J0958.0+4728_daily_bin1715.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.32
sys 0.16

Number of photons that the gtmktime cut: 586

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90373/ft1_filtered_4FGL_J0958.0+4728_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/90373/ft2_4FGL_J0958.0+4728_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/90373/ltcube_683856001_684115201_4FGL_J0958.0+4728_daily_bin1715.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/90373/ft2_4FGL_J0958.0+4728_daily_bin1715.fits
.....................!
real 12.53
user 12.20
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90373/ft1_filtered_4FGL_J0958.0+4728_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/90373/ft2_4FGL_J0958.0+4728_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/90373/ltcube_683856001_684115201_4FGL_J0958.0+4728_daily_bin1715.fits outfile=/scratch/kocevski/90373/expmap_683856001_684115201_4FGL_J0958.0+4728_daily_bin1715.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/90373/ltcube_683856001_684115201_4FGL_J0958.0+4728_daily_bin1715.fits
.....................!
real 190.92
user 185.34
sys 5.21

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

Setting source of interest to:
4FGL J0958.0+4728 @ 149.509 47.4675

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/90373/ft1_filtered_4FGL_J0958.0+4728_daily_bin1715.fits scfile=/scratch/kocevski/90373/ft2_4FGL_J0958.0+4728_daily_bin1715.fits outfile=/scratch/kocevski/90373/cmap_683856001_684115201_4FGL_J0958.0+4728_daily_bin1715.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.509 yref=47.4675 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90373/ft1_filtered_4FGL_J0958.0+4728_daily_bin1715.fits scfile=/scratch/kocevski/90373/ft2_4FGL_J0958.0+4728_daily_bin1715.fits outfile=/scratch/kocevski/90373/cmap_HighResolution_683856001_684115201_4FGL_J0958.0+4728_daily_bin1715.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.509 yref=47.4675 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90373/ft1_filtered_4FGL_J0958.0+4728_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/90373/ft2_4FGL_J0958.0+4728_daily_bin1715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90373/Model_4FGL_J0958.0+4728_daily_bin1715.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/90373/ft1_filtered_4FGL_J0958.0+4728_daily_bin1715.fits.....................!
real 55.11
user 53.80
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/90373/ft1_filtered_4FGL_J0958.0+4728_daily_bin1715.fits', '/scratch/kocevski/90373/ft2_4FGL_J0958.0+4728_daily_bin1715.fits', expMap='/scratch/kocevski/90373/expmap_683856001_684115201_4FGL_J0958.0+4728_daily_bin1715.fits', expCube='/scratch/kocevski/90373/ltcube_683856001_684115201_4FGL_J0958.0+4728_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/90373/Model_4FGL_J0958.0+4728_daily_bin1715.xml', optimizer='MINUIT')

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

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  6.827e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
354        alpha:  2.365e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  2.538e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/90373/ft1_filtered_4FGL_J0958.0+4728_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/90373/ft2_4FGL_J0958.0+4728_daily_bin1715.fits
Exposure map: /scratch/kocevski/90373/expmap_683856001_684115201_4FGL_J0958.0+4728_daily_bin1715.fits
Exposure cube: /scratch/kocevski/90373/ltcube_683856001_684115201_4FGL_J0958.0+4728_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/90373/Model_4FGL_J0958.0+4728_daily_bin1715.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) = 6383.4603666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21712E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .19373E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    38.362       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.0381       1.0000          .0000       .10000E+07
     5 'Prefactor '    .57498E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .39352       1.0000          .0000       .10000E+07
     7 'Prefactor '    .54401E-08   1.0000          .0000       .10000E+07
     8 'norm      '    16.295       1.0000          .0000       .10000E+07
     9 'Prefactor '    .14616E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    12.276       1.0000          .0000       .10000E+07
    11 'Prefactor '    .17275E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .28235E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .18372E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .18280E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3548       1.0000          .0000       .10000E+07
    16 'norm      '    1.2405       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.9073       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10958E-02   1.0000          .0000       .10000E+07
    19 'norm      '    1.3956       1.0000          .0000       .10000E+07
    20 'norm      '    .23482E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    5.5685       1.0000          .0000       .10000E+07
    22 'norm      '    5.3984       1.0000          .0000       .10000E+07
    23 'Prefactor '    .23818E-02   1.0000          .0000       .10000E+07
    24 'norm      '    10.066       1.0000          .0000       .10000E+07
    25 'Prefactor '    .85071E-01   1.0000          .0000       .10000E+07
    26 'Prefactor '    .41800E-07   1.0000          .0000       .10000E+07
    27 'norm      '    3.1277       1.0000          .0000       .10000E+07
    28 'Prefactor '    7.5091       1.0000          .0000       .10000E+07
    29 'Prefactor '    1.5337       1.0000          .0000       .10000E+07
    30 'Normalizat'    1.0215       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .94965       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6380.812     FROM MIGRAD    STATUS=CONVERGED    236 CALLS     1811 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        3.9599       -.34626E-07** at limit **
   2  norm          .29421E-08    3.0564       -.85904E-07** at limit **
   3  Prefactor     38.615        4.7088       -.84103E-08    .61179E-01
   4  Prefactor     3.0344        2.9328       -.27165E-07    .14951E-03
   5  Prefactor     .11102E-09    5.4186       -.67014E-07** at limit **
   6  norm          .39285        .35552       -.13458E-07    .63247E-03
   7  Prefactor      .0000        2.1720       -.54988E-07** at limit **
   8  norm          16.468        8.8664       -.23029E-07    .32226E-03
   9  Prefactor      .0000        .65770       -.74137E-08** at limit **
  10  Prefactor     12.433        9.0768       -.45089E-07   -.27657E-02
  11  Prefactor      .0000        .74442       -.39605E-07** at limit **
  12  Prefactor     .18874E-08    36.773       -.32497E-06** at limit **
  13  norm           .0000        4.4077       -.10965E-06** at limit **
  14  Prefactor     .49960E-09    10.119        .67011E-07** at limit **
  15  Prefactor     1.3595        4.7755        .24826E-07    .12183E-05
  16  norm          1.2885        9.5422       -.32885E-07    .39152E-04
  17  Prefactor     5.9351        1.6317       -.33760E-09   -.51710E-03
  18  Prefactor     .34972E-08    12.733        .65812E-08** at limit **
  19  norm          1.3955        .53274        .18099E-07   -.98697E-03
  20  norm          .88263E-08    16.138        .15578E-06** at limit **
  21  Prefactor     5.5627        5.6014        .49477E-07    .18265E-03
  22  norm          5.4006        2.5708       -.51557E-10    .10789E-04
  23  Prefactor     .61062E-09    7.2617       -.12563E-06** at limit **
  24  norm          10.074        11.796        .20571E-07    .46441E-02
  25  Prefactor      .0000        29.052       -.86047E-07** at limit **
  26  Prefactor      .0000        3.5653        .32897E-08** at limit **
  27  norm          3.1278        1.4668       -.65646E-08    .37270E-04
  28  Prefactor     8.6504        349.50       -.37838E-06   -.44084E-03
  29  Prefactor     .59286E-07    113.53       -.71260E-06** at limit **
  30  Normalizat    1.0214        .19407       -.18674E-05   -.46520E-05
  31  Prefactor     .94901        .23873        .34635E-05   -.86400E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 2.94209e-09
  Prefactor  = 38.6146
  Prefactor  = 3.03437
  Prefactor  = 1.11022e-10
  norm       = 0.392854
  Prefactor  = 0
  norm       = 16.4677
  Prefactor  = 0
  Prefactor  = 12.4326
  Prefactor  = 0
  Prefactor  = 1.88738e-09
  norm       = 0
  Prefactor  = 4.996e-10
  Prefactor  = 1.35946
  norm       = 1.28847
  Prefactor  = 5.93514
  Prefactor  = 3.4972e-09
  norm       = 1.39551
  norm       = 8.82627e-09
  Prefactor  = 5.56275
  norm       = 5.40063
  Prefactor  = 6.10623e-10
  norm       = 10.0739
  Prefactor  = 0
  Prefactor  = 0
  norm       = 3.12784
  Prefactor  = 8.65041
  Prefactor  = 5.92859e-08
  Normalizat = 1.02144
  Prefactor  = 0.949005
 **********
 **   18 **HESSE 
 **********

 FCN=   6380.812     FROM HESSE     STATUS=OK           682 CALLS     2493 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        3.9589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .29421E-08    8.2450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.615        21.572        .16147E-03   -1.5584    
   4  Prefactor     3.0344        2.9457        .58188E-03   -1.5673    
   5  Prefactor     .11102E-09    8.1094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .39285        .37563        .90242E-03   -1.5695    
   7  Prefactor      .0000        2.1599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.468        8.8753        .24784E-03   -1.5627    
   9  Prefactor      .0000        .65648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.433        9.1128        .28565E-03   -1.5637    
  11  Prefactor      .0000        .74476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .18874E-08    36.302        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        4.4175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .49960E-09    10.160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3595        4.8751        .93890E-03   -1.5685    
  16  norm          1.2885        9.4897        .10064E-02   -1.5685    
  17  Prefactor     5.9351        24.695        .41293E-03   -1.5659    
  18  Prefactor     .34972E-08    12.799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3955        .53547        .78322E-03   -1.5684    
  20  norm          .88263E-08    16.266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.5627        5.6579        .42550E-03   -1.5661    
  22  norm          5.4006        2.5718        .43227E-03   -1.5661    
  23  Prefactor     .61062E-09    7.4549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.074        11.820        .31558E-03   -1.5644    
  25  Prefactor      .0000        28.920        .14349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        3.5579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.1278        1.4664        .57301E-03   -1.5673    
  28  Prefactor     8.6504        341.93        .36574E-03   -1.5649    
  29  Prefactor     .59286E-07    114.19        .86120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0214        .16436        .43146E-01   -.92315    
  31  Prefactor     .94901        .20178        .67068E-01   -.94449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58096e-06
Minuit parameter uncertainties:
  1  2.197e-06
  2  0.000312641
  3  21.5724
  4  2.94572
  5  5.26499e-05
  6  0.37563
  7  1.03153e-06
  8  8.87531
  9  1.29481e-08
  10  9.11283
  11  4.17051e-07
  12  0.00052071
  13  3.37264e-06
  14  0.000138647
  15  4.87509
  16  6.99349
  17  24.2132
  18  0.000423383
  19  0.535465
  20  0.000756912
  21  5.65788
  22  2.57177
  23  0.000132352
  24  11.8196
  25  9.5644e-07
  26  8.35931e-08
  27  1.46644
  28  108.779
  29  0.00520345
  30  0.164438
  31  0.201936
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  8.826e-09  7.569e-04  0.000e+00  1.000e+06 ( 1.000e-12)
354        alpha:  2.365e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  2.538e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  9.490e-01  2.019e-01  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  1.021e+00  1.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.509 47.468
Photon Flux Upper Limit: 5.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/90373/likelihoodResults_683856001_684115201_4FGL_J0958.0+4728_daily_bin1715.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) = 6380.84425036
delta logL = -0.0323751945425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6380.72177165
delta logL = 0.0901035164088

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6380.722     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      222 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2083        3.2974        .10262E-02    .11404E-01
   2  alpha         .63432        1.1326        .50000       -.69761E-04
   3  Normalizat    1.0283        .15569        .42315E-01   -.26177E-03
   4  Prefactor     .93604        .20039        .67481E-01    .21718E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.20833
  alpha      = 0.634324
  Normalizat = 1.0283
  Prefactor  = 0.936039
 **********
 **   18 **HESSE 
 **********

 FCN=   6380.722     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2083        3.6938        .22801E-04   -1.5686    
   2  alpha         .63432        1.1410        .57151E-01   -.84244    
   3  Normalizat    1.0283        .18342        .22413E-03   -.92088    
   4  Prefactor     .93604        .23582        .29850E-03   -.94893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13509e-09
Minuit parameter uncertainties:
  1  3.69376
  2  1.2572
  3  0.18353
  4  0.236075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90373': 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) = 6380.72176914
delta logL = 0.0901060214301

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.208e+00  3.694e+00  0.000e+00  1.000e+06 ( 1.000e-12)
354        alpha:  6.343e-01  1.257e+00  0.000e+00  5.000e+00 ( 1.000e+00)
355         beta:  2.538e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  9.360e-01  2.361e-01  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  1.028e+00  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.509 47.468

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/90373/cmap_HighResolution_683856001_684115201_4FGL_J0958.0+4728_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-05', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2022-09-16 15:24:21.921484', job_id='90373', GAL2='0.94', fit_tolerance='1e-08', EG2='1.03', EG='1.02', time_epoch_completed='1663367061.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.01e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1715' AND source_name='4FGL J0958.0+4728' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:24:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 90373: <4FGL_J0958.0+4728_daily_bin1715> in cluster <slac> Done

Job <4FGL_J0958.0+4728_daily_bin1715> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:10:27 2022
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:10:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:10:52 2022
Terminated at Fri Sep 16 15:24:22 2022
Results reported at Fri Sep 16 15:24:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_daily_bin1715 149.509 47.4675 683856001 684115201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0958.0+4728 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   749.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            835 sec.

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

