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


Performing analysis on: 4FGL_J0227.2+3928_weekly_bin533
RA = 36.8053, Dec = 39.4704
tmin = 561340801, tmax = 561945601
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='533850', job_status='RUN', time_executed='2021-07-04 17:46:50.079372', time_epoch_executed='1625446010.08' WHERE source_name='4FGL J0227.2+3928' and cadence='weekly' and bin_id='533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/533850

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/533850/ft1_4FGL_J0227.2+3928_weekly_bin533.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/533850/ft2_4FGL_J0227.2+3928_weekly_bin533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/533850/ft1_4FGL_J0227.2+3928_weekly_bin533.fits outfile=/scratch/kocevski/533850/ft1_filteredMKT_4FGL_J0227.2+3928_weekly_bin533.fits ra=36.8053 dec=39.4704 rad=12.0 tmin=561340801.0 tmax=561945601.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.65
user 7.92
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/533850/ft2_4FGL_J0227.2+3928_weekly_bin533.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/533850/ft2_4FGL_J0227.2+3928_weekly_bin533.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/533850/ft1_filteredMKT_4FGL_J0227.2+3928_weekly_bin533.fits evtable="EVENTS" outfile="/scratch/kocevski/533850/ft1_filtered_4FGL_J0227.2+3928_weekly_bin533.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.12
user 0.38
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/533850/ft1_filtered_4FGL_J0227.2+3928_weekly_bin533.fits" evtable="EVENTS" scfile=/scratch/kocevski/533850/ft2_4FGL_J0227.2+3928_weekly_bin533.fits sctable="SC_DATA" outfile=/scratch/kocevski/533850/ltcube_561340801_561945601_4FGL_J0227.2+3928_weekly_bin533.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/533850/ft2_4FGL_J0227.2+3928_weekly_bin533.fits
.....................!
real 26.56
user 25.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/533850/ft1_filtered_4FGL_J0227.2+3928_weekly_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/533850/ft2_4FGL_J0227.2+3928_weekly_bin533.fits sctable="SC_DATA" expcube=/scratch/kocevski/533850/ltcube_561340801_561945601_4FGL_J0227.2+3928_weekly_bin533.fits outfile=/scratch/kocevski/533850/expmap_561340801_561945601_4FGL_J0227.2+3928_weekly_bin533.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/533850/ltcube_561340801_561945601_4FGL_J0227.2+3928_weekly_bin533.fits
.....................!
real 194.62
user 186.86
sys 4.70

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

Setting source of interest to:
4FGL J0227.2+3928 @ 36.8053 39.4704

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/533850/ft1_filtered_4FGL_J0227.2+3928_weekly_bin533.fits scfile=/scratch/kocevski/533850/ft2_4FGL_J0227.2+3928_weekly_bin533.fits outfile=/scratch/kocevski/533850/cmap_561340801_561945601_4FGL_J0227.2+3928_weekly_bin533.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=36.8053 yref=39.4704 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/533850/ft1_filtered_4FGL_J0227.2+3928_weekly_bin533.fits scfile=/scratch/kocevski/533850/ft2_4FGL_J0227.2+3928_weekly_bin533.fits outfile=/scratch/kocevski/533850/cmap_HighResolution_561340801_561945601_4FGL_J0227.2+3928_weekly_bin533.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=36.8053 yref=39.4704 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.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/533850/ft1_filtered_4FGL_J0227.2+3928_weekly_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/533850/ft2_4FGL_J0227.2+3928_weekly_bin533.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/533850/Model_4FGL_J0227.2+3928_weekly_bin533.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/533850/ft1_filtered_4FGL_J0227.2+3928_weekly_bin533.fits.....................!
real 102.50
user 98.52
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/533850/ft1_filtered_4FGL_J0227.2+3928_weekly_bin533.fits', '/scratch/kocevski/533850/ft2_4FGL_J0227.2+3928_weekly_bin533.fits', expMap='/scratch/kocevski/533850/expmap_561340801_561945601_4FGL_J0227.2+3928_weekly_bin533.fits', expCube='/scratch/kocevski/533850/ltcube_561340801_561945601_4FGL_J0227.2+3928_weekly_bin533.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/533850/Model_4FGL_J0227.2+3928_weekly_bin533.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.2+3928'

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  1.077e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/533850/ft1_filtered_4FGL_J0227.2+3928_weekly_bin533.fits
Spacecraft file(s): /scratch/kocevski/533850/ft2_4FGL_J0227.2+3928_weekly_bin533.fits
Exposure map: /scratch/kocevski/533850/expmap_561340801_561945601_4FGL_J0227.2+3928_weekly_bin533.fits
Exposure cube: /scratch/kocevski/533850/ltcube_561340801_561945601_4FGL_J0227.2+3928_weekly_bin533.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/533850/Model_4FGL_J0227.2+3928_weekly_bin533.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) = 7349.10453425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8571       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    224.97       1.0000         .10000E-03   10000.    
     6 'norm      '    7.7680       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9277       1.0000         .10000E-03   10000.    
     8 'norm      '    .16155E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6431       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.056       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    56.375       1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.643       1.0000         .10000E-03   10000.    
    17 'norm      '    27.386       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.212       1.0000         .10000E-03   10000.    
    20 'Prefactor '    62.615       1.0000         .10000E-03   10000.    
    21 'norm      '    5.0817       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86647       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86705       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7349.086     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2980 TOTAL
                     EDM=   .31E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8571        1.3943       -.22474E-07    .61793E-05
   2  Prefactor     .10000E-03    8.8961       -.42441E-08** at limit **
   3  Prefactor     .10000E-03    5.7900       -.21212E-07** at limit **
   4  Prefactor     .10000E-03    69.805        .75659E-06** at limit **
   5  Prefactor     224.96        161.01        .19533E-06    .18468E-06
   6  norm          7.7679        4.9076       -.65537E-08    .14704E-06
   7  Prefactor     6.9260        9.3470        .18585E-06   -.38340E-05
   8  norm          .10000E-03    2.2176        .47132E-07** at limit **
   9  Prefactor     .10000E-03    6.3957       -.28200E-06** at limit **
  10  norm          1.6422        .81759        .15830E-07   -.64093E-04
  11  norm          .10000E-03    .33869       -.50858E-07** at limit **
  12  Prefactor     11.055        9.4741       -.85659E-07   -.64600E-05
  13  norm          .10000E-03    6.6530        .35343E-06** at limit **
  14  Prefactor     .10000E-03    31.601       -.38094E-06** at limit **
  15  norm          56.375        4.8386        .46806E-08    .22600E-04
  16  Prefactor     56.641        78.023       -.49260E-07    .75309E-06
  17  norm          27.378        36.590        .35181E-06   -.22271E-05
  18  norm          .10000E-03    26.550        .25313E-06** at limit **
  19  Prefactor     71.205        64.187        .30627E-05   -.49848E-05
  20  Prefactor     62.937        214.00        .77206E-07    .54163E-06
  21  norm          5.0788        2.9999       -.85429E-06    .56379E-04
  22  Normalizat    .86617        .31708       -.91069E-06    .66513E-05
  23  Prefactor     .86716        .13450        .33497E-06   -.25186E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.85713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 224.962
  norm       = 7.76794
  Prefactor  = 6.926
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.64225
  norm       = 0.0001
  Prefactor  = 11.0546
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 56.375
  Prefactor  = 56.6407
  norm       = 27.3777
  norm       = 0.0001
  Prefactor  = 71.2046
  Prefactor  = 62.9366
  norm       = 5.07882
  Normalizat = 0.866171
  Prefactor  = 0.867157
 **********
 **   18 **HESSE 
 **********

 FCN=   7349.086     FROM HESSE     STATUS=OK           372 CALLS     3352 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8571        1.3984        .85282E-04   -1.5435    
   2  Prefactor     .10000E-03    8.9091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    70.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     224.96        160.79        .13487E-03   -1.2697    
   6  norm          7.7679        4.8896        .13392E-03   -1.5150    
   7  Prefactor     6.9260        9.3360        .15243E-03   -1.5182    
   8  norm          .10000E-03    4.1703        .23630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.4541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6422        .78668        .49656E-04   -1.5452    
  11  norm          .10000E-03    .35158        .97187E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.055        9.4451        .12049E-03   -1.5043    
  13  norm          .10000E-03    6.6604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          56.375        4.8312        .51879E-04   -1.4205    
  16  Prefactor     56.641        78.265        .53301E-04   -1.4201    
  17  norm          27.378        36.652        .76554E-04   -1.4661    
  18  norm          .10000E-03    26.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     71.205        64.199        .47571E-04   -1.4018    
  20  Prefactor     62.937        213.65        .25355E-03   -1.4120    
  21  norm          5.0788        2.9982        .80373E-04   -1.5257    
  22  Normalizat    .86617        .34755        .51203E-03   -.97659    
  23  Prefactor     .86716        .15014        .22956E-03   -.97298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.23077e-12
Minuit parameter uncertainties:
  1  1.39838
  2  1.90404e-06
  3  1.35711e-06
  4  3.6212e-05
  5  161.109
  6  4.88987
  7  9.33796
  8  1.16065e-05
  9  6.13546e-06
  10  0.786688
  11  4.9094e-08
  12  9.44635
  13  5.41129e-06
  14  1.16476e-05
  15  4.83124
  16  78.4076
  17  36.6826
  18  1.34154e-05
  19  64.2613
  20  216.336
  21  2.99832
  22  0.348455
  23  0.15021
Done.

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

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  1.105e+01  9.446e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  8.672e-01  1.502e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  8.662e-01  3.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.66
Ra Dec: 36.805 39.470
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 9.03e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 2.04e-05

TS (Fixed Index): 2.66
Ra Dec: 36.805 39.470
Photon Flux Upper Limit: 3.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.49e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/533850/likelihoodResults_561340801_561945601_4FGL_J0227.2+3928_weekly_bin533.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) = 7348.37301754
delta logL = 0.712593054575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7348.35495782
delta logL = 0.730652781654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.559       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9817       1.0000          .0000       10.000    
     3 'Normalizat'    .90209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85725       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7348.355     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      204 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.562        11.638        .28999E-05   -.26451E-03
   2  Index         1.9821        .63976        .23921E-04    .10636E-04
   3  Normalizat    .90214        .28863       -.27321E-05   -.22604E-03
   4  Prefactor     .85725        .12981        .31961E-06   -.36524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5619
  Index      = 1.98212
  Normalizat = 0.902142
  Prefactor  = 0.857247
 **********
 **   18 **HESSE 
 **********

 FCN=   7348.355     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.562        11.438        .11303E-03   -1.4999    
   2  Index         1.9821        .63011        .96948E-02   -.64798    
   3  Normalizat    .90214        .31936        .50282E-03   -.96385    
   4  Prefactor     .85725        .14410        .23070E-03   -.97651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.74271e-10
Minuit parameter uncertainties:
  1  11.4403
  2  0.632761
  3  0.320034
  4  0.144162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/533850': 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) = 7348.35495753
delta logL = 0.730653067593

Extracting fit parameters...

4FGL J0227.2+3928
   Spectrum: PowerLaw
302    Prefactor:  1.256e+01  1.144e+01  1.000e-04  1.000e+04 ( 1.000e-12)
303        Index:  1.982e+00  6.328e-01  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  6.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  8.572e-01  1.442e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.021e-01  3.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.09
Ra Dec: 36.805 39.470
Photon Index (Free Index): 1.98 +/- 0.63
Photon Flux (Free Index): 4.93e-08 +/- 6.03e-08
Energy Flux (Free Index): 3.56e-05 +/- 3.86e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/533850/cmap_HighResolution_561340801_561945601_4FGL_J0227.2+3928_weekly_bin533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-02', comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='3.56e-05', photon_flux_error='9.03e-08', dlogl='7.31e-01', energy_flux='2.38e-05', photon_flux2='4.93e-08', job_status='DONE', time_completed='2021-07-04 18:01:25.334041', photon_index_error2='0.63', photon_index2='1.98', ts='2.66', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='3.15e-07', energy_flux_error2='3.86e-05', EG='0.87', time_epoch_completed='1625446885.33', return_code='0', job_id='533850', GAL2='0.86', EG2='0.90', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='6.03e-08', ts2='4.09', photon_index='2.79' WHERE bin_id='533' AND source_name='4FGL J0227.2+3928' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 18:01:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 533850: <4FGL_J0227.2+3928_weekly_bin533> in cluster <slac> Done

Job <4FGL_J0227.2+3928_weekly_bin533> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Jul  4 17:46:09 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 17:46:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 17:46:10 2021
Terminated at Sun Jul  4 18:01:31 2021
Results reported at Sun Jul  4 18:01:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.2+3928_weekly_bin533 36.8053 39.4704 561340801 561945601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0227.2+3928 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   854.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

