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


Performing analysis on: 4FGL_J0113.4+4948_monthly_bin167
RA = 18.3682, Dec = 49.8054
tmin = 669859201, tmax = 672451201
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='877403', job_status='RUN', time_executed='2022-04-24 00:53:55.512141', time_epoch_executed='1650786835.51' WHERE source_name='4FGL J0113.4+4948' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877403

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877403/ft1_4FGL_J0113.4+4948_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877403/ft2_4FGL_J0113.4+4948_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877403/ft1_4FGL_J0113.4+4948_monthly_bin167.fits outfile=/scratch/kocevski/877403/ft1_filteredMKT_4FGL_J0113.4+4948_monthly_bin167.fits ra=18.3682 dec=49.8054 rad=12.0 tmin=669859201.0 tmax=672451201.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 38.18
user 37.21
sys 0.89

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/877403/ft2_4FGL_J0113.4+4948_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/877403/ft2_4FGL_J0113.4+4948_monthly_bin167.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/877403/ft1_filteredMKT_4FGL_J0113.4+4948_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/877403/ft1_filtered_4FGL_J0113.4+4948_monthly_bin167.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.86
user 0.65
sys 0.20

Number of photons that the gtmktime cut: 15037

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877403/ft1_filtered_4FGL_J0113.4+4948_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/877403/ft2_4FGL_J0113.4+4948_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/877403/ltcube_669859201_672451201_4FGL_J0113.4+4948_monthly_bin167.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/877403/ft2_4FGL_J0113.4+4948_monthly_bin167.fits
.....................!
real 119.35
user 118.32
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877403/ft1_filtered_4FGL_J0113.4+4948_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/877403/ft2_4FGL_J0113.4+4948_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/877403/ltcube_669859201_672451201_4FGL_J0113.4+4948_monthly_bin167.fits outfile=/scratch/kocevski/877403/expmap_669859201_672451201_4FGL_J0113.4+4948_monthly_bin167.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/877403/ltcube_669859201_672451201_4FGL_J0113.4+4948_monthly_bin167.fits
.....................!
real 193.00
user 186.97
sys 5.67

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 184 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0113.4+4948 @ 18.3682 49.8054

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/877403/ft1_filtered_4FGL_J0113.4+4948_monthly_bin167.fits scfile=/scratch/kocevski/877403/ft2_4FGL_J0113.4+4948_monthly_bin167.fits outfile=/scratch/kocevski/877403/cmap_669859201_672451201_4FGL_J0113.4+4948_monthly_bin167.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=18.3682 yref=49.8054 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.62
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877403/ft1_filtered_4FGL_J0113.4+4948_monthly_bin167.fits scfile=/scratch/kocevski/877403/ft2_4FGL_J0113.4+4948_monthly_bin167.fits outfile=/scratch/kocevski/877403/cmap_HighResolution_669859201_672451201_4FGL_J0113.4+4948_monthly_bin167.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=18.3682 yref=49.8054 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 2.90
user 0.64
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877403/ft1_filtered_4FGL_J0113.4+4948_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/877403/ft2_4FGL_J0113.4+4948_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877403/Model_4FGL_J0113.4+4948_monthly_bin167.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/877403/ft1_filtered_4FGL_J0113.4+4948_monthly_bin167.fits.....................!
real 1767.86
user 1763.02
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/877403/ft1_filtered_4FGL_J0113.4+4948_monthly_bin167.fits', '/scratch/kocevski/877403/ft2_4FGL_J0113.4+4948_monthly_bin167.fits', expMap='/scratch/kocevski/877403/expmap_669859201_672451201_4FGL_J0113.4+4948_monthly_bin167.fits', expCube='/scratch/kocevski/877403/ltcube_669859201_672451201_4FGL_J0113.4+4948_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/877403/Model_4FGL_J0113.4+4948_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0113.4+4948'

4FGL J0113.4+4948
   Spectrum: LogParabola
222         norm:  2.121e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
223        alpha:  2.134e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
224         beta:  6.875e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
225           Eb:  9.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/877403/ft1_filtered_4FGL_J0113.4+4948_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/877403/ft2_4FGL_J0113.4+4948_monthly_bin167.fits
Exposure map: /scratch/kocevski/877403/expmap_669859201_672451201_4FGL_J0113.4+4948_monthly_bin167.fits
Exposure cube: /scratch/kocevski/877403/ltcube_669859201_672451201_4FGL_J0113.4+4948_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/877403/Model_4FGL_J0113.4+4948_monthly_bin167.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) = 152515.92451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33354       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .99516       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5050       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4184       1.0000         .10000E-03   10000.    
     6 'norm      '    .34672E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12458       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0728       1.0000         .10000E-03   10000.    
     9 'norm      '    9.7003       1.0000         .10000E-03   10000.    
    10 'norm      '    19.397       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7995       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5230       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8768       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2553       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0055       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2296       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6841       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21569       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1782       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98461       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   152514.9     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     2660 TOTAL
                     EDM=   .55E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33359        .29613         .0000        .21659E-01
   2  Prefactor     .99539        .76376         .0000        .24192E-01
   3  Prefactor     .10000E-03    1.5806         .0000    ** at limit **
   4  norm          1.5050        .89607         .0000        .35243E-02
   5  Prefactor     4.4181        9.0400         .0000        .27344E-03
   6  norm          .10000E-03    .53930         .0000    ** at limit **
   7  Prefactor     .12490        .94575         .0000        .53147    
   8  Prefactor     7.0726        3.1328         .0000        .23776E-02
   9  norm          9.7003        1.5882         .0000        .45440E-01
  10  norm          19.397        8.2008         .0000       -.13921E-04
  11  Prefactor     5.7991        4.2393         .0000       -.47008E-02
  12  norm          2.5233        2.0491         .0000        .11532    
  13  Prefactor     .10000E-03    21.576         .0000    ** at limit **
  14  norm          1.8780        .79797         .0000        .84699E-02
  15  Prefactor     .10000E-03    10.163         .0000    ** at limit **
  16  Prefactor     .10000E-03    3.0496         .0000    ** at limit **
  17  norm          1.2553        .75866         .0000        .48459E-02
  18  norm          1.0055        .30693         .0000        .25350E-03
  19  norm          .10000E-03    .23468E-01     .0000    ** at limit **
  20  Prefactor     1.2297        .79777         .0000        .14317E-01
  21  Prefactor     4.6845        3.9391         .0000        .29266E-02
  22  Prefactor     .17200        2.5527         .0000        .15999E-02
  23  Prefactor     .10000E-03    9.5567         .0000    ** at limit **
  24  Normalizat    1.1782        .63547E-01     .0000        .32615E-03
  25  Prefactor     .98461        .16366E-01     .0000       -.58554E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.333593
  Prefactor  = 0.995388
  Prefactor  = 0.0001
  norm       = 1.50504
  Prefactor  = 4.41807
  norm       = 0.000100002
  Prefactor  = 0.124899
  Prefactor  = 7.0726
  norm       = 9.70029
  norm       = 19.3971
  Prefactor  = 5.79908
  norm       = 2.52327
  Prefactor  = 0.0001
  norm       = 1.87795
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.25533
  norm       = 1.0055
  norm       = 0.0001
  Prefactor  = 1.2297
  Prefactor  = 4.68449
  Prefactor  = 0.171997
  Prefactor  = 0.000100002
  Normalizat = 1.17818
  Prefactor  = 0.984605
 **********
 **   18 **HESSE 
 **********

 FCN=   152514.9     FROM HESSE     STATUS=OK           465 CALLS     3125 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33359        .30824        .19423E-02   -1.5592    
   2  Prefactor     .99539        .74533        .28464E-03   -1.5508    
   3  Prefactor     .10000E-03    1.6022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5050        .89267        .27803E-03   -1.5463    
   5  Prefactor     4.4181        9.0348        .19159E-03   -1.5288    
   6  norm          .10000E-03    .54001        .10666       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12490        .97626        .19256E-02   -1.5637    
   8  Prefactor     7.0726        3.1446        .15084E-03   -1.5176    
   9  norm          9.7003        1.5913        .64332E-03   -1.5085    
  10  norm          19.397        8.2021        .90941E-04   -1.4827    
  11  Prefactor     5.7991        4.2367        .16677E-03   -1.5226    
  12  norm          2.5233        2.0500        .12859E-02   -1.5390    
  13  Prefactor     .10000E-03    22.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8780        .79592        .21979E-03   -1.5434    
  15  Prefactor     .10000E-03    10.435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2553        .75065        .25779E-03   -1.5484    
  18  norm          1.0055        .30810        .11659E-03   -1.5507    
  19  norm          .10000E-03    .34680E-01    .22221E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2297        .78838        .27121E-03   -1.5486    
  21  Prefactor     4.6845        3.9352        .18594E-03   -1.5275    
  22  Prefactor     .17200        2.4779        .22338       -1.5625    
  23  Prefactor     .10000E-03    9.5716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1782        .67729E-01    .48156E-03   -.87280    
  25  Prefactor     .98461        .17654E-01    .13785E-03   -.93244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12047e-07
Minuit parameter uncertainties:
  1  0.308237
  2  0.745338
  3  9.22106e-07
  4  0.892682
  5  9.0376
  6  5.9667e-05
  7  0.698118
  8  3.14467
  9  1.59135
  10  8.2026
  11  4.23696
  12  2.0501
  13  0.000127598
  14  0.795926
  15  0.000280035
  16  8.77405e-08
  17  0.750659
  18  0.308098
  19  3.98224e-07
  20  0.788385
  21  3.93539
  22  1.30535
  23  0.000265434
  24  0.0677339
  25  0.017654
Done.

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

Extracting fit parameters...

4FGL J0113.4+4948
   Spectrum: LogParabola
222         norm:  1.878e+00  7.959e-01  1.000e-04  1.000e+04 ( 1.000e-12)
223        alpha:  2.134e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
224         beta:  6.875e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
225           Eb:  9.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  9.846e-01  1.765e-02  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.178e+00  6.773e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.85
Ra Dec: 18.368 49.805
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.84e-08 +/- 7.82e-09
Energy Flux (Fixed Index): 8.91e-06 +/- 3.77e-06

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) = 152514.849258
delta logL = 0.0242513874837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 152514.848139
delta logL = 0.0253706934163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9007       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2135       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98471       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   152514.8     FROM MIGRAD    STATUS=FAILED        98 CALLS      288 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9009        .77964        .21335E-03    .17052E-04
   2  alpha         2.2136        .34464        .35841E-01    .13737E-02
   3  Normalizat    1.1762        .62657E-01    .48189E-03    .22648E-05
   4  Prefactor     .98470        .16489E-01    .13785E-03    .26392E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   152514.8     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      362 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9009        .77964        .18336E-04   -1.5432    
   2  alpha         2.2136        .34464        .42251E-03   -.11482    
   3  Normalizat    1.1762        .62657E-01    .30108E-04   -.87341    
   4  Prefactor     .98470        .16489E-01    .15798E-04   -.93241    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   152514.8     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      389 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9009        .77760        .85338E-05    .85260E-05
   2  alpha         2.2136        .34404        .71682E-02    .54446E-04
   3  Normalizat    1.1762        .62652E-01    .19276E-04    .37747E-05
   4  Prefactor     .98470        .16492E-01    .55138E-05    .26392E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.90094
  alpha      = 2.21359
  Normalizat = 1.1762
  Prefactor  = 0.984704
 **********
 **   18 **HESSE 
 **********

 FCN=   152514.8     FROM HESSE     STATUS=OK            25 CALLS      414 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9009        .77811        .17068E-05   -1.5432    
   2  alpha         2.2136        .34409        .14336E-02   -.11482    
   3  Normalizat    1.1762        .62676E-01    .38552E-05   -.87341    
   4  Prefactor     .98470        .16496E-01    .55138E-05   -.93241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18914e-14
Minuit parameter uncertainties:
  1  0.778116
  2  0.345203
  3  0.0626804
  4  0.0164962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877403': 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) = 152514.848138
delta logL = 0.0253708742675

Extracting fit parameters...

4FGL J0113.4+4948
   Spectrum: LogParabola
222         norm:  1.901e+00  7.781e-01  1.000e-04  1.000e+04 ( 1.000e-12)
223        alpha:  2.214e+00  3.452e-01  0.000e+00  5.000e+00 ( 1.000e+00)
224         beta:  6.875e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
225           Eb:  9.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  9.847e-01  1.650e-02  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.176e+00  6.268e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.90
Ra Dec: 18.368 49.805
Photon Index (Free Index): 2.21 +/- 0.35
Photon Flux (Free Index): 2.08e-08 +/- 1.34e-08
Energy Flux (Free Index): 8.91e-06 +/- 3.64e-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/877403/cmap_HighResolution_669859201_672451201_4FGL_J0113.4+4948_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.84e-08', energy_flux2='8.91e-06', photon_flux_error='7.82e-09', dlogl='2.54e-02', energy_flux='8.91e-06', photon_flux2='2.08e-08', job_status='DONE', time_completed='2022-04-24 03:43:27.094441', photon_index_error2='0.35', photon_index2='2.21', ts='14.85', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.64e-06', EG='1.18', time_epoch_completed='1650797007.09', return_code='0', job_id='877403', GAL2='0.98', EG2='1.18', return_code2='0', energy_flux_error='3.77e-06', photon_flux_error2='1.34e-08', ts2='14.90', photon_index='2.13' WHERE bin_id='167' AND source_name='4FGL J0113.4+4948' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 03:43:27 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 877403: <4FGL_J0113.4+4948_monthly_bin167> in cluster <slac> Done

Job <4FGL_J0113.4+4948_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 00:50:31 2022
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:52:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:52:55 2022
Terminated at Sun Apr 24 03:43:28 2022
Results reported at Sun Apr 24 03:43:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0113.4+4948_monthly_bin167 18.3682 49.8054 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0113.4+4948 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10149.00 sec.
    Max Memory :                                 651 MB
    Average Memory :                             535.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10235 sec.
    Turnaround time :                            10377 sec.

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

