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


Performing analysis on: 4FGL_J0138.0+2247_weekly_bin612
RA = 24.5063, Dec = 22.7962
tmin = 609120001, tmax = 609724801
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='217194', job_status='RUN', time_executed='2021-07-04 00:04:58.194789', time_epoch_executed='1625382298.19' WHERE source_name='4FGL J0138.0+2247' and cadence='weekly' and bin_id='612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217194

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217194/ft1_4FGL_J0138.0+2247_weekly_bin612.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217194/ft2_4FGL_J0138.0+2247_weekly_bin612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217194/ft1_4FGL_J0138.0+2247_weekly_bin612.fits outfile=/scratch/kocevski/217194/ft1_filteredMKT_4FGL_J0138.0+2247_weekly_bin612.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=609120001.0 tmax=609724801.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 6.15
user 4.54
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/217194/ft2_4FGL_J0138.0+2247_weekly_bin612.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217194/ft2_4FGL_J0138.0+2247_weekly_bin612.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/217194/ft1_filteredMKT_4FGL_J0138.0+2247_weekly_bin612.fits evtable="EVENTS" outfile="/scratch/kocevski/217194/ft1_filtered_4FGL_J0138.0+2247_weekly_bin612.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 1.55
user 0.30
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217194/ft1_filtered_4FGL_J0138.0+2247_weekly_bin612.fits" evtable="EVENTS" scfile=/scratch/kocevski/217194/ft2_4FGL_J0138.0+2247_weekly_bin612.fits sctable="SC_DATA" outfile=/scratch/kocevski/217194/ltcube_609120001_609724801_4FGL_J0138.0+2247_weekly_bin612.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/217194/ft2_4FGL_J0138.0+2247_weekly_bin612.fits
.....................!
real 22.81
user 20.84
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217194/ft1_filtered_4FGL_J0138.0+2247_weekly_bin612.fits evtable="EVENTS" scfile=/scratch/kocevski/217194/ft2_4FGL_J0138.0+2247_weekly_bin612.fits sctable="SC_DATA" expcube=/scratch/kocevski/217194/ltcube_609120001_609724801_4FGL_J0138.0+2247_weekly_bin612.fits outfile=/scratch/kocevski/217194/expmap_609120001_609724801_4FGL_J0138.0+2247_weekly_bin612.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/217194/ltcube_609120001_609724801_4FGL_J0138.0+2247_weekly_bin612.fits
.....................!
real 152.77
user 139.97
sys 3.38

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

Setting source of interest to:
4FGL J0138.0+2247 @ 24.5063 22.7962

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/217194/ft1_filtered_4FGL_J0138.0+2247_weekly_bin612.fits scfile=/scratch/kocevski/217194/ft2_4FGL_J0138.0+2247_weekly_bin612.fits outfile=/scratch/kocevski/217194/cmap_609120001_609724801_4FGL_J0138.0+2247_weekly_bin612.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=24.5063 yref=22.7962 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.89
user 0.33
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217194/ft1_filtered_4FGL_J0138.0+2247_weekly_bin612.fits scfile=/scratch/kocevski/217194/ft2_4FGL_J0138.0+2247_weekly_bin612.fits outfile=/scratch/kocevski/217194/cmap_HighResolution_609120001_609724801_4FGL_J0138.0+2247_weekly_bin612.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=24.5063 yref=22.7962 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.63
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217194/ft1_filtered_4FGL_J0138.0+2247_weekly_bin612.fits evtable="EVENTS" scfile=/scratch/kocevski/217194/ft2_4FGL_J0138.0+2247_weekly_bin612.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217194/Model_4FGL_J0138.0+2247_weekly_bin612.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/217194/ft1_filtered_4FGL_J0138.0+2247_weekly_bin612.fits................................!
real 17.69
user 12.86
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217194/ft1_filtered_4FGL_J0138.0+2247_weekly_bin612.fits', '/scratch/kocevski/217194/ft2_4FGL_J0138.0+2247_weekly_bin612.fits', expMap='/scratch/kocevski/217194/expmap_609120001_609724801_4FGL_J0138.0+2247_weekly_bin612.fits', expCube='/scratch/kocevski/217194/ltcube_609120001_609724801_4FGL_J0138.0+2247_weekly_bin612.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217194/Model_4FGL_J0138.0+2247_weekly_bin612.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0138.0+2247'

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  5.231e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/217194/ft1_filtered_4FGL_J0138.0+2247_weekly_bin612.fits
Spacecraft file(s): /scratch/kocevski/217194/ft2_4FGL_J0138.0+2247_weekly_bin612.fits
Exposure map: /scratch/kocevski/217194/expmap_609120001_609724801_4FGL_J0138.0+2247_weekly_bin612.fits
Exposure cube: /scratch/kocevski/217194/ltcube_609120001_609724801_4FGL_J0138.0+2247_weekly_bin612.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217194/Model_4FGL_J0138.0+2247_weekly_bin612.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) = 340.436304172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9879       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.795       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    12 'norm      '    10000.       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14105E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23585E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    231.94       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .25248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   337.6872     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     3222 TOTAL
                     EDM=   .63E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9858        18.951       -.82153E-08   -.13073E-04
   2  Prefactor     .10000E-03    36.313        .48751E-05** at limit **
   3  norm          .10000E-03    1.4382        .18727E-06** at limit **
   4  norm          .10000E-03    7.0103        .20738E-07** at limit **
   5  Prefactor     .10000E-03    32.802       -.87151E-06** at limit **
   6  Prefactor     .10000E-03    98.038       -.45028E-04** at limit **
   7  Prefactor     25.792        25.863        .88616E-07    .19701E-05
   8  Prefactor     .10000E-03    57.927        .18912E-04** at limit **
   9  Prefactor     .10000E-03    167.99        .80365E-04** at limit **
  10  Prefactor    10000.0        8490.7        .18362E-02** at limit **
  11  Prefactor    10000.0        8530.9        .18382E-02** at limit **
  12  norm          10000.        264.04       -.12279E-04** at limit **
  13  Prefactor    10000.0        7024.1        .17193E-02** at limit **
  14  Prefactor     .10000E-03    251.57        .32550E-04** at limit **
  15  norm          .10000E-03    48.493       -.15944E-04** at limit **
  16  Prefactor     .10000E-03    9266.8       -.18701E-02** at limit **
  17  Prefactor     .10000E-03    7456.8       -.17661E-02** at limit **
  18  Prefactor     .10000E-03    64.386        .92761E-05** at limit **
  19  Prefactor     .10000E-03    36.654       -.10437E-05** at limit **
  20  norm          .10000E-03    320.59       -.95992E-04** at limit **
  21  Prefactor     .10000E-03    117.81       -.91833E-05** at limit **
  22  Prefactor     231.99        288.35        .28107E-04    .69803E-05
  23  Normalizat    .10000E-01    .10267        .51061E-06** at limit **
  24  Prefactor     .25245        .15799       -.19527E-05    .96510E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.98581
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.7924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 231.986
  Normalizat = 0.01
  Prefactor  = 0.252455
 **********
 **   18 **HESSE 
 **********

 FCN=   337.6872     FROM HESSE     STATUS=OK           381 CALLS     3603 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9858        18.934        .11923E-03   -1.5143    
   2  Prefactor     .10000E-03    36.313        .10829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.4435        .21537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    11.626        .93363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.802        .10291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    98.039        .17811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.792        25.849        .78875E-04   -1.4692    
   8  Prefactor     .10000E-03    57.951        .13681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    167.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        8490.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        8530.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10000.        264.04        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        7024.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    251.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    48.522        .12516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9266.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7456.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    64.395        .14426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.654        .10879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    320.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    117.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     231.99        288.26        .13287E-03   -1.2650    
  23  Normalizat    .10000E-01    .10289        .18148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .25245        .15443        .17349E-03   -1.2517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96064e-11
Minuit parameter uncertainties:
  1  18.9484
  2  9.45835e-07
  3  3.77478e-07
  4  8.9582e-05
  5  3.35342e-07
  6  6.86214e-06
  7  25.8606
  8  1.14614e-05
  9  7.04253e-06
  10  0.000699505
  11  0.00077392
  12  1.48634e-05
  13  0.00900838
  14  2.23402e-06
  15  4.69337e-06
  16  0.000904724
  17  0.000949385
  18  3.49762e-06
  19  1.56763e-05
  20  0.000100805
  21  5.39546e-06
  22  290.055
  23  1.52976e-07
  24  0.154679
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.000e+04  6.995e-04  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  2.525e-01  1.547e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.000e-02  1.530e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 24.506 22.796
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 7.75e-06 +/- 5.42e-13
Energy Flux (Fixed Index): 5.27e-03 +/- 3.69e-10
calc_int error: parameter max 10000.0 is not large enough
delta logLike = 4.87151112338e-07

TS (Fixed Index): 1.13
Ra Dec: 24.506 22.796
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.50e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217194/likelihoodResults_609120001_609724801_4FGL_J0138.0+2247_weekly_bin612.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) = 332.09855613
delta logL = 5.58860857511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 332.09855461
delta logL = 5.58861009434

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    3.5175       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   332.0986     FROM MIGRAD    STATUS=CONVERGED     14 CALLS       74 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       3.5175        .16001        .13454E-01    .11489E-04
                               ERR DEF=  .500    
Final values: 
  Index      = 3.51754
 **********
 **   18 **HESSE 
 **********

 FCN=   332.0986     FROM HESSE     STATUS=OK             7 CALLS       81 TOTAL
                     EDM=   .12E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       3.5175        .16043        .59689E-04   -.30102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1665e-16
Minuit parameter uncertainties:
  1  0.160463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217194': 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) = 332.09855461
delta logL = 5.58861009434

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
258        Index:  3.518e+00  1.605e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 12.31
Ra Dec: 24.506 22.796
Photon Index (Free Index): 3.52 +/- 0.16
Photon Flux (Free Index): 4.68e-04 +/- 2.19e-04
Energy Flux (Free Index): 7.76e-02 +/- 3.31e-02

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/217194/cmap_HighResolution_609120001_609724801_4FGL_J0138.0+2247_weekly_bin612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.50e+04', comment='SUCCESS', photon_flux='7.75e-06', energy_flux2='7.76e-02', photon_flux_error='5.42e-13', dlogl='5.59e+00', energy_flux='5.27e-03', photon_flux2='4.68e-04', job_status='DONE', time_completed='2021-07-04 00:10:48.246115', photon_index_error2='0.16', photon_index2='3.52', ts='1.13', fit_tolerance='1e-08', GAL='0.25', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='3.31e-02', EG='0.01', time_epoch_completed='1625382648.25', return_code='0', job_id='217194', GAL2='0.25', EG2='0.01', return_code2='0', energy_flux_error='3.69e-10', photon_flux_error2='2.19e-04', ts2='12.31', photon_index='2.01' WHERE bin_id='612' AND source_name='4FGL J0138.0+2247' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 00:10:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 217194: <4FGL_J0138.0+2247_weekly_bin612> in cluster <slac> Done

Job <4FGL_J0138.0+2247_weekly_bin612> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Jul  4 00:02:55 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 00:02:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 00:02:57 2021
Terminated at Sun Jul  4 00:10:49 2021
Results reported at Sun Jul  4 00:10:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_weekly_bin612 24.5063 22.7962 609120001 609724801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0138.0+2247 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   292.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             246.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   471 sec.
    Turnaround time :                            474 sec.

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

