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


Performing analysis on: 4FGL_J0138.0+2247_weekly_bin611
RA = 24.5063, Dec = 22.7962
tmin = 608515201, tmax = 609120001
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='217192', job_status='RUN', time_executed='2021-07-04 00:03:25.387700', time_epoch_executed='1625382205.39' WHERE source_name='4FGL J0138.0+2247' and cadence='weekly' and bin_id='611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217192

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217192/ft1_4FGL_J0138.0+2247_weekly_bin611.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217192/ft2_4FGL_J0138.0+2247_weekly_bin611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217192/ft1_4FGL_J0138.0+2247_weekly_bin611.fits outfile=/scratch/kocevski/217192/ft1_filteredMKT_4FGL_J0138.0+2247_weekly_bin611.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=608515201.0 tmax=609120001.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.74
user 7.42
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217192/ft2_4FGL_J0138.0+2247_weekly_bin611.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/217192/ft1_filteredMKT_4FGL_J0138.0+2247_weekly_bin611.fits evtable="EVENTS" outfile="/scratch/kocevski/217192/ft1_filtered_4FGL_J0138.0+2247_weekly_bin611.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.73
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217192/ft1_filtered_4FGL_J0138.0+2247_weekly_bin611.fits" evtable="EVENTS" scfile=/scratch/kocevski/217192/ft2_4FGL_J0138.0+2247_weekly_bin611.fits sctable="SC_DATA" outfile=/scratch/kocevski/217192/ltcube_608515201_609120001_4FGL_J0138.0+2247_weekly_bin611.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/217192/ft2_4FGL_J0138.0+2247_weekly_bin611.fits
.....................!
real 27.84
user 27.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217192/ft1_filtered_4FGL_J0138.0+2247_weekly_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/217192/ft2_4FGL_J0138.0+2247_weekly_bin611.fits sctable="SC_DATA" expcube=/scratch/kocevski/217192/ltcube_608515201_609120001_4FGL_J0138.0+2247_weekly_bin611.fits outfile=/scratch/kocevski/217192/expmap_608515201_609120001_4FGL_J0138.0+2247_weekly_bin611.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/217192/ltcube_608515201_609120001_4FGL_J0138.0+2247_weekly_bin611.fits
.....................!
real 191.39
user 185.26
sys 4.90

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/217192/ft1_filtered_4FGL_J0138.0+2247_weekly_bin611.fits scfile=/scratch/kocevski/217192/ft2_4FGL_J0138.0+2247_weekly_bin611.fits outfile=/scratch/kocevski/217192/cmap_608515201_609120001_4FGL_J0138.0+2247_weekly_bin611.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.64
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217192/ft1_filtered_4FGL_J0138.0+2247_weekly_bin611.fits scfile=/scratch/kocevski/217192/ft2_4FGL_J0138.0+2247_weekly_bin611.fits outfile=/scratch/kocevski/217192/cmap_HighResolution_608515201_609120001_4FGL_J0138.0+2247_weekly_bin611.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.90
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217192/ft1_filtered_4FGL_J0138.0+2247_weekly_bin611.fits', '/scratch/kocevski/217192/ft2_4FGL_J0138.0+2247_weekly_bin611.fits', expMap='/scratch/kocevski/217192/expmap_608515201_609120001_4FGL_J0138.0+2247_weekly_bin611.fits', expCube='/scratch/kocevski/217192/ltcube_608515201_609120001_4FGL_J0138.0+2247_weekly_bin611.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217192/Model_4FGL_J0138.0+2247_weekly_bin611.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/217192/ft1_filtered_4FGL_J0138.0+2247_weekly_bin611.fits
Spacecraft file(s): /scratch/kocevski/217192/ft2_4FGL_J0138.0+2247_weekly_bin611.fits
Exposure map: /scratch/kocevski/217192/expmap_608515201_609120001_4FGL_J0138.0+2247_weekly_bin611.fits
Exposure cube: /scratch/kocevski/217192/ltcube_608515201_609120001_4FGL_J0138.0+2247_weekly_bin611.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217192/Model_4FGL_J0138.0+2247_weekly_bin611.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) = 3611.89431273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24614E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .31092       1.0000         .10000E-03   10000.    
     4 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.225       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.137       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    202.78       1.0000         .10000E-03   10000.    
    12 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.251       1.0000         .10000E-03   10000.    
    15 'norm      '    .10398E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13159E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.713       1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.658       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80553       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1777       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=   3611.830     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2840 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7156       -.22363E-08** at limit **
   2  Prefactor     .10000E-03    256.04        .48780E-06** at limit **
   3  norm          .31170        .92297        .41468E-06    .28784E-03
   4  norm          .10000E-03    1.1055       -.43105E-07** at limit **
   5  Prefactor     .10000E-03    12.156        .37702E-07** at limit **
   6  Prefactor     18.247        44.272       -.98813E-06    .30250E-04
   7  Prefactor     .10000E-03    6.6177        .44142E-06** at limit **
   8  Prefactor     .10000E-03    11.147       -.39679E-06** at limit **
   9  Prefactor     15.141        21.746        .89292E-06    .24271E-03
  10  Prefactor     .10000E-03    27.589       -.64172E-06** at limit **
  11  Prefactor     202.58        147.06        .65415E-05    .26946E-03
  12  norm          .10000E-03    .71926       -.31075E-05** at limit **
  13  Prefactor     .10000E-03    12.588       -.76022E-06** at limit **
  14  Prefactor     27.249        27.471        .19799E-06    .65564E-04
  15  norm          .10000E-03    5.8327       -.80599E-07** at limit **
  16  Prefactor     .10000E-03    80.701       -.11104E-06** at limit **
  17  Prefactor     .10000E-03    1.4035        .13075E-06** at limit **
  18  Prefactor     .10001E-03    7.9829       -.31001E-06** at limit **
  19  Prefactor     .10000E-03    12.261        .75209E-06** at limit **
  20  norm          .10000E-03    64.726        .86016E-07** at limit **
  21  Prefactor     35.764        79.273        .19557E-06    .71582E-04
  22  Prefactor     36.676        78.168       -.88625E-07    .31898E-04
  23  Normalizat    .80544        .28241        .30384E-06    .51629E-03
  24  Prefactor     1.1777        .17538        .97448E-06    .92024E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.311704
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1408
  Prefactor  = 0.0001
  Prefactor  = 202.579
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2491
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.764
  Prefactor  = 36.6756
  Normalizat = 0.805438
  Prefactor  = 1.17769
 **********
 **   18 **HESSE 
 **********

 FCN=   3611.830     FROM HESSE     STATUS=OK           387 CALLS     3227 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7174        .12746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    258.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .31170        .89224        .90947E-04   -1.5596    
   4  norm          .10000E-03    2.0444        .12224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.247        44.093        .93819E-04   -1.4853    
   7  Prefactor     .10000E-03    6.6254        .15038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.141        21.590        .51473E-03   -1.4930    
  10  Prefactor     .10000E-03    27.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     202.58        150.26        .14190E-03   -1.2852    
  12  norm          .10000E-03    .74267        .85323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.249        27.353        .76742E-04   -1.4663    
  15  norm          .10000E-03    15.508        .27280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    80.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.4060        .69521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    80.290        .31709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    64.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.764        79.046        .67060E-04   -1.4511    
  22  Prefactor     36.676        78.176        .66194E-04   -1.4496    
  23  Normalizat    .80544        .32057        .33603E-03   -.99867    
  24  Prefactor     1.1777        .20118        .18087E-03   -.87021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86258e-09
Minuit parameter uncertainties:
  1  2.68864e-06
  2  0.000763439
  3  0.892274
  4  1.62453e-05
  5  2.5859e-06
  6  44.1723
  7  3.67938e-06
  8  3.50128e-05
  9  21.601
  10  6.77429e-05
  11  150.545
  12  2.61266e-05
  13  4.99595e-05
  14  27.366
  15  6.48644e-05
  16  8.33975e-05
  17  1.25318e-06
  18  0.00186425
  19  1.0074e-05
  20  5.30705e-05
  21  79.2787
  22  78.3956
  23  0.321321
  24  0.20131
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  6.774e-05  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:  1.178e+00  2.013e-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:  8.054e-01  3.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 24.506 22.796
Photon Flux Upper Limit: 9.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217192/likelihoodResults_608515201_609120001_4FGL_J0138.0+2247_weekly_bin611.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) = 3611.82986009
delta logL = -0.000172501272118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3611.82968805
delta logL = -4.69077804155e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0781       1.0000          .0000       10.000    
     3 'Normalizat'    .80543       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1777       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=   3611.830     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      229 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2268.2        .90712E-02** at limit **
   2  Index         2.0625        8.3727        .50000        .47293E-05
   3  Normalizat    .80543        .75341E-01    .75917E-01    .13447E-04
   4  Prefactor     1.1777        .48391E-01    .35181E-01    .57764E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06252
  Normalizat = 0.805435
  Prefactor  = 1.17769
 **********
 **   18 **HESSE 
 **********

 FCN=   3611.830     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6881.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0625        5.5104        .50000       -.62796    
   3  Normalizat    .80543        .11951        .33603E-03   -.99867    
   4  Prefactor     1.1777        .76933E-01    .18087E-03   -.87021    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.02145e-09
Minuit parameter uncertainties:
  1  0.000898726
  2  52.0006
  3  0.119546
  4  0.0769407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217192': 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): 102
logL (Free Index) = 3611.82968765
delta logL = -6.36741788185e-08

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  8.987e-04  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.063e+00  5.200e+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:  1.178e+00  7.694e-02  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:  8.054e-01  1.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 24.506 22.796

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/217192/cmap_HighResolution_608515201_609120001_4FGL_J0138.0+2247_weekly_bin611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.45e-03', job_status='DONE', photon_flux_upper_limit='9.93e-08', time_completed='2021-07-04 00:13:04.430037', job_id='217192', GAL2='1.18', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1625382784.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='-6.37e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='611' AND source_name='4FGL J0138.0+2247' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 00:13:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 217192: <4FGL_J0138.0+2247_weekly_bin611> in cluster <slac> Done

Job <4FGL_J0138.0+2247_weekly_bin611> 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) <bullet0205>, 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:13:06 2021
Results reported at Sun Jul  4 00:13:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_weekly_bin611 24.5063 22.7962 608515201 609120001 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 :                                   574.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            611 sec.

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

