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


Performing analysis on: 4FGL_J0958.0+4728_daily_bin1774
RA = 149.509, Dec = 47.4675
tmin = 699148801, tmax = 699408001
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='678847', job_status='RUN', time_executed='2023-03-02 00:30:42.630479', time_epoch_executed='1677745842.63' WHERE source_name='4FGL J0958.0+4728' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/678847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/678847/ft1_4FGL_J0958.0+4728_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/678847/ft2_4FGL_J0958.0+4728_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/678847/ft1_4FGL_J0958.0+4728_daily_bin1774.fits outfile=/scratch/kocevski/678847/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1774.fits ra=149.509 dec=47.4675 rad=12.0 tmin=699148801.0 tmax=699408001.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.78
user 2.60
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/678847/ft2_4FGL_J0958.0+4728_daily_bin1774.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/678847/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/678847/ft1_filtered_4FGL_J0958.0+4728_daily_bin1774.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/678847/ft1_filtered_4FGL_J0958.0+4728_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/678847/ft2_4FGL_J0958.0+4728_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/678847/ltcube_699148801_699408001_4FGL_J0958.0+4728_daily_bin1774.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/678847/ft2_4FGL_J0958.0+4728_daily_bin1774.fits
.....................!
real 12.40
user 12.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/678847/ft1_filtered_4FGL_J0958.0+4728_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/678847/ft2_4FGL_J0958.0+4728_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/678847/ltcube_699148801_699408001_4FGL_J0958.0+4728_daily_bin1774.fits outfile=/scratch/kocevski/678847/expmap_699148801_699408001_4FGL_J0958.0+4728_daily_bin1774.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/678847/ltcube_699148801_699408001_4FGL_J0958.0+4728_daily_bin1774.fits
.....................!
real 191.98
user 187.15
sys 4.49

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/678847/ft1_filtered_4FGL_J0958.0+4728_daily_bin1774.fits scfile=/scratch/kocevski/678847/ft2_4FGL_J0958.0+4728_daily_bin1774.fits outfile=/scratch/kocevski/678847/cmap_699148801_699408001_4FGL_J0958.0+4728_daily_bin1774.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/678847/ft1_filtered_4FGL_J0958.0+4728_daily_bin1774.fits scfile=/scratch/kocevski/678847/ft2_4FGL_J0958.0+4728_daily_bin1774.fits outfile=/scratch/kocevski/678847/cmap_HighResolution_699148801_699408001_4FGL_J0958.0+4728_daily_bin1774.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.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/678847/ft1_filtered_4FGL_J0958.0+4728_daily_bin1774.fits', '/scratch/kocevski/678847/ft2_4FGL_J0958.0+4728_daily_bin1774.fits', expMap='/scratch/kocevski/678847/expmap_699148801_699408001_4FGL_J0958.0+4728_daily_bin1774.fits', expCube='/scratch/kocevski/678847/ltcube_699148801_699408001_4FGL_J0958.0+4728_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/678847/Model_4FGL_J0958.0+4728_daily_bin1774.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/678847/ft1_filtered_4FGL_J0958.0+4728_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/678847/ft2_4FGL_J0958.0+4728_daily_bin1774.fits
Exposure map: /scratch/kocevski/678847/expmap_699148801_699408001_4FGL_J0958.0+4728_daily_bin1774.fits
Exposure cube: /scratch/kocevski/678847/ltcube_699148801_699408001_4FGL_J0958.0+4728_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/678847/Model_4FGL_J0958.0+4728_daily_bin1774.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 160.631273503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 127.808603874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22112E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .22038E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .29110E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .32528E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .81712       1.0000          .0000       .10000E+07
     6 'norm      '    .11368E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .62228E-07   1.0000          .0000       .10000E+07
     8 'norm      '    4.9286       1.0000          .0000       .10000E+07
     9 'Prefactor '    .57018E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    86.512       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
    12 'Prefactor '    206.20       1.0000          .0000       .10000E+07
    13 'norm      '    2.4258       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.0047       1.0000          .0000       .10000E+07
    15 'Prefactor '    .22697E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .27384E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.1921       1.0000          .0000       .10000E+07
    18 'Prefactor '    .20990E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .30753E-07   1.0000          .0000       .10000E+07
    20 'norm      '    542.52       1.0000          .0000       .10000E+07
    21 'Prefactor '    .51705E-05   1.0000          .0000       .10000E+07
    22 'norm      '    .50188E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .53003E-05   1.0000          .0000       .10000E+07
    24 'norm      '    63.116       1.0000          .0000       .10000E+07
    25 'Prefactor '    10.931       1.0000          .0000       .10000E+07
    26 'Prefactor '    .18749E-04   1.0000          .0000       .10000E+07
    27 'norm      '    .39968E-08   1.0000          .0000       .10000E+07
    28 'Prefactor '    .40197E-04   1.0000          .0000       .10000E+07
    29 'Prefactor '    .19987E-03   1.0000          .0000       .10000E+07
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .66431       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   127.8075     FROM MIGRAD    STATUS=CONVERGED    256 CALLS      903 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        48.047        .42118E-03** at limit **
   2  norm           .0000        37.417        .42118E-03** at limit **
   3  Prefactor     .54320E-03    588.01        .42118E-03** at limit **
   4  Prefactor     .19816E-04    99.948        .42118E-03** at limit **
   5  Prefactor     .81930E-02    1573.2        .51667E-03** at limit **
   6  norm          .53846E-08    79.357        .42118E-03** at limit **
   7  Prefactor     .47794E-03    542.52        .42118E-03** at limit **
   8  norm          .72185E-04    3098.6        .45280E-03** at limit **
   9  Prefactor     .83788E-04    483.88        .42118E-03** at limit **
  10  Prefactor     85.194        40279.        .10752E-03    .11302    
  11  Prefactor     .10000E+07    70708.        .13337E-01** at limit **
  12  Prefactor     206.31        .22975E+06    .69647E-04   -.15133E-01
  13  norm          2.4270        .22985E+06    .65682E-03   -.15598E-04
  14  Prefactor     3.0055        .22985E+06    .58530E-03   -.12472E-04
  15  Prefactor     .74440        39097.        .42118E-03    .10889E-01
  16  norm          .18768E-04    100.88        .42118E-03** at limit **
  17  Prefactor     7.1921        1.0024         .0000         .0000    
  18  Prefactor     .84116E-06    .44347E-01    .52829E-06** at limit **
  19  norm           .0000        .44347E-01    .39663E-07** at limit **
  20  norm          542.86        1.0003        .20926E-06   -.73172E-01
  21  Prefactor     .64493E-03    .44347E-01   -.85728E-05** at limit **
  22  norm           .0000        .44347E-01   -.11531E-06** at limit **
  23  Prefactor     .57176E-07    .44347E-01   -.97204E-06** at limit **
  24  norm          63.269        1.0012        .27534E-06   -.11209E-01
  25  Prefactor     10.935        1.0012        .18389E-07   -.12935E-03
  26  Prefactor     .41909E-04    .44347E-01    .23128E-05** at limit **
  27  norm           .0000        .44347E-01    .35331E-07** at limit **
  28  Prefactor     .72943E-04    .44347E-01   -.51349E-05** at limit **
  29  Prefactor     .62672E-07    .44347E-01   -.12628E-04** at limit **
  30  Normalizat    .10000E-01    .25773       -.31962E-04** at limit **
  31  Prefactor     .66470        1.0140       -.21877E-03   -.25641E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0
  Prefactor  = 0.000543195
  Prefactor  = 1.98157e-05
  Prefactor  = 0.00819296
  norm       = 5.38458e-09
  Prefactor  = 0.000477935
  norm       = 7.21851e-05
  Prefactor  = 8.37883e-05
  Prefactor  = 85.1941
  Prefactor  = 1e+06
  Prefactor  = 206.313
  norm       = 2.42697
  Prefactor  = 3.00555
  Prefactor  = 0.744397
  norm       = 1.87684e-05
  Prefactor  = 7.19212
  Prefactor  = 8.4116e-07
  norm       = 0
  norm       = 542.86
  Prefactor  = 0.00064493
  norm       = 0
  Prefactor  = 5.71765e-08
  norm       = 63.2685
  Prefactor  = 10.9352
  Prefactor  = 4.19088e-05
  norm       = 0
  Prefactor  = 7.29431e-05
  Prefactor  = 6.26721e-08
  Normalizat = 0.01
  Prefactor  = 0.664695
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   127.8075     FROM HESSE     STATUS=FAILED        43 CALLS      946 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        48.047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        37.417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .54320E-03    588.01        .42118E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .19816E-04    99.948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .81930E-02    1573.2        .51667E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .53846E-08    79.357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .47794E-03    542.52        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .72185E-04    3098.6        .45280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .83788E-04    483.88        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     85.194        40279.        .10752E-03   -1.5523    
  11  Prefactor     .10000E+07    70708.        .13337E-01    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     206.31        .22975E+06    .69647E-04   -1.5421    
  13  norm          2.4270        .22985E+06    .65682E-03   -1.5677    
  14  Prefactor     3.0055        .22985E+06    .58530E-03   -1.5673    
  15  Prefactor     .74440        39097.        .42118E-03   -1.5691    
  16  norm          .18768E-04    100.88        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33553.        33546.         .0000       -1.5654    
  18  Prefactor     .84116E-06    .44347E-01    .52829E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .44347E-01    .39663E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          542.86        1.0003        .20926E-06   -1.5242    
  21  Prefactor     .64493E-03    .44347E-01   -.85728E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        .44347E-01   -.11531E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .57176E-07    .44347E-01   -.97204E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          63.269        1.0012        .27534E-06   -1.5549    
  25  Prefactor     10.935        1.0012        .18389E-07   -1.5642    
  26  Prefactor     .41909E-04    .44347E-01    .23128E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm           .0000        .44347E-01    .35331E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .72943E-04    .44347E-01   -.51349E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .62672E-07    .44347E-01   -.12628E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .25773       -.31962E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .66470        1.0140       -.21877E-03   -1.0493    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.34139e-10
Minuit parameter uncertainties:
  1  3.80051e-06
  2  1.35986e-06
  3  1.13043
  4  0.0890078
  5  7.18219
  6  0.00130506
  7  1.0185
  8  0.946377
  9  0.402741
  10  3730.4
  11  88.0465
  12  14362.1
  13  1557.87
  14  1733.65
  15  343.46
  16  0.087027
  17  1.00244
  18  0.000386276
  19  1.65665e-08
  20  1.00031
  21  0.010696
  22  5.71546e-08
  23  0.000100706
  24  1.00124
  25  1.00124
  26  0.00272657
  27  1.6455e-08
  28  0.00359713
  29  0.000105447
  30  1.57969e-07
  31  1.04433
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 127.807543829

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  5.429e+02  1.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

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  6.647e-01  1.044e+00  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.000e-02  1.580e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 1000000.0 is not large enough
delta logLike = 2.33980598848

TS (Fixed Index): 0.00
Ra Dec: 149.509 47.468
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -3.00e+02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/678847/likelihoodResults_699148801_699408001_4FGL_J0958.0+4728_daily_bin1774.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) = 127.872106396
delta logL = -0.0645625677234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 127.859006845
delta logL = -0.0514630167593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    4.9999       1.0000          .0000       5.0000    
 **********
 **   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=   127.8590     FROM MIGRAD    STATUS=CONVERGED     16 CALLS       75 TOTAL
                     EDM=   .21E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       5.0000        2.9624        .46269    ** at limit **
                               ERR DEF=  .500    
Final values: 
  alpha      = 5
 **********
 **   18 **HESSE 
 **********

 FCN=   127.8590     FROM HESSE     STATUS=OK             7 CALLS       82 TOTAL
                     EDM=   .18E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       5.0000        3.4304        .59680E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75674e-14
Minuit parameter uncertainties:
  1  8.16638e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/678847': 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) = 127.859005748
delta logL = -0.0514619190814

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  5.429e+02  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12) fixed
354        alpha:  5.000e+00  8.166e-06  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:  6.607e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/678847/cmap_HighResolution_699148801_699408001_4FGL_J0958.0+4728_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-3.00e+02', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2023-03-02 00:36:12.400561', job_id='678847', GAL2='0.66', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677746172.4', return_code2='0', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.66', dlogl='-5.15e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1774' AND source_name='4FGL J0958.0+4728' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:36:12 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 678847: <4FGL_J0958.0+4728_daily_bin1774> in cluster <slac> Done

Job <4FGL_J0958.0+4728_daily_bin1774> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Mar  2 00:30:21 2023
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:30:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:30:22 2023
Terminated at Thu Mar  2 00:36:13 2023
Results reported at Thu Mar  2 00:36:13 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_daily_bin1774 149.509 47.4675 699148801 699408001 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 :                                   332.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             472.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   350 sec.
    Turnaround time :                            352 sec.

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

