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 51 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_J0851.5+5528_daily_bin1758
RA = 132.88, Dec = 55.4794
tmin = 695001601, tmax = 695260801
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='362170', job_status='RUN', time_executed='2023-01-13 00:32:01.951232', time_epoch_executed='1673598721.95' WHERE source_name='4FGL J0851.5+5528' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362170

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362170/ft1_4FGL_J0851.5+5528_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362170/ft2_4FGL_J0851.5+5528_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362170/ft1_4FGL_J0851.5+5528_daily_bin1758.fits outfile=/scratch/kocevski/362170/ft1_filteredMKT_4FGL_J0851.5+5528_daily_bin1758.fits ra=132.88 dec=55.4794 rad=12.0 tmin=695001601.0 tmax=695260801.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.77
user 2.58
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/362170/ft2_4FGL_J0851.5+5528_daily_bin1758.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362170/ft2_4FGL_J0851.5+5528_daily_bin1758.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/362170/ft1_filteredMKT_4FGL_J0851.5+5528_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/362170/ft1_filtered_4FGL_J0851.5+5528_daily_bin1758.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.51
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 254

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362170/ft1_filtered_4FGL_J0851.5+5528_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/362170/ft2_4FGL_J0851.5+5528_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/362170/ltcube_695001601_695260801_4FGL_J0851.5+5528_daily_bin1758.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/362170/ft2_4FGL_J0851.5+5528_daily_bin1758.fits
.....................!
real 15.36
user 14.83
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362170/ft1_filtered_4FGL_J0851.5+5528_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/362170/ft2_4FGL_J0851.5+5528_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/362170/ltcube_695001601_695260801_4FGL_J0851.5+5528_daily_bin1758.fits outfile=/scratch/kocevski/362170/expmap_695001601_695260801_4FGL_J0851.5+5528_daily_bin1758.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/362170/ltcube_695001601_695260801_4FGL_J0851.5+5528_daily_bin1758.fits
.....................!
real 191.05
user 185.73
sys 4.84

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

Setting source of interest to:
4FGL J0851.5+5528 @ 132.88 55.4794

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/362170/ft1_filtered_4FGL_J0851.5+5528_daily_bin1758.fits scfile=/scratch/kocevski/362170/ft2_4FGL_J0851.5+5528_daily_bin1758.fits outfile=/scratch/kocevski/362170/cmap_695001601_695260801_4FGL_J0851.5+5528_daily_bin1758.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=132.88 yref=55.4794 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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362170/ft1_filtered_4FGL_J0851.5+5528_daily_bin1758.fits scfile=/scratch/kocevski/362170/ft2_4FGL_J0851.5+5528_daily_bin1758.fits outfile=/scratch/kocevski/362170/cmap_HighResolution_695001601_695260801_4FGL_J0851.5+5528_daily_bin1758.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=132.88 yref=55.4794 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362170/ft1_filtered_4FGL_J0851.5+5528_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/362170/ft2_4FGL_J0851.5+5528_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362170/Model_4FGL_J0851.5+5528_daily_bin1758.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/362170/ft1_filtered_4FGL_J0851.5+5528_daily_bin1758.fits......................!
real 38.79
user 37.35
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/362170/ft1_filtered_4FGL_J0851.5+5528_daily_bin1758.fits', '/scratch/kocevski/362170/ft2_4FGL_J0851.5+5528_daily_bin1758.fits', expMap='/scratch/kocevski/362170/expmap_695001601_695260801_4FGL_J0851.5+5528_daily_bin1758.fits', expCube='/scratch/kocevski/362170/ltcube_695001601_695260801_4FGL_J0851.5+5528_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/362170/Model_4FGL_J0851.5+5528_daily_bin1758.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0851.5+5528'

4FGL J0851.5+5528
   Spectrum: PowerLaw
354    Prefactor:  3.870e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
355        Index:  2.219e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
356        Scale:  1.239e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/362170/ft1_filtered_4FGL_J0851.5+5528_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/362170/ft2_4FGL_J0851.5+5528_daily_bin1758.fits
Exposure map: /scratch/kocevski/362170/expmap_695001601_695260801_4FGL_J0851.5+5528_daily_bin1758.fits
Exposure cube: /scratch/kocevski/362170/ltcube_695001601_695260801_4FGL_J0851.5+5528_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/362170/Model_4FGL_J0851.5+5528_daily_bin1758.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) = 2921.94223402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44261E-02   1.0000          .0000       .10000E+07
     2 'norm      '    9.5326       1.0000          .0000       .10000E+07
     3 'Prefactor '    747.25       1.0000          .0000       .10000E+07
     4 'norm      '    .88046E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    70.083       1.0000          .0000       .10000E+07
     6 'norm      '    .16973E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .10223       1.0000          .0000       .10000E+07
     8 'norm      '    .89896E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .22977E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .33463E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    6.4236       1.0000          .0000       .10000E+07
    12 'Prefactor '    .23483E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .78673E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .37835E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .27435E-03   1.0000          .0000       .10000E+07
    16 'norm      '    19.885       1.0000          .0000       .10000E+07
    17 'Prefactor '    31.014       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10844       1.0000          .0000       .10000E+07
    19 'norm      '    .34567E-05   1.0000          .0000       .10000E+07
    20 'norm      '    1.4731       1.0000          .0000       .10000E+07
    21 'Prefactor '    6.8716       1.0000          .0000       .10000E+07
    22 'Prefactor '    .24554E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .36554E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    28.680       1.0000          .0000       .10000E+07
    25 'Prefactor '    5.2414       1.0000          .0000       .10000E+07
    26 'Prefactor '    .20230E-04   1.0000          .0000       .10000E+07
    27 'norm      '    14.855       1.0000          .0000       .10000E+07
    28 'Prefactor '    31.524       1.0000          .0000       .10000E+07
    29 'norm      '    1.3045       1.0000          .0000       .10000E+07
    30 'Prefactor '    .89181E-04   1.0000          .0000       .10000E+07
    31 'Prefactor '    1.2975       1.0000          .0000       .10000E+07
    32 'Normalizat'    .38154       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1058       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2921.928     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     3600 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        424.40       -.10981E-06** at limit **
   2  norm          9.6079        7.7330       -.99835E-08    .13100E-03
   3  Prefactor     698.56        706.92        .22712E-08    .20983E-04
   4  norm          .27756E-09    114.61        .32247E-06** at limit **
   5  Prefactor     69.683        40.907       -.30790E-07    .14801E-03
   6  norm           .0000        1.7594        .10867E-07** at limit **
   7  norm          .84983E-01    492.54        .22567E-05** at limit **
   8  norm           .0000        5.2207        .63617E-08** at limit **
   9  Prefactor      .0000        3.1739       -.54050E-08** at limit **
  10  Prefactor      .0000        14.237       -.50803E-07** at limit **
  11  Prefactor     6.5492        16.357       -.74918E-07    .32285E-04
  12  Prefactor      .0000        24.548        .15939E-07** at limit **
  13  Prefactor      .0000        12.198        .20020E-08** at limit **
  14  Prefactor      .0000        13.895        .72341E-07** at limit **
  15  norm           .0000        18.288       -.60917E-09** at limit **
  16  norm          20.095        19.159        .71236E-07   -.11208E-03
  17  Prefactor     31.178        40.614        .46693E-07    .13177E-04
  18  Prefactor      .0000        36.008        .28666E-07** at limit **
  19  norm           .0000        .94145        .17166E-08** at limit **
  20  norm          1.4699        .98079        .34152E-08   -.11246E-03
  21  Prefactor     6.9187        6.6698        .97020E-08    .40376E-04
  22  Prefactor      .0000        40.505        .20341E-06** at limit **
  23  Prefactor      .0000        14.671       -.33556E-07** at limit **
  24  Prefactor     28.500        23.426       -.18877E-07    .71233E-04
  25  Prefactor     5.1906        9.8571        .53799E-07    .62523E-04
  26  Prefactor      .0000        3.0286        .32308E-08** at limit **
  27  norm          14.905        14.134        .64110E-07   -.39726E-04
  28  Prefactor     30.985        63.355       -.24012E-06    .51172E-04
  29  norm          1.3069        .63963       -.23145E-08    .21139E-02
  30  Prefactor      .0000        2.2909       -.19965E-08** at limit **
  31  Prefactor     .22204E-09    1104.6       -.22079E-05** at limit **
  32  Normalizat    .38723        .30832       -.27526E-05    .23451E-04
  33  Prefactor     1.1037        .23880        .59828E-06    .22050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 9.60795
  Prefactor  = 698.558
  norm       = 2.77556e-10
  Prefactor  = 69.6832
  norm       = 0
  norm       = 0.0849826
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 6.54919
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 20.0953
  Prefactor  = 31.1779
  Prefactor  = 0
  norm       = 0
  norm       = 1.4699
  Prefactor  = 6.91872
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 28.5003
  Prefactor  = 5.19055
  Prefactor  = 0
  norm       = 14.9053
  Prefactor  = 30.9854
  norm       = 1.30694
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  Normalizat = 0.387226
  Prefactor  = 1.10372
 **********
 **   18 **HESSE 
 **********

 FCN=   2921.928     FROM HESSE     STATUS=OK           773 CALLS     4373 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        429.28        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.6079        7.7330        .32434E-03   -1.5646    
   3  Prefactor     698.56        706.47        .36596E-04   -1.5179    
   4  norm          .27756E-09    123.65        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     69.683        41.131        .11946E-03   -1.5541    
   6  norm           .0000        1.7533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .84983E-01    19.060        .71746E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        5.3045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.0841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        14.233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.5492        16.319        .39577E-03   -1.5657    
  12  Prefactor      .0000        24.625        .16818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        12.240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        13.900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        18.433        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.095        19.206        .22433E-03   -1.5618    
  17  Prefactor     31.178        41.025        .17959E-03   -1.5596    
  18  Prefactor      .0000        35.860        .13708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .93698        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.4699        .98939        .88479E-03   -1.5684    
  21  Prefactor     6.9187        6.7519        .38250E-03   -1.5655    
  22  Prefactor      .0000        40.181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        14.282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     28.500        23.529        .18676E-03   -1.5601    
  25  Prefactor     5.1906        10.041        .43882E-03   -1.5662    
  26  Prefactor      .0000        3.0185        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          14.905        14.102        .25961E-03   -1.5631    
  28  Prefactor     30.985        63.775        .17813E-03   -1.5597    
  29  norm          1.3069        .64689        .63948E-03   -1.5685    
  30  Prefactor      .0000        2.2893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .22204E-09    80.599        .12384E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .38723        .31778        .84180E-01   -1.1797    
  33  Prefactor     1.1037        .23274        .37370E-01   -.89348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48371e-10
Minuit parameter uncertainties:
  1  0.000107905
  2  7.733
  3  706.551
  4  0.00038291
  5  41.1307
  6  5.8325e-07
  7  2.54543
  8  1.41176e-06
  9  3.37142e-07
  10  1.92398e-05
  11  16.319
  12  3.11235e-06
  13  4.9911e-06
  14  1.6986e-05
  15  2.50157e-06
  16  19.2058
  17  41.0258
  18  1.69606e-05
  19  2.76077e-09
  20  0.989389
  21  6.75187
  22  2.37491e-05
  23  1.04853e-05
  24  23.529
  25  10.0413
  26  1.27911e-06
  27  14.1024
  28  63.7766
  29  0.646888
  30  8.31099e-07
  31  0.000276323
  32  0.319271
  33  0.232955
Done.

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

Extracting fit parameters...

4FGL J0851.5+5528
   Spectrum: PowerLaw
354    Prefactor:  3.118e+01  4.103e+01  0.000e+00  1.000e+06 ( 1.000e-13)
355        Index:  2.219e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
356        Scale:  1.239e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  1.104e+00  2.330e-01  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  3.872e-01  3.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.77
Ra Dec: 132.880 55.479
Photon Flux Upper Limit: 2.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.83e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362170/likelihoodResults_695001601_695260801_4FGL_J0851.5+5528_daily_bin1758.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) = 2920.4484745
delta logL = 1.47992947351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2920.29952327
delta logL = 1.62888070151

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25069E-01   1.0000          .0000       .10000E+07
     2 'Index     '    6.1048       1.0000          .0000       10.000    
     3 'Normalizat'    .21317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2237       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2920.300     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      357 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24975E-01    .27566        .11035E-03** at limit **
   2  Index         6.1067        2.5545        .59266E-01    .90497E-04
   3  Normalizat    .21290        .89561E-01    .11304        .74374E-04
   4  Prefactor     1.2241        .81768E-01    .34092E-01   -.68531E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0249752
  Index      = 6.10668
  Normalizat = 0.212899
  Prefactor  = 1.22409
 **********
 **   18 **HESSE 
 **********

 FCN=   2920.300     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      388 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24975E-01    .41427        .48013E-06   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.1067        3.1856        .25187E-02    .22318    
   3  Normalizat    .21290        .23858        .49904E-03   -1.2848    
   4  Prefactor     1.2241        .21346        .19906E-03   -.85593    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.54603e-08
Minuit parameter uncertainties:
  1  0.203436
  2  3.4715
  3  0.239735
  4  0.213615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362170': 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): 102
logL (Free Index) = 2920.29952146
delta logL = 1.62888251793

Extracting fit parameters...

4FGL J0851.5+5528
   Spectrum: PowerLaw
354    Prefactor:  2.498e-02  2.034e-01  0.000e+00  1.000e+06 ( 1.000e-13)
355        Index:  6.107e+00  3.472e+00  0.000e+00  1.000e+01 (-1.000e+00)
356        Scale:  1.239e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  1.224e+00  2.136e-01  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  2.129e-01  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.67
Ra Dec: 132.880 55.479
Photon Index (Free Index): 6.11 +/- 3.47
Photon Flux (Free Index): 2.33e-07 +/- 1.39e-07
Energy Flux (Free Index): 2.89e-05 +/- 1.85e-05

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/362170/cmap_HighResolution_695001601_695260801_4FGL_J0851.5+5528_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-02', comment='SUCCESS', energy_flux2='2.89e-05', dlogl='1.63e+00', photon_flux2='2.33e-07', job_status='DONE', time_completed='2023-01-13 00:42:48.643526', photon_index_error2='3.47', photon_index2='6.11', ts='0.77', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='2.40e-07', energy_flux_error2='1.85e-05', EG='0.39', time_epoch_completed='1673599368.64', return_code='0', job_id='362170', GAL2='1.22', EG2='0.21', return_code2='102', photon_flux_error2='1.39e-07', ts2='4.67', photon_index='2.22' WHERE bin_id='1758' AND source_name='4FGL J0851.5+5528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:42:48 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 362170: <4FGL_J0851.5+5528_daily_bin1758> in cluster <slac> Done

Job <4FGL_J0851.5+5528_daily_bin1758> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jan 13 00:30:17 2023
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:30:59 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:30:59 2023
Terminated at Fri Jan 13 00:42:49 2023
Results reported at Fri Jan 13 00:42:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0851.5+5528_daily_bin1758 132.88 55.4794 695001601 695260801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0851.5+5528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   648.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            752 sec.

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

