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


Performing analysis on: 4FGL_J0958.0+4728_daily_bin1751
RA = 149.509, Dec = 47.4675
tmin = 693187201, tmax = 693446401
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='75096', job_status='RUN', time_executed='2022-12-23 00:31:40.042275', time_epoch_executed='1671784300.04' WHERE source_name='4FGL J0958.0+4728' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75096

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75096/ft1_4FGL_J0958.0+4728_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75096/ft2_4FGL_J0958.0+4728_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75096/ft1_4FGL_J0958.0+4728_daily_bin1751.fits outfile=/scratch/kocevski/75096/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1751.fits ra=149.509 dec=47.4675 rad=12.0 tmin=693187201.0 tmax=693446401.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.65
user 3.39
sys 0.22

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

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

Number of photons that the gtmktime cut: 575

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75096/ft1_filtered_4FGL_J0958.0+4728_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/75096/ft2_4FGL_J0958.0+4728_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/75096/ltcube_693187201_693446401_4FGL_J0958.0+4728_daily_bin1751.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/75096/ft2_4FGL_J0958.0+4728_daily_bin1751.fits
.....................!
real 12.57
user 12.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75096/ft1_filtered_4FGL_J0958.0+4728_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/75096/ft2_4FGL_J0958.0+4728_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/75096/ltcube_693187201_693446401_4FGL_J0958.0+4728_daily_bin1751.fits outfile=/scratch/kocevski/75096/expmap_693187201_693446401_4FGL_J0958.0+4728_daily_bin1751.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/75096/ltcube_693187201_693446401_4FGL_J0958.0+4728_daily_bin1751.fits
.....................!
real 192.48
user 185.82
sys 5.77

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/75096/ft1_filtered_4FGL_J0958.0+4728_daily_bin1751.fits scfile=/scratch/kocevski/75096/ft2_4FGL_J0958.0+4728_daily_bin1751.fits outfile=/scratch/kocevski/75096/cmap_693187201_693446401_4FGL_J0958.0+4728_daily_bin1751.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75096/ft1_filtered_4FGL_J0958.0+4728_daily_bin1751.fits scfile=/scratch/kocevski/75096/ft2_4FGL_J0958.0+4728_daily_bin1751.fits outfile=/scratch/kocevski/75096/cmap_HighResolution_693187201_693446401_4FGL_J0958.0+4728_daily_bin1751.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24683E-04   1.0000          .0000       .10000E+07
     2 'norm      '    5.2010       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.8460       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.0735       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.1185       1.0000          .0000       .10000E+07
     6 'norm      '    .41641       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10007E-04   1.0000          .0000       .10000E+07
     8 'norm      '    8.8932       1.0000          .0000       .10000E+07
     9 'Prefactor '    .14874E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .45802E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .28271E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    22.877       1.0000          .0000       .10000E+07
    13 'norm      '    2.6489       1.0000          .0000       .10000E+07
    14 'Prefactor '    11.298       1.0000          .0000       .10000E+07
    15 'Prefactor '    12.889       1.0000          .0000       .10000E+07
    16 'norm      '    .12314E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    33.529       1.0000          .0000       .10000E+07
    18 'Prefactor '    20.576       1.0000          .0000       .10000E+07
    19 'norm      '    1.7509       1.0000          .0000       .10000E+07
    20 'norm      '    .17452E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    3.2728       1.0000          .0000       .10000E+07
    22 'norm      '    3.2486       1.0000          .0000       .10000E+07
    23 'Prefactor '    2.6746       1.0000          .0000       .10000E+07
    24 'norm      '    .25773E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    14.191       1.0000          .0000       .10000E+07
    26 'Prefactor '    .21794E-05   1.0000          .0000       .10000E+07
    27 'norm      '    .42188E-07   1.0000          .0000       .10000E+07
    28 'Prefactor '    .58932       1.0000          .0000       .10000E+07
    29 'Prefactor '    1.3888       1.0000          .0000       .10000E+07
    30 'Normalizat'    1.0357       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .76986       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=   6232.875     FROM MIGRAD    STATUS=CONVERGED    209 CALLS     2362 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26090E-08    9.6879        .25068E-06** at limit **
   2  norm          5.1974        4.5237       -.15823E-07   -.25161E-03
   3  Prefactor     7.8102        1.3192        .23859E-07    .23922E-02
   4  Prefactor     5.0628        3.0202       -.58490E-08    .26846E-03
   5  Prefactor     3.0974        2.1232       -.71346E-07   -.25544E-01
   6  norm          .41616        .35571        .36839E-08    .74602E-03
   7  Prefactor     .55511E-10    5.0104       -.79537E-07** at limit **
   8  norm          8.8893        6.1121        .58081E-08    .65980E-02
   9  Prefactor      .0000        1.0705        .14970E-07** at limit **
  10  Prefactor     .22204E-08    9.9569       -.18677E-06** at limit **
  11  Prefactor      .0000        .90043        .19310E-07** at limit **
  12  Prefactor     22.542        13.759       -.18803E-06   -.19697E-03
  13  norm          2.9409        8.9739        .14496E-06   -.13906E-02
  14  Prefactor     11.091        3.3687        .68857E-07    .11602E-01
  15  Prefactor     12.921        6.6273        .57943E-07    .10505E-02
  16  norm           .0000        2.3085        .11629E-07** at limit **
  17  Prefactor     33.016        8.1143       -.16805E-07    .64569E-01
  18  Prefactor     20.415        12.697        .17608E-06    .21146E-01
  19  norm          1.7521        .53875       -.57084E-08   -.16878E-02
  20  norm          .55511E-10    7.5091        .10599E-08** at limit **
  21  Prefactor     3.2752        4.1662        .98939E-08    .12261E-03
  22  norm          3.2468        1.9828       -.12387E-07   -.65768E-03
  23  Prefactor     2.3324        17.935        .14671E-06    .24037E-01
  24  norm          .55511E-10    6.1805        .24963E-07** at limit **
  25  Prefactor     14.825        29.314       -.34986E-06    .34614E-01
  26  Prefactor      .0000        3.8761        .37298E-07** at limit **
  27  norm           .0000        .51445       -.16435E-07** at limit **
  28  Prefactor     .91638E-06    74.615       -.18345E-06** at limit **
  29  Prefactor     .17477E-04    3491.5        .17508E-05** at limit **
  30  Normalizat    1.0370        .17077       -.39408E-06   -.35699E-04
  31  Prefactor     .76959        .21473        .32700E-06   -.21927E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.60902e-09
  norm       = 5.19744
  Prefactor  = 7.81017
  Prefactor  = 5.06281
  Prefactor  = 3.0974
  norm       = 0.416165
  Prefactor  = 5.55112e-11
  norm       = 8.8893
  Prefactor  = 0
  Prefactor  = 2.22045e-09
  Prefactor  = 0
  Prefactor  = 22.542
  norm       = 2.94086
  Prefactor  = 11.0905
  Prefactor  = 12.9214
  norm       = 0
  Prefactor  = 33.0162
  Prefactor  = 20.4154
  norm       = 1.75209
  norm       = 5.55112e-11
  Prefactor  = 3.2752
  norm       = 3.24683
  Prefactor  = 2.33239
  norm       = 5.55112e-11
  Prefactor  = 14.8249
  Prefactor  = 0
  norm       = 0
  Prefactor  = 9.16378e-07
  Prefactor  = 1.74772e-05
  Normalizat = 1.03703
  Prefactor  = 0.769588
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.875     FROM HESSE     STATUS=OK           698 CALLS     3060 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26090E-08    10.053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.1974        4.5487        .44055E-03   -1.5662    
   3  Prefactor     7.8102        14.837        .35774E-03   -1.5652    
   4  Prefactor     5.0628        3.0339        .44616E-03   -1.5663    
   5  Prefactor     3.0974        11.376        .57390E-03   -1.5673    
   6  norm          .41616        .35370        .87609E-03   -1.5695    
   7  Prefactor     .55511E-10    4.9156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.8893        6.3450        .33586E-03   -1.5648    
   9  Prefactor      .0000        1.0621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-08    10.131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        .90115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.542        19.159        .20913E-03   -1.5613    
  13  norm          2.9409        9.5543        .62611E-03   -1.5674    
  14  Prefactor     11.091        14.152        .29780E-03   -1.5641    
  15  Prefactor     12.921        6.7738        .27875E-03   -1.5636    
  16  norm           .0000        2.3053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.016        25.891        .17272E-03   -1.5593    
  18  Prefactor     20.415        18.948        .22052E-03   -1.5618    
  19  norm          1.7521        .54748        .69967E-03   -1.5681    
  20  norm          .55511E-10    7.5184        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.2752        4.2007        .55949E-03   -1.5672    
  22  norm          3.2468        1.9830        .56168E-03   -1.5672    
  23  Prefactor     2.3324        83.971        .62286E-03   -1.5677    
  24  norm          .55511E-10    6.2176        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.825        34.123        .26563E-03   -1.5631    
  26  Prefactor      .0000        3.8555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm           .0000        .51777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .91638E-06    78.644        .70190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .17477E-04    32.844        .15357E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0370        .15104        .41634E-01   -.91800    
  31  Prefactor     .76959        .18690        .68861E-01   -1.0086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.977e-07
Minuit parameter uncertainties:
  1  0.000323546
  2  4.54875
  3  14.8369
  4  3.03393
  5  11.3756
  6  0.353699
  7  2.55999e-05
  8  6.34499
  9  7.59805e-07
  10  0.000299347
  11  1.30533e-06
  12  19.1589
  13  9.5543
  14  14.1516
  15  6.7738
  16  2.02351e-06
  17  25.8912
  18  18.9483
  19  0.547477
  20  3.53034e-05
  21  4.20075
  22  1.98299
  23  27.9899
  24  2.83624e-05
  25  34.1232
  26  5.77043e-06
  27  5.13072e-07
  28  0.0169788
  29  0.047918
  30  0.151098
  31  0.18705
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  5.551e-11  3.530e-05  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:  7.696e-01  1.871e-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.037e+00  1.511e-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: 4.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75096/likelihoodResults_693187201_693446401_4FGL_J0958.0+4728_daily_bin1751.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) = 6232.9424158
delta logL = -0.0673694776378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6232.87504827
delta logL = -1.95029406314e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44690E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    1.0224       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76926       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=   6232.845     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      239 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24649        1.0663        .42118E-03** at limit **
   2  alpha         5.0000        4.6118        .50000    ** at limit **
   3  Normalizat    1.0230        .15067        .41507E-01   -.30579E-03
   4  Prefactor     .78063        .18616        .68425E-01    .58441E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.24649
  alpha      = 5
  Normalizat = 1.023
  Prefactor  = 0.780633
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.845     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24649        1.0654        .14762E-04   -1.5718    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        4.3043        .17074        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0230        .17714        .21181E-03   -.92264    
   4  Prefactor     .78063        .21766        .30275E-03   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.07157e-10
Minuit parameter uncertainties:
  1  1.0249
  2  0.000175504
  3  0.177238
  4  0.217896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75096': 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) = 6232.84461369
delta logL = 0.0304326349997

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  2.465e-01  1.025e+00  0.000e+00  1.000e+06 ( 1.000e-12)
354        alpha:  5.000e+00  1.755e-04  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:  7.806e-01  2.179e-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.023e+00  1.772e-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/75096/cmap_HighResolution_693187201_693446401_4FGL_J0958.0+4728_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-05', job_status='DONE', photon_flux_upper_limit='4.79e-08', time_completed='2022-12-23 00:44:53.382188', job_id='75096', GAL2='0.78', fit_tolerance='1e-08', EG2='1.02', EG='1.04', time_epoch_completed='1671785093.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='3.04e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1751' AND source_name='4FGL J0958.0+4728' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:44:53 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 75096: <4FGL_J0958.0+4728_daily_bin1751> in cluster <slac> Done

Job <4FGL_J0958.0+4728_daily_bin1751> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 23 00:30:13 2022
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:30:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:30:14 2022
Terminated at Fri Dec 23 00:44:54 2022
Results reported at Fri Dec 23 00:44:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_daily_bin1751 149.509 47.4675 693187201 693446401 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 :                                   794.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

