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


Performing analysis on: 4FGL_J0227.8+2246_weekly_bin507
RA = 36.9544, Dec = 22.7775
tmin = 545616001, tmax = 546220801
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='537634', job_status='RUN', time_executed='2021-07-04 17:59:25.329471', time_epoch_executed='1625446765.33' WHERE source_name='4FGL J0227.8+2246' and cadence='weekly' and bin_id='507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537634

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537634/ft1_4FGL_J0227.8+2246_weekly_bin507.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537634/ft2_4FGL_J0227.8+2246_weekly_bin507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537634/ft1_4FGL_J0227.8+2246_weekly_bin507.fits outfile=/scratch/kocevski/537634/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin507.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=545616001.0 tmax=546220801.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 9.05
user 8.31
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/537634/ft2_4FGL_J0227.8+2246_weekly_bin507.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/537634/ft2_4FGL_J0227.8+2246_weekly_bin507.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/537634/ft1_filteredMKT_4FGL_J0227.8+2246_weekly_bin507.fits evtable="EVENTS" outfile="/scratch/kocevski/537634/ft1_filtered_4FGL_J0227.8+2246_weekly_bin507.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.98
user 0.39
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/537634/ft1_filtered_4FGL_J0227.8+2246_weekly_bin507.fits" evtable="EVENTS" scfile=/scratch/kocevski/537634/ft2_4FGL_J0227.8+2246_weekly_bin507.fits sctable="SC_DATA" outfile=/scratch/kocevski/537634/ltcube_545616001_546220801_4FGL_J0227.8+2246_weekly_bin507.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/537634/ft2_4FGL_J0227.8+2246_weekly_bin507.fits
.....................!
real 26.10
user 25.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537634/ft1_filtered_4FGL_J0227.8+2246_weekly_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/537634/ft2_4FGL_J0227.8+2246_weekly_bin507.fits sctable="SC_DATA" expcube=/scratch/kocevski/537634/ltcube_545616001_546220801_4FGL_J0227.8+2246_weekly_bin507.fits outfile=/scratch/kocevski/537634/expmap_545616001_546220801_4FGL_J0227.8+2246_weekly_bin507.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/537634/ltcube_545616001_546220801_4FGL_J0227.8+2246_weekly_bin507.fits
.....................!
real 192.88
user 185.21
sys 4.29

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

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/537634/ft1_filtered_4FGL_J0227.8+2246_weekly_bin507.fits scfile=/scratch/kocevski/537634/ft2_4FGL_J0227.8+2246_weekly_bin507.fits outfile=/scratch/kocevski/537634/cmap_545616001_546220801_4FGL_J0227.8+2246_weekly_bin507.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.9544 yref=22.7775 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.57
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/537634/ft1_filtered_4FGL_J0227.8+2246_weekly_bin507.fits scfile=/scratch/kocevski/537634/ft2_4FGL_J0227.8+2246_weekly_bin507.fits outfile=/scratch/kocevski/537634/cmap_HighResolution_545616001_546220801_4FGL_J0227.8+2246_weekly_bin507.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.9544 yref=22.7775 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/537634/ft1_filtered_4FGL_J0227.8+2246_weekly_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/537634/ft2_4FGL_J0227.8+2246_weekly_bin507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/537634/Model_4FGL_J0227.8+2246_weekly_bin507.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/537634/ft1_filtered_4FGL_J0227.8+2246_weekly_bin507.fits..................................!
real 19.44
user 17.97
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/537634/ft1_filtered_4FGL_J0227.8+2246_weekly_bin507.fits', '/scratch/kocevski/537634/ft2_4FGL_J0227.8+2246_weekly_bin507.fits', expMap='/scratch/kocevski/537634/expmap_545616001_546220801_4FGL_J0227.8+2246_weekly_bin507.fits', expCube='/scratch/kocevski/537634/ltcube_545616001_546220801_4FGL_J0227.8+2246_weekly_bin507.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/537634/Model_4FGL_J0227.8+2246_weekly_bin507.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/537634/ft1_filtered_4FGL_J0227.8+2246_weekly_bin507.fits
Spacecraft file(s): /scratch/kocevski/537634/ft2_4FGL_J0227.8+2246_weekly_bin507.fits
Exposure map: /scratch/kocevski/537634/expmap_545616001_546220801_4FGL_J0227.8+2246_weekly_bin507.fits
Exposure cube: /scratch/kocevski/537634/ltcube_545616001_546220801_4FGL_J0227.8+2246_weekly_bin507.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/537634/Model_4FGL_J0227.8+2246_weekly_bin507.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 448.850657604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 444.640908889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2309       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9132       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2696       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0990       1.0000         .10000E-03   10000.    
     5 'norm      '    3.8719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3081       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.802       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2953       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .66153E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5875       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4622       1.0000         .10000E-03   10000.    
    12 'Prefactor '    436.30       1.0000         .10000E-03   10000.    
    13 'Prefactor '    103.50       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .88585       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31272E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.8491       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .97288E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    4.8851       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13170E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17312       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .84872E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .76838       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13824E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.2696       1.0000         .10000E-03   10000.    
    25 'norm      '    66.730       1.0000         .10000E-03   10000.    
    26 'Prefactor '    35.885       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .15027E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79190       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   444.4136     FROM MIGRAD    STATUS=CONVERGED    260 CALLS      485 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2309        1.0046         .0000         .0000    
   2  Prefactor     9.9132        1.0013         .0000         .0000    
   3  norm          1.2696        1.1124         .0000         .0000    
   4  Prefactor     .37267        .35151       -.16354E-03    .17250E-02
   5  norm          3.8719        1.0086         .0000         .0000    
   6  Prefactor     4.2927        .82762        .11128E-04    .57141E-03
   7  Prefactor     23.535        1.0161        .41196E-05   -.16179E-05
   8  Prefactor     5.2953        1.0045         .0000         .0000    
   9  Prefactor     .10000E-03    .22066       -.29075E-04** at limit **
  10  Prefactor     1.5875        1.0610         .0000         .0000    
  11  norm          .14766        .20872       -.14071E-03    .11393E-02
  12  Prefactor     459.55        1.0251       -.42685E-04   -.12637E-01
  13  Prefactor     110.60        1.0334       -.74715E-05    .44918E-04
  14  Prefactor     .10001E-03    .40679       -.28515E-03** at limit **
  15  Prefactor     .10000E-03    .28548       -.60902E-05** at limit **
  16  norm          8.8491        1.0016         .0000         .0000    
  17  Prefactor     .10000E-03    .22554       -.45991E-04** at limit **
  18  norm          5.2431        1.0415       -.24980E-05   -.12175E-03
  19  Prefactor     .10000E-03    .26446       -.56490E-05** at limit **
  20  Prefactor     .10000E-03    .24276        .44702E-04** at limit **
  21  Prefactor     .10000E-03    .22273       -.10216E-04** at limit **
  22  Prefactor     .10000E-03    .37954       -.26043E-04** at limit **
  23  Prefactor     .10000E-03    .20666       -.53220E-04** at limit **
  24  Prefactor     8.2696        1.0018         .0000         .0000    
  25  norm          61.535        .96056        .84911E-05   -.17574E-04
  26  Prefactor     952.22        4.9091       -.23908E-03    .43444E-03
  27  Prefactor     .10000E-03    .20693       -.70807E-04** at limit **
  28  Normalizat    .10000E-01    .25709       -.45859E-04** at limit **
  29  Prefactor     .67087        1.0568        .20262E-04   -.16437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.23088
  Prefactor  = 9.9132
  norm       = 1.26964
  Prefactor  = 0.372669
  norm       = 3.87187
  Prefactor  = 4.29266
  Prefactor  = 23.5345
  Prefactor  = 5.29526
  Prefactor  = 0.0001
  Prefactor  = 1.58749
  norm       = 0.147663
  Prefactor  = 459.551
  Prefactor  = 110.599
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 8.84905
  Prefactor  = 0.000100001
  norm       = 5.24314
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 8.26963
  norm       = 61.5354
  Prefactor  = 952.216
  Prefactor  = 0.000100002
  Normalizat = 0.01
  Prefactor  = 0.670868
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   444.4136     FROM HESSE     STATUS=FAILED        11 CALLS      496 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     529.22        523.94         .0000       -1.5251    
   2  Prefactor     9.9132        1.0013         .0000       -1.5078    
   3  norm          1.2696        1.1124         .0000       -1.5483    
   4  Prefactor     .37267        .35151       -.16354E-03   -1.5586    
   5  norm          3.8719        1.0086         .0000       -1.5314    
   6  Prefactor     4.2927        .82762        .11128E-04   -1.5294    
   7  Prefactor     23.535        1.0161        .41196E-05   -1.4737    
   8  Prefactor     5.2953        1.0045         .0000       -1.5248    
   9  Prefactor     .10000E-03    .22066       -.29075E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5875        1.0610         .0000       -1.5456    
  11  norm          .14766        .20872       -.14071E-03   -1.5631    
  12  Prefactor     459.55        1.0251       -.42685E-04   -1.1387    
  13  Prefactor     110.60        1.0334       -.74715E-05   -1.3601    
  14  Prefactor     .10001E-03    .40679       -.28515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .28548       -.60902E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.8491        1.0016         .0000       -1.5113    
  17  Prefactor     .10000E-03    .22554       -.45991E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2431        1.0415       -.24980E-05   -1.5250    
  19  Prefactor     .10000E-03    .26446       -.56490E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .24276        .44702E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .22273       -.10216E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .37954       -.26043E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .20666       -.53220E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.2696        1.0018         .0000       -1.5133    
  25  norm          61.535        .96056        .84911E-05   -1.4137    
  26  Prefactor     952.22        4.9091       -.23908E-03   -.94340    
  27  Prefactor     .10000E-03    .20693       -.70807E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .25709       -.45859E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .67087        1.0568        .20262E-04   -1.0468    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.85373e-10
Minuit parameter uncertainties:
  1  1.00464
  2  1.00128
  3  1.11245
  4  0.351517
  5  1.00859
  6  0.827622
  7  1.01614
  8  1.00453
  9  1.49744e-05
  10  1.061
  11  0.208722
  12  1.02505
  13  1.03337
  14  0.000144539
  15  9.02427e-06
  16  1.0016
  17  3.53226e-05
  18  1.04151
  19  6.40783e-06
  20  3.63305e-05
  21  1.95963e-06
  22  2.76753e-05
  23  2.12968e-05
  24  1.00184
  25  0.960563
  26  4.90913
  27  4.10719e-05
  28  1.97416e-08
  29  1.09104
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 444.413648346

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  1.445e-04  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  6.709e-01  1.091e+00  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.000e-02  1.974e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.954 22.777
Photon Flux Upper Limit: 3.47e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/537634/likelihoodResults_545616001_546220801_4FGL_J0227.8+2246_weekly_bin507.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) = 444.413654209
delta logL = -5.86351848142e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 444.41365406
delta logL = -5.71471508692e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   444.4136     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      208 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1157.7        .90734E-02** at limit **
   2  Index         2.1095        8.6898        .50000        .31916E-06
   3  Normalizat    .10000E-01    .14872E-02    .23334    ** at limit **
   4  Prefactor     .67087        .12090E-01    .42012E-01    .15664E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.10949
  Normalizat = 0.01
  Prefactor  = 0.670869
 **********
 **   18 **HESSE 
 **********

 FCN=   444.4136     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7430.6        .18147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1095        6.0435        .50000       -.61640    
   3  Normalizat    .10000E-01    .86709E-02    .95563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .67087        .27006E-01    .18925E-03   -1.0468    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.10586e-08
Minuit parameter uncertainties:
  1  0.0168171
  2  1978.12
  3  1.28557e-07
  4  0.0270069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537634': 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) = 444.413648343
delta logL = 2.75701950159e-09

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  1.682e-02  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.109e+00  1.978e+03  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  6.709e-01  2.701e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.000e-02  1.286e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.954 22.777

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/537634/cmap_HighResolution_545616001_546220801_4FGL_J0227.8+2246_weekly_bin507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-01', job_status='DONE', photon_flux_upper_limit='3.47e-06', time_completed='2021-07-04 18:14:01.041087', job_id='537634', GAL2='0.67', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625447641.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.67', dlogl='2.76e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='507' AND source_name='4FGL J0227.8+2246' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 18:14:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 537634: <4FGL_J0227.8+2246_weekly_bin507> in cluster <slac> Done

Job <4FGL_J0227.8+2246_weekly_bin507> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Jul  4 17:58:07 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 17:58:08 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:58:08 2021
Terminated at Sun Jul  4 18:14:02 2021
Results reported at Sun Jul  4 18:14:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.8+2246_weekly_bin507 36.9544 22.7775 545616001 546220801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0227.8+2246 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   372.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             201.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

