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


Performing analysis on: 4FGL_J0958.0+4728_daily_bin1749
RA = 149.509, Dec = 47.4675
tmin = 692668801, tmax = 692928001
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='947830', job_status='RUN', time_executed='2022-12-17 00:30:35.915628', time_epoch_executed='1671265835.92' WHERE source_name='4FGL J0958.0+4728' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947830

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947830/ft1_4FGL_J0958.0+4728_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947830/ft2_4FGL_J0958.0+4728_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947830/ft1_4FGL_J0958.0+4728_daily_bin1749.fits outfile=/scratch/kocevski/947830/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1749.fits ra=149.509 dec=47.4675 rad=12.0 tmin=692668801.0 tmax=692928001.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.62
user 3.41
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947830/ft1_filtered_4FGL_J0958.0+4728_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/947830/ft2_4FGL_J0958.0+4728_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/947830/ltcube_692668801_692928001_4FGL_J0958.0+4728_daily_bin1749.fits outfile=/scratch/kocevski/947830/expmap_692668801_692928001_4FGL_J0958.0+4728_daily_bin1749.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/947830/ltcube_692668801_692928001_4FGL_J0958.0+4728_daily_bin1749.fits
.....................!
real 191.27
user 185.21
sys 5.69

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/947830/ft1_filtered_4FGL_J0958.0+4728_daily_bin1749.fits scfile=/scratch/kocevski/947830/ft2_4FGL_J0958.0+4728_daily_bin1749.fits outfile=/scratch/kocevski/947830/cmap_692668801_692928001_4FGL_J0958.0+4728_daily_bin1749.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/947830/ft1_filtered_4FGL_J0958.0+4728_daily_bin1749.fits scfile=/scratch/kocevski/947830/ft2_4FGL_J0958.0+4728_daily_bin1749.fits outfile=/scratch/kocevski/947830/cmap_HighResolution_692668801_692928001_4FGL_J0958.0+4728_daily_bin1749.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85454E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .42703E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.764       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.3274       1.0000          .0000       .10000E+07
     5 'Prefactor '    .18817E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .20617E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.1141       1.0000          .0000       .10000E+07
     8 'norm      '    .80990E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .91964       1.0000          .0000       .10000E+07
    10 'Prefactor '    .94935E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.0770       1.0000          .0000       .10000E+07
    12 'Prefactor '    15.191       1.0000          .0000       .10000E+07
    13 'norm      '    .14549E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .86938E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    50.383       1.0000          .0000       .10000E+07
    16 'norm      '    .54356E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .18228E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .11016E-02   1.0000          .0000       .10000E+07
    19 'norm      '    1.0064       1.0000          .0000       .10000E+07
    20 'norm      '    9.9880       1.0000          .0000       .10000E+07
    21 'Prefactor '    .83222E-05   1.0000          .0000       .10000E+07
    22 'norm      '    3.8820       1.0000          .0000       .10000E+07
    23 'Prefactor '    .80463E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .64777E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .83812E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    3.6756       1.0000          .0000       .10000E+07
    27 'norm      '    2.8338       1.0000          .0000       .10000E+07
    28 'Prefactor '    90.100       1.0000          .0000       .10000E+07
    29 'Prefactor '    .57131E-02   1.0000          .0000       .10000E+07
    30 'Normalizat'    .82000       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2231       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=   6689.329     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     2988 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27756E-09    8.1279        .99632E-07** at limit **
   2  norm           .0000        4.0345        .11902E-06** at limit **
   3  Prefactor     10.761        1.8492        .77538E-08    .56473E-02
   4  Prefactor     2.3291        3.3311        .31120E-08    .78504E-04
   5  Prefactor     .57121E-07    7.0984        .38651E-07** at limit **
   6  norm           .0000        .45034        .12477E-07** at limit **
   7  Prefactor     4.1138        2.5828        .18921E-07   -.15956E-03
   8  norm           .0000        3.0287        .39187E-07** at limit **
   9  Prefactor     .91761        2.8742       -.14974E-07    .14630E-03
  10  Prefactor     .27756E-09    7.3836        .10625E-06** at limit **
  11  Prefactor     4.0486        4.2207       -.27940E-07    .13003E-04
  12  Prefactor     15.217        3.4377        .12368E-07    .15122E-01
  13  norm          .57176E-07    4.4676        .17135E-07** at limit **
  14  Prefactor     .10436E-07    6.1283       -.12627E-06** at limit **
  15  Prefactor     50.365        10.598       -.52673E-08   -.63797E-02
  16  norm           .0000        2.2717        .11182E-06** at limit **
  17  Prefactor     .40468E-07    4.2553        .33001E-07** at limit **
  18  Prefactor     .46796E-07    8.4735       -.61948E-08** at limit **
  19  norm          1.0069        .47056        .14230E-07   -.43442E-03
  20  norm          9.9733        1.4013       -.28465E-08   -.46753E-03
  21  Prefactor      .0000        1.8119        .54131E-07** at limit **
  22  norm          3.8786        2.6641        .36678E-08    .13907E-03
  23  Prefactor     .64282E-07    12.027       -.99372E-07** at limit **
  24  norm           .0000        4.0873        .11340E-06** at limit **
  25  Prefactor     .35860E-07    5.4274       -.13798E-06** at limit **
  26  Prefactor     3.6709        3.9939        .10130E-06   -.18884E-03
  27  norm          2.8340        1.4924       -.20864E-08   -.10941E-03
  28  Prefactor     88.718        81.732        .91454E-08    .12284E-03
  29  Prefactor     .22204E-09    17.309       -.19531E-06** at limit **
  30  Normalizat    .82044        .19612       -.21169E-05    .16492E-04
  31  Prefactor     1.2232        .24572        .31780E-07    .14383E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.77556e-10
  norm       = 0
  Prefactor  = 10.7612
  Prefactor  = 2.32909
  Prefactor  = 5.7121e-08
  norm       = 0
  Prefactor  = 4.11379
  norm       = 0
  Prefactor  = 0.917609
  Prefactor  = 2.77556e-10
  Prefactor  = 4.04863
  Prefactor  = 15.2171
  norm       = 5.71765e-08
  Prefactor  = 1.04361e-08
  Prefactor  = 50.3654
  norm       = 0
  Prefactor  = 4.04676e-08
  Prefactor  = 4.67959e-08
  norm       = 1.00693
  norm       = 9.97333
  Prefactor  = 0
  norm       = 3.87859
  Prefactor  = 6.42819e-08
  norm       = 0
  Prefactor  = 3.58602e-08
  Prefactor  = 3.67088
  norm       = 2.83401
  Prefactor  = 88.718
  Prefactor  = 2.22045e-10
  Normalizat = 0.820441
  Prefactor  = 1.22325
 **********
 **   18 **HESSE 
 **********

 FCN=   6689.329     FROM HESSE     STATUS=OK           686 CALLS     3674 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27756E-09    8.0760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        4.0278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.761        19.487        .30513E-03   -1.5642    
   4  Prefactor     2.3291        3.4174        .67198E-03   -1.5677    
   5  Prefactor     .57121E-07    11.135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .29138        .14315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1138        2.9131        .49676E-03   -1.5667    
   8  norm           .0000        3.0273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .91761        2.9525        .44411E-03   -1.5689    
  10  Prefactor     .27756E-09    7.3861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0486        4.2557        .49908E-03   -1.5668    
  12  Prefactor     15.217        18.258        .25671E-03   -1.5630    
  13  norm          .57176E-07    12.513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10436E-07    21.233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.365        11.183        .14089E-03   -1.5566    
  16  norm           .0000        2.2712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .40468E-07    11.533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .46796E-07    12.942        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0069        .47111        .43993E-03   -1.5688    
  20  norm          9.9733        13.980        .31682E-03   -1.5645    
  21  Prefactor      .0000        1.8103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.8786        2.6757        .51188E-03   -1.5669    
  23  Prefactor     .64282E-07    21.657        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        4.0824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .35860E-07    21.050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.6709        4.0088        .52659E-03   -1.5670    
  27  norm          2.8340        1.4903        .60383E-03   -1.5674    
  28  Prefactor     88.718        81.794        .10536E-03   -1.5520    
  29  Prefactor     .22204E-09    19.893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .82044        .16744        .43871E-01   -.99315    
  31  Prefactor     1.2232        .20776        .63323E-01   -.85619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25606e-08
Minuit parameter uncertainties:
  1  9.82848e-05
  2  5.919e-06
  3  19.4867
  4  3.41736
  5  0.00159483
  6  8.59673e-08
  7  2.91312
  8  3.56142e-06
  9  2.9525
  10  8.73308e-05
  11  4.25569
  12  18.2578
  13  0.00169135
  14  0.000941046
  15  11.1832
  16  2.97082e-06
  17  0.0013659
  18  0.00155605
  19  0.471112
  20  13.9804
  21  7.7899e-07
  22  2.67575
  23  0.00235964
  24  8.65033e-06
  25  0.00173718
  26  4.0088
  27  1.49028
  28  81.795
  29  0.00013185
  30  0.167549
  31  0.207899
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  9.973e+00  1.398e+01  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:  1.223e+00  2.079e-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:  8.204e-01  1.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/947830/likelihoodResults_692668801_692928001_4FGL_J0958.0+4728_daily_bin1749.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) = 6689.30121133
delta logL = 0.0281072913667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6689.30013432
delta logL = 0.0291842986253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.373       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0548       1.0000          .0000       5.0000    
     3 'Normalizat'    .82806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2154       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=   6689.300     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      226 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.373        26.334        .31086E-03    .13547E-01
   2  alpha         2.0549        1.7604        .42008       -.20595E-04
   3  Normalizat    .82804        .16392        .43975E-01    .18437E-04
   4  Prefactor     1.2154        .21461        .63491E-01    .75931E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3727
  alpha      = 2.05488
  Normalizat = 0.828039
  Prefactor  = 1.21542
 **********
 **   18 **HESSE 
 **********

 FCN=   6689.300     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.373        14.109        .12434E-04   -1.5644    
   2  alpha         2.0549        1.1599        .33416E-01   -.17900    
   3  Normalizat    .82804        .19138        .25856E-03   -.99037    
   4  Prefactor     1.2154        .24658        .28082E-03   -.85858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67887e-09
Minuit parameter uncertainties:
  1  14.1086
  2  1.2079
  3  0.191537
  4  0.246819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947830': 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) = 6689.3001343
delta logL = 0.0291843162295

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.037e+01  1.411e+01  0.000e+00  1.000e+06 ( 1.000e-12)
354        alpha:  2.055e+00  1.208e+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:  1.215e+00  2.468e-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:  8.280e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.62
Ra Dec: 149.509 47.468

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/947830/cmap_HighResolution_692668801_692928001_4FGL_J0958.0+4728_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-05', job_status='DONE', photon_flux_upper_limit='9.28e-08', time_completed='2022-12-17 00:45:22.718816', job_id='947830', GAL2='1.22', fit_tolerance='1e-08', EG2='0.83', EG='0.82', time_epoch_completed='1671266722.72', return_code2='0', ts='0.62', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='2.92e-02', ts2='0.68', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1749' AND source_name='4FGL J0958.0+4728' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:45:22 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 947830: <4FGL_J0958.0+4728_daily_bin1749> in cluster <slac> Done

Job <4FGL_J0958.0+4728_daily_bin1749> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Dec 17 00:30:19 2022
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:30:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:30:21 2022
Terminated at Sat Dec 17 00:45:23 2022
Results reported at Sat Dec 17 00:45:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_daily_bin1749 149.509 47.4675 692668801 692928001 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 :                                   888.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

