aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 76 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 = 17082
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0108.6+0134_weekly_bin173
RA = 17.1695, Dec = 1.5819
tmin = 343612801, tmax = 344217601
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='72818', job_status='RUN', time_executed='2021-07-03 16:19:26.583569', time_epoch_executed='1625354366.58' WHERE source_name='4FGL J0108.6+0134' and cadence='weekly' and bin_id='173'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72818

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72818/ft1_4FGL_J0108.6+0134_weekly_bin173.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72818/ft2_4FGL_J0108.6+0134_weekly_bin173.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72818/ft1_4FGL_J0108.6+0134_weekly_bin173.fits outfile=/scratch/kocevski/72818/ft1_filteredMKT_4FGL_J0108.6+0134_weekly_bin173.fits ra=17.1695 dec=1.5819 rad=12.0 tmin=343612801.0 tmax=344217601.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 7.75
user 7.15
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/72818/ft2_4FGL_J0108.6+0134_weekly_bin173.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/72818/ft2_4FGL_J0108.6+0134_weekly_bin173.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/72818/ft1_filteredMKT_4FGL_J0108.6+0134_weekly_bin173.fits evtable="EVENTS" outfile="/scratch/kocevski/72818/ft1_filtered_4FGL_J0108.6+0134_weekly_bin173.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 2.34
user 0.40
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72818/ft1_filtered_4FGL_J0108.6+0134_weekly_bin173.fits" evtable="EVENTS" scfile=/scratch/kocevski/72818/ft2_4FGL_J0108.6+0134_weekly_bin173.fits sctable="SC_DATA" outfile=/scratch/kocevski/72818/ltcube_343612801_344217601_4FGL_J0108.6+0134_weekly_bin173.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/72818/ft2_4FGL_J0108.6+0134_weekly_bin173.fits
.....................!
real 27.94
user 26.11
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72818/ft1_filtered_4FGL_J0108.6+0134_weekly_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/72818/ft2_4FGL_J0108.6+0134_weekly_bin173.fits sctable="SC_DATA" expcube=/scratch/kocevski/72818/ltcube_343612801_344217601_4FGL_J0108.6+0134_weekly_bin173.fits outfile=/scratch/kocevski/72818/expmap_343612801_344217601_4FGL_J0108.6+0134_weekly_bin173.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/72818/ltcube_343612801_344217601_4FGL_J0108.6+0134_weekly_bin173.fits
.....................!
real 196.15
user 185.97
sys 4.27

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

Setting source of interest to:
4FGL J0108.6+0134 @ 17.1695 1.5819

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/72818/ft1_filtered_4FGL_J0108.6+0134_weekly_bin173.fits scfile=/scratch/kocevski/72818/ft2_4FGL_J0108.6+0134_weekly_bin173.fits outfile=/scratch/kocevski/72818/cmap_343612801_344217601_4FGL_J0108.6+0134_weekly_bin173.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=17.1695 yref=1.5819 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 1.24
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72818/ft1_filtered_4FGL_J0108.6+0134_weekly_bin173.fits scfile=/scratch/kocevski/72818/ft2_4FGL_J0108.6+0134_weekly_bin173.fits outfile=/scratch/kocevski/72818/cmap_HighResolution_343612801_344217601_4FGL_J0108.6+0134_weekly_bin173.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=17.1695 yref=1.5819 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 1.07
user 0.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/72818/ft1_filtered_4FGL_J0108.6+0134_weekly_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/72818/ft2_4FGL_J0108.6+0134_weekly_bin173.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/72818/Model_4FGL_J0108.6+0134_weekly_bin173.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/72818/ft1_filtered_4FGL_J0108.6+0134_weekly_bin173.fits....................!
real 110.97
user 99.69
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/72818/ft1_filtered_4FGL_J0108.6+0134_weekly_bin173.fits', '/scratch/kocevski/72818/ft2_4FGL_J0108.6+0134_weekly_bin173.fits', expMap='/scratch/kocevski/72818/expmap_343612801_344217601_4FGL_J0108.6+0134_weekly_bin173.fits', expCube='/scratch/kocevski/72818/ltcube_343612801_344217601_4FGL_J0108.6+0134_weekly_bin173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/72818/Model_4FGL_J0108.6+0134_weekly_bin173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0108.6+0134'

4FGL J0108.6+0134
   Spectrum: LogParabola
269         norm:  8.383e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
270        alpha:  2.284e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  1.018e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  5.081e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/72818/ft1_filtered_4FGL_J0108.6+0134_weekly_bin173.fits
Spacecraft file(s): /scratch/kocevski/72818/ft2_4FGL_J0108.6+0134_weekly_bin173.fits
Exposure map: /scratch/kocevski/72818/expmap_343612801_344217601_4FGL_J0108.6+0134_weekly_bin173.fits
Exposure cube: /scratch/kocevski/72818/ltcube_343612801_344217601_4FGL_J0108.6+0134_weekly_bin173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/72818/Model_4FGL_J0108.6+0134_weekly_bin173.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) = 10876.8311128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3605       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8771       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2109       1.0000         .10000E-03   10000.    
     5 'norm      '    .13557E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.9424       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13204E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1130       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40147E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4499       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6657       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9436       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0065       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95754       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95005       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10876.72     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2091 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3552        9.3560       -.13210E-05    .11995E-03
   2  norm          .10000E-03    3.2314        .17425E-07** at limit **
   3  Prefactor     1.8769        1.4951       -.16415E-06    .35225E-03
   4  Prefactor     1.2117        1.8217       -.13016E-05    .46031E-03
   5  norm          .10000E-03    1.9195        .12258E-06** at limit **
   6  norm          .10000E-03    1.0554        .10628E-06** at limit **
   7  Prefactor     .10000E-03    8.3278       -.82922E-07** at limit **
   8  Prefactor     .10000E-03    48.035       -.67093E-05** at limit **
   9  norm          3.9425        5.3274       -.23371E-06    .60439E-04
  10  Prefactor     .10000E-03    7.3842        .45206E-07** at limit **
  11  Prefactor     .10000E-03    107.86        .61694E-05** at limit **
  12  norm          2.1114        1.0283        .17510E-07    .29434E-03
  13  Prefactor     .10000E-03    18.210        .14848E-05** at limit **
  14  Prefactor     .10000E-03    40.469       -.15505E-04** at limit **
  15  Prefactor     7.4480        5.5502       -.64964E-06   -.14551E-03
  16  Prefactor     9.6554        28.712        .13066E-05    .96049E-04
  17  Prefactor     .10000E-03    3.5684        .54577E-08** at limit **
  18  Prefactor     5.9433        18.965       -.49002E-06    .11957E-04
  19  Prefactor     .10000E-03    21.030       -.32537E-05** at limit **
  20  Prefactor     4.0064        2.8769       -.88470E-07    .56396E-04
  21  Normalizat    .95750        .13505        .46090E-06    .21686E-03
  22  Prefactor     .95010        .10673        .11927E-06    .35394E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.3552
  norm       = 0.0001
  Prefactor  = 1.87688
  Prefactor  = 1.21174
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 3.94245
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.11137
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 7.44802
  Prefactor  = 9.65542
  Prefactor  = 0.0001
  Prefactor  = 5.94332
  Prefactor  = 0.000100003
  Prefactor  = 4.00641
  Normalizat = 0.957501
  Prefactor  = 0.950103
 **********
 **   18 **HESSE 
 **********

 FCN=   10876.72     FROM HESSE     STATUS=OK           346 CALLS     2437 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3552        9.3787        .22075E-03   -1.5342    
   2  norm          .10000E-03    3.2760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8769        1.4870        .10888E-03   -1.5434    
   4  Prefactor     1.2117        1.8228        .16892E-03   -1.5488    
   5  norm          .10000E-03    4.7003        .28103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.0619        .10465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.3308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    49.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.9425        5.3235        .20316E-03   -1.5311    
  10  Prefactor     .10000E-03    7.3870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    111.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1114        1.0221        .69214E-04   -1.5417    
  13  Prefactor     .10000E-03    18.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.548        .42653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.4480        5.5512        .14694E-03   -1.5162    
  16  Prefactor     9.6554        28.823        .12890E-03   -1.5086    
  17  Prefactor     .10000E-03    3.6058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.9433        18.956        .16471E-03   -1.5220    
  19  Prefactor     .10000E-03    21.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0064        2.8777        .14567E-03   -1.5308    
  21  Normalizat    .95750        .15701        .25610E-03   -.94468    
  22  Prefactor     .95010        .12468        .21332E-03   -.94412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74526e-10
Minuit parameter uncertainties:
  1  9.38281
  2  2.98275e-06
  3  1.48703
  4  1.82291
  5  1.32113e-05
  6  7.55699e-06
  7  6.87864e-06
  8  0.000772039
  9  5.32409
  10  4.64689e-06
  11  0.00127109
  12  1.02216
  13  0.000309911
  14  0.000419827
  15  5.5516
  16  28.8641
  17  5.37953e-06
  18  18.9756
  19  0.000497006
  20  2.87782
  21  0.157089
  22  0.124722
Done.

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

Extracting fit parameters...

4FGL J0108.6+0134
   Spectrum: LogParabola
269         norm:  2.111e+00  1.022e+00  1.000e-04  1.000e+04 ( 1.000e-11)
270        alpha:  2.284e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  1.018e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  5.081e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.501e-01  1.247e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  9.575e-01  1.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.36
Ra Dec: 17.169 1.582
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.93e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 9.65e-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) = 10874.7489229
delta logL = 1.97034422414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10874.7324254
delta logL = 1.98684175779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3303       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4530       1.0000          .0000       5.0000    
     3 'Normalizat'    .86523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0030       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+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=   10874.73     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      271 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3311        1.1862        .40283E-04    .22493E-02
   2  alpha         3.4525        .81387        .13033E-01    .78819E-04
   3  Normalizat    .86522        .15910        .26726E-03    .62615E-04
   4  Prefactor     1.0030        .12912        .20823E-03    .68028E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33113
  alpha      = 3.45252
  Normalizat = 0.865224
  Prefactor  = 1.00296
 **********
 **   18 **HESSE 
 **********

 FCN=   10874.73     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3311        .98170        .16113E-05   -1.5477    
   2  alpha         3.4525        .67742        .52131E-03    .39089    
   3  Normalizat    .86522        .15824        .10691E-04   -.97693    
   4  Prefactor     1.0030        .12844        .83292E-05   -.92631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49954e-11
Minuit parameter uncertainties:
  1  0.981707
  2  0.687517
  3  0.158324
  4  0.128481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72818': 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) = 10874.732425
delta logL = 1.98684212331

Extracting fit parameters...

4FGL J0108.6+0134
   Spectrum: LogParabola
269         norm:  1.331e+00  9.817e-01  1.000e-04  1.000e+04 ( 1.000e-11)
270        alpha:  3.453e+00  6.875e-01  0.000e+00  5.000e+00 ( 1.000e+00)
271         beta:  1.018e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  5.081e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.003e+00  1.285e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  8.652e-01  1.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.94
Ra Dec: 17.169 1.582
Photon Index (Free Index): 3.45 +/- 0.69
Photon Flux (Free Index): 1.26e-07 +/- 4.99e-08
Energy Flux (Free Index): 2.20e-05 +/- 7.84e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/72818/cmap_HighResolution_343612801_344217601_4FGL_J0108.6+0134_weekly_bin173.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.93e-08', energy_flux2='2.20e-05', photon_flux_error='2.87e-08', dlogl='1.99e+00', energy_flux='1.99e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-07-03 16:33:05.135828', photon_index_error2='0.69', photon_index2='3.45', ts='8.36', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='7.84e-06', EG='0.96', time_epoch_completed='1625355185.14', return_code='0', job_id='72818', GAL2='1.00', EG2='0.87', return_code2='0', energy_flux_error='9.65e-06', photon_flux_error2='4.99e-08', ts2='12.94', photon_index='2.28' WHERE bin_id='173' AND source_name='4FGL J0108.6+0134' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 16:33:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 72818: <4FGL_J0108.6+0134_weekly_bin173> in cluster <slac> Done

Job <4FGL_J0108.6+0134_weekly_bin173> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Jul  3 16:16:40 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 16:16:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 16:16:42 2021
Terminated at Sat Jul  3 16:33:08 2021
Results reported at Sat Jul  3 16:33:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0108.6+0134_weekly_bin173 17.1695 1.5819 343612801 344217601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0108.6+0134 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   773.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            988 sec.

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

