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 163 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0224.9+1843_weekly_bin108
RA = 36.2294, Dec = 18.7194
tmin = 304300801, tmax = 304905601
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='499546', job_status='RUN', time_executed='2021-07-04 19:06:10.957757', time_epoch_executed='1625450770.96' WHERE source_name='4FGL J0224.9+1843' and cadence='weekly' and bin_id='108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499546

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499546/ft1_4FGL_J0224.9+1843_weekly_bin108.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499546/ft2_4FGL_J0224.9+1843_weekly_bin108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499546/ft1_4FGL_J0224.9+1843_weekly_bin108.fits outfile=/scratch/kocevski/499546/ft1_filteredMKT_4FGL_J0224.9+1843_weekly_bin108.fits ra=36.2294 dec=18.7194 rad=12.0 tmin=304300801.0 tmax=304905601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 8.63
user 7.94
sys 0.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/499546/ft1_filtered_4FGL_J0224.9+1843_weekly_bin108.fits" evtable="EVENTS" scfile=/scratch/kocevski/499546/ft2_4FGL_J0224.9+1843_weekly_bin108.fits sctable="SC_DATA" outfile=/scratch/kocevski/499546/ltcube_304300801_304905601_4FGL_J0224.9+1843_weekly_bin108.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/499546/ft2_4FGL_J0224.9+1843_weekly_bin108.fits
.....................!
real 26.81
user 26.16
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499546/ft1_filtered_4FGL_J0224.9+1843_weekly_bin108.fits evtable="EVENTS" scfile=/scratch/kocevski/499546/ft2_4FGL_J0224.9+1843_weekly_bin108.fits sctable="SC_DATA" expcube=/scratch/kocevski/499546/ltcube_304300801_304905601_4FGL_J0224.9+1843_weekly_bin108.fits outfile=/scratch/kocevski/499546/expmap_304300801_304905601_4FGL_J0224.9+1843_weekly_bin108.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/499546/ltcube_304300801_304905601_4FGL_J0224.9+1843_weekly_bin108.fits
.....................!
real 193.01
user 185.30
sys 5.08

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/499546/ft1_filtered_4FGL_J0224.9+1843_weekly_bin108.fits scfile=/scratch/kocevski/499546/ft2_4FGL_J0224.9+1843_weekly_bin108.fits outfile=/scratch/kocevski/499546/cmap_304300801_304905601_4FGL_J0224.9+1843_weekly_bin108.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.76
user 0.42
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499546/ft1_filtered_4FGL_J0224.9+1843_weekly_bin108.fits scfile=/scratch/kocevski/499546/ft2_4FGL_J0224.9+1843_weekly_bin108.fits outfile=/scratch/kocevski/499546/cmap_HighResolution_304300801_304905601_4FGL_J0224.9+1843_weekly_bin108.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.71
user 0.41
sys 0.23

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.324       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5187       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37995E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    7.5221       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44077       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9937       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.956       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8639       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3942       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3662       1.0000         .10000E-03   10000.    
    18 'norm      '    8.9943       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .17728       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10658E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9690       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6047       1.0000         .10000E-03   10000.    
    24 'Prefactor '    112.34       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.738       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    258.48       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4150       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88938       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=   21889.31     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     4055 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.663        .10386E-04** at limit **
   2  Prefactor     10.326        6.1823       -.44151E-06   -.20084E-04
   3  Prefactor     4.5189        3.0241       -.43833E-07    .36140E-04
   4  Prefactor     .10000E-03    25.919       -.14251E-04** at limit **
   5  Prefactor     .63265E-02    .47105       -.99400E-07    .31353E-03
   6  norm          7.5228        3.0937       -.40392E-07    .70411E-04
   7  Prefactor     .10000E-03    .99843        .18992E-08** at limit **
   8  Prefactor     .44057        1.4510       -.22459E-06   -.87128E-03
   9  norm          .10000E-03    82.297       -.60883E-05** at limit **
  10  Prefactor     6.0002        16.201       -.51038E-06    .41946E-05
  11  Prefactor     27.946        29.139       -.44496E-05   -.12436E-04
  12  Prefactor     .10000E-03    2.5980       -.66898E-07** at limit **
  13  Prefactor     3.8612        64.968       -.44104E-05   -.42550E-05
  14  Prefactor     .10000E-03    13.653       -.20140E-05** at limit **
  15  Prefactor     4.3953        6.0410        .20363E-05   -.58769E-04
  16  Prefactor     .10000E-03    11.773        .85226E-06** at limit **
  17  Prefactor     6.3673        7.0031        .69406E-06   -.25223E-04
  18  norm          8.9945        1.8755       -.30176E-07    .18044E-04
  19  Prefactor     .10000E-03    3.1329        .56972E-07** at limit **
  20  norm          .17716        .24032        .10359E-06    .33498E-02
  21  Prefactor     .10000E-03    40.961        .84484E-05** at limit **
  22  norm          1.9689        2.1035        .41621E-06   -.21837E-02
  23  Prefactor     1.6096        8.6084       -.11286E-05   -.89707E-04
  24  Prefactor     112.32        34.315       -.49023E-05   -.15076E-03
  25  Prefactor     15.740        8.8556       -.31090E-06    .77497E-05
  26  Prefactor     .10000E-03    3.6042       -.79129E-08** at limit **
  27  norm          .10000E-03    4.8475       -.17412E-07** at limit **
  28  Prefactor     258.48        146.11        .42909E-05    .63783E-05
  29  Normalizat    1.4146        .14981        .13543E-05   -.10816E-03
  30  Prefactor     .88950        .60330E-01   -.66627E-07    .10340E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.3258
  Prefactor  = 4.51889
  Prefactor  = 0.0001
  Prefactor  = 0.00632653
  norm       = 7.52275
  Prefactor  = 0.0001
  Prefactor  = 0.440567
  norm       = 0.0001
  Prefactor  = 6.00018
  Prefactor  = 27.9457
  Prefactor  = 0.0001
  Prefactor  = 3.8612
  Prefactor  = 0.0001
  Prefactor  = 4.39531
  Prefactor  = 0.0001
  Prefactor  = 6.36725
  norm       = 8.99446
  Prefactor  = 0.0001
  norm       = 0.177163
  Prefactor  = 0.0001
  norm       = 1.96892
  Prefactor  = 1.60964
  Prefactor  = 112.324
  Prefactor  = 15.7401
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 258.483
  Normalizat = 1.41465
  Prefactor  = 0.889498
 **********
 **   18 **HESSE 
 **********

 FCN=   21889.31     FROM HESSE     STATUS=OK           600 CALLS     4655 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.326        6.1911        .12470E-03   -1.5065    
   3  Prefactor     4.5189        3.0258        .18939E-03   -1.5283    
   4  Prefactor     .10000E-03    25.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .63265E-02    .91293        .35284E-01   -1.5692    
   6  norm          7.5228        3.0794        .14623E-03   -1.5159    
   7  Prefactor     .10000E-03    1.0047        .14435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .44057        1.4703        .29994E-03   -1.5575    
   9  norm          .10000E-03    82.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0002        16.025        .16401E-03   -1.5218    
  11  Prefactor     27.946        29.243        .75771E-04   -1.4650    
  12  Prefactor     .10000E-03    2.6327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8612        64.427        .20529E-03   -1.5315    
  14  Prefactor     .10000E-03    13.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3953        5.9979        .19213E-03   -1.5289    
  16  Prefactor     .10000E-03    11.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3673        7.0830        .15908E-03   -1.5203    
  18  norm          8.9945        1.8762        .88319E-04   -1.5108    
  19  Prefactor     .10000E-03    3.2209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .17716        .18326        .77962E-03   -1.5624    
  21  Prefactor     .10000E-03    41.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9689        6.4592        .14776E-02   -1.5427    
  23  Prefactor     1.6096        8.1483        .33455E-03   -1.5454    
  24  Prefactor     112.32        34.687        .37953E-04   -1.3584    
  25  Prefactor     15.740        8.8719        .10096E-03   -1.4914    
  26  Prefactor     .10000E-03    3.6103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.0089        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     258.48        146.30        .12604E-03   -1.2478    
  29  Normalizat    1.4146        .17144        .35531E-03   -.80206    
  30  Prefactor     .88950        .69122E-01    .18922E-03   -.96509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09833e-08
Minuit parameter uncertainties:
  1  9.59728e-06
  2  6.19152
  3  3.02586
  4  7.79128e-05
  5  0.150792
  6  3.07946
  7  5.01525e-07
  8  1.47046
  9  4.5997e-05
  10  16.0367
  11  29.2579
  12  1.28676e-05
  13  31.5842
  14  1.04941e-06
  15  5.99868
  16  6.83598e-06
  17  7.08388
  18  1.87621
  19  1.24239e-05
  20  0.183259
  21  0.000119979
  22  6.46148
  23  7.24451
  24  34.6933
  25  8.87263
  26  2.66657e-06
  27  4.33877e-06
  28  146.509
  29  0.171512
  30  0.0691289
Done.

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

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  2.795e+01  2.926e+01  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:  8.895e-01  6.913e-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.415e+00  1.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 36.229 18.719
Photon Index (Fixed Index): 2.95 +/- 0.00
Photon Flux (Fixed Index): 4.51e-08 +/- 4.72e-08
Energy Flux (Fixed Index): 9.24e-06 +/- 9.67e-06

TS (Fixed Index): 1.07
Ra Dec: 36.229 18.719
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/499546/likelihoodResults_304300801_304905601_4FGL_J0224.9+1843_weekly_bin108.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) = 21888.0986726
delta logL = 1.21264970854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21888.0862374
delta logL = 1.2250849593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3379       1.0000         .10000E-03   10000.    
     2 'Index     '    5.9649       1.0000          .0000       10.000    
     3 'Normalizat'    1.3519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91103       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   21888.09     FROM MIGRAD    STATUS=FAILED        84 CALLS      311 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3372        73.257        .17079E-03   -.43018E-02
   2  Index         5.9655        7.9611        .12353E-01   -.57235E-03
   3  Normalizat    1.3520        .14110        .36205E-03   -.11067E-02
   4  Prefactor     .91096        .59440E-01    .18723E-03   -.12476E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   21888.09     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      392 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3372        73.257        .34252E-03   -.43018E-02
   2  Index         5.9655        7.9611        .34767E-02   -.57235E-03
   3  Normalizat    1.3520        .14110        .17782E-03   -.11067E-02
   4  Prefactor     .91096        .59440E-01    .70198E-04   -.12476E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   21888.09     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      421 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3361        13.114        .68314E-05   -.45652E-02
   2  Index         5.9657        2.7669        .49411E-03   -.46624E-03
   3  Normalizat    1.3520        .16450        .72411E-04   -.10893E-02
   4  Prefactor     .91096        .69514E-01    .37445E-04   -.11926E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.33613
  Index      = 5.96574
  Normalizat = 1.352
  Prefactor  = 0.910958
 **********
 **   18 **HESSE 
 **********

 FCN=   21888.09     FROM HESSE     STATUS=OK            23 CALLS      444 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3361        12.132        .13663E-05   -1.5291    
   2  Index         5.9657        2.5815        .19764E-04    .19437    
   3  Normalizat    1.3520        .16447        .14482E-04   -.82027    
   4  Prefactor     .91096        .69526E-01    .74890E-05   -.95759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0773e-09
Minuit parameter uncertainties:
  1  12.1393
  2  2.71845
  3  0.164533
  4  0.0695329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499546': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 21888.0862363
delta logL = 1.22508600131

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  4.336e+00  1.214e+01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  5.966e+00  2.718e+00  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:  9.110e-01  6.953e-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.352e+00  1.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.79
Ra Dec: 36.229 18.719
Photon Index (Free Index): 5.97 +/- 2.72
Photon Flux (Free Index): 9.41e-08 +/- 5.70e-08
Energy Flux (Free Index): 1.17e-05 +/- 7.58e-06

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/499546/cmap_HighResolution_304300801_304905601_4FGL_J0224.9+1843_weekly_bin108.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.51e-08', energy_flux2='1.17e-05', photon_flux_error='4.72e-08', dlogl='1.23e+00', energy_flux='9.24e-06', photon_flux2='9.41e-08', job_status='DONE', time_completed='2021-07-04 19:49:10.673547', photon_index_error2='2.72', photon_index2='5.97', ts='1.07', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='7.58e-06', EG='1.41', time_epoch_completed='1625453350.67', return_code='0', job_id='499546', GAL2='0.91', EG2='1.35', return_code2='0', energy_flux_error='9.67e-06', photon_flux_error2='5.70e-08', ts2='3.79', photon_index='2.95' WHERE bin_id='108' AND source_name='4FGL J0224.9+1843' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 19:49:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 499546: <4FGL_J0224.9+1843_weekly_bin108> in cluster <slac> Done

Job <4FGL_J0224.9+1843_weekly_bin108> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 16:00:45 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 16:01:01 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:01:01 2021
Terminated at Sun Jul  4 19:49:11 2021
Results reported at Sun Jul  4 19:49:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.9+1843_weekly_bin108 36.2294 18.7194 304300801 304905601 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 :                                   2321.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             100.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13690 sec.
    Turnaround time :                            13706 sec.

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

