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


Performing analysis on: 4FGL_J0112.8+3208_weekly_bin347
RA = 18.2227, Dec = 32.1399
tmin = 448848001, tmax = 449452801
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='93430', job_status='RUN', time_executed='2021-07-03 17:17:24.700377', time_epoch_executed='1625357844.7' WHERE source_name='4FGL J0112.8+3208' and cadence='weekly' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/93430

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/93430/ft1_4FGL_J0112.8+3208_weekly_bin347.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/93430/ft2_4FGL_J0112.8+3208_weekly_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/93430/ft1_4FGL_J0112.8+3208_weekly_bin347.fits outfile=/scratch/kocevski/93430/ft1_filteredMKT_4FGL_J0112.8+3208_weekly_bin347.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=448848001.0 tmax=449452801.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 12.68
user 12.18
sys 0.40

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/93430/ft2_4FGL_J0112.8+3208_weekly_bin347.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/93430/ft2_4FGL_J0112.8+3208_weekly_bin347.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/93430/ft1_filteredMKT_4FGL_J0112.8+3208_weekly_bin347.fits evtable="EVENTS" outfile="/scratch/kocevski/93430/ft1_filtered_4FGL_J0112.8+3208_weekly_bin347.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.56
user 0.39
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/93430/ft1_filtered_4FGL_J0112.8+3208_weekly_bin347.fits" evtable="EVENTS" scfile=/scratch/kocevski/93430/ft2_4FGL_J0112.8+3208_weekly_bin347.fits sctable="SC_DATA" outfile=/scratch/kocevski/93430/ltcube_448848001_449452801_4FGL_J0112.8+3208_weekly_bin347.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/93430/ft2_4FGL_J0112.8+3208_weekly_bin347.fits
.....................!
real 26.38
user 25.71
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/93430/ft1_filtered_4FGL_J0112.8+3208_weekly_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/93430/ft2_4FGL_J0112.8+3208_weekly_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/93430/ltcube_448848001_449452801_4FGL_J0112.8+3208_weekly_bin347.fits outfile=/scratch/kocevski/93430/expmap_448848001_449452801_4FGL_J0112.8+3208_weekly_bin347.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/93430/ltcube_448848001_449452801_4FGL_J0112.8+3208_weekly_bin347.fits
.....................!
real 194.23
user 186.86
sys 5.95

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

Setting source of interest to:
4FGL J0112.8+3208 @ 18.2227 32.1399

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/93430/ft1_filtered_4FGL_J0112.8+3208_weekly_bin347.fits scfile=/scratch/kocevski/93430/ft2_4FGL_J0112.8+3208_weekly_bin347.fits outfile=/scratch/kocevski/93430/cmap_448848001_449452801_4FGL_J0112.8+3208_weekly_bin347.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.2227 yref=32.1399 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.61
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/93430/ft1_filtered_4FGL_J0112.8+3208_weekly_bin347.fits scfile=/scratch/kocevski/93430/ft2_4FGL_J0112.8+3208_weekly_bin347.fits outfile=/scratch/kocevski/93430/cmap_HighResolution_448848001_449452801_4FGL_J0112.8+3208_weekly_bin347.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.2227 yref=32.1399 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.65
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/93430/ft1_filtered_4FGL_J0112.8+3208_weekly_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/93430/ft2_4FGL_J0112.8+3208_weekly_bin347.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/93430/Model_4FGL_J0112.8+3208_weekly_bin347.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/93430/ft1_filtered_4FGL_J0112.8+3208_weekly_bin347.fits.....................!
real 71.63
user 66.60
sys 1.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/93430/ft1_filtered_4FGL_J0112.8+3208_weekly_bin347.fits', '/scratch/kocevski/93430/ft2_4FGL_J0112.8+3208_weekly_bin347.fits', expMap='/scratch/kocevski/93430/expmap_448848001_449452801_4FGL_J0112.8+3208_weekly_bin347.fits', expCube='/scratch/kocevski/93430/ltcube_448848001_449452801_4FGL_J0112.8+3208_weekly_bin347.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/93430/Model_4FGL_J0112.8+3208_weekly_bin347.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0112.8+3208'

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.942e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/93430/ft1_filtered_4FGL_J0112.8+3208_weekly_bin347.fits
Spacecraft file(s): /scratch/kocevski/93430/ft2_4FGL_J0112.8+3208_weekly_bin347.fits
Exposure map: /scratch/kocevski/93430/expmap_448848001_449452801_4FGL_J0112.8+3208_weekly_bin347.fits
Exposure cube: /scratch/kocevski/93430/ltcube_448848001_449452801_4FGL_J0112.8+3208_weekly_bin347.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/93430/Model_4FGL_J0112.8+3208_weekly_bin347.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) = 6787.47798682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2657       1.0000         .10000E-03   10000.    
     2 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7603       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5254       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.520       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .65847E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .45429E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6096       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0032       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0946       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.809       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0006       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.873       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1365       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6787.461     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3264 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2359        147.17        .16632E-04    .37439E-04
   2  norm          .10000E-03    1.5692       -.21581E-07** at limit **
   3  Prefactor     9.7599        13.082        .15746E-06   -.81362E-04
   4  Prefactor     2.5257        3.0308        .49388E-07   -.69733E-04
   5  Prefactor     11.520        10.594        .31411E-06   -.66744E-04
   6  Prefactor     .10000E-03    5.7405       -.12273E-06** at limit **
   7  Prefactor     .10000E-03    7.9032       -.51569E-07** at limit **
   8  Prefactor     42.510        43.455       -.45232E-05   -.35046E-03
   9  Prefactor     .10000E-03    21.653       -.44637E-06** at limit **
  10  norm          .14675E-03    .38257        .79894E-06** at limit **
  11  norm          .10005E-03    .58194        .15330E-06** at limit **
  12  Prefactor     .10000E-03    63.343       -.14980E-05** at limit **
  13  Prefactor     .10000E-03    3.3467        .64872E-06** at limit **
  14  Prefactor     4.5566        6.5791        .94007E-06   -.61368E-04
  15  Prefactor     5.6136        9.8294       -.64264E-06   -.28706E-03
  16  norm          1.0032        .75575       -.11738E-07    .55797E-04
  17  Prefactor     .10000E-03    11.991       -.18094E-06** at limit **
  18  Prefactor     .10000E-03    41.091       -.30481E-06** at limit **
  19  norm          2.0945        .69431        .17966E-07   -.12812E-03
  20  Prefactor     11.806        11.879        .44788E-06   -.24762E-05
  21  Prefactor     .10000E-03    .93985       -.27084E-07** at limit **
  22  Prefactor     1.9955        57.800        .24708E-05    .73183E-05
  23  norm          .10000E-03    1.4927       -.11013E-07** at limit **
  24  Prefactor     11.872        8.8968        .30563E-06   -.41165E-04
  25  Normalizat    1.1366        .21874       -.35242E-05   -.42271E-03
  26  Prefactor     .93003        .12747        .11897E-05   -.87084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.23587
  norm       = 0.0001
  Prefactor  = 9.75989
  Prefactor  = 2.52565
  Prefactor  = 11.5198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.5095
  Prefactor  = 0.0001
  norm       = 0.000146754
  norm       = 0.000100048
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.55664
  Prefactor  = 5.61363
  norm       = 1.00317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.09451
  Prefactor  = 11.8062
  Prefactor  = 0.0001
  Prefactor  = 1.99549
  norm       = 0.0001
  Prefactor  = 11.8719
  Normalizat = 1.13661
  Prefactor  = 0.930028
 **********
 **   18 **HESSE 
 **********

 FCN=   6787.461     FROM HESSE     STATUS=OK           468 CALLS     3732 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2359        146.99        .39596E-03   -1.5486    
   2  norm          .10000E-03    3.8815        .20026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.7599        13.086        .12827E-03   -1.5083    
   4  Prefactor     2.5257        3.0258        .15299E-03   -1.5390    
   5  Prefactor     11.520        10.531        .11803E-03   -1.5029    
   6  Prefactor     .10000E-03    5.8256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.9225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.510        52.232        .61651E-04   -1.4403    
   9  Prefactor     .10000E-03    21.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .14675E-03    1.6011        .14111E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10005E-03    20.990        .11580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    63.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3968        .14755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.5566        6.4359        .18859E-03   -1.5281    
  15  Prefactor     5.6136        9.8320        .16962E-03   -1.5234    
  16  norm          1.0032        .76576        .60633E-04   -1.5508    
  17  Prefactor     .10000E-03    11.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    41.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0945        .69421        .38124E-04   -1.5419    
  20  Prefactor     11.806        11.873        .11658E-03   -1.5021    
  21  Prefactor     .10000E-03    .94494        .77953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.9955        55.880        .29280E-03   -1.5425    
  23  norm          .10000E-03    1.4995        .98174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.872        8.7286        .11626E-03   -1.5019    
  25  Normalizat    1.1366        .25178        .28845E-03   -.88585    
  26  Prefactor     .93003        .14996        .19871E-03   -.95100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.99819e-09
Minuit parameter uncertainties:
  1  27.0234
  2  2.56133e-05
  3  13.0896
  4  3.02595
  5  10.5324
  6  8.83439e-06
  7  8.69252e-06
  8  52.2881
  9  4.51416e-05
  10  0.0173046
  11  0.0020184
  12  0.000369711
  13  1.33528e-05
  14  6.43692
  15  9.83481
  16  0.765772
  17  3.2242e-06
  18  1.15462e-05
  19  0.694213
  20  11.8749
  21  9.06253e-07
  22  21.1408
  23  7.36699e-07
  24  8.72953
  25  0.252048
  26  0.150024
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.000e-04  2.018e-03  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  9.300e-01  1.500e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.137e+00  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 18.223 32.140
Photon Flux Upper Limit: 9.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/93430/likelihoodResults_448848001_449452801_4FGL_J0112.8+3208_weekly_bin347.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): 102
logL (Free Index) = 6787.46118466
delta logL = -0.00024339009542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6787.05702508
delta logL = 0.403916195493

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6787.057     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      259 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37362        7.9644        .10745E-01    .22200E-02
   2  alpha         3.6891        4.0294        .49515        .53153E-04
   3  Normalizat    1.0768        .43950E-01    .66739E-01    .23603E-04
   4  Prefactor     .94991        .27918E-01    .45637E-01   -.17515E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.373616
  alpha      = 3.68909
  Normalizat = 1.07681
  Prefactor  = 0.94991
 **********
 **   18 **HESSE 
 **********

 FCN=   6787.057     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37362        1.6888        .57069E-04   -1.5586    
   2  alpha         3.6891        4.0658        .28244E-01    .49569    
   3  Normalizat    1.0768        .24275        .29525E-03   -.90500    
   4  Prefactor     .94991        .15076        .19680E-03   -.94418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04475e-10
Minuit parameter uncertainties:
  1  1.58853
  2  3.04716
  3  0.243006
  4  0.150827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/93430': 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) = 6787.05702402
delta logL = 0.403917254598

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  3.736e-01  1.589e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  3.689e+00  3.047e+00  0.000e+00  5.000e+00 ( 1.000e+00)
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  9.499e-01  1.508e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.077e+00  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 18.223 32.140

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/93430/cmap_HighResolution_448848001_449452801_4FGL_J0112.8+3208_weekly_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-05', job_status='DONE', photon_flux_upper_limit='9.09e-08', time_completed='2021-07-03 17:31:50.468857', job_id='93430', GAL2='0.95', fit_tolerance='1e-08', EG2='1.08', EG='1.14', time_epoch_completed='1625358710.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.04e-01', ts2='0.85', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='347' AND source_name='4FGL J0112.8+3208' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 17:31:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 93430: <4FGL_J0112.8+3208_weekly_bin347> in cluster <slac> Done

Job <4FGL_J0112.8+3208_weekly_bin347> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Jul  3 17:16:39 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 17:16:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 17:16:41 2021
Terminated at Sat Jul  3 17:31:51 2021
Results reported at Sat Jul  3 17:31:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_weekly_bin347 18.2227 32.1399 448848001 449452801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0112.8+3208 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   843.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

