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


Performing analysis on: 4FGL_J0224.9+1843_weekly_bin588
RA = 36.2294, Dec = 18.7194
tmin = 594604801, tmax = 595209601
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='503277', job_status='RUN', time_executed='2021-07-04 16:20:08.509768', time_epoch_executed='1625440808.51' WHERE source_name='4FGL J0224.9+1843' and cadence='weekly' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503277

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503277/ft1_4FGL_J0224.9+1843_weekly_bin588.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503277/ft2_4FGL_J0224.9+1843_weekly_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503277/ft1_4FGL_J0224.9+1843_weekly_bin588.fits outfile=/scratch/kocevski/503277/ft1_filteredMKT_4FGL_J0224.9+1843_weekly_bin588.fits ra=36.2294 dec=18.7194 rad=12.0 tmin=594604801.0 tmax=595209601.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 6.85
user 5.87
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503277/ft1_filtered_4FGL_J0224.9+1843_weekly_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/503277/ft2_4FGL_J0224.9+1843_weekly_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/503277/ltcube_594604801_595209601_4FGL_J0224.9+1843_weekly_bin588.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/503277/ft2_4FGL_J0224.9+1843_weekly_bin588.fits
.....................!
real 27.17
user 26.35
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503277/ft1_filtered_4FGL_J0224.9+1843_weekly_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/503277/ft2_4FGL_J0224.9+1843_weekly_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/503277/ltcube_594604801_595209601_4FGL_J0224.9+1843_weekly_bin588.fits outfile=/scratch/kocevski/503277/expmap_594604801_595209601_4FGL_J0224.9+1843_weekly_bin588.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/503277/ltcube_594604801_595209601_4FGL_J0224.9+1843_weekly_bin588.fits
.....................!
real 198.21
user 186.10
sys 4.62

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/503277/ft1_filtered_4FGL_J0224.9+1843_weekly_bin588.fits scfile=/scratch/kocevski/503277/ft2_4FGL_J0224.9+1843_weekly_bin588.fits outfile=/scratch/kocevski/503277/cmap_594604801_595209601_4FGL_J0224.9+1843_weekly_bin588.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.73
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503277/ft1_filtered_4FGL_J0224.9+1843_weekly_bin588.fits scfile=/scratch/kocevski/503277/ft2_4FGL_J0224.9+1843_weekly_bin588.fits outfile=/scratch/kocevski/503277/cmap_HighResolution_594604801_595209601_4FGL_J0224.9+1843_weekly_bin588.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.90
user 0.42
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/503277/ft1_filtered_4FGL_J0224.9+1843_weekly_bin588.fits', '/scratch/kocevski/503277/ft2_4FGL_J0224.9+1843_weekly_bin588.fits', expMap='/scratch/kocevski/503277/expmap_594604801_595209601_4FGL_J0224.9+1843_weekly_bin588.fits', expCube='/scratch/kocevski/503277/ltcube_594604801_595209601_4FGL_J0224.9+1843_weekly_bin588.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/503277/Model_4FGL_J0224.9+1843_weekly_bin588.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/503277/ft1_filtered_4FGL_J0224.9+1843_weekly_bin588.fits
Spacecraft file(s): /scratch/kocevski/503277/ft2_4FGL_J0224.9+1843_weekly_bin588.fits
Exposure map: /scratch/kocevski/503277/expmap_594604801_595209601_4FGL_J0224.9+1843_weekly_bin588.fits
Exposure cube: /scratch/kocevski/503277/ltcube_594604801_595209601_4FGL_J0224.9+1843_weekly_bin588.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/503277/Model_4FGL_J0224.9+1843_weekly_bin588.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) = 239.529045525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60908E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    79.247       1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.132       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5450       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5974       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1603       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16069E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.017       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0289       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .81284E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8343       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    126.23       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7698       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .48415E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19885E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.8491       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .51020E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .97711       1.0000         .10000E-03   10000.    
    22 'norm      '    .20873E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .65524E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11916       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.1506       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .76620E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    1.0397       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.6702       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .37879       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   235.9494     FROM MIGRAD    STATUS=CONVERGED    249 CALLS      682 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.918        .16508E-04** at limit **
   2  Prefactor     79.400        3.9056        .29610E-05   -.27540E-02
   3  Prefactor     38.495        31.899       -.79720E-04   -.25684E-02
   4  Prefactor     .22469E-03    1031.3        .47433E-04** at limit **
   5  Prefactor     8.8353        29.093       -.30939E-04    .67962E-03
   6  norm          .10031E-03    297.41        .15697E-04** at limit **
   7  Prefactor     .11261E-03    215.55       -.55050E-03** at limit **
   8  Prefactor     17.092        11.488        .90018E-05   -.12420E-03
   9  norm          .29644E-01    1538.8       -.24710E-03   -.16065E-02
  10  Prefactor     .10000E-03    76.015        .29823E-04** at limit **
  11  Prefactor     .10097E-03    1038.3        .17660E-03** at limit **
  12  Prefactor     .10000E-03    26.804       -.75048E-05** at limit **
  13  Prefactor     136.97        237.31        .73801E-04   -.39940E-02
  14  Prefactor     3.0923        105.51       -.11012E-03    .31386E-02
  15  Prefactor     .10000E-03    53.009        .58435E-06** at limit **
  16  Prefactor     .10000E-03    43.062       -.65964E-05** at limit **
  17  Prefactor     .10000E-03    19.353        .76292E-06** at limit **
  18  norm          8.8491        1.0016         .0000         .0000    
  19  Prefactor     .10000E-03    87.996        .20879E-04** at limit **
  20  norm          .10000E-03    7.0966        .11902E-04** at limit **
  21  Prefactor     .10004E-03    297.49        .32200E-03** at limit **
  22  norm          .10000E-03    54.633        .11333E-04** at limit **
  23  Prefactor     .12571E-03    749.61       -.40143E-03** at limit **
  24  Prefactor     .10014E-03    388.54       -.14596E-04** at limit **
  25  Prefactor     3.1506        1.0132         .0000         .0000    
  26  Prefactor     .64811E-02    71.941       -.81262E-04    .25030E-02
  27  norm          1.0397        1.2531         .0000         .0000    
  28  Prefactor     6.6702        1.0028         .0000         .0000    
  29  Normalizat    .10000E-01    .17794       -.19942E-04** at limit **
  30  Prefactor     .37861        .24215        .58042E-04   -.17703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 79.4003
  Prefactor  = 38.4953
  Prefactor  = 0.000224693
  Prefactor  = 8.83526
  norm       = 0.000100306
  Prefactor  = 0.000112614
  Prefactor  = 17.0919
  norm       = 0.0296441
  Prefactor  = 0.0001
  Prefactor  = 0.000100967
  Prefactor  = 0.0001
  Prefactor  = 136.97
  Prefactor  = 3.09231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.84905
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010004
  norm       = 0.0001
  Prefactor  = 0.000125712
  Prefactor  = 0.000100143
  Prefactor  = 3.15065
  Prefactor  = 0.00648107
  norm       = 1.03974
  Prefactor  = 6.67016
  Normalizat = 0.01
  Prefactor  = 0.37861
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   235.9494     FROM HESSE     STATUS=FAILED        85 CALLS      767 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.968        .93232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     79.400        78.835        .11278E-02   -1.3923    
   3  Prefactor     38.495        29.838        .16226E-02   -1.4466    
   4  Prefactor     .22469E-03    1054.1        .85715E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8353        24.117        .34178E-02   -1.5113    
   6  norm          .10031E-03    39.773        .72477E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11261E-03    217.13        .91031E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.092        10.794        .24272E-02   -1.4881    
   9  norm          .29644E-01    7239.2        .58291E-02   -1.5742    
  10  Prefactor     .10000E-03    75.828        .94216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10097E-03    1040.9        .51527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.771        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     136.97        268.52        .89573E-03   -1.3362    
  14  Prefactor     3.0923        9961.8        .46056E-02   -1.5356    
  15  Prefactor     .10000E-03    52.928        .96232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.979        .10117E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.311        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          498.85        489.97         .0000       -1.5113    
  19  Prefactor     .10000E-03    .21507        .20879E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .20571        .11902E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10004E-03    .42800        .32200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .20825        .11333E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .12571E-03    .21835       -.40143E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10014E-03    .23050       -.14596E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.1506        1.0132         .0000       -1.5353    
  26  Prefactor     .64811E-02    .22086       -.81262E-04   -1.5692    
  27  norm          1.0397        1.2531         .0000       -1.5504    
  28  Prefactor     6.6702        1.0028         .0000       -1.5191    
  29  Normalizat    .10000E-01    .25505       -.19942E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .37861        .70697        .58042E-04   -1.1791    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.38493e-10
Minuit parameter uncertainties:
  1  5.25652e-05
  2  78.9395
  3  29.8491
  4  0.738472
  5  24.1437
  6  0.00697676
  7  0.105052
  8  10.7956
  9  25.1441
  10  0.000279448
  11  0.0646172
  12  7.71882e-06
  13  270.965
  14  588.686
  15  0.000240681
  16  0.000182905
  17  6.49035e-05
  18  1.0016
  19  3.4065e-06
  20  8.72226e-06
  21  0.000260664
  22  4.34339e-06
  23  0.00473882
  24  0.000362976
  25  1.01318
  26  0.075082
  27  1.25317
  28  1.00284
  29  3.87638e-07
  30  0.724227
Done.

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

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  1.010e-04  6.462e-02  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:  3.786e-01  7.242e-01  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:  1.000e-02  3.876e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.229 18.719
Photon Flux Upper Limit: 9.84e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.85e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/503277/likelihoodResults_594604801_595209601_4FGL_J0224.9+1843_weekly_bin588.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) = 235.949366603
delta logL = -4.42482834728e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 235.949362327
delta logL = -1.49020706885e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21794E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    4.3909       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37861       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=   235.9494     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      274 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11744E-03    6364.5        .18142E-01** at limit **
   2  Index         3.7597        5.6454        .50000        .17792E-06
   3  Normalizat    .10000E-01    .13595E-02    .19944E-02** at limit **
   4  Prefactor     .37861        .17157E-01    .15491E-03    .61923E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000117437
  Index      = 3.75966
  Normalizat = 0.01
  Prefactor  = 0.37861
 **********
 **   18 **HESSE 
 **********

 FCN=   235.9494     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11744E-03    9310.2        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7597        8.0846        .50000       -.25068    
   3  Normalizat    .10000E-01    .65567E-02    .39888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .37861        .37681E-01    .61963E-05   -1.1791    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.66259e-10
Minuit parameter uncertainties:
  1  0.994075
  2  16669.8
  3  1.63907e-08
  4  0.0376832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503277': 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) = 235.949362205
delta logL = -2.66050790287e-08

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  1.174e-04  9.941e-01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  3.760e+00  1.667e+04  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:  3.786e-01  3.768e-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:  1.000e-02  1.639e-08  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/503277/cmap_HighResolution_594604801_595209601_4FGL_J0224.9+1843_weekly_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-01', job_status='DONE', photon_flux_upper_limit='9.84e-06', time_completed='2021-07-04 16:26:53.547968', job_id='503277', GAL2='0.38', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625441213.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.38', dlogl='-2.66e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.95' WHERE bin_id='588' AND source_name='4FGL J0224.9+1843' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 16:26:53 PDT 2021

------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 503240: <4FGL_J0224.9+1843_weekly_bin588> in cluster <slac> Done

Job <4FGL_J0224.9+1843_weekly_bin588> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 16:11:31 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 16:11:32 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:32 2021
Terminated at Sun Jul  4 16:23:44 2021
Results reported at Sun Jul  4 16:23:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.9+1843_weekly_bin588 36.2294 18.7194 594604801 595209601 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 :                                   364.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             205.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0200>
Subject: Job 503277: <4FGL_J0224.9+1843_weekly_bin588> in cluster <slac> Done

Job <4FGL_J0224.9+1843_weekly_bin588> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Jul  4 16:11:33 2021
Job was executed on host(s) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 16:11:35 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:35 2021
Terminated at Sun Jul  4 16:26:55 2021
Results reported at Sun Jul  4 16:26:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.9+1843_weekly_bin588 36.2294 18.7194 594604801 595209601 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 :                                   360.10 sec.
    Max Memory :                                 629 MB
    Average Memory :                             155.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2934 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

