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


Performing analysis on: 4FGL_J0851.5+5528_daily_bin1754
RA = 132.88, Dec = 55.4794
tmin = 693964801, tmax = 694224001
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='639292', job_status='RUN', time_executed='2023-01-01 00:59:25.408526', time_epoch_executed='1672563565.41' WHERE source_name='4FGL J0851.5+5528' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639292

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639292/ft1_4FGL_J0851.5+5528_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639292/ft2_4FGL_J0851.5+5528_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639292/ft1_4FGL_J0851.5+5528_daily_bin1754.fits outfile=/scratch/kocevski/639292/ft1_filteredMKT_4FGL_J0851.5+5528_daily_bin1754.fits ra=132.88 dec=55.4794 rad=12.0 tmin=693964801.0 tmax=694224001.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.98
user 3.73
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639292/ft2_4FGL_J0851.5+5528_daily_bin1754.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/639292/ft1_filteredMKT_4FGL_J0851.5+5528_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/639292/ft1_filtered_4FGL_J0851.5+5528_daily_bin1754.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: 328

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639292/ft1_filtered_4FGL_J0851.5+5528_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/639292/ft2_4FGL_J0851.5+5528_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/639292/ltcube_693964801_694224001_4FGL_J0851.5+5528_daily_bin1754.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/639292/ft2_4FGL_J0851.5+5528_daily_bin1754.fits
.....................!
real 15.99
user 15.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639292/ft1_filtered_4FGL_J0851.5+5528_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/639292/ft2_4FGL_J0851.5+5528_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/639292/ltcube_693964801_694224001_4FGL_J0851.5+5528_daily_bin1754.fits outfile=/scratch/kocevski/639292/expmap_693964801_694224001_4FGL_J0851.5+5528_daily_bin1754.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/639292/ltcube_693964801_694224001_4FGL_J0851.5+5528_daily_bin1754.fits
.....................!
real 192.66
user 187.17
sys 5.04

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/639292/ft1_filtered_4FGL_J0851.5+5528_daily_bin1754.fits scfile=/scratch/kocevski/639292/ft2_4FGL_J0851.5+5528_daily_bin1754.fits outfile=/scratch/kocevski/639292/cmap_693964801_694224001_4FGL_J0851.5+5528_daily_bin1754.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639292/ft1_filtered_4FGL_J0851.5+5528_daily_bin1754.fits scfile=/scratch/kocevski/639292/ft2_4FGL_J0851.5+5528_daily_bin1754.fits outfile=/scratch/kocevski/639292/cmap_HighResolution_693964801_694224001_4FGL_J0851.5+5528_daily_bin1754.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.59
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639292/ft1_filtered_4FGL_J0851.5+5528_daily_bin1754.fits', '/scratch/kocevski/639292/ft2_4FGL_J0851.5+5528_daily_bin1754.fits', expMap='/scratch/kocevski/639292/expmap_693964801_694224001_4FGL_J0851.5+5528_daily_bin1754.fits', expCube='/scratch/kocevski/639292/ltcube_693964801_694224001_4FGL_J0851.5+5528_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639292/Model_4FGL_J0851.5+5528_daily_bin1754.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/639292/ft1_filtered_4FGL_J0851.5+5528_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/639292/ft2_4FGL_J0851.5+5528_daily_bin1754.fits
Exposure map: /scratch/kocevski/639292/expmap_693964801_694224001_4FGL_J0851.5+5528_daily_bin1754.fits
Exposure cube: /scratch/kocevski/639292/ltcube_693964801_694224001_4FGL_J0851.5+5528_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639292/Model_4FGL_J0851.5+5528_daily_bin1754.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) = 3529.35401124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57672E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .63397       1.0000          .0000       .10000E+07
     3 'Prefactor '    .27260E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .24724       1.0000          .0000       .10000E+07
     5 'Prefactor '    250.88       1.0000          .0000       .10000E+07
     6 'norm      '    .14533E-06   1.0000          .0000       .10000E+07
     7 'norm      '    2.0640       1.0000          .0000       .10000E+07
     8 'norm      '    .35705E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .93869E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .33851E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    27.725       1.0000          .0000       .10000E+07
    12 'Prefactor '    27.454       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.0509       1.0000          .0000       .10000E+07
    14 'Prefactor '    .33719       1.0000          .0000       .10000E+07
    15 'norm      '    .11670E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .10102E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.7091       1.0000          .0000       .10000E+07
    18 'Prefactor '    10.223       1.0000          .0000       .10000E+07
    19 'norm      '    .74385E-08   1.0000          .0000       .10000E+07
    20 'norm      '    .42436E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    10.132       1.0000          .0000       .10000E+07
    22 'Prefactor '    6.4848       1.0000          .0000       .10000E+07
    23 'Prefactor '    .92977E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    8.7816       1.0000          .0000       .10000E+07
    25 'Prefactor '    2.2050       1.0000          .0000       .10000E+07
    26 'Prefactor '    22.626       1.0000          .0000       .10000E+07
    27 'norm      '    .35280E-02   1.0000          .0000       .10000E+07
    28 'Prefactor '    .22856E-02   1.0000          .0000       .10000E+07
    29 'norm      '    1.8628       1.0000          .0000       .10000E+07
    30 'Prefactor '    .19376E-02   1.0000          .0000       .10000E+07
    31 'Prefactor '    .64813       1.0000          .0000       .10000E+07
    32 'Normalizat'    .43044       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2496       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=   3529.327     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     3260 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70388E-07    4.7311       -.26888E-07** at limit **
   2  norm          .63282        .69937        .62736E-09    .19991E-02
   3  Prefactor     .21827E-06    7.3735       -.11929E-08** at limit **
   4  norm          .26351        4.2000        .11928E-06    .22864E-02
   5  Prefactor     250.60        19.283       -.44588E-07    .43414    
   6  norm           .0000        1.9415        .42053E-07** at limit **
   7  norm          2.0668        4.1148       -.93101E-07   -.15880E-02
   8  norm           .0000        .80807        .90150E-08** at limit **
   9  Prefactor     .55511E-10    .67391        .57123E-07** at limit **
  10  Prefactor     .44409E-09    3.9672       -.51983E-07** at limit **
  11  Prefactor     27.724        1.1189        .22611E-09   -.25144E-01
  12  Prefactor     27.403        5.8651        .26186E-07    .15560    
  13  Prefactor     8.0603        2.0346       -.27067E-08   -.16362E-01
  14  Prefactor     .26454E-04    364.33       -.10133E-05** at limit **
  15  norm          .55511E-10    2.3231       -.10271E-06** at limit **
  16  norm          .22204E-09    2.2821       -.48525E-07** at limit **
  17  Prefactor     7.7439        1.1939       -.16355E-08    .37135E-02
  18  Prefactor     9.0045        15.357        .56263E-07   -.46818E-01
  19  norm           .0000        .61965        .19474E-07** at limit **
  20  norm           .0000        2.3122        .33958E-07** at limit **
  21  Prefactor     10.035        6.2212       -.22114E-08    .53340E-02
  22  Prefactor     6.6137        2.6670       -.29584E-07    .51248E-02
  23  Prefactor     .22204E-09    3.5104       -.50029E-07** at limit **
  24  Prefactor     8.3761        5.6570        .74028E-07    .13206E-01
  25  Prefactor     2.1834        8.4615        .23978E-07    .26883E-01
  26  Prefactor     22.719        1.7394       -.33311E-08    .11655E-01
  27  norm          .30531E-08    7.3882       -.13895E-06** at limit **
  28  Prefactor     .46796E-07    12.150       -.10872E-06** at limit **
  29  norm          1.8631        .88735       -.43474E-08    .35739E-03
  30  Prefactor     .22204E-09    5.8419       -.47833E-07** at limit **
  31  Prefactor     .48348E-05    104.68        .77033E-06** at limit **
  32  Normalizat    .43504        .26332        .37286E-05    .25404E-03
  33  Prefactor     1.2473        .23213        .20880E-06    .39625E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.03881e-08
  norm       = 0.63282
  Prefactor  = 2.1827e-07
  norm       = 0.263509
  Prefactor  = 250.596
  norm       = 0
  norm       = 2.06684
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 4.44089e-10
  Prefactor  = 27.7239
  Prefactor  = 27.4034
  Prefactor  = 8.06028
  Prefactor  = 2.64542e-05
  norm       = 5.55112e-11
  norm       = 2.22045e-10
  Prefactor  = 7.74395
  Prefactor  = 9.00446
  norm       = 0
  norm       = 0
  Prefactor  = 10.0349
  Prefactor  = 6.61375
  Prefactor  = 2.22045e-10
  Prefactor  = 8.37613
  Prefactor  = 2.18342
  Prefactor  = 22.7195
  norm       = 3.05311e-09
  Prefactor  = 4.67959e-08
  norm       = 1.86305
  Prefactor  = 2.22045e-10
  Prefactor  = 4.8348e-06
  Normalizat = 0.435044
  Prefactor  = 1.24735
 **********
 **   18 **HESSE 
 **********

 FCN=   3529.327     FROM HESSE     STATUS=OK           765 CALLS     4025 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70388E-07    11.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .63282        .70115        .66238E-03   -1.5692    
   3  Prefactor     .21827E-06    11.579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .26351        4.0101        .10989E-02   -1.5698    
   5  Prefactor     250.60        68.094        .63142E-04   -1.5391    
   6  norm           .0000        1.9332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0668        4.1584        .71892E-03   -1.5679    
   8  norm           .0000        .80544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    .67322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .44409E-09    3.9654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.724        11.128        .18995E-03   -1.5603    
  12  Prefactor     27.403        23.780        .19089E-03   -1.5603    
  13  Prefactor     8.0603        8.7923        .35312E-03   -1.5651    
  14  Prefactor     .26454E-04    437.53        .97157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55511E-10    2.3241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .22204E-09    2.2837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.7439        14.425        .36093E-03   -1.5652    
  18  Prefactor     9.0045        34.230        .31314E-03   -1.5648    
  19  norm           .0000        .61845        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        1.1629        .20207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.035        6.3001        .31455E-03   -1.5645    
  22  Prefactor     6.6137        18.286        .39387E-03   -1.5657    
  23  Prefactor     .22204E-09    3.5046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.3761        31.518        .33800E-03   -1.5650    
  25  Prefactor     2.1834        9.3593        .69254E-03   -1.5678    
  26  Prefactor     22.719        13.243        .21028E-03   -1.5613    
  27  norm          .30531E-08    7.4042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .46796E-07    12.734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.8631        .88827        .76311E-03   -1.5681    
  30  Prefactor     .22204E-09    5.8361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .48348E-05    123.42        .65022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .43504        .28355        .85573E-01   -1.1553    
  33  Prefactor     1.2473        .22707        .33551E-01   -.84886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45918e-06
Minuit parameter uncertainties:
  1  0.00182579
  2  0.701155
  3  0.00317968
  4  2.05591
  5  68.0943
  6  1.40819e-05
  7  4.15837
  8  1.55673e-06
  9  1.17405e-05
  10  8.37068e-05
  11  11.1284
  12  23.7796
  13  8.79228
  14  0.215187
  15  1.7715e-05
  16  4.39088e-05
  17  14.4254
  18  34.231
  19  3.37437e-06
  20  7.41526e-06
  21  6.30007
  22  18.2866
  23  5.51875e-05
  24  31.5182
  25  9.04111
  26  13.2431
  27  0.000299661
  28  0.00154356
  29  0.888274
  30  6.9888e-05
  31  0.0488559
  32  0.284496
  33  0.227252
Done.

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

Extracting fit parameters...

4FGL J0851.5+5528
   Spectrum: PowerLaw
354    Prefactor:  7.744e+00  1.443e+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.247e+00  2.273e-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:  4.350e-01  2.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 132.880 55.479
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639292/likelihoodResults_693964801_694224001_4FGL_J0851.5+5528_daily_bin1754.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) = 3529.26748548
delta logL = 0.0595829217882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3529.26556405
delta logL = 0.0615043533621

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.508       1.0000          .0000       .10000E+07
     2 'Index     '    1.8527       1.0000          .0000       10.000    
     3 'Normalizat'    .44068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2438       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3529.266     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      292 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.509        18.268        .12353E-04    .40907E-03
   2  Index         1.8526        .96048        .10674E-01    .10989E-04
   3  Normalizat    .44071        .25056        .37668E-03    .21459E-04
   4  Prefactor     1.2438        .22798        .20969E-03    .44610E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5086
  Index      = 1.85265
  Normalizat = 0.440713
  Prefactor  = 1.24381
 **********
 **   18 **HESSE 
 **********

 FCN=   3529.266     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.509        18.137        .49414E-06   -1.5643    
   2  Index         1.8526        .95392        .42695E-03   -.68087    
   3  Normalizat    .44071        .25059        .15067E-04   -1.1525    
   4  Prefactor     1.2438        .22802        .41938E-04   -.84993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10432e-11
Minuit parameter uncertainties:
  1  18.1372
  2  0.963769
  3  0.251228
  4  0.228201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639292': 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) = 3529.26556405
delta logL = 0.0615043605135

Extracting fit parameters...

4FGL J0851.5+5528
   Spectrum: PowerLaw
354    Prefactor:  1.051e+01  1.814e+01  0.000e+00  1.000e+06 ( 1.000e-13)
355        Index:  1.853e+00  9.638e-01  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.244e+00  2.282e-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:  4.407e-01  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.43
Ra Dec: 132.880 55.479

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/639292/cmap_HighResolution_693964801_694224001_4FGL_J0851.5+5528_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.70e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2023-01-01 01:11:10.348327', job_id='639292', GAL2='1.24', fit_tolerance='1e-08', EG2='0.44', EG='0.44', time_epoch_completed='1672564270.35', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='6.15e-02', ts2='0.56', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1754' AND source_name='4FGL J0851.5+5528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:11:10 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 639292: <4FGL_J0851.5+5528_daily_bin1754> in cluster <slac> Done

Job <4FGL_J0851.5+5528_daily_bin1754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan  1 00:55:17 2023
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 00:56:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 00:56:16 2023
Terminated at Sun Jan  1 01:11:11 2023
Results reported at Sun Jan  1 01:11:11 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0851.5+5528_daily_bin1754 132.88 55.4794 693964801 694224001 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 :                                   706.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            954 sec.

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

