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 35 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0851.5+5528_monthly_bin168
RA = 132.88, Dec = 55.4794
tmin = 672451201, tmax = 675043201
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='625864', job_status='RUN', time_executed='2022-05-24 02:39:29.884725', time_epoch_executed='1653385169.88' WHERE source_name='4FGL J0851.5+5528' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625864

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625864/ft1_4FGL_J0851.5+5528_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625864/ft2_4FGL_J0851.5+5528_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625864/ft1_4FGL_J0851.5+5528_monthly_bin168.fits outfile=/scratch/kocevski/625864/ft1_filteredMKT_4FGL_J0851.5+5528_monthly_bin168.fits ra=132.88 dec=55.4794 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.70
user 27.91
sys 0.70

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/625864/ft2_4FGL_J0851.5+5528_monthly_bin168.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/625864/ft1_filteredMKT_4FGL_J0851.5+5528_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/625864/ft1_filtered_4FGL_J0851.5+5528_monthly_bin168.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.85
user 0.66
sys 0.19

Number of photons that the gtmktime cut: 9685

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625864/ft1_filtered_4FGL_J0851.5+5528_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/625864/ft2_4FGL_J0851.5+5528_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/625864/ltcube_672451201_675043201_4FGL_J0851.5+5528_monthly_bin168.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/625864/ft2_4FGL_J0851.5+5528_monthly_bin168.fits
.....................!
real 137.55
user 136.69
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625864/ft1_filtered_4FGL_J0851.5+5528_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/625864/ft2_4FGL_J0851.5+5528_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/625864/ltcube_672451201_675043201_4FGL_J0851.5+5528_monthly_bin168.fits outfile=/scratch/kocevski/625864/expmap_672451201_675043201_4FGL_J0851.5+5528_monthly_bin168.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/625864/ltcube_672451201_675043201_4FGL_J0851.5+5528_monthly_bin168.fits
.....................!
real 193.50
user 186.56
sys 5.13

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/625864/ft1_filtered_4FGL_J0851.5+5528_monthly_bin168.fits scfile=/scratch/kocevski/625864/ft2_4FGL_J0851.5+5528_monthly_bin168.fits outfile=/scratch/kocevski/625864/cmap_672451201_675043201_4FGL_J0851.5+5528_monthly_bin168.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.80
user 0.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625864/ft1_filtered_4FGL_J0851.5+5528_monthly_bin168.fits scfile=/scratch/kocevski/625864/ft2_4FGL_J0851.5+5528_monthly_bin168.fits outfile=/scratch/kocevski/625864/cmap_HighResolution_672451201_675043201_4FGL_J0851.5+5528_monthly_bin168.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.81
user 0.63
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/625864/ft1_filtered_4FGL_J0851.5+5528_monthly_bin168.fits', '/scratch/kocevski/625864/ft2_4FGL_J0851.5+5528_monthly_bin168.fits', expMap='/scratch/kocevski/625864/expmap_672451201_675043201_4FGL_J0851.5+5528_monthly_bin168.fits', expCube='/scratch/kocevski/625864/ltcube_672451201_675043201_4FGL_J0851.5+5528_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/625864/Model_4FGL_J0851.5+5528_monthly_bin168.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  1.000e-04  1.000e+04 ( 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/625864/ft1_filtered_4FGL_J0851.5+5528_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/625864/ft2_4FGL_J0851.5+5528_monthly_bin168.fits
Exposure map: /scratch/kocevski/625864/expmap_672451201_675043201_4FGL_J0851.5+5528_monthly_bin168.fits
Exposure cube: /scratch/kocevski/625864/ltcube_672451201_675043201_4FGL_J0851.5+5528_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/625864/Model_4FGL_J0851.5+5528_monthly_bin168.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) = 103991.064464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4060       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5162       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2697       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5896       1.0000         .10000E-03   10000.    
     6 'norm      '    .76598       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1062       1.0000         .10000E-03   10000.    
     8 'norm      '    .46128       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3395       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18246       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0174       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9001       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8117       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .82919       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9090       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1207       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6823       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4014       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5432       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .82616       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11519E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .14339       1.0000         .10000E-03   10000.    
    24 'norm      '    1.0129       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .35127       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.3752       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.5515       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .42089       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .35994       1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.0786       1.0000         .10000E-03   10000.    
    32 'norm      '    .99454       1.0000         .10000E-03   10000.    
    33 'Prefactor '    4.9870       1.0000         .10000E-03   10000.    
    34 'norm      '    1.4623       1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    37 'Normalizat'    1.1235       1.0000         .10000E-01   10.000    
    38 'Prefactor '    1.0445       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=   103991.0     FROM MIGRAD    STATUS=CONVERGED     96 CALLS     4138 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4178        1.2216       -.22152E-06    .33197E-02
   2  norm          .10000E-03    .18581        .46622E-07** at limit **
   3  Prefactor     2.5153        1.0215        .44122E-08   -.17047E-03
   4  norm          1.2697        .53303        .58606E-08   -.14318E-03
   5  Prefactor     5.5967        1.0458       -.91384E-07    .15207E-02
   6  norm          .76595        .54998       -.67110E-08   -.30772E-03
   7  Prefactor     1.1031        1.2287       -.25388E-06    .55068E-03
   8  norm          .46129        .49707        .12601E-06    .90911E-03
   9  norm          2.3395        .42536       -.77021E-08   -.35164E-03
  10  Prefactor     .18238        .24872        .87549E-08   -.15151E-03
  11  Prefactor     4.0181        1.0723        .13598E-06   -.14049E-03
  12  Prefactor     2.9016        1.4025        .33314E-06    .17689E-02
  13  Prefactor     1.8109        1.5861       -.30811E-06   -.17870E-02
  14  Prefactor     .82934        .78299        .87135E-07    .40030E-03
  15  Prefactor     6.9003        1.1460        .15778E-06   -.32448E-02
  16  norm          3.1204        1.1271       -.19370E-06   -.23955E-04
  17  norm          2.6821        1.0913       -.27157E-07    .64269E-03
  18  Prefactor     2.3959        1.9441       -.11026E-06    .87981E-03
  19  Prefactor     1.5419        1.2238        .30136E-06   -.35476E-04
  20  Prefactor     .82616        .54364        .12563E-07   -.11025E-03
  21  Prefactor     .10000E-03    3.5421        .11289E-05** at limit **
  22  Prefactor     .10000E-03    20.858        .17243E-05** at limit **
  23  norm          .14339        .99879E-01   -.15516E-07   -.66295E-03
  24  norm          1.0129        .20556       -.32938E-07   -.29002E-02
  25  Prefactor     .35126        .63984        .50516E-07   -.32798E-03
  26  Prefactor     6.3749        1.5529        .35563E-06   -.26614E-02
  27  Prefactor     2.5516        .86087       -.80774E-07   -.64638E-03
  28  Prefactor     .10000E-03    1.1454        .42264E-06** at limit **
  29  Prefactor     .42096        .73832        .36171E-06   -.24339E-04
  30  Prefactor     .35962        .64632        .95759E-07   -.27064E-03
  31  Prefactor     2.0778        1.4131        .88175E-07    .63432E-03
  32  norm          .99466        .95616        .88875E-07    .44598E-03
  33  Prefactor     4.9827        1.1152        .17357E-06   -.29951E-02
  34  norm          1.4624        .14314        .15224E-07    .41413E-02
  35  Prefactor     .10000E-03    1.9161        .13455E-06** at limit **
  36  Prefactor     .10000E-03    2.8953        .48922E-06** at limit **
  37  Normalizat    1.1235        .52845E-01    .22041E-06   -.15819E-03
  38  Prefactor     1.0445        .44399E-01   -.42204E-06   -.10123E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.41779
  norm       = 0.0001
  Prefactor  = 2.51532
  norm       = 1.26975
  Prefactor  = 5.59673
  norm       = 0.765951
  Prefactor  = 1.10315
  norm       = 0.461285
  norm       = 2.33954
  Prefactor  = 0.182384
  Prefactor  = 4.0181
  Prefactor  = 2.90162
  Prefactor  = 1.8109
  Prefactor  = 0.829342
  Prefactor  = 6.90034
  norm       = 3.1204
  norm       = 2.68209
  Prefactor  = 2.39589
  Prefactor  = 1.54191
  Prefactor  = 0.826164
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  norm       = 0.143392
  norm       = 1.01292
  Prefactor  = 0.351259
  Prefactor  = 6.37486
  Prefactor  = 2.55162
  Prefactor  = 0.0001
  Prefactor  = 0.420959
  Prefactor  = 0.359619
  Prefactor  = 2.07775
  norm       = 0.994655
  Prefactor  = 4.98274
  norm       = 1.46235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12354
  Prefactor  = 1.04453
 **********
 **   18 **HESSE 
 **********

 FCN=   103991.0     FROM HESSE     STATUS=OK          1036 CALLS     5174 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4178        4.6683        .43208E-02   -1.5242    
   2  norm          .10000E-03    .25705E-01    .27548E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5153        3.0170        .64390E-02   -1.5391    
   4  norm          1.2697        .54653        .98732E-02   -1.5483    
   5  Prefactor     5.5967        3.4602        .42481E-02   -1.5235    
   6  norm          .76595        .57102        .12312E-01   -1.5533    
   7  Prefactor     1.1031        3.3441        .11256E-01   -1.5498    
   8  norm          .46129        .48324        .54931E-01   -1.5572    
   9  norm          2.3395        .43047        .67015E-02   -1.5402    
  10  Prefactor     .18238        .25884        .98973E-02   -1.5623    
  11  Prefactor     4.0181        2.0888        .50300E-02   -1.5307    
  12  Prefactor     2.9016        1.5270        .59652E-02   -1.5367    
  13  Prefactor     1.8109        1.7216        .77596E-02   -1.5439    
  14  Prefactor     .82934        .78790        .12548E-01   -1.5526    
  15  Prefactor     6.9003        4.6637        .38159E-02   -1.5183    
  16  norm          3.1204        1.2362        .57378E-02   -1.5355    
  17  norm          2.6821        1.4031        .62199E-02   -1.5380    
  18  Prefactor     2.3959        2.0234        .66057E-02   -1.5398    
  19  Prefactor     1.5419        1.2791        .85783E-02   -1.5460    
  20  Prefactor     .82616        .56907        .12537E-01   -1.5526    
  21  Prefactor     .10000E-03    3.5322        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.2723        .18378       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .14339        .11884        .18492E-01   -1.5632    
  24  norm          1.0129        .21860        .13056E-01   -1.5507    
  25  Prefactor     .35126        .48093        .55657E-01   -1.5589    
  26  Prefactor     6.3749        2.0831        .39741E-02   -1.5203    
  27  Prefactor     2.5516        .87153        .63904E-02   -1.5388    
  28  Prefactor     .10000E-03    1.1456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .42096        .84065        .10035       -1.5578    
  30  Prefactor     .35962        .90580        .66171E-01   -1.5588    
  31  Prefactor     2.0778        1.4980        .71614E-02   -1.5420    
  32  norm          .99466        1.1751        .71357E-01   -1.5509    
  33  Prefactor     4.9827        7.7961        .45020E-02   -1.5261    
  34  norm          1.4624        .14379        .83364E-02   -1.5466    
  35  Prefactor     .10000E-03    .24889        .54202E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10000E-03    2.9077        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Normalizat    1.1235        .49517E-01    .58889E-01   -.88999    
  38  Prefactor     1.0445        .39907E-01    .40241E-01   -.91260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71221e-06
Minuit parameter uncertainties:
  1  4.66858
  2  3.42732e-07
  3  3.01715
  4  0.546535
  5  3.46032
  6  0.571022
  7  3.34462
  8  0.483249
  9  0.430474
  10  0.258839
  11  2.08886
  12  1.52701
  13  1.72162
  14  0.787908
  15  4.66397
  16  1.23626
  17  1.40316
  18  2.02344
  19  1.27914
  20  0.569072
  21  0.000155754
  22  0.000164237
  23  0.11884
  24  0.218595
  25  0.480939
  26  2.08311
  27  0.871536
  28  1.96537e-05
  29  0.84067
  30  0.905838
  31  1.49803
  32  1.17515
  33  7.79767
  34  0.143794
  35  3.26524e-06
  36  1.88769e-05
  37  0.0495191
  38  0.0399081
Done.

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

Extracting fit parameters...

4FGL J0851.5+5528
   Spectrum: PowerLaw
354    Prefactor:  2.396e+00  2.023e+00  1.000e-04  1.000e+04 ( 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.045e+00  3.991e-02  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:  1.124e+00  4.952e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.91
Ra Dec: 132.880 55.479
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 5.24e-09 +/- 4.42e-09
Energy Flux (Fixed Index): 2.27e-06 +/- 1.92e-06

TS (Fixed Index): 2.91
Ra Dec: 132.880 55.479
Photon Flux Upper Limit: 1.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625864/likelihoodResults_672451201_675043201_4FGL_J0851.5+5528_monthly_bin168.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) = 103990.635244
delta logL = 0.352589089234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 103990.629249
delta logL = 0.358583488269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1512       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7402       1.0000          .0000       10.000    
     3 'Normalizat'    1.1263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0439       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=   103990.6     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      266 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1476        2.2577        .28092E-03   -.44678E-04
   2  Index         1.7392        .55532        .25857E-01   -.69399E-04
   3  Normalizat    1.1262        .49492E-01    .26016E-03   -.53837E-04
   4  Prefactor     1.0440        .43969E-01    .23774E-03    .13925E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.14756
  Index      = 1.73919
  Normalizat = 1.12616
  Prefactor  = 1.04401
 **********
 **   18 **HESSE 
 **********

 FCN=   103990.6     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1476        2.4241        .11237E-04   -1.5415    
   2  Index         1.7392        .59708        .10343E-02   -.71043    
   3  Normalizat    1.1262        .49526E-01    .10406E-04   -.88916    
   4  Prefactor     1.0440        .44005E-01    .95095E-05   -.91276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50718e-12
Minuit parameter uncertainties:
  1  2.42424
  2  0.59958
  3  0.0495284
  4  0.0440062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625864': 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) = 103990.629245
delta logL = 0.358588015908

Extracting fit parameters...

4FGL J0851.5+5528
   Spectrum: PowerLaw
354    Prefactor:  2.148e+00  2.424e+00  1.000e-04  1.000e+04 ( 1.000e-13)
355        Index:  1.739e+00  5.996e-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.044e+00  4.401e-02  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:  1.126e+00  4.953e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.62
Ra Dec: 132.880 55.479
Photon Index (Free Index): 1.74 +/- 0.60
Photon Flux (Free Index): 2.30e-09 +/- 3.81e-09
Energy Flux (Free Index): 3.32e-06 +/- 3.46e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/625864/cmap_HighResolution_672451201_675043201_4FGL_J0851.5+5528_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-03', comment='SUCCESS', photon_flux='5.24e-09', energy_flux2='3.32e-06', photon_flux_error='4.42e-09', dlogl='3.59e-01', energy_flux='2.27e-06', photon_flux2='2.30e-09', job_status='DONE', time_completed='2022-05-24 07:03:20.512478', photon_index_error2='0.60', photon_index2='1.74', ts='2.91', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.51e-08', energy_flux_error2='3.46e-06', EG='1.12', time_epoch_completed='1653401000.51', return_code='0', job_id='625864', GAL2='1.04', EG2='1.13', return_code2='0', energy_flux_error='1.92e-06', photon_flux_error2='3.81e-09', ts2='3.62', photon_index='2.22' WHERE bin_id='168' AND source_name='4FGL J0851.5+5528' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 07:03:20 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 625864: <4FGL_J0851.5+5528_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0851.5+5528_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 02:35:36 2022
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:38:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:38:45 2022
Terminated at Tue May 24 07:03:21 2022
Results reported at Tue May 24 07:03:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0851.5+5528_monthly_bin168 132.88 55.4794 672451201 675043201 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 :                                   15763.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             482.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   15876 sec.
    Turnaround time :                            16065 sec.

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

