aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J0224.9+1843_weekly_bin462
RA = 36.2294, Dec = 18.7194
tmin = 518400001, tmax = 519004801
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='502836', job_status='RUN', time_executed='2021-07-04 19:06:13.305862', time_epoch_executed='1625450773.31' WHERE source_name='4FGL J0224.9+1843' and cadence='weekly' and bin_id='462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502836

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502836/ft1_4FGL_J0224.9+1843_weekly_bin462.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502836/ft2_4FGL_J0224.9+1843_weekly_bin462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502836/ft1_4FGL_J0224.9+1843_weekly_bin462.fits outfile=/scratch/kocevski/502836/ft1_filteredMKT_4FGL_J0224.9+1843_weekly_bin462.fits ra=36.2294 dec=18.7194 rad=12.0 tmin=518400001.0 tmax=519004801.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 12.12
user 11.16
sys 0.39

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/502836/ft2_4FGL_J0224.9+1843_weekly_bin462.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/502836/ft2_4FGL_J0224.9+1843_weekly_bin462.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/502836/ft1_filteredMKT_4FGL_J0224.9+1843_weekly_bin462.fits evtable="EVENTS" outfile="/scratch/kocevski/502836/ft1_filtered_4FGL_J0224.9+1843_weekly_bin462.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.29
user 0.38
sys 0.24

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/502836/ft1_filtered_4FGL_J0224.9+1843_weekly_bin462.fits" evtable="EVENTS" scfile=/scratch/kocevski/502836/ft2_4FGL_J0224.9+1843_weekly_bin462.fits sctable="SC_DATA" outfile=/scratch/kocevski/502836/ltcube_518400001_519004801_4FGL_J0224.9+1843_weekly_bin462.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/502836/ft2_4FGL_J0224.9+1843_weekly_bin462.fits
.....................!
real 30.41
user 28.87
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502836/ft1_filtered_4FGL_J0224.9+1843_weekly_bin462.fits evtable="EVENTS" scfile=/scratch/kocevski/502836/ft2_4FGL_J0224.9+1843_weekly_bin462.fits sctable="SC_DATA" expcube=/scratch/kocevski/502836/ltcube_518400001_519004801_4FGL_J0224.9+1843_weekly_bin462.fits outfile=/scratch/kocevski/502836/expmap_518400001_519004801_4FGL_J0224.9+1843_weekly_bin462.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/502836/ltcube_518400001_519004801_4FGL_J0224.9+1843_weekly_bin462.fits
.....................!
real 195.82
user 185.86
sys 6.48

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

Setting source of interest to:
4FGL J0224.9+1843 @ 36.2294 18.7194

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/502836/ft1_filtered_4FGL_J0224.9+1843_weekly_bin462.fits scfile=/scratch/kocevski/502836/ft2_4FGL_J0224.9+1843_weekly_bin462.fits outfile=/scratch/kocevski/502836/cmap_518400001_519004801_4FGL_J0224.9+1843_weekly_bin462.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.2294 yref=18.7194 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.83
user 0.41
sys 0.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502836/ft1_filtered_4FGL_J0224.9+1843_weekly_bin462.fits scfile=/scratch/kocevski/502836/ft2_4FGL_J0224.9+1843_weekly_bin462.fits outfile=/scratch/kocevski/502836/cmap_HighResolution_518400001_519004801_4FGL_J0224.9+1843_weekly_bin462.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.2294 yref=18.7194 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.72
user 0.41
sys 0.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/502836/ft1_filtered_4FGL_J0224.9+1843_weekly_bin462.fits evtable="EVENTS" scfile=/scratch/kocevski/502836/ft2_4FGL_J0224.9+1843_weekly_bin462.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/502836/Model_4FGL_J0224.9+1843_weekly_bin462.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/502836/ft1_filtered_4FGL_J0224.9+1843_weekly_bin462.fits.....................!
real 235.99
user 231.09
sys 1.83

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/502836/ft1_filtered_4FGL_J0224.9+1843_weekly_bin462.fits', '/scratch/kocevski/502836/ft2_4FGL_J0224.9+1843_weekly_bin462.fits', expMap='/scratch/kocevski/502836/expmap_518400001_519004801_4FGL_J0224.9+1843_weekly_bin462.fits', expCube='/scratch/kocevski/502836/ltcube_518400001_519004801_4FGL_J0224.9+1843_weekly_bin462.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/502836/Model_4FGL_J0224.9+1843_weekly_bin462.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0224.9+1843'

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  9.429e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.951e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  3.218e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/502836/ft1_filtered_4FGL_J0224.9+1843_weekly_bin462.fits
Spacecraft file(s): /scratch/kocevski/502836/ft2_4FGL_J0224.9+1843_weekly_bin462.fits
Exposure map: /scratch/kocevski/502836/expmap_518400001_519004801_4FGL_J0224.9+1843_weekly_bin462.fits
Exposure cube: /scratch/kocevski/502836/ltcube_518400001_519004801_4FGL_J0224.9+1843_weekly_bin462.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/502836/Model_4FGL_J0224.9+1843_weekly_bin462.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) = 19489.1700937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.623       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5078       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3866       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2404       1.0000         .10000E-03   10000.    
     6 'norm      '    .80285       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5739       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1667       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.138       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9821       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.2904       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0278       1.0000         .10000E-03   10000.    
    20 'norm      '    .68522E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.810       1.0000         .10000E-03   10000.    
    22 'norm      '    6.6404       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.0025       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.5827       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3107       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.151       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88109       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0795       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19489.10     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3386 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.619        24.288       -.40786E-06    .31701E-05
   2  Prefactor     1.5040        6.1473        .15473E-04   -.12214E-03
   3  Prefactor     5.3862        3.3524        .30531E-06   -.69101E-04
   4  Prefactor     .10000E-03    52.313       -.85418E-06** at limit **
   5  Prefactor     1.2403        1.2866        .36016E-06    .97173E-04
   6  norm          .80344        2.6017        .12389E-05   -.61474E-04
   7  Prefactor     1.5740        3.8847        .12072E-04   -.22997E-03
   8  Prefactor     2.1661        1.6984        .24379E-06   -.25479E-03
   9  norm          .10000E-03    12.675       -.31767E-06** at limit **
  10  Prefactor     15.139        20.892        .92876E-06   -.10714E-03
  11  Prefactor     .10000E-03    14.624        .20878E-06** at limit **
  12  Prefactor     1.9823        2.8235        .36181E-06   -.59775E-04
  13  Prefactor     .10000E-03    56.321        .10530E-05** at limit **
  14  Prefactor     .10000E-03    10.939        .25745E-06** at limit **
  15  Prefactor     .10000E-03    1.8025        .51017E-07** at limit **
  16  Prefactor     .10000E-03    15.559        .32488E-06** at limit **
  17  Prefactor     .10000E-03    7.7687        .30302E-06** at limit **
  18  norm          7.2901        1.5376        .13458E-06   -.27988E-03
  19  Prefactor     3.0275        3.7468        .18194E-06   -.13793E-03
  20  norm          .68514E-01    .17644        .11782E-06   -.69043E-03
  21  Prefactor     12.810        19.507        .54696E-06   -.44055E-04
  22  norm          6.6425        6.2590        .41297E-06   -.91775E-04
  23  Prefactor     5.0001        9.8085        .83188E-06   -.11219E-03
  24  Prefactor     .10000E-03    19.594        .22558E-06** at limit **
  25  Prefactor     3.5823        4.1389        .19696E-05   -.20205E-03
  26  Prefactor     1.3109        8.0318        .66928E-06   -.37581E-04
  27  norm          .10000E-03    2.8591       -.77760E-07** at limit **
  28  Prefactor     14.019        110.38        .12619E-04   -.15192E-03
  29  Normalizat    .88120        .14059       -.99334E-05   -.62434E-03
  30  Prefactor     1.0794        .61509E-01    .17010E-05    .88400E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6195
  Prefactor  = 1.50404
  Prefactor  = 5.38623
  Prefactor  = 0.0001
  Prefactor  = 1.24027
  norm       = 0.80344
  Prefactor  = 1.57401
  Prefactor  = 2.16615
  norm       = 0.0001
  Prefactor  = 15.1387
  Prefactor  = 0.0001
  Prefactor  = 1.98228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.29009
  Prefactor  = 3.02747
  norm       = 0.0685138
  Prefactor  = 12.81
  norm       = 6.64249
  Prefactor  = 5.00008
  Prefactor  = 0.0001
  Prefactor  = 3.58231
  Prefactor  = 1.31094
  norm       = 0.0001
  Prefactor  = 14.0186
  Normalizat = 0.881204
  Prefactor  = 1.07943
 **********
 **   18 **HESSE 
 **********

 FCN=   19489.10     FROM HESSE     STATUS=OK           594 CALLS     3980 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.619        24.273        .84214E-04   -1.4756    
   2  Prefactor     1.5040        6.1395        .17422E-02   -1.5463    
   3  Prefactor     5.3862        3.3504        .17315E-03   -1.5244    
   4  Prefactor     .10000E-03    52.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2403        1.2789        .15413E-03   -1.5485    
   6  norm          .80344        2.5787        .38475E-03   -1.5529    
   7  Prefactor     1.5740        3.8896        .16938E-02   -1.5457    
   8  Prefactor     2.1661        1.6752        .15072E-03   -1.5414    
   9  norm          .10000E-03    12.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.139        20.837        .10294E-03   -1.4930    
  11  Prefactor     .10000E-03    14.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9823        2.8036        .27126E-03   -1.5426    
  13  Prefactor     .10000E-03    56.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.0070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.2901        1.5367        .76082E-04   -1.5168    
  19  Prefactor     3.0275        3.7119        .23321E-03   -1.5360    
  20  norm          .68514E-01    .20807        .83418E-03   -1.5656    
  21  Prefactor     12.810        19.474        .11192E-03   -1.4992    
  22  norm          6.6425        6.2504        .15572E-03   -1.5192    
  23  Prefactor     5.0001        9.4913        .17980E-03   -1.5261    
  24  Prefactor     .10000E-03    19.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.5823        4.1371        .10675E-02   -1.5329    
  26  Prefactor     1.3109        7.9474        .38512E-03   -1.5479    
  27  norm          .10000E-03    2.9667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.019        111.50        .10648E-03   -1.4959    
  29  Normalizat    .88120        .15415        .38817E-03   -.97124    
  30  Prefactor     1.0794        .68984E-01    .16498E-03   -.90127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2721e-08
Minuit parameter uncertainties:
  1  24.2837
  2  6.0784
  3  3.35053
  4  0.000183248
  5  1.27894
  6  2.57902
  7  3.89025
  8  1.67519
  9  1.83721e-05
  10  20.8471
  11  5.97153e-05
  12  2.80379
  13  2.58782e-05
  14  1.25009e-05
  15  6.04253e-06
  16  3.20683e-05
  17  6.7529e-05
  18  1.53675
  19  3.71219
  20  0.208076
  21  19.4838
  22  6.25104
  23  9.49417
  24  5.78411e-05
  25  4.1374
  26  6.45659
  27  1.11742e-05
  28  79.2757
  29  0.154231
  30  0.0689894
Done.

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

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  5.972e-05  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.951e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  3.218e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.079e+00  6.899e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  8.812e-01  1.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.229 18.719
Photon Flux Upper Limit: 6.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/502836/likelihoodResults_518400001_519004801_4FGL_J0224.9+1843_weekly_bin462.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) = 19489.1000571
delta logL = -0.000324435397488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19489.0997359
delta logL = -3.1736708479e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9604       1.0000          .0000       10.000    
     3 'Normalizat'    .88116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0794       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+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=   19489.10     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      263 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .41822        .99796E-01** at limit **
   2  Index         3.9195        6.5708        .50000       -.15098E-07
   3  Normalizat    .88121        .10178E-02    .38817E-03   -.61212E-03
   4  Prefactor     1.0794        .47746E-03    .16498E-03   -.14587E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.91948
  Normalizat = 0.88121
  Prefactor  = 1.07943
 **********
 **   18 **HESSE 
 **********

 FCN=   19489.10     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      294 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    166.67        .61964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.9195        7.9176        .50000       -.21782    
   3  Normalizat    .88121        .11139E-01    .15527E-04   -.97124    
   4  Prefactor     1.0794        .52254E-02    .32995E-04   -.90127    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.17594e-10
Minuit parameter uncertainties:
  1  0.000641808
  2  1431.39
  3  0.0111395
  4  0.00522544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502836': 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) = 19489.0997321
delta logL = 5.97727193963e-07

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  6.418e-04  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  3.919e+00  1.431e+03  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  3.218e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.079e+00  5.225e-03  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  8.812e-01  1.114e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.229 18.719

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/502836/cmap_HighResolution_518400001_519004801_4FGL_J0224.9+1843_weekly_bin462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', job_status='DONE', photon_flux_upper_limit='6.34e-08', time_completed='2021-07-04 19:41:51.410090', job_id='502836', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1625452911.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='5.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.95' WHERE bin_id='462' AND source_name='4FGL J0224.9+1843' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 19:41:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 502902: <4FGL_J0224.9+1843_weekly_bin462> in cluster <slac> Done

Job <4FGL_J0224.9+1843_weekly_bin462> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Jul  4 16:11:07 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 16:11:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 16:11:09 2021
Terminated at Sun Jul  4 16:52:22 2021
Results reported at Sun Jul  4 16:52:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.9+1843_weekly_bin462 36.2294 18.7194 518400001 519004801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0224.9+1843 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1923.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2472 sec.
    Turnaround time :                            2475 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 502836: <4FGL_J0224.9+1843_weekly_bin462> in cluster <slac> Done

Job <4FGL_J0224.9+1843_weekly_bin462> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 16:11:03 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 16:11:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 16:11:05 2021
Terminated at Sun Jul  4 19:41:52 2021
Results reported at Sun Jul  4 19:41:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.9+1843_weekly_bin462 36.2294 18.7194 518400001 519004801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0224.9+1843 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1934.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             97.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   12646 sec.
    Turnaround time :                            12649 sec.

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

