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


Performing analysis on: 4FGL_J0958.0+4728_daily_bin1772
RA = 149.509, Dec = 47.4675
tmin = 698630401, tmax = 698889601
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='627186', job_status='RUN', time_executed='2023-02-24 01:15:50.396136', time_epoch_executed='1677230150.4' WHERE source_name='4FGL J0958.0+4728' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627186/ft1_4FGL_J0958.0+4728_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627186/ft2_4FGL_J0958.0+4728_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627186/ft1_4FGL_J0958.0+4728_daily_bin1772.fits outfile=/scratch/kocevski/627186/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1772.fits ra=149.509 dec=47.4675 rad=12.0 tmin=698630401.0 tmax=698889601.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.00
user 2.79
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/627186/ft2_4FGL_J0958.0+4728_daily_bin1772.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/627186/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/627186/ft1_filtered_4FGL_J0958.0+4728_daily_bin1772.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.50
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627186/ft1_filtered_4FGL_J0958.0+4728_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/627186/ft2_4FGL_J0958.0+4728_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/627186/ltcube_698630401_698889601_4FGL_J0958.0+4728_daily_bin1772.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/627186/ft2_4FGL_J0958.0+4728_daily_bin1772.fits
.....................!
real 13.30
user 12.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627186/ft1_filtered_4FGL_J0958.0+4728_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/627186/ft2_4FGL_J0958.0+4728_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/627186/ltcube_698630401_698889601_4FGL_J0958.0+4728_daily_bin1772.fits outfile=/scratch/kocevski/627186/expmap_698630401_698889601_4FGL_J0958.0+4728_daily_bin1772.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/627186/ltcube_698630401_698889601_4FGL_J0958.0+4728_daily_bin1772.fits
.....................!
real 190.81
user 185.71
sys 4.70

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/627186/ft1_filtered_4FGL_J0958.0+4728_daily_bin1772.fits scfile=/scratch/kocevski/627186/ft2_4FGL_J0958.0+4728_daily_bin1772.fits outfile=/scratch/kocevski/627186/cmap_698630401_698889601_4FGL_J0958.0+4728_daily_bin1772.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.61
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627186/ft1_filtered_4FGL_J0958.0+4728_daily_bin1772.fits scfile=/scratch/kocevski/627186/ft2_4FGL_J0958.0+4728_daily_bin1772.fits outfile=/scratch/kocevski/627186/cmap_HighResolution_698630401_698889601_4FGL_J0958.0+4728_daily_bin1772.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.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/627186/ft1_filtered_4FGL_J0958.0+4728_daily_bin1772.fits', '/scratch/kocevski/627186/ft2_4FGL_J0958.0+4728_daily_bin1772.fits', expMap='/scratch/kocevski/627186/expmap_698630401_698889601_4FGL_J0958.0+4728_daily_bin1772.fits', expCube='/scratch/kocevski/627186/ltcube_698630401_698889601_4FGL_J0958.0+4728_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/627186/Model_4FGL_J0958.0+4728_daily_bin1772.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/627186/ft1_filtered_4FGL_J0958.0+4728_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/627186/ft2_4FGL_J0958.0+4728_daily_bin1772.fits
Exposure map: /scratch/kocevski/627186/expmap_698630401_698889601_4FGL_J0958.0+4728_daily_bin1772.fits
Exposure cube: /scratch/kocevski/627186/ltcube_698630401_698889601_4FGL_J0958.0+4728_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/627186/Model_4FGL_J0958.0+4728_daily_bin1772.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) = 380.53360897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57806E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .11491E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    55.383       1.0000          .0000       .10000E+07
     4 'Prefactor '    .52697E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    107.57       1.0000          .0000       .10000E+07
     6 'norm      '    4.5311       1.0000          .0000       .10000E+07
     7 'Prefactor '    .51830E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .21737       1.0000          .0000       .10000E+07
     9 'Prefactor '    .46833E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .99139E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.6144       1.0000          .0000       .10000E+07
    12 'Prefactor '    .60507E-07   1.0000          .0000       .10000E+07
    13 'norm      '    .76844E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .29464       1.0000          .0000       .10000E+07
    15 'Prefactor '    .20340E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .12071E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .46044       1.0000          .0000       .10000E+07
    18 'Prefactor '    169.41       1.0000          .0000       .10000E+07
    19 'norm      '    .75495E-08   1.0000          .0000       .10000E+07
    20 'norm      '    .21735       1.0000          .0000       .10000E+07
    21 'Prefactor '    .31147E-06   1.0000          .0000       .10000E+07
    22 'norm      '    .12005       1.0000          .0000       .10000E+07
    23 'Prefactor '    .16499E-01   1.0000          .0000       .10000E+07
    24 'norm      '    10.561       1.0000          .0000       .10000E+07
    25 'Prefactor '    7.9231       1.0000          .0000       .10000E+07
    26 'Prefactor '    5.2829       1.0000          .0000       .10000E+07
    27 'norm      '    .24369E-05   1.0000          .0000       .10000E+07
    28 'Prefactor '    7.1252       1.0000          .0000       .10000E+07
    29 'Prefactor '    10.177       1.0000          .0000       .10000E+07
    30 'Normalizat'    .85649       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .47118E-05   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=   349.6925     FROM MIGRAD    STATUS=CONVERGED    915 CALLS     3747 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10547E-08    8.8717        .24659E-06** at limit **
   2  norm          .11102E-09    5.7254        .10216E-06** at limit **
   3  Prefactor     17.038        50.177       -.10615E-06    .47423E-03
   4  Prefactor     .11102E-09    5.5407        .55789E-07** at limit **
   5  Prefactor     108.53        111.41        .31297E-06    .20508E-03
   6  norm          3.9820        2.2998       -.36531E-07    .68809E-02
   7  Prefactor     .49960E-09    15.306       -.14673E-06** at limit **
   8  norm           .0000        51.327        .74814E-07** at limit **
   9  Prefactor     .55511E-10    6.2345       -.77020E-08** at limit **
  10  Prefactor      .0000        14.953       -.21854E-09** at limit **
  11  Prefactor     .77716E-09    28.886       -.29123E-06** at limit **
  12  Prefactor     .11102E-09    45.426       -.86640E-08** at limit **
  13  norm          .22149E-06    501.63       -.15180E-06** at limit **
  14  Prefactor     .10337E-05    2560.7        .63408E-05** at limit **
  15  Prefactor      .0000        14.509        .30117E-07** at limit **
  16  norm          .11102E-09    10.175       -.86190E-08** at limit **
  17  Prefactor     .71054E-08    754.40       -.14314E-05** at limit **
  18  Prefactor     .87708E-08    105.58        .16669E-05** at limit **
  19  norm           .0000        .73272       -.13115E-08** at limit **
  20  norm          .26645E-08    126.22       -.11796E-06** at limit **
  21  Prefactor     .11102E-09    30.851       -.19238E-06** at limit **
  22  norm           .0000        164.78       -.11972E-06** at limit **
  23  Prefactor     .77716E-09    177.53        .45528E-07** at limit **
  24  norm          .10000E+07    .13404E+06   -.13400E-04** at limit **
  25  Prefactor     .10000E+07    .82024E+06   -.64175E-04** at limit **
  26  Prefactor     .10000E+07    48437.       -.41625E-05** at limit **
  27  norm          .33307E-09    34.464       -.95459E-07** at limit **
  28  Prefactor     .10000E+07    .99552E+06    .51803E-04** at limit **
  29  Prefactor     .51515E-05    73628.        .12455E-04** at limit **
  30  Normalizat    .18791        .47780        .10821E-04   -.32424E-04
  31  Prefactor     .38684        .55169       -.53403E-05   -.17810E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05471e-09
  norm       = 1.11022e-10
  Prefactor  = 17.0379
  Prefactor  = 1.11022e-10
  Prefactor  = 108.534
  norm       = 3.98201
  Prefactor  = 4.996e-10
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 7.77156e-10
  Prefactor  = 1.11022e-10
  norm       = 2.21489e-07
  Prefactor  = 1.03367e-06
  Prefactor  = 0
  norm       = 1.11022e-10
  Prefactor  = 7.10543e-09
  Prefactor  = 8.77076e-09
  norm       = 0
  norm       = 2.66454e-09
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 7.77156e-10
  norm       = 1e+06
  Prefactor  = 1e+06
  Prefactor  = 1e+06
  norm       = 3.33067e-10
  Prefactor  = 1e+06
  Prefactor  = 5.15149e-06
  Normalizat = 0.187911
  Prefactor  = 0.386835
 **********
 **   18 **HESSE 
 **********

 FCN=   349.6925     FROM HESSE     STATUS=OK           672 CALLS     4419 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10547E-08    8.3843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .11102E-09    5.7561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.038        53.915        .13438E-03   -1.5791    
   4  Prefactor     .11102E-09    5.3509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     108.53        111.80        .96424E-04   -1.5916    
   6  norm          3.9820        2.3704        .47271E-03   -1.5668    
   7  Prefactor     .49960E-09    14.318        .15468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        51.308        .11474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    6.1880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        15.723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .77716E-09    45.120        .63057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11102E-09    46.185        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .22149E-06    610.44        .14599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10337E-05    2990.8        .10288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        14.991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .11102E-09    10.075        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .71054E-08    773.29        .82793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .87708E-08    117.91        .76836E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .74368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .26645E-08    133.95        .11475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11102E-09    31.783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        157.11        .13419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .77716E-09    188.64        .17279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E+07    .13689E+06    .30806E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E+07    .82722E+06    .35598E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E+07    50737.        .43706E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .33307E-09    36.108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E+07    .99661E+06    .37556E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .51515E-05    78495.        .31385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .18791        .42675        .67389E-01   -1.3031    
  31  Prefactor     .38684        .46569        .49963E-01   -1.1749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30513e-09
Minuit parameter uncertainties:
  1  0.000186388
  2  5.08773e-05
  3  53.9169
  4  5.23772e-05
  5  111.798
  6  2.37043
  7  0.00016763
  8  5.34375e-05
  9  4.33924e-05
  10  2.51782e-05
  11  0.000374974
  12  0.000128371
  13  0.0232574
  14  0.111257
  15  1.27148e-05
  16  6.87412e-05
  17  0.00468298
  18  0.00203212
  19  8.4367e-08
  20  0.00119805
  21  0.000123054
  22  7.75527e-05
  23  0.000763201
  24  0.80368
  25  19.9259
  26  0.0599515
  27  0.000219635
  28  17.4917
  29  1.28906
  30  0.434542
  31  0.470339
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  2.665e-09  1.198e-03  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:  3.868e-01  4.703e-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.879e-01  4.345e-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: 1.68e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.05e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627186/likelihoodResults_698630401_698889601_4FGL_J0958.0+4728_daily_bin1772.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) = 349.696068508
delta logL = -0.00355952968539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 349.692510217
delta logL = -1.23784514017e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28333E-03   1.0000          .0000       .10000E+07
     2 'alpha     '    3.2047       1.0000          .0000       5.0000    
     3 'Normalizat'    .18781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38696       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=   349.6925     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      211 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12768E-08    20.398        .42118E-03** at limit **
   2  alpha         .10372        2.7513        .43436       -.40896E-10
   3  Normalizat    .18791        .40563        .67340E-01    .67909E-05
   4  Prefactor     .38683        .44381        .38064E-01    .13555E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.27676e-09
  alpha      = 0.10372
  Normalizat = 0.187914
  Prefactor  = 0.386833
 **********
 **   18 **HESSE 
 **********

 FCN=   349.6925     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12768E-08    20.380        .82503E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .10372        2.7510        .50000       -1.2817    
   3  Normalizat    .18791        .45789        .29855E-03   -1.3031    
   4  Prefactor     .38683        .50363        .22087E-03   -1.1749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84622e-11
Minuit parameter uncertainties:
  1  0.000322109
  2  0.712643
  3  0.467594
  4  0.509537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627186': 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) = 349.692508979
delta logL = 9.26547727431e-12

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.277e-09  3.221e-04  0.000e+00  1.000e+06 ( 1.000e-12)
354        alpha:  1.037e-01  7.126e-01  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:  3.868e-01  5.095e-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.879e-01  4.676e-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/627186/cmap_HighResolution_698630401_698889601_4FGL_J0958.0+4728_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-04', job_status='DONE', photon_flux_upper_limit='1.68e-06', time_completed='2023-02-24 01:21:58.913274', job_id='627186', GAL2='0.39', fit_tolerance='1e-08', EG2='0.19', EG='0.19', time_epoch_completed='1677230518.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.39', dlogl='9.27e-12', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1772' AND source_name='4FGL J0958.0+4728' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:21:58 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 627186: <4FGL_J0958.0+4728_daily_bin1772> in cluster <slac> Done

Job <4FGL_J0958.0+4728_daily_bin1772> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Feb 24 01:15:16 2023
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:15:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:15:17 2023
Terminated at Fri Feb 24 01:21:59 2023
Results reported at Fri Feb 24 01:21:59 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_daily_bin1772 149.509 47.4675 698630401 698889601 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 :                                   370.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   402 sec.
    Turnaround time :                            403 sec.

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

