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


Performing analysis on: 4FGL_J0138.0+2247_weekly_bin279
RA = 24.5063, Dec = 22.7962
tmin = 407721601, tmax = 408326401
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='215555', job_status='RUN', time_executed='2021-07-03 23:57:45.720652', time_epoch_executed='1625381865.72' WHERE source_name='4FGL J0138.0+2247' and cadence='weekly' and bin_id='279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215555

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215555/ft1_4FGL_J0138.0+2247_weekly_bin279.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215555/ft2_4FGL_J0138.0+2247_weekly_bin279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215555/ft1_4FGL_J0138.0+2247_weekly_bin279.fits outfile=/scratch/kocevski/215555/ft1_filteredMKT_4FGL_J0138.0+2247_weekly_bin279.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=407721601.0 tmax=408326401.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 8.60
user 8.12
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/215555/ft2_4FGL_J0138.0+2247_weekly_bin279.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/215555/ft1_filteredMKT_4FGL_J0138.0+2247_weekly_bin279.fits evtable="EVENTS" outfile="/scratch/kocevski/215555/ft1_filtered_4FGL_J0138.0+2247_weekly_bin279.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/215555/ft1_filtered_4FGL_J0138.0+2247_weekly_bin279.fits" evtable="EVENTS" scfile=/scratch/kocevski/215555/ft2_4FGL_J0138.0+2247_weekly_bin279.fits sctable="SC_DATA" outfile=/scratch/kocevski/215555/ltcube_407721601_408326401_4FGL_J0138.0+2247_weekly_bin279.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/215555/ft2_4FGL_J0138.0+2247_weekly_bin279.fits
.....................!
real 26.47
user 25.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215555/ft1_filtered_4FGL_J0138.0+2247_weekly_bin279.fits evtable="EVENTS" scfile=/scratch/kocevski/215555/ft2_4FGL_J0138.0+2247_weekly_bin279.fits sctable="SC_DATA" expcube=/scratch/kocevski/215555/ltcube_407721601_408326401_4FGL_J0138.0+2247_weekly_bin279.fits outfile=/scratch/kocevski/215555/expmap_407721601_408326401_4FGL_J0138.0+2247_weekly_bin279.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/215555/ltcube_407721601_408326401_4FGL_J0138.0+2247_weekly_bin279.fits
.....................!
real 192.87
user 185.33
sys 4.37

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/215555/ft1_filtered_4FGL_J0138.0+2247_weekly_bin279.fits scfile=/scratch/kocevski/215555/ft2_4FGL_J0138.0+2247_weekly_bin279.fits outfile=/scratch/kocevski/215555/cmap_407721601_408326401_4FGL_J0138.0+2247_weekly_bin279.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.60
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215555/ft1_filtered_4FGL_J0138.0+2247_weekly_bin279.fits scfile=/scratch/kocevski/215555/ft2_4FGL_J0138.0+2247_weekly_bin279.fits outfile=/scratch/kocevski/215555/cmap_HighResolution_407721601_408326401_4FGL_J0138.0+2247_weekly_bin279.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.012       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .55586E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .62913       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.568       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.047       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6687       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2640       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18279E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.409       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4496       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2448       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4076       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.472       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10653E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.541       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87320       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87153       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=   5696.275     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2800 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.022        17.476       -.71400E-06    .42166E-04
   2  Prefactor     .50065E-03    136.34       -.11361E-04** at limit **
   3  norm          .63115        1.0261        .45639E-07    .38246E-02
   4  norm          .10000E-03    .41764        .66999E-07** at limit **
   5  Prefactor     11.569        10.613       -.30740E-06   -.49181E-04
   6  Prefactor     12.048        22.235       -.18301E-07    .11098E-03
   7  Prefactor     8.6732        6.0724        .13163E-06    .80909E-03
   8  Prefactor     3.2625        5.5490        .21308E-05    .82397E-03
   9  Prefactor     .10000E-03    31.338       -.88275E-06** at limit **
  10  Prefactor     47.423        32.318        .11482E-05    .13107E-03
  11  Prefactor     .10000E-03    93.413       -.10900E-05** at limit **
  12  norm          2.4497        .84689       -.66547E-08    .30740E-03
  13  Prefactor     .10000E-03    10.049       -.29003E-06** at limit **
  14  Prefactor     .10000E-03    10.250       -.26400E-07** at limit **
  15  norm          3.2444        3.2581       -.12835E-07    .55134E-05
  16  Prefactor     .10000E-03    75.442       -.59254E-07** at limit **
  17  Prefactor     1.4079        1.9584        .90609E-07    .95678E-04
  18  Prefactor     18.473        9.4832        .13135E-07    .29266E-04
  19  Prefactor     .10000E-03    1.7440        .27997E-07** at limit **
  20  norm          .10000E-03    146.73        .22710E-05** at limit **
  21  Prefactor     37.509        38.170       -.53274E-05   -.25707E-03
  22  Prefactor     .10000E-03    12.570        .61455E-07** at limit **
  23  Normalizat    .87315        .20363       -.54970E-06    .34737E-03
  24  Prefactor     .87162        .12146        .44256E-06    .43174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.022
  Prefactor  = 0.000500646
  norm       = 0.631148
  norm       = 0.0001
  Prefactor  = 11.5688
  Prefactor  = 12.0478
  Prefactor  = 8.6732
  Prefactor  = 3.26251
  Prefactor  = 0.0001
  Prefactor  = 47.4227
  Prefactor  = 0.0001
  norm       = 2.44975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.24442
  Prefactor  = 0.0001
  Prefactor  = 1.40789
  Prefactor  = 18.473
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.5087
  Prefactor  = 0.0001
  Normalizat = 0.873145
  Prefactor  = 0.871616
 **********
 **   18 **HESSE 
 **********

 FCN=   5696.275     FROM HESSE     STATUS=OK           401 CALLS     3201 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.022        17.474        .75695E-04   -1.4649    
   2  Prefactor     .50065E-03    84.142        .13425       -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .63115        .95962        .69079E-04   -1.5549    
   4  norm          .10000E-03    .42493        .47620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.569        10.619        .11778E-03   -1.5028    
   6  Prefactor     12.048        22.225        .11541E-03   -1.5014    
   7  Prefactor     8.6732        6.0609        .68072E-03   -1.5119    
   8  Prefactor     3.2625        5.5634        .11142E-02   -1.5347    
   9  Prefactor     .10000E-03    32.507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     47.423        32.329        .58235E-04   -1.4330    
  11  Prefactor     .10000E-03    93.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4497        .84639        .39116E-04   -1.5395    
  13  Prefactor     .10000E-03    10.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2444        3.2515        .12809E-03   -1.5348    
  16  Prefactor     .10000E-03    75.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4079        1.9310        .12028E-03   -1.5471    
  18  Prefactor     18.473        9.4634        .93189E-04   -1.4848    
  19  Prefactor     .10000E-03    1.7493        .97334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    147.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     37.509        38.170        .65413E-04   -1.4482    
  22  Prefactor     .10000E-03    12.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .87315        .23853        .29442E-03   -.97410    
  24  Prefactor     .87162        .14339        .18328E-03   -.97140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8895e-09
Minuit parameter uncertainties:
  1  17.4773
  2  0.367728
  3  0.959639
  4  2.8071e-07
  5  10.6202
  6  22.2407
  7  6.06131
  8  5.56431
  9  0.000103767
  10  32.3413
  11  0.000246124
  12  0.846396
  13  3.15603e-05
  14  3.78365e-06
  15  3.25169
  16  1.5975e-05
  17  1.93104
  18  9.46416
  19  2.77288e-06
  20  0.000427819
  21  38.1953
  22  1.21319e-05
  23  0.238818
  24  0.143453
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  4.742e+01  3.234e+01  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:  8.716e-01  1.435e-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.731e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.28
Ra Dec: 24.506 22.796
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 3.67e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 1.70e-05

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) = 5696.1342567
delta logL = 0.140893701248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5696.13408794
delta logL = 0.141062456696

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.455       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7071       1.0000          .0000       10.000    
     3 'Normalizat'    .88491       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86918       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5696.134     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      287 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.442        46.641        .51603E-04    .90327E-05
   2  Index         1.7073        .55797        .83541E-02    .20960E-03
   3  Normalizat    .88458        .22876        .29271E-03   -.19031E-05
   4  Prefactor     .86938        .14292        .18351E-03    .12019E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.4425
  Index      = 1.70732
  Normalizat = 0.884577
  Prefactor  = 0.869383
 **********
 **   18 **HESSE 
 **********

 FCN=   5696.134     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.442        46.086        .10321E-04   -1.4151    
   2  Index         1.7073        .55129        .16708E-02   -.71887    
   3  Normalizat    .88458        .22891        .11708E-04   -.97004    
   4  Prefactor     .86938        .14304        .73404E-05   -.97219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10177e-12
Minuit parameter uncertainties:
  1  46.1137
  2  0.553278
  3  0.229161
  4  0.143104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215555': 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) = 5696.1340868
delta logL = 0.141063602061

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  6.044e+01  4.611e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.707e+00  5.533e-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:  8.694e-01  1.431e-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.846e-01  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.57
Ra Dec: 24.506 22.796
Photon Index (Free Index): 1.71 +/- 0.55
Photon Flux (Free Index): 2.45e-08 +/- 2.61e-08
Energy Flux (Free Index): 3.91e-05 +/- 4.68e-05

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/215555/cmap_HighResolution_407721601_408326401_4FGL_J0138.0+2247_weekly_bin279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.67e-08', energy_flux2='3.91e-05', photon_flux_error='2.50e-08', dlogl='1.41e-01', energy_flux='2.50e-05', photon_flux2='2.45e-08', job_status='DONE', time_completed='2021-07-04 00:08:43.278883', photon_index_error2='0.55', photon_index2='1.71', ts='10.28', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='4.68e-05', EG='0.87', time_epoch_completed='1625382523.28', return_code='0', job_id='215555', GAL2='0.87', EG2='0.88', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='2.61e-08', ts2='10.57', photon_index='2.01' WHERE bin_id='279' AND source_name='4FGL J0138.0+2247' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 00:08:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0140>
Subject: Job 215555: <4FGL_J0138.0+2247_weekly_bin279> in cluster <slac> Done

Job <4FGL_J0138.0+2247_weekly_bin279> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Jul  3 23:57:26 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 23:57:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 23:57:27 2021
Terminated at Sun Jul  4 00:08:46 2021
Results reported at Sun Jul  4 00:08:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_weekly_bin279 24.5063 22.7962 407721601 408326401 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 :                                   643.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            680 sec.

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

